CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GsBackgroundProperties.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_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
94 OdGiBackgroundTraitsData* backgroundTraitsData() const { return m_pBackgroundTraits; }
95
96
100 OdGiDrawable::DrawableType backgroundType() const { return (m_pBackgroundTraits) ? m_pBackgroundTraits->type() : OdGiDrawable::kGeometry; }
101
105 const OdGsBackgroundProperties *secondaryBackground() const { return m_pSecondaryBackground.get(); }
106
110 OdGsBackgroundProperties *secondaryBackground() { return m_pSecondaryBackground.get(); }
111
118
123
124 // OdGsProperties virtual overrides
125
126
131 {
132 return kBackground;
133 }
134
140
141 virtual void update(const OdGiDrawable* pUnderlyingDrawable,
142 OdGsViewImpl* view, OdUInt32 incFlags = kAll);
143
144 virtual void display(OdGsBaseVectorizer& view,
145 OdGsPropertiesDirectRenderOutput *pdro = NULL, OdUInt32 incFlags = kAll);
146};
147
152
153#include "TD_PackPop.h"
154
155#endif // __OD_GS_BACKGROUND_PROPERTIES__
OdSmartPtr< OdGsBackgroundProperties > OdGsBackgroundPropertiesPtr
#define GS_TOOLKIT_EXPORT
Definition: GsExport.h:37
unsigned int OdUInt32
OdGiSkyBackgroundTraitsData * skyBackgroundTraitsData() const
virtual void update(const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
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
const T * get() const
Definition: SmartPtr.h:339
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274