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

The base interface for render observers. More...

#include <render_trav.h>

Inheritance diagram for NL3D::IBaseRenderObs

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

Collaboration graph
[legend]
List of all members.

Public Methods

 IBaseRenderObs ()
 Constructor. More...

virtual void init ()
 Build shortcut to Hrc, Clip and Light. More...

virtual void traverse (IObs *caller) = 0
 The base render method. More...


Public Attributes

IBaseHrcObsHrcObs
 Shortcut to observers. More...

IBaseClipObsClipObs
IBaseLightObsLightObs

Detailed Description

The base interface for render observers.

Render observers MUST derive from IBaseRenderObs. This observer:

  • leave the notification system to DO NOTHING.
  • leave traverse() to undefined.
  • implement the init() method, to set shortcut to neighbor observers.
DERIVER RULES:
  • implement the notification system (see IObs and IObs() for details).
  • implement the traverse(). See traverse() for more information.
  • possibly (but obviously not) modify/extend the graph methods (such as a graph behavior).
See also:
CRenderTrav
Author(s):
Lionel Berenguier , Nevrax France
Date:
2000

Definition at line 142 of file render_trav.h.


Constructor & Destructor Documentation

NL3D::IBaseRenderObs::IBaseRenderObs ( ) [inline]
 

Constructor.

Definition at line 153 of file render_trav.h.


Member Function Documentation

void NL3D::IBaseRenderObs::init ( void ) [virtual]
 

Build shortcut to Hrc, Clip and Light.

Reimplemented from NL3D::IObs.

Definition at line 100 of file render_trav.cpp.

void NL3D::IBaseRenderObs::traverse ( IObs * caller ) [pure virtual]
 

The base render method.

The observers should not traverseSons(), for speed improvement.

Reimplemented from NL3D::IObs.

Reimplemented in NL3D::CLandscapeRenderObs, NL3D::CDefaultRenderObs, and NL3D::CTransformShapeRenderObs.


Member Data Documentation

IBaseClipObs * NL3D::IBaseRenderObs::ClipObs
 

Definition at line 147 of file render_trav.h.

IBaseHrcObs * NL3D::IBaseRenderObs::HrcObs
 

Shortcut to observers.

Definition at line 146 of file render_trav.h.

IBaseLightObs * NL3D::IBaseRenderObs::LightObs
 

Definition at line 148 of file render_trav.h.


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