public

Inheritance Graph

graph BT
	ShadowState
	ShadowState --> State
	click ShadowState "classMinSG_1_1ShadowState"
	click State "classMinSG_1_1State"

Description

Node to create a shadow map from the attached scene graph subtree.

Author: Benjamin Eikel

Date: 2009-10-29

Public Functions

   
   
  ShadowState(uint16_t textureSize)
   
  ~ShadowState()
   
ShadowState * clone() const
Create a duplicate of this State object.
   
void setLight( LightNode * lightNode)
   
LightNode * getLight() const
   
const Geometry::Matrix4x4f & getTexMatrix() const
   
uint16_t getTextureSize() const
   
bool isStatic() const
   
void setStatic(bool value)
   
void update()

Documentation

function
MinSG::ShadowState::ShadowState

public
     
     
ShadowState( uint16_t textureSize )

Defined in MinSG/Ext/States/ShadowState.h:39


function
MinSG::ShadowState::~ShadowState

public virtual
   
   
~ShadowState( )

Defined in MinSG/Ext/States/ShadowState.h:40


function
MinSG::ShadowState::clone

public const virtual
   
   
ShadowState * clone( ) const

Create a duplicate of this State object.

Defined in MinSG/Ext/States/ShadowState.h:42


function
MinSG::ShadowState::setLight

public inline
     
     
void setLight( LightNode * lightNode )

Specify the light for which the shadow should be created.

Parameters

lightNode
MinSG light node.

Defined in MinSG/Ext/States/ShadowState.h:49


function
MinSG::ShadowState::getLight

public const inline
   
   
LightNode * getLight( ) const

Get the light for which the shadow is created.

Returns

MinSG light node.

Defined in MinSG/Ext/States/ShadowState.h:60


function
MinSG::ShadowState::getTexMatrix

public const inline
   
   
const Geometry::Matrix4x4f & getTexMatrix( ) const

Return the texture matrix that is used for shadow projection.

Returns

Texture matrix

Defined in MinSG/Ext/States/ShadowState.h:69


function
MinSG::ShadowState::getTextureSize

public const inline
   
   
uint16_t getTextureSize( ) const

Defined in MinSG/Ext/States/ShadowState.h:73


function
MinSG::ShadowState::isStatic

public const inline
   
   
bool isStatic( ) const

Defined in MinSG/Ext/States/ShadowState.h:75


function
MinSG::ShadowState::setStatic

public inline
     
     
void setStatic( bool value )

Defined in MinSG/Ext/States/ShadowState.h:76


function
MinSG::ShadowState::update

public inline
   
   
void update( )

Defined in MinSG/Ext/States/ShadowState.h:81