# 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 <base_render_obs.h>

Inheritance diagram for NL3D::IBaseRenderObs:

NL3D::IObs NLMISC::CRefCount NL3D::CDefaultRenderObs NL3D::CRootModelRenderObs NL3D::CSkipModelRenderObs NL3D::CTransformRenderObs NL3D::CLandscapeRenderObs NL3D::CTransformShapeRenderObs NL3D::CVegetableBlendLayerRenderObs NL3D::CFlareRenderObs NL3D::CParticleSystemRenderObs NL3D::CSkeletonModelRenderObs NL3D::CWaterRenderObs 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:
Lionel Berenguier , Nevrax France
Date:
2000

Definition at line 61 of file base_render_obs.h.


Constructor & Destructor Documentation

NL3D::IBaseRenderObs::IBaseRenderObs   [inline]
 

Constructor.

Definition at line 72 of file base_render_obs.h.

References ClipObs, HrcObs, and LightObs.


Member Function Documentation

void NL3D::IBaseRenderObs::init   [virtual]
 

Build shortcut to Hrc, Clip and Light.

Reimplemented from NL3D::IObs.

Definition at line 40 of file base_render_obs.cpp.

References ClipObs, NL3D::ClipTravId, NL3D::IObs::getObs, HrcObs, NL3D::HrcTravId, LightObs, NL3D::LightTravId, and nlassert.

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

The base render method.

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

Implements NL3D::IObs.

Implemented in NL3D::CDefaultRenderObs.


Member Data Documentation

IBaseClipObs* NL3D::IBaseRenderObs::ClipObs
 

Definition at line 66 of file base_render_obs.h.

Referenced by IBaseRenderObs, init, and NL3D::CWaterRenderObs::traverse.

IBaseHrcObs* NL3D::IBaseRenderObs::HrcObs
 

Shortcut to observers.

Definition at line 65 of file base_render_obs.h.

Referenced by IBaseRenderObs, init, NL3D::CSkeletonModelRenderObs::renderCLod, NL3D::CSkeletonModelRenderObs::renderSkins, NL3D::CWaterRenderObs::traverse, NL3D::CTransformShapeRenderObs::traverse, and NL3D::CFlareRenderObs::traverse.

IBaseLightObs* NL3D::IBaseRenderObs::LightObs
 

Definition at line 67 of file base_render_obs.h.

Referenced by IBaseRenderObs, and init.


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