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

A cluster of object for fast BBox clip. More...

#include <quad_grid_clip_cluster.h>

Inheritance diagram for NL3D::CQuadGridClipCluster:

NL3D::IModel NLMISC::CRefCount List of all members.

Public Methods

void extendCluster (const NLMISC::CAABBox &worldBBox)
void setDistMax (float d)
virtual void update ()
 This function must update the model (called by CMOT::validateModels()), and foul() necessary flags. More...


Static Public Methods

void registerBasic ()
 Call at the begining of the program, to register the model, and the basic observers. More...


Protected Methods

 CQuadGridClipCluster ()
 Constructor. More...

virtual ~CQuadGridClipCluster ()
 Destructor. More...


Static Private Methods

IModelcreator ()

Private Attributes

NLMISC::CAABBox _BBox
bool _Empty
float _DistMax
float _Radius

Friends

class CQuadGridClipClusterClipObs

Detailed Description

A cluster of object for fast BBox clip.

This is a simple model to not test sons if they are totaly clipped.

Author:
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 52 of file quad_grid_clip_cluster.h.


Constructor & Destructor Documentation

NL3D::CQuadGridClipCluster::CQuadGridClipCluster   [inline, protected]
 

Constructor.

Definition at line 67 of file quad_grid_clip_cluster.h.

References _DistMax, and _Empty.

Referenced by creator.

virtual NL3D::CQuadGridClipCluster::~CQuadGridClipCluster   [inline, protected, virtual]
 

Destructor.

Definition at line 69 of file quad_grid_clip_cluster.h.


Member Function Documentation

IModel* NL3D::CQuadGridClipCluster::creator   [inline, static, private]
 

Definition at line 72 of file quad_grid_clip_cluster.h.

References CQuadGridClipCluster, and NL3D::IModel::IModel.

void NL3D::CQuadGridClipCluster::extendCluster const NLMISC::CAABBox   worldBBox
 

Definition at line 47 of file quad_grid_clip_cluster.cpp.

References _BBox, _Empty, _Radius, NLMISC::CAABBox::extend, NLMISC::CAABBox::getCenter, NLMISC::CAABBox::getHalfSize, and NLMISC::CAABBox::getRadius.

void NL3D::CQuadGridClipCluster::registerBasic   [static]
 

Call at the begining of the program, to register the model, and the basic observers.

Definition at line 39 of file quad_grid_clip_cluster.cpp.

References NL3D::ClipTravId, and NL3D::QuadGridClipClusterId.

void NL3D::CQuadGridClipCluster::setDistMax float    d [inline]
 

Definition at line 60 of file quad_grid_clip_cluster.h.

References _DistMax.

void NL3D::CQuadGridClipCluster::update void    [virtual]
 

This function must update the model (called by CMOT::validateModels()), and foul() necessary flags.

Must :

  • call BaseClass::update() (eg: IModel::update()).
  • test if something is different (eg: animation modification). update Model information (eg compute new Matrix).
  • foul() good bits. (eg: foul(TransformDirty)).
  • maybe set other Touch information (vertex intervals...).
The default behavior is to do nothing.

NB: Touch information is reseted after observers validation in CMOT::validateModels(), using Model::cleanTouch()

Reimplemented from NL3D::IModel.

Definition at line 67 of file quad_grid_clip_cluster.cpp.

References NL3D::IModel::unlinkFromValidateList.


Friends And Related Function Documentation

friend class CQuadGridClipClusterClipObs [friend]
 

Definition at line 73 of file quad_grid_clip_cluster.h.


Member Data Documentation

NLMISC::CAABBox NL3D::CQuadGridClipCluster::_BBox [private]
 

Definition at line 75 of file quad_grid_clip_cluster.h.

Referenced by extendCluster.

float NL3D::CQuadGridClipCluster::_DistMax [private]
 

Definition at line 77 of file quad_grid_clip_cluster.h.

Referenced by CQuadGridClipCluster, and setDistMax.

bool NL3D::CQuadGridClipCluster::_Empty [private]
 

Definition at line 76 of file quad_grid_clip_cluster.h.

Referenced by CQuadGridClipCluster, and extendCluster.

float NL3D::CQuadGridClipCluster::_Radius [private]
 

Definition at line 78 of file quad_grid_clip_cluster.h.

Referenced by extendCluster.


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