25#ifndef ODTRVISLIGHTDEF
26#define ODTRVISLIGHTDEF
124 if (nMod != 0xFFFFFFFF)
206 {
return diff(dl2,
true) == 0; }
208 {
return diff(dl2,
true) != 0; }
218 for (
int nColorElem = 0; nColorElem < 4; nColorElem++)
238 for (
int nColorElem = 0; nColorElem < 4; nColorElem++)
#define SETBIT(flags, bit, value)
#define GETBIT(flags, bit)
#define SETBIT_1(flags, bit)
OD_FORCEINLINE bool OdTrVisFPEqual(float a, float b, float tol=1.e-8f)
bool isEqualTo(const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
static GE_STATIC_EXPORT const OdGePoint3d kOrigin
static GE_STATIC_EXPORT const OdGeVector3d kZAxis
bool isEqualTo(const OdGeVector3d &vect, const OdGeTol &tol=OdGeContext::gTol) const
virtual void wrPoint3d(const OdGePoint3d &pt)
virtual void wrFloat(float val)
virtual void wrUInt16(OdUInt16 val)
virtual void rdVector3d(OdGeVector3d &vec) const
virtual OdUInt8 rdUInt8() const
virtual float rdFloat() const
virtual void wrUInt8(OdUInt8 val)
virtual void rdPoint3d(OdGePoint3d &pt) const
virtual OdUInt16 rdUInt16() const
virtual void wrVector3d(const OdGeVector3d &vec)
bool shadowsEnabled() const
OdUInt16 m_shadowSoftness
enum OdTrVisLightDef::LightType m_type
OdUInt32 diff(const OdTrVisLightDef &dl2, bool bFinFirstDiff=false) const
OdTrVisMaterialColor m_color
void enableShadows(bool bSet)
OdTrVisLightDef & apply(OdUInt32 nMod, const OdTrVisLightDef &l)
float m_startAttenuationLimit
bool operator==(const OdTrVisLightDef &dl2) const
bool attenuationLimitsEnabled() const
void load(OdGsFiler *pFiler)
bool operator!=(const OdTrVisLightDef &dl2) const
float m_endAttenuationLimit
float m_linearAttenuation
void enableAttenuationLimits(bool bSet)
void setLightOn(bool bSet)
void save(OdGsFiler *pFiler) const
float m_constantAttenuation
float m_quadraticAttenuation
void set(float r, float g, float b)