CFx SDK Documentation
2020SP3
SDK
CFx
dd_inc
Gs
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
"
30
#include "
Gi/GiViewportTraitsData.h
"
31
#include "
Gs/GsBackgroundProperties.h
"
32
#include "
Gs/GsVisualStyleProperties.h
"
33
#include "
Gs/GsRenderSettingsProperties.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
46
class
GS_TOOLKIT_EXPORT
OdGsViewportProperties
:
public
OdGsProperties
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
:
55
ODRX_DECLARE_MEMBERS
(
OdGsViewportProperties
);
56
57
OdGsViewportProperties
();
58
~OdGsViewportProperties
();
59
60
OdGiViewportTraitsData
*
viewportTraitsData
()
const
{
return
m_pViewportTraits; }
61
62
bool
isTraitsModified
();
63
64
void
clearTraits
();
65
66
// OdGsProperties virtual overrides
67
68
virtual
PropertiesType
propertiesType
()
const
69
{
70
return
kViewport
;
71
}
72
73
virtual
OdSmartPtr<OdGsProperties>
propertiesForType
(
PropertiesType
type
)
const
;
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,
80
OdGsPropertiesDirectRenderOutput
*pdro =
NULL
,
OdUInt32
incFlags = kAll);
81
};
82
86
typedef
OdSmartPtr<OdGsViewportProperties>
OdGsViewportPropertiesPtr
;
87
88
#include "
TD_PackPop.h
"
89
90
#endif // __OD_GS_VIEWPORT_PROPERTIES__
NULL
#define NULL
Definition:
GsProperties.h:177
GsProperties.h
OdGsBaseVectorizer
Definition:
GsBaseVectorizer.h:112
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition:
gles2_ext.h:274
OdGsViewportProperties::OdGsViewportProperties
OdGsViewportProperties()
OdGsViewportProperties::update
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
TD_PackPop.h
OdUInt32
unsigned int OdUInt32
Definition:
OdPlatformSettings.h:783
OdGsViewportProperties::propertiesForType
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
OdGsViewportProperties::viewportTraitsData
OdGiViewportTraitsData * viewportTraitsData() const
Definition:
GsViewportProperties.h:60
GiViewportTraitsData.h
OdSmartPtr< OdGsBackgroundProperties >
GsRenderSettingsProperties.h
OdGsProperties
Definition:
GsProperties.h:111
OdGiDrawable
Definition:
GiDrawable.h:49
GsVisualStyleProperties.h
OdGsViewImpl
Definition:
GsViewImpl.h:58
OdGsViewportProperties::~OdGsViewportProperties
~OdGsViewportProperties()
TD_PackPush.h
OdGsViewportProperties::isTraitsModified
bool isTraitsModified()
OdGiViewportTraitsData
Definition:
GiViewportTraitsData.h:38
OdGsViewportProperties::display
virtual void display(OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
OdGsViewportPropertiesPtr
OdSmartPtr< OdGsViewportProperties > OdGsViewportPropertiesPtr
Definition:
GsViewportProperties.h:86
OdGsViewportProperties
Definition:
GsViewportProperties.h:47
OdGsPropertiesDirectRenderOutput
Definition:
GsProperties.h:47
GS_TOOLKIT_EXPORT
#define GS_TOOLKIT_EXPORT
Definition:
GsExport.h:37
OdGsProperties::PropertiesType
PropertiesType
Definition:
GsProperties.h:114
OdGsViewportProperties::clearTraits
void clearTraits()
OdGsViewportProperties::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdGsViewportProperties)
OdGsViewportProperties::propertiesType
virtual PropertiesType propertiesType() const
Definition:
GsViewportProperties.h:68
GsBackgroundProperties.h
OdGsProperties::kViewport
@ kViewport
Definition:
GsProperties.h:115
Generated on Mon Oct 12 2020 11:49:34