CFx SDK Documentation  2020SP3
GsRenderSettingsProperties.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_RENDERSETTINGS_PROPERTIES__
25 #define __OD_GS_RENDERSETTINGS_PROPERTIES__
26 
27 #include "TD_PackPush.h"
28 
29 #include "Gs/GsProperties.h"
31 
32 // Manages:
33 // OdRenderEnvironment
34 // OdRenderSettings
35 // OdMentalRayRenderSettings
36 
40 {
41  OdGiRenderEnvironmentTraitsData* m_pRenderEnvironmentTraits;
42 
43 public:
45 
48 
49  OdGiRenderEnvironmentTraitsData* renderEnvironmentTraitsData() const { return m_pRenderEnvironmentTraits; }
50 
52 
53  void clearTraits();
54 
55  // OdGsProperties virtual overrides
56 
58  {
59  return kRenderEnvironment;
60  }
61 
63 
64  virtual void update(const OdGiDrawable* pUnderlyingDrawable, OdGsViewImpl* view, OdUInt32 incFlags = kAll);
65 
66  virtual void display(OdGsBaseVectorizer& view, OdGsPropertiesDirectRenderOutput *pdro = NULL, OdUInt32 incFlags = kAll);
67 };
68 
73 
77 {
78  OdGiCombinedRenderSettingsTraitsData* m_pRenderSettingsTraits;
79 
80 public:
82 
85 
86  OdGiRenderSettingsTraitsData* renderSettingsTraitsData() const { return m_pRenderSettingsTraits; }
87  bool hasMentalRayRenderSettings() const { return (m_pRenderSettingsTraits) ? m_pRenderSettingsTraits->hasMentalRayRenderSettings() : false; }
88  OdGiMentalRayRenderSettingsTraitsData* mentalRayRenderSettingsTraitsData() const { return m_pRenderSettingsTraits; }
89  bool hasRapidRTRenderSettings() const { return (m_pRenderSettingsTraits) ? m_pRenderSettingsTraits->hasRapidRTRenderSettings() : false; }
90  OdGiRapidRTRenderSettingsTraitsData* rapidRTRenderSettingsTraitsData() const { return m_pRenderSettingsTraits; }
91 
93 
94  void clearTraits();
95 
96  // OdGsProperties virtual overrides
97 
99  {
100  return kRenderSettings;
101  }
102 
104 
105  virtual void update(const OdGiDrawable* pUnderlyingDrawable, OdGsViewImpl* view, OdUInt32 incFlags = kAll);
106 
107  virtual void display(OdGsBaseVectorizer& view, OdGsPropertiesDirectRenderOutput *pdro = NULL, OdUInt32 incFlags = kAll);
108 };
109 
114 
115 #include "TD_PackPop.h"
116 
117 #endif // __OD_GS_RENDERSETTINGS_PROPERTIES__
OdGsRenderEnvironmentProperties::update
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
NULL
#define NULL
Definition: GsProperties.h:177
OdGsProperties::kRenderSettings
@ kRenderSettings
Definition: GsProperties.h:119
OdGsRenderSettingsPropertiesPtr
OdSmartPtr< OdGsRenderSettingsProperties > OdGsRenderSettingsPropertiesPtr
Definition: GsRenderSettingsProperties.h:113
GsProperties.h
OdGsRenderEnvironmentProperties::propertiesForType
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
OdGsBaseVectorizer
Definition: GsBaseVectorizer.h:112
OdGsRenderSettingsProperties::hasMentalRayRenderSettings
bool hasMentalRayRenderSettings() const
Definition: GsRenderSettingsProperties.h:87
OdGsRenderSettingsProperties::display
virtual void display(OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
OdGsRenderSettingsProperties::rapidRTRenderSettingsTraitsData
OdGiRapidRTRenderSettingsTraitsData * rapidRTRenderSettingsTraitsData() const
Definition: GsRenderSettingsProperties.h:90
OdGsProperties::kRenderEnvironment
@ kRenderEnvironment
Definition: GsProperties.h:118
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdGiMentalRayRenderSettingsTraitsData
Definition: GiEnvironmentTraitsData.h:541
OdGsRenderEnvironmentProperties::OdGsRenderEnvironmentProperties
OdGsRenderEnvironmentProperties()
TD_PackPop.h
OdGiRenderEnvironmentTraitsData
Definition: GiEnvironmentTraitsData.h:421
OdGsRenderSettingsProperties::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdGsRenderSettingsProperties)
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGsRenderSettingsProperties::propertiesType
virtual PropertiesType propertiesType() const
Definition: GsRenderSettingsProperties.h:98
GiEnvironmentTraitsData.h
OdGsRenderEnvironmentProperties::propertiesType
virtual PropertiesType propertiesType() const
Definition: GsRenderSettingsProperties.h:57
OdSmartPtr< OdGsProperties >
OdGsProperties
Definition: GsProperties.h:111
OdGsRenderEnvironmentProperties::isTraitsModified
bool isTraitsModified()
OdGsRenderSettingsProperties::hasRapidRTRenderSettings
bool hasRapidRTRenderSettings() const
Definition: GsRenderSettingsProperties.h:89
OdGiDrawable
Definition: GiDrawable.h:49
OdGsViewImpl
Definition: GsViewImpl.h:58
OdGsRenderSettingsProperties::isTraitsModified
bool isTraitsModified()
OdGsRenderSettingsProperties::clearTraits
void clearTraits()
OdGsRenderEnvironmentProperties::display
virtual void display(OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
TD_PackPush.h
OdGiCombinedRenderSettingsTraitsData
Definition: GiEnvironmentTraitsData.h:1098
OdGsRenderSettingsProperties::propertiesForType
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
OdGiRenderSettingsTraitsData
Definition: GiEnvironmentTraitsData.h:489
OdGsRenderEnvironmentProperties::clearTraits
void clearTraits()
OdGsRenderEnvironmentProperties::~OdGsRenderEnvironmentProperties
~OdGsRenderEnvironmentProperties()
OdGsRenderEnvironmentPropertiesPtr
OdSmartPtr< OdGsRenderEnvironmentProperties > OdGsRenderEnvironmentPropertiesPtr
Definition: GsRenderSettingsProperties.h:72
OdGsRenderEnvironmentProperties::renderEnvironmentTraitsData
OdGiRenderEnvironmentTraitsData * renderEnvironmentTraitsData() const
Definition: GsRenderSettingsProperties.h:49
OdGsPropertiesDirectRenderOutput
Definition: GsProperties.h:47
GS_TOOLKIT_EXPORT
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
OdGiRapidRTRenderSettingsTraitsData
Definition: GiEnvironmentTraitsData.h:997
OdGsRenderSettingsProperties::update
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
OdGsProperties::PropertiesType
PropertiesType
Definition: GsProperties.h:114
OdGsRenderSettingsProperties::mentalRayRenderSettingsTraitsData
OdGiMentalRayRenderSettingsTraitsData * mentalRayRenderSettingsTraitsData() const
Definition: GsRenderSettingsProperties.h:88
OdGsRenderSettingsProperties::OdGsRenderSettingsProperties
OdGsRenderSettingsProperties()
OdGsRenderEnvironmentProperties
Definition: GsRenderSettingsProperties.h:40
OdGsRenderSettingsProperties::~OdGsRenderSettingsProperties
~OdGsRenderSettingsProperties()
OdGsRenderSettingsProperties::renderSettingsTraitsData
OdGiRenderSettingsTraitsData * renderSettingsTraitsData() const
Definition: GsRenderSettingsProperties.h:86
OdGsRenderSettingsProperties
Definition: GsRenderSettingsProperties.h:77
OdGsRenderEnvironmentProperties::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdGsRenderEnvironmentProperties)