CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbBackground.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 _ODDBBACKGROUND_INCLUDED_
25#define _ODDBBACKGROUND_INCLUDED_
26
27#include "TD_PackPush.h"
28
29#include "DbObject.h"
30#include "DbEntity.h"
31
32#define ODDB_BACKGROUND_DICTIONARY ACAD_BACKGROUND
33
44{
45public:
47
49 virtual ~OdDbBackground();
50
55};
56
58
65{
66public:
68
71
72 void setColorSolid(const OdCmEntityColor& color);
74
75 // OdDbObject overridden functions
76
78 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
80 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
81
82 // OdRxObject overridden functions
83
84 //virtual void copyFrom(const OdRxObject* pSource);
85
86 // OdGiDrawable overridden functions
87
90};
91
93
100{
101public:
103
106
107 void setColorTop(const OdCmEntityColor& color);
109 void setColorMiddle(const OdCmEntityColor& color);
111 void setColorBottom(const OdCmEntityColor& color);
113 void setHorizon(double horizon);
114 double horizon() const;
115 void setHeight(double height);
116 double height() const ;
117 void setRotation(double rotation);
118 double rotation() const;
119
120 // OdDbObject overridden functions
121
123 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
125 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
126
127 // OdRxObject overridden functions
128
129 //virtual void copyFrom(const OdRxObject* pSource);
130
131 // OdGiDrawable overridden functions
132
135};
136
138
145{
146public:
147
149
152
153 void setImageFilename(const OdString& filename);
154 const OdString& imageFilename() const;
155 void setFitToScreen(bool bFitToScreen);
156 bool fitToScreen() const;
157 void setMaintainAspectRatio(bool bMaintainAspectRatio);
159 void setUseTiling(bool bUseTiling);
160 bool useTiling() const;
161 void setXOffset(double xOffset);
162 double xOffset() const;
163 void setYOffset(double yOffset);
164 double yOffset() const;
165 void setXScale(double xScale);
166 double xScale() const;
167 void setYScale(double yScale);
168 double yScale() const;
169
170 // OdDbObject overridden functions
171
173 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
175 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
176
177 // OdRxObject overridden functions
178
179 //virtual void copyFrom(const OdRxObject* pSource);
180
181 // OdGiDrawable overridden functions
182
185};
186
188
195{
196public:
198
201
214
215 // OdDbObject overridden functions
216
218 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
220 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
221
222 // OdRxObject overridden functions
223
224 //virtual void copyFrom(const OdRxObject* pSource);
225
226 // OdGiDrawable overridden functions
227
230};
231
233
240{
241public:
243
246
247 void setSunId(const OdDbObjectId& sunId);
249
250 // OdDbObject overridden functions
251
253 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
255 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
256
257 // OdRxObject overridden functions
258
259 //virtual void copyFrom(const OdRxObject* pSource);
260
261 // OdGiDrawable overridden functions
262
265};
266
268
275{
276public:
278
281
282 virtual void setEnable(bool bEnable);
283 virtual bool enable() const;
284 virtual void setIBLImageName(const OdString &filename);
285 virtual const OdString &IBLImageName() const;
286 virtual void setRotation(double rotation);
287 virtual double rotation() const;
288 virtual void setDisplayImage(bool bDisplay);
289 virtual bool displayImage() const;
290 virtual void setSecondaryBackground(const OdDbObjectId &bgId);
292
293 virtual void setDataFrom(const OdDbIBLBackground *pBkgnd);
294
295 // OdDbObject overridden functions
296
298 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
300 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
301
302 // OdRxObject overridden functions
303
304 //virtual void copyFrom(const OdRxObject* pSource);
305
306 // OdGiDrawable overridden functions
307
310};
311
313
316
317#include "TD_PackPop.h"
318
319#endif // _ODDBBACKGROUND_INCLUDED_
OdSmartPtr< OdDbGroundPlaneBackground > OdDbGroundPlaneBackgroundPtr
Definition: DbBackground.h:232
SCENEOE_EXPORT OdDbObjectId oddbGetBackgroundDictionaryId(OdDbDatabase *pDb, bool createIfNotFound=false)
OdSmartPtr< OdDbGradientBackground > OdDbGradientBackgroundPtr
Definition: DbBackground.h:137
OdSmartPtr< OdDbBackground > OdDbBackgroundPtr
Definition: DbBackground.h:57
SCENEOE_EXPORT OdDbDictionaryPtr oddbGetBackgroundDictionary(OdDbDatabase *pDb, OdDb::OpenMode mode, bool createIfNotFound=false)
OdSmartPtr< OdDbSkyBackground > OdDbSkyBackgroundPtr
Definition: DbBackground.h:267
OdSmartPtr< OdDbIBLBackground > OdDbIBLBackgroundPtr
Definition: DbBackground.h:312
OdSmartPtr< OdDbSolidBackground > OdDbSolidBackgroundPtr
Definition: DbBackground.h:92
OdSmartPtr< OdDbImageBackground > OdDbImageBackgroundPtr
Definition: DbBackground.h:187
#define SCENEOE_EXPORT
Definition: DbExport.h:56
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
virtual ~OdDbBackground()
virtual OdGiDrawable * drawable()
ODDB_DECLARE_MEMBERS(OdDbBackground)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void setColorBottom(const OdCmEntityColor &color)
void setRotation(double rotation)
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
void setColorTop(const OdCmEntityColor &color)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdCmEntityColor colorMiddle() const
void setHorizon(double horizon)
double horizon() const
virtual OdGiDrawable::DrawableType drawableType() const
void setColorMiddle(const OdCmEntityColor &color)
double rotation() const
virtual ~OdDbGradientBackground()
OdCmEntityColor colorTop() const
double height() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
void setHeight(double height)
ODDB_DECLARE_MEMBERS(OdDbGradientBackground)
OdCmEntityColor colorBottom() const
void setColorGroundPlaneFar(const OdCmEntityColor &color)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
virtual ~OdDbGroundPlaneBackground()
void setColorGroundPlaneNear(const OdCmEntityColor &color)
void setColorSkyHorizon(const OdCmEntityColor &color)
OdCmEntityColor colorSkyHorizon() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdCmEntityColor colorUndergroundHorizon() const
virtual OdGiDrawable::DrawableType drawableType() const
OdCmEntityColor colorGroundPlaneFar() const
void setColorSkyZenith(const OdCmEntityColor &color)
void setColorUndergroundHorizon(const OdCmEntityColor &color)
OdCmEntityColor colorGroundPlaneNear() const
OdCmEntityColor colorSkyZenith() const
OdCmEntityColor colorUndergroundAzimuth() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setColorUndergroundAzimuth(const OdCmEntityColor &color)
ODDB_DECLARE_MEMBERS(OdDbGroundPlaneBackground)
ODDB_DECLARE_MEMBERS(OdDbIBLBackground)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual double rotation() const
virtual void setDisplayImage(bool bDisplay)
virtual const OdString & IBLImageName() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual bool enable() const
virtual OdDbObjectId secondaryBackground() const
virtual void setSecondaryBackground(const OdDbObjectId &bgId)
virtual OdGiDrawable::DrawableType drawableType() const
virtual bool displayImage() const
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
virtual void setDataFrom(const OdDbIBLBackground *pBkgnd)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual void setEnable(bool bEnable)
virtual void setIBLImageName(const OdString &filename)
virtual void setRotation(double rotation)
virtual ~OdDbIBLBackground()
virtual OdGiDrawable::DrawableType drawableType() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void setMaintainAspectRatio(bool bMaintainAspectRatio)
const OdString & imageFilename() const
ODDB_DECLARE_MEMBERS(OdDbImageBackground)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void setFitToScreen(bool bFitToScreen)
void setXScale(double xScale)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
void setUseTiling(bool bUseTiling)
bool maintainAspectRatio() const
bool fitToScreen() const
virtual ~OdDbImageBackground()
void setYScale(double yScale)
bool useTiling() const
double xScale() const
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
void setYOffset(double yOffset)
double yOffset() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setXOffset(double xOffset)
void setImageFilename(const OdString &filename)
double yScale() const
double xOffset() const
virtual ~OdDbSkyBackground()
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbObjectId sunId() const
ODDB_DECLARE_MEMBERS(OdDbSkyBackground)
virtual OdGiDrawable::DrawableType drawableType() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
void setSunId(const OdDbObjectId &sunId)
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdCmEntityColor colorSolid() const
ODDB_DECLARE_MEMBERS(OdDbSolidBackground)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void setColorSolid(const OdCmEntityColor &color)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdGiDrawable::DrawableType drawableType() const
virtual ~OdDbSolidBackground()
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
OpenMode
Definition: DbObjectId.h:54