version 3.3

VRS::ShadowCaster Class Reference

#include <vrs/shadowcaster.h>

Inheritance diagram for VRS::ShadowCaster:

VRS::PolyAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Types

enum  CalculationMode { CM_Dynamic, CM_CheckModified, CM_Static }

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (CalculationMode)
 ShadowCaster (Light *light, CalculationMode mode=CM_Dynamic)
void setLightSource (Light *light)
LightgetLightSource () const
void setCalculationMode (CalculationMode)
CalculationMode getCalculationMode () const
void modifiedCallback (SharedObj *)
 VRS_TYPEINFO (ShadowCaster, PolyAttribute)
 VRS_SERIALIZABLE (ShadowCaster)

Protected Member Functions

 ShadowCaster ()


Detailed Description

PolyAttribute indicating that a shape casts a shadow caused by the given LightSource

Member Enumeration Documentation

Enumerator:
CM_Dynamic 
CM_CheckModified 
CM_Static 


Constructor & Destructor Documentation

VRS::ShadowCaster::ShadowCaster ( Light light,
CalculationMode  mode = CM_Dynamic 
)

Asserts if light is NULL.

VRS::ShadowCaster::ShadowCaster (  )  [protected]


Member Function Documentation

VRS::ShadowCaster::VRS_SERIALIZABLE_CLASS_ENUM ( CalculationMode   ) 

void VRS::ShadowCaster::setLightSource ( Light light  ) 

Sets the light source whose light portion is blocked by shapes with ShadowCaster object. Asserts if light is NULL.

Light* VRS::ShadowCaster::getLightSource (  )  const

Returns the light source whose light portion is blocked by shapes with ShadowCaster object.

void VRS::ShadowCaster::setCalculationMode ( CalculationMode   ) 

Sets the setting for recalculation of the shadow map.

CalculationMode VRS::ShadowCaster::getCalculationMode (  )  const

Returns the setting for recalculation of the shadow map.

void VRS::ShadowCaster::modifiedCallback ( SharedObj  ) 

For easy binding of a modified-callback to a ShadowCaster object.

VRS::ShadowCaster::VRS_TYPEINFO ( ShadowCaster  ,
PolyAttribute   
)

VRS::ShadowCaster::VRS_SERIALIZABLE ( ShadowCaster   ) 


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

Generated on Tue May 22 06:00:31 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact