CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
GsBackgroundProperties.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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_BACKGROUND_PROPERTIES__
25#define __OD_GS_BACKGROUND_PROPERTIES__
26
27#include "TD_PackPush.h"
28
29#include "Gs/GsProperties.h"
31#include "Gs/GsBackground.h"
32
36 , protected OdGsNestedBackground
37{
38 OdGiBackgroundTraitsData* m_pBackgroundTraits;
39 OdGsBackgroundPtr m_pBackgroundPainter;
40 OdSmartPtr<OdGsBackgroundProperties> m_pSecondaryBackground;
41
42protected:
44 const OdGiDrawable *pDrawable,
45 OdGiBackgroundTraitsData* pBackgroundTraits,
47
48public:
50
55
60
65
70
75
80
85
90
95
100
104 OdGiBackgroundTraitsData* backgroundTraitsData() const { return m_pBackgroundTraits; }
105
109 OdGiDrawable::DrawableType backgroundType() const { return (m_pBackgroundTraits) ? m_pBackgroundTraits->type() : OdGiDrawable::kGeometry; }
110
114 const OdGsBackgroundProperties *secondaryBackground() const { return m_pSecondaryBackground.get(); }
115
119 OdGsBackgroundProperties *secondaryBackground() { return m_pSecondaryBackground.get(); }
120
127
132
133 // OdGsProperties virtual overrides
134
139 {
140 return kBackground;
141 }
142
148
149 virtual void update(const OdGiDrawable* pUnderlyingDrawable,
150 OdGsViewImpl* view, OdUInt32 incFlags = kAll);
151
152 virtual void display(OdGsBaseVectorizer& view,
153 OdGsPropertiesDirectRenderOutput *pdro = NULL, OdUInt32 incFlags = kAll);
154};
155
160
161#include "TD_PackPop.h"
162
163#endif // __OD_GS_BACKGROUND_PROPERTIES__
OdSmartPtr< OdGsBackground > OdGsBackgroundPtr
OdSmartPtr< OdGsBackgroundProperties > OdGsBackgroundPropertiesPtr
#define GS_TOOLKIT_EXPORT
Definition GsExport.h:37
unsigned int OdUInt32
OdGiSkyBackgroundTraitsData * skyBackgroundTraitsData() const
OdGiCustomBackgroundTraitsData * customBackgroundTraitsData() const
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
OdGiEnvironmentBackgroundTraitsData * environmentBackgroundTraitsData() const
OdGiBackgroundTraitsData * backgroundTraitsData() const
OdGsBackgroundProperties * secondaryBackground()
virtual void nestedBackgroundDisplay(OdGsBaseVectorizer &view, const OdGiDrawable *pDrawable, OdGiBackgroundTraitsData *pBackgroundTraits, OdGsPropertiesDirectRenderOutput *pdro=NULL)
virtual OdSmartPtr< OdGsProperties > propertiesForType(PropertiesType type) const
OdGiDrawable::DrawableType backgroundType() const
const OdGsBackgroundProperties * secondaryBackground() const
OdGiGroundPlaneBackgroundTraitsData * groundPlaneBackgroundTraitsData() const
OdGiGradientBackgroundTraitsData * gradientBackgroundTraitsData() const
OdGiImageBackgroundTraitsData * imageBackgroundTraitsData() const
OdGiSolidBackgroundTraitsData * solidBackgroundTraitsData() const
virtual void display(OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
ODRX_DECLARE_MEMBERS(OdGsBackgroundProperties)
virtual PropertiesType propertiesType() const
OdGiIBLBackgroundTraitsData * iblBackgroundTraitsData() const
GLuint GLsizei GLsizei GLint GLenum * type
Definition gles2_ext.h:274