CFx SDK Documentation  2022 SP0
GsViewportProperties.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_VIEWPORT_PROPERTIES__
25 #define __OD_GS_VIEWPORT_PROPERTIES__
26 
27 #include "TD_PackPush.h"
28 
29 #include "Gs/GsProperties.h"
34 
35 // Viewports is not entities or nodes (this is objects with one attributes set per scene)
36 
37 // OdGsViewportProperties hierarhy:
38 // OdGsViewportProperties
39 // OdGsBackgroundProperties
40 // OdGsVisualStyleProperties
41 // OdGsRenderEnvironmentProperties
42 // OdGsRenderSettingsProperties
43 
47 {
48  OdGiViewportTraitsData* m_pViewportTraits;
49  // Internal handlers
50  OdGsBackgroundPropertiesPtr m_pBackground;
51  OdGsVisualStylePropertiesPtr m_pVisualStyle;
52  OdGsRenderEnvironmentPropertiesPtr m_pRenderEnvironment;
53  OdGsRenderSettingsPropertiesPtr m_pRenderSettings;
54 public:
56 
59 
60  OdGiViewportTraitsData* viewportTraitsData() const { return m_pViewportTraits; }
61 
63 
64  void clearTraits();
65 
66  // OdGsProperties virtual overrides
67 
69  {
70  return kViewport;
71  }
72 
74 
75  // Update attributes
76  virtual void update(const OdGiDrawable* pUnderlyingDrawable,
77  OdGsViewImpl* view, OdUInt32 incFlags = kAll);
78  // Display attributed data
79  virtual void display(OdGsBaseVectorizer& view,
81 };
82 
87 
88 #include "TD_PackPop.h"
89 
90 #endif // __OD_GS_VIEWPORT_PROPERTIES__
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
#define NULL
Definition: GsProperties.h:177
OdSmartPtr< OdGsViewportProperties > OdGsViewportPropertiesPtr
unsigned int OdUInt32
ODRX_DECLARE_MEMBERS(OdGsViewportProperties)
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
virtual PropertiesType propertiesType() const
OdGiViewportTraitsData * viewportTraitsData() 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