# 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::CHrcTrav Class Reference

The hierarchy traversal. More...

#include <hrc_trav.h>

Inheritance diagram for NL3D::CHrcTrav:

NL3D::ITravScene NL3D::ITrav NLMISC::CRefCount List of all members.

Public Types

enum  TVisibility { Show = 0, Hide, Herit, VisibilityCount }
 The visibility flag. In the root case, Herit means Show. More...


Public Methods

 CHrcTrav ()
 Constructor. More...

ITrav/ITravScene Implementation.
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...


Public Attributes

std::vector< IModel * > _MovingObjects
sint64 CurrentDate

Detailed Description

The hierarchy traversal.

Hierarchy observers MUST derive from IBaseHrcObs.

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

See also:
CScene IBaseHrcObs
Author:
Lionel Berenguier , Nevrax France
Date:
2000

Definition at line 64 of file hrc_trav.h.


Member Enumeration Documentation

enum NL3D::CHrcTrav::TVisibility
 

The visibility flag. In the root case, Herit means Show.

Enumeration values:
Show 
Hide 
Herit 
VisibilityCount 

Definition at line 68 of file hrc_trav.h.


Constructor & Destructor Documentation

NL3D::CHrcTrav::CHrcTrav   [inline]
 

Constructor.

Definition at line 80 of file hrc_trav.h.

References CurrentDate.


Member Function Documentation

IObs * NL3D::CHrcTrav::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.

Implements NL3D::ITrav.

Definition at line 43 of file hrc_trav.cpp.

NLMISC::CClassId NL3D::CHrcTrav::getClassId   const [inline, virtual]
 

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

Implements NL3D::ITrav.

Definition at line 91 of file hrc_trav.h.

sint NL3D::CHrcTrav::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:

Implements NL3D::ITravScene.

Definition at line 92 of file hrc_trav.h.

void NL3D::CHrcTrav::traverse   [virtual]
 

Execute the traversal.

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

Implements NL3D::ITravScene.

Definition at line 50 of file hrc_trav.cpp.

References _MovingObjects, CurrentDate, H_AUTO, and NL3D::ITrav::Root.


Member Data Documentation

std::vector<IModel*> NL3D::CHrcTrav::_MovingObjects
 

Definition at line 99 of file hrc_trav.h.

Referenced by traverse.

sint64 NL3D::CHrcTrav::CurrentDate
 

Definition at line 103 of file hrc_trav.h.

Referenced by CHrcTrav, and traverse.


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