CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbSun.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
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#include "RxDictionary.h"
33
36
37
44{
45public:
47
49
50 virtual DrawableType drawableType() const;
52
54 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
56 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
57
59
60 virtual bool isOn() const;
61
62
63 virtual void setOn(bool value);
64
65
66 virtual double intensity() const;
67
68
69 virtual void setIntensity(double intensity);
70
71
72 virtual const OdCmColor& sunColor() const;
73
74
75 virtual void setSunColor(const OdCmColor& color);
76
77
78 virtual const OdGiShadowParameters& shadowParameters() const;
79
80
82
83
84 virtual void setDateTime(const OdDbDate& datetime);
85
86
87 virtual const OdDbDate& dateTime() const;
88
89
90 virtual void setDayLightSavingsOn(bool value);
91
92
93 virtual bool isDayLightSavingsOn() const;
94
95
96 virtual OdResult setAzimuth(double azimuth);
97
98
99 virtual double azimuth() const;
100
101
102 virtual OdResult setAltitude(double altitude);
103
104
105 virtual double altitude() const;
106
107
108 virtual const OdGeVector3d& sunDirection() const;
109
110
111 virtual void setSunDirection(const OdGeVector3d& sundir);
112
113
115
116
118
119 static OdDbSunPtr castByClassName(OdRxObject* obj);
120 static OdDbSunPtr safeCastByClassName(OdRxObject* obj);
121 static OdDbSunPtr safeCreateByClassName();
122};
123
124
126 return ::odrxCastByClassName<OdDbSun>(obj, "AcDbSun");
127}
128
130 return ::odrxSafeCastByClassName<OdDbSun>(obj, "AcDbSun");
131}
132
134 return ::odrxSafeCreateObject<OdDbSun>("AcDbSun", "SCENEOE");
135};
136
137
138#include "TD_PackPop.h"
139
140#endif
141
#define SCENEOE_EXPORT
Definition: DbExport.h:56
OdSmartPtr< OdDbSun > OdDbSunPtr
Definition: DbSun.h:35
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
Definition: DbSun.h:44
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
static OdDbSunPtr castByClassName(OdRxObject *obj)
Definition: DbSun.h:125
static OdDbSunPtr safeCastByClassName(OdRxObject *obj)
Definition: DbSun.h:129
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdGiDrawable * drawable()
virtual const OdGiShadowParameters & shadowParameters() const
virtual const OdCmColor & sunColor() const
static OdDbSunPtr safeCreateByClassName()
Definition: DbSun.h:133
virtual void setSkyParameters(const OdGiSkyParameters &params)
virtual void setDateTime(const OdDbDate &datetime)
virtual const OdDbDate & dateTime() const
virtual double altitude() const
virtual bool isOn() const
virtual double azimuth() 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 const OdGeVector3d & sunDirection() 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)
GLenum GLint * params
Definition: gles2_ext.h:184
GLsizei const GLfloat * value
Definition: gles2_ext.h:302