CFx SDK Documentation  2020SP3
DbSun.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 
25 #ifndef _OD_DBSUN_H_INCLUDED_
26 #define _OD_DBSUN_H_INCLUDED_
27 
28 #include "TD_PackPush.h"
29 
30 #include "Gi/GiLightTraits.h"
31 #include "DbLight.h"
32 
33 
34 
40 {
41 public:
43 
45 
46  virtual DrawableType drawableType() const;
47  virtual OdUInt32 subSetAttributes(OdGiDrawableTraits* pTraits) const;
48 
49  virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
50  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
51  virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
52  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
53 
55 
56  virtual bool isOn() const;
57 
58 
59  virtual void setOn(bool value);
60 
61 
62  virtual double intensity() const;
63 
64 
65  virtual void setIntensity(double intensity);
66 
67 
68  virtual const OdCmColor& sunColor() const;
69 
70 
71  virtual void setSunColor(const OdCmColor& color);
72 
73 
74  virtual const OdGiShadowParameters& shadowParameters() const;
75 
76 
78 
79 
80  virtual void setDateTime(const OdDbDate& datetime);
81 
82 
83  virtual const OdDbDate& dateTime() const;
84 
85 
86  virtual void setDayLightSavingsOn(bool value);
87 
88 
89  virtual bool isDayLightSavingsOn() const;
90 
91 
92  virtual OdResult setAzimuth(double azimuth);
93 
94 
95  virtual double azimuth() const;
96 
97 
98  virtual OdResult setAltitude(double altitude);
99 
100 
101  virtual double altitude() const;
102 
103 
104  virtual const OdGeVector3d& sunDirection() const;
105 
106 
107  virtual void setSunDirection(const OdGeVector3d& sundir);
108 
109 
111 
112 
113  virtual void skyParameters(OdGiSkyParameters& params) const;
114 };
115 
117 
118 #include "TD_PackPop.h"
119 
120 #endif
121 
OdDbSun::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbSun)
OdResult
OdResult
Definition: OdResult.h:29
OdGeVector3d
Definition: GeVector3d.h:54
OdDbSun::setSunDirection
virtual void setSunDirection(const OdGeVector3d &sundir)
OdDbSun::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdDbSun::isOn
virtual bool isOn() const
OdDbSun::setDateTime
virtual void setDateTime(const OdDbDate &datetime)
OdDbDate
Definition: DbDate.h:45
OdDbSun::altitude
virtual double altitude() const
OdDbSun::setSunColor
virtual void setSunColor(const OdCmColor &color)
OdDbSun::sunDirection
virtual const OdGeVector3d & sunDirection() const
OdDbSun::intensity
virtual double intensity() const
OdDbSun::setSkyParameters
virtual void setSkyParameters(const OdGiSkyParameters &params)
OdDbSun::isDayLightSavingsOn
virtual bool isDayLightSavingsOn() const
TD_PackPop.h
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdDbSun::setOn
virtual void setOn(bool value)
OdDbSun::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbSun::skyParameters
virtual void skyParameters(OdGiSkyParameters &params) const
OdGiShadowParameters
Definition: GiLightTraits.h:120
GiLightTraits.h
OdDbSun::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdSmartPtr
Definition: SmartPtr.h:58
OdDbSun::setAzimuth
virtual OdResult setAzimuth(double azimuth)
OdDbSun::setAltitude
virtual OdResult setAltitude(double altitude)
OdGiDrawable
Definition: GiDrawable.h:49
OdDbSun::azimuth
virtual double azimuth() const
OdDbDxfFiler
Definition: DbFiler.h:194
TD_PackPush.h
OdDbSun::setDayLightSavingsOn
virtual void setDayLightSavingsOn(bool value)
DbLight.h
params
GLenum GLint * params
Definition: gles2_ext.h:184
OdDbSun::sunColor
virtual const OdCmColor & sunColor() const
OdGiSkyParameters
Definition: GiLightTraits.h:499
OdDbSun::dateTime
virtual const OdDbDate & dateTime() const
OdDbSun::shadowParameters
virtual const OdGiShadowParameters & shadowParameters() const
OdGiDrawableTraits
Definition: Gi.h:71
OdDbSun::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdGiDrawable::DrawableType
DrawableType
Definition: GiDrawable.h:86
OdDbSun::setIntensity
virtual void setIntensity(double intensity)
OdDbSun
Definition: DbSun.h:40
OdDbSun::setShadowParameters
virtual void setShadowParameters(const OdGiShadowParameters &params)
value
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
OdDbSun::drawable
OdGiDrawable * drawable()
OdDbSun::OdDbSun
OdDbSun()
OdDbSun::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdCmColor
Definition: CmColor.h:59
OdDbSun::drawableType
virtual DrawableType drawableType() const
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbSunPtr
OdSmartPtr< OdDbSun > OdDbSunPtr
Definition: DbSun.h:116