# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CLightTrav Class Reference

The light traversal. More...

#include <light_trav.h>

Inheritance diagram for NL3D::CLightTrav

Inheritance graph
[legend]
Collaboration diagram for NL3D::CLightTrav:

Collaboration graph
[legend]
List of all members.

Public Methods

 CLightTrav ()
 Constructor. More...

IObscreateDefaultObs () const
 This method must create a default observer for this traversal. More...

NLMISC::CClassId getClassId () const
 This function must return the Unique Ident for this traversal class. More...

sint getRenderOrder () const
 Return the order of the traversal. More...

void traverse ()
 Execute the traversal. More...


Detailed Description

The light traversal.

The purpose of this traversal is to compute lighting on lightable objects.

TODO.

NB: see CScene for 3d conventions (orthonormal basis...)

See also:
CScene IBaseLightObs
Author(s):
Lionel Berenguier , Nevrax France
Date:
2000

Definition at line 63 of file light_trav.h.


Constructor & Destructor Documentation

NL3D::CLightTrav::CLightTrav ( )
 

Constructor.

Definition at line 39 of file light_trav.cpp.


Member Function Documentation

IObs * NL3D::CLightTrav::createDefaultObs ( ) const [virtual]
 

This method must create a default observer for this traversal.

Any model which doesn't provide (by registerObs() or by inheritance) an observer for this view will be linked with this default observer.

Reimplemented from NL3D::ITrav.

Definition at line 44 of file light_trav.cpp.

NLMISC::CClassId NL3D::CLightTrav::getClassId ( ) const [inline, virtual]
 

This function must return the Unique Ident for this traversal class.

Reimplemented from NL3D::ITrav.

Definition at line 72 of file light_trav.h.

sint NL3D::CLightTrav::getRenderOrder ( ) const [inline, virtual]
 

Return the order of the traversal.

This is usefull for CScene::render() method. It indicate when the traversal is called. Order for basic traversal are:

Reimplemented from NL3D::ITravScene.

Definition at line 73 of file light_trav.h.

void NL3D::CLightTrav::traverse ( ) [inline, virtual]
 

Execute the traversal.

CScene::render() will call this method, to execute the traversal.

Reimplemented from NL3D::ITravScene.

Definition at line 74 of file light_trav.h.


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