CFx SDK Documentation  2022 SP0
GsBackgroundProperties.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef __OD_GS_BACKGROUND_PROPERTIES__
25 #define __OD_GS_BACKGROUND_PROPERTIES__
26 
27 #include "TD_PackPush.h"
28 
29 #include "Gs/GsProperties.h"
31 #include "Gs/GsBackground.h"
32 
36  , protected OdGsNestedBackground
37 {
38  OdGiBackgroundTraitsData* m_pBackgroundTraits;
39  OdGsBackgroundPtr m_pBackgroundPainter;
40  OdSmartPtr<OdGsBackgroundProperties> m_pSecondaryBackground;
41 
42 protected:
44  const OdGiDrawable *pDrawable,
45  OdGiBackgroundTraitsData* pBackgroundTraits,
47 
48 public:
50 
53 
60  OdGiBackgroundTraitsData* backgroundTraitsData() const { return m_pBackgroundTraits; }
61 
62  OdGiDrawable::DrawableType backgroundType() const { return (m_pBackgroundTraits) ? m_pBackgroundTraits->type() : OdGiDrawable::kGeometry; }
63  const OdGsBackgroundProperties *secondaryBackground() const { return m_pSecondaryBackground.get(); }
64  OdGsBackgroundProperties *secondaryBackground() { return m_pSecondaryBackground.get(); }
65 
67 
68  void clearTraits();
69 
70  // OdGsProperties virtual overrides
71 
73  {
74  return kBackground;
75  }
76 
78 
79  virtual void update(const OdGiDrawable* pUnderlyingDrawable,
80  OdGsViewImpl* view, OdUInt32 incFlags = kAll);
81 
82  virtual void display(OdGsBaseVectorizer& view,
84 };
85 
90 
91 #include "TD_PackPop.h"
92 
93 #endif // __OD_GS_BACKGROUND_PROPERTIES__
OdSmartPtr< OdGsBackgroundProperties > OdGsBackgroundPropertiesPtr
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
#define NULL
Definition: GsProperties.h:177
unsigned int OdUInt32
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
OdGiIBLBackgroundTraitsData * iblBackgroundTraitsData() const
const OdGsBackgroundProperties * secondaryBackground() const
OdGiSkyBackgroundTraitsData * skyBackgroundTraitsData() const
OdGiBackgroundTraitsData * backgroundTraitsData() const
virtual void nestedBackgroundDisplay(OdGsBaseVectorizer &view, const OdGiDrawable *pDrawable, OdGiBackgroundTraitsData *pBackgroundTraits, OdGsPropertiesDirectRenderOutput *pdro=NULL)
OdGiSolidBackgroundTraitsData * solidBackgroundTraitsData() const
OdGiDrawable::DrawableType backgroundType() const
virtual void display(OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
OdGiGradientBackgroundTraitsData * gradientBackgroundTraitsData() const
ODRX_DECLARE_MEMBERS(OdGsBackgroundProperties)
OdGsBackgroundProperties * secondaryBackground()
OdGiGroundPlaneBackgroundTraitsData * groundPlaneBackgroundTraitsData() const
virtual PropertiesType propertiesType() const
OdGiImageBackgroundTraitsData * imageBackgroundTraitsData() const
const T * get() const
Definition: SmartPtr.h:326
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274