24#ifndef __OD_GI_LIGHT_TRAITS_DATA__
25#define __OD_GI_LIGHT_TRAITS_DATA__
87 bool isOn()
const {
return m_bOn; }
194 m_shadowParameters.
save(pFiler);
201 m_shadowParameters.
load(pFiler);
215 double m_dPhysIntensity;
228 : m_dPhysIntensity(1500.0)
229 , m_lampColor(1.0, 1.0, 1.0)
230 , m_bHasTarget(
false)
231 , m_bHemisphere(
false)
367 m_attenuation.
load(pFiler);
388 double m_dHotspot, m_dFalloff;
390 double m_dPhysIntensity;
401 , m_dPhysIntensity(1500.0)
402 , m_lampColor(1.0, 1.0, 1.0)
545 m_attenuation.
load(pFiler);
581 double m_dPhysIntensity;
591 : m_bIsSunlight(
false)
592 , m_dPhysIntensity(1500.0)
593 , m_lampColor(1.0, 1.0, 1.0)
722 bool m_bHorzAng90to270;
730 , m_bHorzAng90to270(
false)
776 switch(pLightTraits->
type())
805 OdDbStub* m_pViewportObjectId;
807 double m_dVpDepDimming;
812 m_pViewportObjectId( NULL ),
814 m_dVpDepDimming( 0.0 )
847template <
class LightTraitsDataType>
852 traitsData.setPosition(newPos);
855template <
class LightTraitsDataType>
859 if (traitsData.hasTarget())
861 OdGePoint3d newTarget = traitsData.targetLocation();
863 traitsData.setTargetLocation(newTarget);
void transformLightTraitsData(LightTraitsDataType &traitsData, const OdGeMatrix3d &modelTransform)
void transformLightTraitsData< OdGiDistantLightTraitsData >(OdGiDistantLightTraitsData &traitsData, const OdGeMatrix3d &modelTransform)
void transformLightTraitsData< OdGiSpotLightTraitsData >(OdGiSpotLightTraitsData &traitsData, const OdGeMatrix3d &modelTransform)
void transformLightTraitsDataPosition(LightTraitsDataType &traitsData, const OdGeMatrix3d &modelTransform)
void setColor(OdUInt32 color)
OdGePoint3d & transformBy(const OdGeMatrix3d &xfm)
OdGeVector3d & transformBy(const OdGeMatrix3d &xfm)
void skyParameters(OdGiSkyParameters &) const
OdGiColorRGB lampColor() const
OdGeVector3d direction() const
double physicalIntensity() const
void setDirection(const OdGeVector3d &dir)
OdGiDistantLightTraitsData()
void setSunlight(bool val)
void setPhysicalIntensity(double intensity)
void setLampColor(const OdGiColorRGB &color)
void setSkyParameters(const OdGiSkyParameters &)
void save(OdGsFiler *pFiler) const
void load(OdGsFiler *pFiler)
virtual DrawableType drawableType() const
void save(OdGsFiler *pFiler) const
void load(OdGsFiler *pFiler)
void save(OdGsFiler *pFiler) const
void load(OdGsFiler *pFiler)
void setColor(const OdCmEntityColor &color)
void setShadowParameters(const OdGiShadowParameters ¶ms)
static void deleteLightTraitsData(OdGiLightTraitsData *pLightTraits)
static LightType drawableLightType(const OdGiDrawable *pDrawable)
OdCmEntityColor color() const
void setIntensity(double dIntensity)
OdGiShadowParameters shadowParameters() const
void setViewportObjectId(OdDbStub *id)
void load(OdGsFiler *pFiler)
OdDbStub * viewportObjectId() const
double vpDepDimming() const
OdUInt32 viewportId() const
void save(OdGsFiler *pFiler) const
void setVpDepDimming(double dimming)
void setViewportId(OdUInt32 id)
OdGiLightTraitsVpDepData()
void save(OdGsFiler *pFiler) const
void setLampColor(const OdGiColorRGB &color)
void setPhysicalIntensity(double intensity)
OdGiPointLightTraitsData()
void setTargetLocation(const OdGePoint3d &loc)
double physicalIntensity() const
void load(OdGsFiler *pFiler)
void setAttenuation(const OdGiLightAttenuation &atten)
OdGePoint3d position() const
OdGePoint3d targetLocation() const
void setHemisphericalDistribution(bool bHemisphere)
bool hemisphericalDistribution() const
OdGiColorRGB lampColor() const
void setPosition(const OdGePoint3d &pos)
OdGiLightAttenuation attenuation() const
void setHasTarget(bool bTarget)
void save(OdGsFiler *pFiler) const
void load(OdGsFiler *pFiler)
void save(OdGsFiler *pFiler) const
OdGiColorRGB lampColor() const
OdGiLightAttenuation attenuation() const
double physicalIntensity() const
void setPosition(const OdGePoint3d &pos)
OdGePoint3d target() const
void setLampColor(const OdGiColorRGB &color)
void load(OdGsFiler *pFiler)
OdGePoint3d position() const
void setAttenuation(const OdGiLightAttenuation &atten)
bool setHotspotAndFalloff(double hotSpot, double falloff)
OdGiSpotLightTraitsData()
void setTarget(const OdGePoint3d &trg)
void setPhysicalIntensity(double intensity)
void setWebHorzAng90to270(bool bHA)
OdGiWebLightTraits::WebSymmetry webSymmetry() const
void setWebSymmetry(OdGiWebLightTraits::WebSymmetry sym)
void setWebFileType(OdGiWebLightTraits::WebFileType type)
void load(OdGsFiler *pFiler)
const OdGeVector3d & webRotation() const
void setWebFlux(double flux)
bool webHorzAng90to270() const
OdGiWebLightTraits::WebFileType webFileType() const
const OdString & webFile() const
void save(OdGsFiler *pFiler) const
void setWebRotation(const OdGeVector3d &rot)
void setWebFile(const OdString &fileName)
virtual void wrPoint3d(const OdGePoint3d &pt)
virtual void wrDouble(double val)
virtual void rdVector3d(OdGeVector3d &vec) const
virtual void wrString(const OdString &str)
virtual OdUInt8 rdUInt8() const
virtual void wrHandle(OdDbStub *pHandle)=0
virtual void wrUInt8(OdUInt8 val)
virtual bool rdBool() const
virtual OdDbStub * rdHandle() const =0
virtual void rdPoint3d(OdGePoint3d &pt) const
virtual void wrBool(bool bVal)
virtual void rdString(OdString &str) const
virtual OdUInt32 rdUInt32() const
virtual void wrVector3d(const OdGeVector3d &vec)
virtual double rdDouble() const
virtual void wrUInt32(OdUInt32 val)
GLuint GLsizei GLsizei GLint GLenum * type
GLsizei const GLfloat * value