CFx SDK Documentation  2020SP3
DbBackground.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 _ODDBBACKGROUND_INCLUDED_
25 #define _ODDBBACKGROUND_INCLUDED_
26 
27 #include "TD_PackPush.h"
28 
29 #include "DbObject.h"
30 
31 #define ODDB_BACKGROUND_DICTIONARY ACAD_BACKGROUND
32 
45 {
46 public:
48 
50  virtual ~OdDbBackground();
51 
55  virtual OdGiDrawable* drawable();
56 };
57 
59 
68 {
69 public:
71 
74 
75  void setColorSolid(const OdCmEntityColor& color);
77 
78  // OdDbObject overridden functions
79 
80  virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
81  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
82  virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
83  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
84 
85  // OdRxObject overridden functions
86 
87  //virtual void copyFrom(const OdRxObject* pSource);
88 
89  // OdGiDrawable overridden functions
90 
91  virtual OdUInt32 subSetAttributes(OdGiDrawableTraits* pTraits) const;
93 };
94 
96 
105 {
106 public:
108 
111 
112  void setColorTop(const OdCmEntityColor& color);
114  void setColorMiddle(const OdCmEntityColor& color);
116  void setColorBottom(const OdCmEntityColor& color);
118  void setHorizon(double horizon);
119  double horizon() const;
120  void setHeight(double height);
121  double height() const ;
122  void setRotation(double rotation);
123  double rotation() const;
124 
125  // OdDbObject overridden functions
126 
128  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
130  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
131 
132  // OdRxObject overridden functions
133 
134  //virtual void copyFrom(const OdRxObject* pSource);
135 
136  // OdGiDrawable overridden functions
137 
140 };
141 
143 
152 {
153 public:
154 
156 
159 
160  void setImageFilename(const OdString& filename);
161  const OdString& imageFilename() const;
162  void setFitToScreen(bool bFitToScreen);
163  bool fitToScreen() const;
164  void setMaintainAspectRatio(bool bMaintainAspectRatio);
165  bool maintainAspectRatio() const;
166  void setUseTiling(bool bUseTiling);
167  bool useTiling() const;
168  void setXOffset(double xOffset);
169  double xOffset() const;
170  void setYOffset(double yOffset);
171  double yOffset() const;
172  void setXScale(double xScale);
173  double xScale() const;
174  void setYScale(double yScale);
175  double yScale() const;
176 
177  // OdDbObject overridden functions
178 
180  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
182  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
183 
184  // OdRxObject overridden functions
185 
186  //virtual void copyFrom(const OdRxObject* pSource);
187 
188  // OdGiDrawable overridden functions
189 
192 };
193 
195 
204 {
205 public:
207 
210 
211  void setColorSkyZenith(const OdCmEntityColor& color);
223 
224  // OdDbObject overridden functions
225 
227  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
229  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
230 
231  // OdRxObject overridden functions
232 
233  //virtual void copyFrom(const OdRxObject* pSource);
234 
235  // OdGiDrawable overridden functions
236 
239 };
240 
242 
251 {
252 public:
254 
257 
258  void setSunId(const OdDbObjectId& sunId);
260 
261  // OdDbObject overridden functions
262 
264  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
266  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
267 
268  // OdRxObject overridden functions
269 
270  //virtual void copyFrom(const OdRxObject* pSource);
271 
272  // OdGiDrawable overridden functions
273 
276 };
277 
279 
288 {
289 public:
291 
294 
295  virtual void setEnable(bool bEnable);
296  virtual bool enable() const;
297  virtual void setIBLImageName(const OdString &filename);
298  virtual const OdString &IBLImageName() const;
299  virtual void setRotation(double rotation);
300  virtual double rotation() const;
301  virtual void setDisplayImage(bool bDisplay);
302  virtual bool displayImage() const;
303  virtual void setSecondaryBackground(const OdDbObjectId &bgId);
305 
306  virtual void setDataFrom(const OdDbIBLBackground *pBkgnd);
307 
308  // OdDbObject overridden functions
309 
311  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
313  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
314 
315  // OdRxObject overridden functions
316 
317  //virtual void copyFrom(const OdRxObject* pSource);
318 
319  // OdGiDrawable overridden functions
320 
323 };
324 
326 
329 
330 #include "TD_PackPop.h"
331 
332 #endif // _ODDBBACKGROUND_INCLUDED_
OdDbImageBackground::imageFilename
const OdString & imageFilename() const
OdDbGradientBackground::rotation
double rotation() const
OdDbIBLBackground::secondaryBackground
virtual OdDbObjectId secondaryBackground() const
OdDbGroundPlaneBackground::colorGroundPlaneFar
OdCmEntityColor colorGroundPlaneFar() const
OdResult
OdResult
Definition: OdResult.h:29
OdDbBackground
Definition: DbBackground.h:45
OdCmEntityColor
Definition: CmColorBase.h:68
OdDbImageBackground::~OdDbImageBackground
virtual ~OdDbImageBackground()
OdDbGradientBackground::colorBottom
OdCmEntityColor colorBottom() const
OdDbIBLBackground::~OdDbIBLBackground
virtual ~OdDbIBLBackground()
OdDbGroundPlaneBackground::setColorSkyZenith
void setColorSkyZenith(const OdCmEntityColor &color)
OdString
Definition: OdString.h:95
OdDbGradientBackground::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbDatabase
Definition: DbDatabase.h:421
OdDbImageBackground::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbImageBackground)
OdDbSkyBackground::sunId
OdDbObjectId sunId() const
OdDbSolidBackgroundPtr
OdSmartPtr< OdDbSolidBackground > OdDbSolidBackgroundPtr
Definition: DbBackground.h:95
OdDbGradientBackground::~OdDbGradientBackground
virtual ~OdDbGradientBackground()
OdDbGradientBackground::setRotation
void setRotation(double rotation)
OdDbSolidBackground::drawableType
virtual OdGiDrawable::DrawableType drawableType() const
OdDbImageBackground::fitToScreen
bool fitToScreen() const
OdDbIBLBackground::setRotation
virtual void setRotation(double rotation)
OdDbIBLBackground::IBLImageName
virtual const OdString & IBLImageName() const
OdDbGroundPlaneBackground::colorUndergroundHorizon
OdCmEntityColor colorUndergroundHorizon() const
OdDbIBLBackground::setDataFrom
virtual void setDataFrom(const OdDbIBLBackground *pBkgnd)
OdDbIBLBackground
Definition: DbBackground.h:288
OdDbGroundPlaneBackground
Definition: DbBackground.h:204
OdDbGradientBackground::setHeight
void setHeight(double height)
DbObject.h
OdDbSolidBackground::setColorSolid
void setColorSolid(const OdCmEntityColor &color)
OdDbGradientBackground::setHorizon
void setHorizon(double horizon)
OdDbImageBackground::setXOffset
void setXOffset(double xOffset)
OdDbGroundPlaneBackground::colorSkyHorizon
OdCmEntityColor colorSkyHorizon() const
OdDbIBLBackground::setDisplayImage
virtual void setDisplayImage(bool bDisplay)
OdDbImageBackground::setUseTiling
void setUseTiling(bool bUseTiling)
OdDbSolidBackground::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbGradientBackground::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbObjectId
Definition: DbObjectId.h:99
OdDbGroundPlaneBackground::colorGroundPlaneNear
OdCmEntityColor colorGroundPlaneNear() const
OdDbGroundPlaneBackground::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbGradientBackground::setColorMiddle
void setColorMiddle(const OdCmEntityColor &color)
OdDbSkyBackground::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbGroundPlaneBackground::drawableType
virtual OdGiDrawable::DrawableType drawableType() const
OdDbGroundPlaneBackground::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbSkyBackground::drawableType
virtual OdGiDrawable::DrawableType drawableType() const
OdDbGroundPlaneBackground::setColorGroundPlaneNear
void setColorGroundPlaneNear(const OdCmEntityColor &color)
OdDbSkyBackground::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdDbGroundPlaneBackground::setColorGroundPlaneFar
void setColorGroundPlaneFar(const OdCmEntityColor &color)
OdDbIBLBackground::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
TD_PackPop.h
OdDbIBLBackground::displayImage
virtual bool displayImage() const
OdDbBackground::OdDbBackground
OdDbBackground()
OdDbGroundPlaneBackground::setColorUndergroundHorizon
void setColorUndergroundHorizon(const OdCmEntityColor &color)
OdDbGradientBackground::setColorBottom
void setColorBottom(const OdCmEntityColor &color)
OdDbGradientBackground::height
double height() const
OdDbSkyBackground::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbSkyBackground)
OdDbSolidBackground::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdDbImageBackground::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdDbIBLBackgroundPtr
OdSmartPtr< OdDbIBLBackground > OdDbIBLBackgroundPtr
Definition: DbBackground.h:325
OdDbImageBackground
Definition: DbBackground.h:152
OdDbGroundPlaneBackground::colorUndergroundAzimuth
OdCmEntityColor colorUndergroundAzimuth() const
OdDbGroundPlaneBackground::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdDbSkyBackground::OdDbSkyBackground
OdDbSkyBackground()
OdDbImageBackground::xOffset
double xOffset() const
OdDbSolidBackground::~OdDbSolidBackground
virtual ~OdDbSolidBackground()
OdDbSkyBackgroundPtr
OdSmartPtr< OdDbSkyBackground > OdDbSkyBackgroundPtr
Definition: DbBackground.h:278
OdDbGradientBackgroundPtr
OdSmartPtr< OdDbGradientBackground > OdDbGradientBackgroundPtr
Definition: DbBackground.h:142
oddbGetBackgroundDictionary
TOOLKIT_EXPORT OdDbDictionaryPtr oddbGetBackgroundDictionary(OdDbDatabase *pDb, OdDb::OpenMode mode, bool createIfNotFound=false)
OdDbBackground::drawable
virtual OdGiDrawable * drawable()
OdDbGroundPlaneBackground::OdDbGroundPlaneBackground
OdDbGroundPlaneBackground()
OdDbImageBackgroundPtr
OdSmartPtr< OdDbImageBackground > OdDbImageBackgroundPtr
Definition: DbBackground.h:194
OdSmartPtr
Definition: SmartPtr.h:58
OdDbImageBackground::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbGradientBackground::colorTop
OdCmEntityColor colorTop() const
OdDbImageBackground::setMaintainAspectRatio
void setMaintainAspectRatio(bool bMaintainAspectRatio)
OdDbSolidBackground::colorSolid
OdCmEntityColor colorSolid() const
OdDbSkyBackground::setSunId
void setSunId(const OdDbObjectId &sunId)
OdDbSolidBackground::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbSolidBackground)
OdDbIBLBackground::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
oddbGetBackgroundDictionaryId
TOOLKIT_EXPORT OdDbObjectId oddbGetBackgroundDictionaryId(OdDbDatabase *pDb, bool createIfNotFound=false)
OdDbIBLBackground::drawableType
virtual OdGiDrawable::DrawableType drawableType() const
OdDbSkyBackground::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbImageBackground::setImageFilename
void setImageFilename(const OdString &filename)
OdDbIBLBackground::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbGroundPlaneBackground::colorSkyZenith
OdCmEntityColor colorSkyZenith() const
OdDbImageBackground::maintainAspectRatio
bool maintainAspectRatio() const
OdDbGradientBackground::drawableType
virtual OdGiDrawable::DrawableType drawableType() const
OdDbGradientBackground::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbGradientBackground)
OdDbSkyBackground::~OdDbSkyBackground
virtual ~OdDbSkyBackground()
OdGiDrawable
Definition: GiDrawable.h:49
OdDbSkyBackground
Definition: DbBackground.h:251
OdDbSkyBackground::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
height
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbGroundPlaneBackgroundPtr
OdSmartPtr< OdDbGroundPlaneBackground > OdDbGroundPlaneBackgroundPtr
Definition: DbBackground.h:241
OdDbImageBackground::xScale
double xScale() const
OdDbImageBackground::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdDbSolidBackground::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbImageBackground::yScale
double yScale() const
OdDbGradientBackground::OdDbGradientBackground
OdDbGradientBackground()
OdDbGroundPlaneBackground::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbGroundPlaneBackground)
OdDbBackground::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbBackground)
TD_PackPush.h
OdDbGroundPlaneBackground::~OdDbGroundPlaneBackground
virtual ~OdDbGroundPlaneBackground()
OdDbIBLBackground::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbImageBackground::drawableType
virtual OdGiDrawable::DrawableType drawableType() const
OdDbImageBackground::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbImageBackground::setYScale
void setYScale(double yScale)
OdDbImageBackground::setFitToScreen
void setFitToScreen(bool bFitToScreen)
OdDbIBLBackground::OdDbIBLBackground
OdDbIBLBackground()
OdDbGradientBackground::setColorTop
void setColorTop(const OdCmEntityColor &color)
OdDbGroundPlaneBackground::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDb::OpenMode
OpenMode
Definition: DbObjectId.h:54
OdDbIBLBackground::setEnable
virtual void setEnable(bool bEnable)
OdDbImageBackground::OdDbImageBackground
OdDbImageBackground()
OdDbSolidBackground::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbGradientBackground::colorMiddle
OdCmEntityColor colorMiddle() const
OdDbGradientBackground::horizon
double horizon() const
OdGiDrawableTraits
Definition: Gi.h:71
OdDbGradientBackground::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbBackgroundPtr
OdSmartPtr< OdDbBackground > OdDbBackgroundPtr
Definition: DbBackground.h:58
OdDbSolidBackground::OdDbSolidBackground
OdDbSolidBackground()
OdDbIBLBackground::setIBLImageName
virtual void setIBLImageName(const OdString &filename)
OdGiDrawable::DrawableType
DrawableType
Definition: GiDrawable.h:86
OdDbBackground::~OdDbBackground
virtual ~OdDbBackground()
OdDbGroundPlaneBackground::setColorUndergroundAzimuth
void setColorUndergroundAzimuth(const OdCmEntityColor &color)
OdDbIBLBackground::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbIBLBackground)
OdDbImageBackground::useTiling
bool useTiling() const
OdDbImageBackground::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbGradientBackground
Definition: DbBackground.h:105
OdDbSolidBackground::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbIBLBackground::rotation
virtual double rotation() const
OdDbGroundPlaneBackground::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbGradientBackground::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdDbImageBackground::setYOffset
void setYOffset(double yOffset)
OdDbIBLBackground::enable
virtual bool enable() const
OdDbImageBackground::yOffset
double yOffset() const
OdDbIBLBackground::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdDbSkyBackground::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbIBLBackground::setSecondaryBackground
virtual void setSecondaryBackground(const OdDbObjectId &bgId)
OdDbGroundPlaneBackground::setColorSkyHorizon
void setColorSkyHorizon(const OdCmEntityColor &color)
OdDbSolidBackground
Definition: DbBackground.h:68
OdDbGradientBackground::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbImageBackground::setXScale
void setXScale(double xScale)