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

The base interface for hierarchy traversal. More...

#include <hrc_trav.h>

Inheritance diagram for NL3D::IBaseHrcObs:

NL3D::IObs NLMISC::CRefCount NL3D::CDefaultHrcObs NL3D::CRootModelHrcObs NL3D::CSkipModelHrcObs NL3D::CTransformHrcObs NL3D::CClusterHrcObs List of all members.

Public Methods

 IBaseHrcObs ()
 Constructor. More...

virtual void init ()
 Build shortcut to observers. More...

The base doit method.
virtual void traverse (IObs *caller)=0
 The base behavior is to update() the observer, updateWorld() states, and traverseSons(). More...

Graph methods. USED ONLY BY ITrav*.
virtual void addParent (IObs *father)
 Call IObs::addParent(), and dirt WorldDate to 0, so the worldMatrix will be recomputed next time. More...


Public Attributes

IBaseClipObsClipObs
 Some Shortcut to observers. More...

IBaseAnimDetailObsAnimDetailObs
IN variables.
CMatrix LocalMatrix
CHrcTrav::TVisibility LocalVis
sint64 LocalDate
OUT variables.
CMatrix WorldMatrix
bool WorldVis
sint64 WorldDate

Detailed Description

The base interface for hierarchy traversal.

Hierarchy observers MUST derive from IBaseHrcObs. This observer:

  • leave the notification system to DO NOTHING.
  • define his traverse() method.
DERIVER RULES:
  • implement the notification system (see IObs for details). The update() method should update LocalDate. so the node know it is updated.
  • implement the traverse() method.
See also:
CHrcTrav
Author:
Lionel Berenguier , Nevrax France
Date:
2000

Definition at line 126 of file hrc_trav.h.


Constructor & Destructor Documentation

NL3D::IBaseHrcObs::IBaseHrcObs   [inline]
 

Constructor.

Definition at line 156 of file hrc_trav.h.

References LocalDate, LocalMatrix, LocalVis, WorldDate, WorldMatrix, and WorldVis.


Member Function Documentation

void NL3D::IBaseHrcObs::addParent IObs   father [virtual]
 

Call IObs::addParent(), and dirt WorldDate to 0, so the worldMatrix will be recomputed next time.

Reimplemented from NL3D::IObs.

Definition at line 79 of file hrc_trav.cpp.

References NL3D::IObs::getFirstParent, NL3D::IObs::IObs, and WorldDate.

void NL3D::IBaseHrcObs::init   [virtual]
 

Build shortcut to observers.

Reimplemented from NL3D::IObs.

Definition at line 68 of file hrc_trav.cpp.

References AnimDetailObs, NL3D::AnimDetailTravId, ClipObs, NL3D::ClipTravId, and NL3D::IObs::getObs.

virtual void NL3D::IBaseHrcObs::traverse IObs   caller [pure virtual]
 

The base behavior is to update() the observer, updateWorld() states, and traverseSons().

Implements NL3D::IObs.

Implemented in NL3D::CClusterHrcObs.


Member Data Documentation

IBaseAnimDetailObs* NL3D::IBaseHrcObs::AnimDetailObs
 

Definition at line 131 of file hrc_trav.h.

Referenced by init.

IBaseClipObs* NL3D::IBaseHrcObs::ClipObs
 

Some Shortcut to observers.

Definition at line 130 of file hrc_trav.h.

Referenced by init.

sint64 NL3D::IBaseHrcObs::LocalDate
 

Definition at line 140 of file hrc_trav.h.

Referenced by IBaseHrcObs, NL3D::CTransformHrcObs::update, and NL3D::CTransformHrcObs::updateWorld.

CMatrix NL3D::IBaseHrcObs::LocalMatrix
 

Definition at line 138 of file hrc_trav.h.

Referenced by IBaseHrcObs, NL3D::CTransformHrcObs::update, and NL3D::CTransformHrcObs::updateWorld.

CHrcTrav::TVisibility NL3D::IBaseHrcObs::LocalVis
 

Definition at line 139 of file hrc_trav.h.

Referenced by IBaseHrcObs.

sint64 NL3D::IBaseHrcObs::WorldDate
 

Definition at line 148 of file hrc_trav.h.

Referenced by addParent, IBaseHrcObs, and NL3D::CTransformHrcObs::updateWorld.

CMatrix NL3D::IBaseHrcObs::WorldMatrix
 

Definition at line 146 of file hrc_trav.h.

Referenced by IBaseHrcObs, NL3D::CClusterHrcObs::traverse, and NL3D::CTransformHrcObs::updateWorld.

bool NL3D::IBaseHrcObs::WorldVis
 

Definition at line 147 of file hrc_trav.h.

Referenced by IBaseHrcObs, and NL3D::CTransformHrcObs::updateWorld.


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