CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GsRenderSettingsProperties.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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
43public:
45
50
55
59 OdGiRenderEnvironmentTraitsData* renderEnvironmentTraitsData() const { return m_pRenderEnvironmentTraits; }
60
71
76
77 // OdGsProperties virtual overrides
78
83 {
84 return kRenderEnvironment;
85 }
86
95
96 virtual void update(const OdGiDrawable* pUnderlyingDrawable, OdGsViewImpl* view, OdUInt32 incFlags = kAll);
97
98 virtual void display(OdGsBaseVectorizer& view, OdGsPropertiesDirectRenderOutput *pdro = NULL, OdUInt32 incFlags = kAll);
99};
100
105
109{
110 OdGiCombinedRenderSettingsTraitsData* m_pRenderSettingsTraits;
111
112public:
114
119
124
125
129 OdGiRenderSettingsTraitsData* renderSettingsTraitsData() const { return m_pRenderSettingsTraits; }
130
136 bool hasMentalRayRenderSettings() const { return (m_pRenderSettingsTraits) ? m_pRenderSettingsTraits->hasMentalRayRenderSettings() : false; }
137
142
148 bool hasRapidRTRenderSettings() const { return (m_pRenderSettingsTraits) ? m_pRenderSettingsTraits->hasRapidRTRenderSettings() : false; }
149
153 OdGiRapidRTRenderSettingsTraitsData* rapidRTRenderSettingsTraitsData() const { return m_pRenderSettingsTraits; }
154
161
166
167 // OdGsProperties virtual overrides
168
173 {
174 return kRenderSettings;
175 }
176
185
186 virtual void update(const OdGiDrawable* pUnderlyingDrawable, OdGsViewImpl* view, OdUInt32 incFlags = kAll);
187
188 virtual void display(OdGsBaseVectorizer& view, OdGsPropertiesDirectRenderOutput *pdro = NULL, OdUInt32 incFlags = kAll);
189};
190
195
196#include "TD_PackPop.h"
197
198#endif // __OD_GS_RENDERSETTINGS_PROPERTIES__
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
OdSmartPtr< OdGsRenderSettingsProperties > OdGsRenderSettingsPropertiesPtr
OdSmartPtr< OdGsRenderEnvironmentProperties > OdGsRenderEnvironmentPropertiesPtr
unsigned int OdUInt32
virtual void display(OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
ODRX_DECLARE_MEMBERS(OdGsRenderEnvironmentProperties)
OdGiRenderEnvironmentTraitsData * renderEnvironmentTraitsData() const
virtual PropertiesType propertiesType() const
OdGiRenderSettingsTraitsData * renderSettingsTraitsData() const
ODRX_DECLARE_MEMBERS(OdGsRenderSettingsProperties)
OdGiMentalRayRenderSettingsTraitsData * mentalRayRenderSettingsTraitsData() const
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
virtual PropertiesType propertiesType() const
OdGiRapidRTRenderSettingsTraitsData * rapidRTRenderSettingsTraitsData() 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