NL3D::CRootModel Class Reference

The purpose of this model is to do nothing in traverse*() but traverseSons() for Hrc and Clip. More...

#include <root_model.h>

Inherits NL3D::CTransform.

List of all members.

Public Member Functions

CTransform traverse specialisation



virtual void traverseHrc ()
 Each method is called in its associated traversal.
virtual void traverseClip ()
 The base traverseClip method.
virtual void traverseAnimDetail ()
 call updateWorldMatrixFromFather(), then traverseAnimDetailWithoutUpdateWorldMatrix()
virtual void traverseLoadBalancing ()
 no-op by default
virtual void traverseLight ()
 traverse the lightedModel per default: recompute LightContribution is isLightable()
virtual void traverseRender ()
 no-op by default

Static Public Member Functions

static void registerBasic ()
 Call at the begining of the program, to register the model.

Protected Member Functions

 CRootModel ()
 Constructor.
virtual ~CRootModel ()
 Destructor.

Static Private Member Functions

static CTransformcreator ()

Detailed Description

The purpose of this model is to do nothing in traverse*() but traverseSons() for Hrc and Clip.

Author:
Lionel Berenguier
Nevrax France
Date:
2001

Definition at line 46 of file root_model.h.


Constructor & Destructor Documentation

NL3D::CRootModel::CRootModel (  )  [inline, protected]

Constructor.

Definition at line 66 of file root_model.h.

virtual NL3D::CRootModel::~CRootModel (  )  [inline, protected, virtual]

Destructor.

Definition at line 68 of file root_model.h.


Member Function Documentation

static CTransform* NL3D::CRootModel::creator (  )  [inline, static, private]

Reimplemented from NL3D::CTransform.

Definition at line 71 of file root_model.h.

Referenced by registerBasic().

void NL3D::CRootModel::registerBasic (  )  [static]

Call at the begining of the program, to register the model.

Reimplemented from NL3D::CTransform.

Definition at line 34 of file root_model.cpp.

References creator(), NL3D::CScene::registerModel(), and NL3D::RootModelId.

Referenced by NL3D::CScene::registerBasics().

void NL3D::CRootModel::traverseAnimDetail (  )  [virtual]
void NL3D::CRootModel::traverseClip (  )  [virtual]

The base traverseClip method.

The behavior is to:

  • test if _WorldVis is visible.
  • test if is clipped with clip() OR IF SKELETON MODEL, USE SKELETON MODEL clip!!
  • if visible and not clipped, set _Visible=true (else false). and
    • add the CTransform* to the ClipTrav list
  • if _Visible==true, and renderable, add it to the RenderTraversal: RenderTrav->addRenderModel(model);
  • always traverseSons(), to clip the sons.

Reimplemented from NL3D::CTransform.

Definition at line 50 of file root_model.cpp.

References NL3D::CTransform::clipGetChild(), NL3D::CTransform::clipGetNumChildren(), and NL3D::CTransform::traverseClip().

Referenced by NL3D::CClipTrav::traverse().

void NL3D::CRootModel::traverseHrc (  )  [virtual]

Each method is called in its associated traversal.

Reimplemented from NL3D::CTransform.

Definition at line 41 of file root_model.cpp.

References NL3D::CTransform::hrcGetChild(), NL3D::CTransform::hrcGetNumChildren(), and NL3D::CTransform::traverseHrc().

void NL3D::CRootModel::traverseLight (  )  [virtual]

traverse the lightedModel per default: recompute LightContribution is isLightable()

Reimplemented from NL3D::CTransform.

Definition at line 71 of file root_model.cpp.

void NL3D::CRootModel::traverseLoadBalancing (  )  [virtual]

no-op by default

Reimplemented from NL3D::CTransform.

Definition at line 65 of file root_model.cpp.

void NL3D::CRootModel::traverseRender (  )  [virtual]

no-op by default

Reimplemented from NL3D::CTransform.

Definition at line 77 of file root_model.cpp.


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

Generated on Thu Jan 7 08:30:10 2010 for NeL by  doxygen 1.6.1