CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
OdTrVecLightDef Struct Reference

#include <TrVecDefs.h>

Inheritance diagram for OdTrVecLightDef:
OdTrVisLightDef

Public Types

enum  { kOverrideDuplicate = kLastOverride << 1 }
 
- Public Types inherited from OdTrVisLightDef
enum  LightDefFlags { kLightEnabled = (1 << 0) , kLightUseLims = (1 << 1) , kLightShadows = (1 << 2) }
 
enum  Overrider {
  kOverrideVisibility = (1 << 0) , kOverrideOrientation = (1 << 1) , kOverrideColor = (1 << 2) , kOverrideAttenuation = (1 << 3) ,
  kOverrideAngles = (1 << 4) , kOverrideSpecualFactor = (1 << 5) , kOverrideShadow = (1 << 6) , kLastOverride = kOverrideShadow
}
 
enum  LightType { kDistant = 0 , kPoint , kSpot }
 

Public Member Functions

void setDefault ()
 
OdTrVecLightDefapply (OdUInt32 nMod, const OdTrVecLightDef &l)
 
OdUInt32 diff (const OdTrVecLightDef &dl2, bool bFinFirstDiff=false) const
 
bool operator== (const OdTrVecLightDef &dl2) const
 
bool operator!= (const OdTrVecLightDef &dl2) const
 
- Public Member Functions inherited from OdTrVisLightDef
void setLightOn (bool bSet)
 
bool isLightOn () const
 
void enableAttenuationLimits (bool bSet)
 
bool attenuationLimitsEnabled () const
 
void enableShadows (bool bSet)
 
bool shadowsEnabled () const
 
void setDefault ()
 
OdTrVisLightDefapply (OdUInt32 nMod, const OdTrVisLightDef &l)
 
OdUInt32 diff (const OdTrVisLightDef &dl2, bool bFinFirstDiff=false) const
 
bool operator== (const OdTrVisLightDef &dl2) const
 
bool operator!= (const OdTrVisLightDef &dl2) const
 
void save (OdGsFiler *pFiler) const
 
void load (OdGsFiler *pFiler)
 

Public Attributes

OdUInt32 m_nDuplicate
 
- Public Attributes inherited from OdTrVisLightDef
enum OdTrVisLightDef::LightType m_type
 
OdGePoint3d m_position
 
OdGeVector3d m_direction
 
OdTrVisMaterialColor m_color
 
float m_constantAttenuation
 
float m_linearAttenuation
 
float m_quadraticAttenuation
 
float m_startAttenuationLimit
 
float m_endAttenuationLimit
 
float m_spotCutoff
 
float m_spotExponent
 
float m_specularFactor
 
OdUInt16 m_shadowMapSize
 
OdUInt16 m_shadowSoftness
 
OdUInt16 m_shadowSamples
 
OdUInt16 m_lightFlags
 

Detailed Description

<group ExRender_Windows_Classes>

Definition at line 34 of file TrVecDefs.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kOverrideDuplicate 

Definition at line 36 of file TrVecDefs.h.

Member Function Documentation

◆ apply()

OdTrVecLightDef & OdTrVecLightDef::apply ( OdUInt32  nMod,
const OdTrVecLightDef l 
)
inline

Definition at line 40 of file TrVecDefs.h.

◆ diff()

OdUInt32 OdTrVecLightDef::diff ( const OdTrVecLightDef dl2,
bool  bFinFirstDiff = false 
) const
inline

Definition at line 48 of file TrVecDefs.h.

◆ operator!=()

bool OdTrVecLightDef::operator!= ( const OdTrVecLightDef dl2) const
inline

Definition at line 56 of file TrVecDefs.h.

◆ operator==()

bool OdTrVecLightDef::operator== ( const OdTrVecLightDef dl2) const
inline

Definition at line 54 of file TrVecDefs.h.

◆ setDefault()

void OdTrVecLightDef::setDefault ( )
inline

Definition at line 37 of file TrVecDefs.h.

Member Data Documentation

◆ m_nDuplicate

OdUInt32 OdTrVecLightDef::m_nDuplicate

Definition at line 35 of file TrVecDefs.h.


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