CFx SDK Documentation  2023 SP0
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 
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 
108 };
109 
114 
115 #include "TD_PackPop.h"
116 
117 #endif // __OD_GS_RENDERSETTINGS_PROPERTIES__
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
#define NULL
Definition: GsProperties.h:177
OdSmartPtr< OdGsRenderSettingsProperties > OdGsRenderSettingsPropertiesPtr
OdSmartPtr< OdGsRenderEnvironmentProperties > OdGsRenderEnvironmentPropertiesPtr
unsigned int OdUInt32
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
virtual void display(OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
OdGiRenderEnvironmentTraitsData * renderEnvironmentTraitsData() const
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
ODRX_DECLARE_MEMBERS(OdGsRenderEnvironmentProperties)
virtual PropertiesType propertiesType() const
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
OdGiRapidRTRenderSettingsTraitsData * rapidRTRenderSettingsTraitsData() const
OdGiRenderSettingsTraitsData * renderSettingsTraitsData() const
ODRX_DECLARE_MEMBERS(OdGsRenderSettingsProperties)
OdGiMentalRayRenderSettingsTraitsData * mentalRayRenderSettingsTraitsData() const
virtual PropertiesType propertiesType() const
virtual void display(OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274