CFx SDK Documentation 2024 SP0
|
#include <GsLight.h>
Public Types | |
enum | LightType { kPointLight = 0 , kDistantLight = 1 , kSpotlight = 2 } |
enum | LightAttenuation { kAttenNone = 0 , kAttenInverseLinear = 1 , kAttenInverseSquare = 2 } |
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGsLight) | |
virtual LightType | type () const =0 |
virtual OdGePoint3d | position () const =0 |
virtual OdGePoint3d | target () const =0 |
virtual OdGeVector3d | direction () const =0 |
virtual ODCOLORREF | color () const =0 |
virtual double | intensity () const =0 |
virtual LightAttenuation | attenuation () const =0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is the base class for Light objects in an OdGs framework. Corresponding C++ library: TD_Gs <group OdGs_Classes>
Light attenuation parameters.
enum OdGsLight::LightType |
|
pure virtual |
Returns the attenuation of this Light object.
Value
kAttenNone 0
kAttenInverseLinear 1 kAttenInverseSquare 2
Implemented in OdAveLight.
|
pure virtual |
Returns the color of this Light object.
Implemented in OdAveLight.
|
pure virtual |
Returns the WCS direction of this Light object.
Implemented in OdAveLight.
|
pure virtual |
Returns the intensity of this Light object.
Implemented in OdAveLight.
OdGsLight::ODRX_DECLARE_MEMBERS | ( | OdGsLight | ) |
|
pure virtual |
Returns the WCS position of this Light object.
Implemented in OdAveLight.
|
pure virtual |
Returns the WCS target of this Light object.
Implemented in OdAveLight.
|
pure virtual |
Returns the type of this Light object.
Value kPointLight 0 kDistantLight 1 kSpotlight 2
Implemented in OdAveLight.