CFx SDK Documentation  2022 SP0
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 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbSun > OdDbSunPtr
Definition: DbSun.h:116
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
Definition: DbSun.h:40
virtual DrawableType drawableType() const
virtual OdResult setAltitude(double altitude)
virtual OdResult setAzimuth(double azimuth)
virtual void setDayLightSavingsOn(bool value)
virtual void setOn(bool value)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual const OdGeVector3d & sunDirection() const
OdGiDrawable * drawable()
virtual const OdCmColor & sunColor() const
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
virtual void setSkyParameters(const OdGiSkyParameters &params)
virtual void setDateTime(const OdDbDate &datetime)
virtual double altitude() const
virtual bool isOn() const
virtual double azimuth() const
virtual const OdGiShadowParameters & shadowParameters() const
virtual void setIntensity(double intensity)
ODDB_DECLARE_MEMBERS(OdDbSun)
virtual void setSunColor(const OdCmColor &color)
virtual void skyParameters(OdGiSkyParameters &params) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual bool isDayLightSavingsOn() const
virtual double intensity() const
virtual void setSunDirection(const OdGeVector3d &sundir)
virtual void setShadowParameters(const OdGiShadowParameters &params)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual const OdDbDate & dateTime() const
GLenum GLint * params
Definition: gles2_ext.h:184
GLsizei const GLfloat * value
Definition: gles2_ext.h:302