CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OdGiPointLightTraits Class Referenceabstract

#include <GiLightTraits.h>

Inheritance diagram for OdGiPointLightTraits:
OdGiStandardLightTraits OdGiLightTraits OdGiDrawableTraits OdRxObject OdGiWebLightTraits

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiPointLightTraits)
 
virtual void setPosition (const OdGePoint3d &pos)=0
 
virtual OdGePoint3d position () const =0
 
virtual OdGiLightAttenuation lightAttenuation () const =0
 
virtual void setAttenuation (const OdGiLightAttenuation &atten)=0
 
virtual void setPhysicalIntensity (double fIntensity)=0
 
virtual double physicalIntensity () const =0
 
virtual void setLampColor (const OdGiColorRGB &color)=0
 
virtual OdGiColorRGB lampColor () const =0
 
virtual void setHasTarget (bool bTarget)=0
 
virtual bool hasTarget () const =0
 
virtual void setTargetLocation (const OdGePoint3d &loc)=0
 
virtual OdGePoint3d targetLocation () const =0
 
virtual void setHemisphericalDistribution (bool bHemisphere)=0
 
virtual bool hemisphericalDistribution () const =0
 
- Public Member Functions inherited from OdGiStandardLightTraits
 ODRX_DECLARE_MEMBERS (OdGiStandardLightTraits)
 
virtual void setIntensity (double inten)=0
 
virtual double intensity () const =0
 
virtual void setLightColor (const OdCmEntityColor &color)=0
 
virtual OdCmEntityColor lightColor () const =0
 
virtual void setShadowParameters (const OdGiShadowParameters &params)=0
 
virtual OdGiShadowParameters shadowParameters () const =0
 
- Public Member Functions inherited from OdGiLightTraits
 ODRX_DECLARE_MEMBERS (OdGiLightTraits)
 
virtual void setOn (bool on)=0
 
virtual bool isOn () const =0
 
- Public Member Functions inherited from OdGiDrawableTraits
 ODRX_DECLARE_MEMBERS (OdGiDrawableTraits)
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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 OdRxClassdesc ()
 

Detailed Description

Represents characteristics for the point light. This type of light source emits light in all directions.

Corresponding C++ library: TD_Gi <group OdGi_Classes>

See also
<link tv_working_with_lights, Work with Lights>

Definition at line 1474 of file GiLightTraits.h.

Member Function Documentation

◆ hasTarget()

virtual bool OdGiPointLightTraits::hasTarget ( ) const
pure virtual

Checks whether this point has an associated target grip displayed.

Returns
true if light displays a target grip, false otherwise.

◆ hemisphericalDistribution()

virtual bool OdGiPointLightTraits::hemisphericalDistribution ( ) const
pure virtual

◆ lampColor()

virtual OdGiColorRGB OdGiPointLightTraits::lampColor ( ) const
pure virtual

Retrieves color of the light lamp.

Returns
color of the light lamp as OdGiColorRGB instance.

◆ lightAttenuation()

virtual OdGiLightAttenuation OdGiPointLightTraits::lightAttenuation ( ) const
pure virtual

Retrieves light attenuation parameters for this light source.

Returns
light attenuation parameters as OdGiLightAttenuation instance.

◆ ODRX_DECLARE_MEMBERS()

OdGiPointLightTraits::ODRX_DECLARE_MEMBERS ( OdGiPointLightTraits  )

◆ physicalIntensity()

virtual double OdGiPointLightTraits::physicalIntensity ( ) const
pure virtual

Retrieves physical intensity for this light source in candela.

Returns
physical intensity of the light as a value of the double type.

◆ position()

virtual OdGePoint3d OdGiPointLightTraits::position ( ) const
pure virtual

Retrieves position of the point light source.

Returns
point light position as OdGePoint3d instance.

◆ setAttenuation()

virtual void OdGiPointLightTraits::setAttenuation ( const OdGiLightAttenuation atten)
pure virtual

Specifies attenuation light parameters for the point light source.

Parameters
atten[in] Point light source position.

◆ setHasTarget()

virtual void OdGiPointLightTraits::setHasTarget ( bool  bTarget)
pure virtual

Specifies whether this point should have an associated target grip displayed.

Parameters
bTarget[in] Flag that specifies whether to display a target grip for orienting the light.

◆ setHemisphericalDistribution()

virtual void OdGiPointLightTraits::setHemisphericalDistribution ( bool  bHemisphere)
pure virtual

◆ setLampColor()

virtual void OdGiPointLightTraits::setLampColor ( const OdGiColorRGB color)
pure virtual

Specifies color for the light lamp.

Parameters
color[in] RGB color value.

◆ setPhysicalIntensity()

virtual void OdGiPointLightTraits::setPhysicalIntensity ( double  fIntensity)
pure virtual

Specifies physical intensity for this light source in candela.

Parameters
fIntensity[in] Physical intensity of the light in candela.

◆ setPosition()

virtual void OdGiPointLightTraits::setPosition ( const OdGePoint3d pos)
pure virtual

Specifies position of the point light source.

Parameters
pos[in] Point light source position.

◆ setTargetLocation()

virtual void OdGiPointLightTraits::setTargetLocation ( const OdGePoint3d loc)
pure virtual

Specifies target location of the light.

Parameters
loc[in] Location of the target. Must differ from the point light position.

◆ targetLocation()

virtual OdGePoint3d OdGiPointLightTraits::targetLocation ( ) const
pure virtual

Retrieves target location of the light.

Returns
target location of the light as OdGePoint3d instance.

The documentation for this class was generated from the following file: