CFx SDK Documentation  2020SP3
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,
83  OdGsPropertiesDirectRenderOutput *pdro = NULL, OdUInt32 incFlags = kAll);
84 };
85 
90 
91 #include "TD_PackPop.h"
92 
93 #endif // __OD_GS_BACKGROUND_PROPERTIES__
OdGiImageBackgroundTraitsData
Definition: GiEnvironmentTraitsData.h:139
NULL
#define NULL
Definition: GsProperties.h:177
GsProperties.h
OdGsBackgroundProperties::skyBackgroundTraitsData
OdGiSkyBackgroundTraitsData * skyBackgroundTraitsData() const
Definition: GsBackgroundProperties.h:58
OdGsBackgroundProperties::imageBackgroundTraitsData
OdGiImageBackgroundTraitsData * imageBackgroundTraitsData() const
Definition: GsBackgroundProperties.h:56
OdGsBackgroundProperties::update
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
OdGsProperties::kBackground
@ kBackground
Definition: GsProperties.h:116
OdGsBaseVectorizer
Definition: GsBaseVectorizer.h:112
OdGsBackgroundProperties::nestedBackgroundDisplay
virtual void nestedBackgroundDisplay(OdGsBaseVectorizer &view, const OdGiDrawable *pDrawable, OdGiBackgroundTraitsData *pBackgroundTraits, OdGsPropertiesDirectRenderOutput *pdro=NULL)
OdGsBackgroundProperties::propertiesForType
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdGiIBLBackgroundTraitsData
Definition: GiEnvironmentTraitsData.h:347
OdGiDrawable::kGeometry
@ kGeometry
Definition: GiDrawable.h:87
OdGsBackgroundProperties::backgroundType
OdGiDrawable::DrawableType backgroundType() const
Definition: GsBackgroundProperties.h:62
TD_PackPop.h
OdGsBackgroundProperties::clearTraits
void clearTraits()
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGsBackgroundProperties::propertiesType
virtual PropertiesType propertiesType() const
Definition: GsBackgroundProperties.h:72
GiEnvironmentTraitsData.h
OdGsBackgroundProperties::~OdGsBackgroundProperties
~OdGsBackgroundProperties()
OdGiSkyBackgroundTraitsData
Definition: GiEnvironmentTraitsData.h:253
OdSmartPtr< OdGsBackground >
OdGsBackgroundPropertiesPtr
OdSmartPtr< OdGsBackgroundProperties > OdGsBackgroundPropertiesPtr
Definition: GsBackgroundProperties.h:89
OdGsBackgroundProperties
Definition: GsBackgroundProperties.h:37
GsBackground.h
OdGsBackgroundProperties::secondaryBackground
const OdGsBackgroundProperties * secondaryBackground() const
Definition: GsBackgroundProperties.h:63
OdGsBackgroundProperties::solidBackgroundTraitsData
OdGiSolidBackgroundTraitsData * solidBackgroundTraitsData() const
Definition: GsBackgroundProperties.h:54
OdGsProperties
Definition: GsProperties.h:111
OdGiDrawable
Definition: GiDrawable.h:49
OdGsBackgroundProperties::iblBackgroundTraitsData
OdGiIBLBackgroundTraitsData * iblBackgroundTraitsData() const
Definition: GsBackgroundProperties.h:59
OdGsViewImpl
Definition: GsViewImpl.h:58
OdSmartPtr::get
const T * get() const
Definition: SmartPtr.h:326
OdGiGradientBackgroundTraitsData
Definition: GiEnvironmentTraitsData.h:92
OdGsNestedBackground
Definition: GsBackground.h:41
TD_PackPush.h
OdGsBackgroundProperties::groundPlaneBackgroundTraitsData
OdGiGroundPlaneBackgroundTraitsData * groundPlaneBackgroundTraitsData() const
Definition: GsBackgroundProperties.h:57
OdGsBackgroundProperties::display
virtual void display(OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
OdGiBackgroundTraitsData
Definition: GiEnvironmentTraitsData.h:38
OdGsBackgroundProperties::OdGsBackgroundProperties
OdGsBackgroundProperties()
OdGsBackgroundProperties::gradientBackgroundTraitsData
OdGiGradientBackgroundTraitsData * gradientBackgroundTraitsData() const
Definition: GsBackgroundProperties.h:55
OdGiDrawable::DrawableType
DrawableType
Definition: GiDrawable.h:86
OdGsPropertiesDirectRenderOutput
Definition: GsProperties.h:47
OdGsBackgroundProperties::isTraitsModified
bool isTraitsModified()
GS_TOOLKIT_EXPORT
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
OdGsBackgroundProperties::backgroundTraitsData
OdGiBackgroundTraitsData * backgroundTraitsData() const
Definition: GsBackgroundProperties.h:60
OdGiGroundPlaneBackgroundTraitsData
Definition: GiEnvironmentTraitsData.h:208
OdGsProperties::PropertiesType
PropertiesType
Definition: GsProperties.h:114
OdGsBackgroundProperties::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdGsBackgroundProperties)
OdGiSolidBackgroundTraitsData
Definition: GiEnvironmentTraitsData.h:67
OdGsBackgroundProperties::secondaryBackground
OdGsBackgroundProperties * secondaryBackground()
Definition: GsBackgroundProperties.h:64