CFx SDK Documentation  2022 SP0
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_
OdSmartPtr< OdDbGroundPlaneBackground > OdDbGroundPlaneBackgroundPtr
Definition: DbBackground.h:241
OdSmartPtr< OdDbGradientBackground > OdDbGradientBackgroundPtr
Definition: DbBackground.h:142
TOOLKIT_EXPORT OdDbObjectId oddbGetBackgroundDictionaryId(OdDbDatabase *pDb, bool createIfNotFound=false)
OdSmartPtr< OdDbBackground > OdDbBackgroundPtr
Definition: DbBackground.h:58
TOOLKIT_EXPORT OdDbDictionaryPtr oddbGetBackgroundDictionary(OdDbDatabase *pDb, OdDb::OpenMode mode, bool createIfNotFound=false)
OdSmartPtr< OdDbSkyBackground > OdDbSkyBackgroundPtr
Definition: DbBackground.h:278
OdSmartPtr< OdDbIBLBackground > OdDbIBLBackgroundPtr
Definition: DbBackground.h:325
OdSmartPtr< OdDbSolidBackground > OdDbSolidBackgroundPtr
Definition: DbBackground.h:95
OdSmartPtr< OdDbImageBackground > OdDbImageBackgroundPtr
Definition: DbBackground.h:194
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
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 const OdString & IBLImageName() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual double rotation() const
virtual void setDisplayImage(bool bDisplay)
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
const OdString & imageFilename() const
void setMaintainAspectRatio(bool bMaintainAspectRatio)
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