NL3D::CQuadGridClipClusterListDist Class Reference

#include <quad_grid_clip_cluster.h>


Public Member Functions

void clipSons (uint minDistSetup)
void insertModel (uint distSetup, CTransformShape *model)
void resetSons (CClipTrav *clipTrav)

Data Fields

std::vector< CFastPtrList<
CTransformShape > > 
Models


Member Function Documentation

void NL3D::CQuadGridClipClusterListDist::clipSons uint  minDistSetup  ) 
 

Definition at line 65 of file quad_grid_clip_cluster.cpp.

References NLPACS::Models, Models, and uint.

Referenced by NL3D::CQuadGridClipClusterQTreeNode::clip(), and NL3D::CQuadGridClipClusterQTreeNode::noFrustumClip().

00066 {
00067         for(uint i=minDistSetup; i<Models.size();i++)
00068         {
00069                 CTransformShape ** pModel= Models[i].begin();
00070                 uint    nSons= Models[i].size();
00071                 for(;nSons>0;nSons--, pModel++)
00072                 {
00073                         (*pModel)->traverseClip();
00074                 }
00075         }
00076 }

void NL3D::CQuadGridClipClusterListDist::insertModel uint  distSetup,
CTransformShape model
 

Definition at line 79 of file quad_grid_clip_cluster.cpp.

References NL3D::CTransformShape::_QuadClusterListNode, Models, and uint.

Referenced by NL3D::CQuadGridClipClusterQTreeNode::insertModel().

00080 {
00081         Models[distSetup].insert(model, &model->_QuadClusterListNode);
00082 }

void NL3D::CQuadGridClipClusterListDist::resetSons CClipTrav clipTrav  ) 
 

Definition at line 86 of file quad_grid_clip_cluster.cpp.

References NL3D::CTransform::clipAddChild(), NLPACS::Models, Models, NL3D::CClipTrav::RootCluster, and uint.

Referenced by NL3D::CQuadGridClipClusterQTreeNode::resetSons().

00087 {
00088         for(uint i=0; i<Models.size();i++)
00089         {
00090                 // clean up model list
00091                 CTransformShape ** pModel= Models[i].begin();
00092                 uint    nSons= Models[i].size();
00093                 for(;nSons>0;nSons--, pModel++)
00094                 {
00095                         // link the model to the rootCluster
00096                         clipTrav->RootCluster->clipAddChild(*pModel);
00097                 }
00098                 // unlink all my sons from me
00099                 Models[i].clear();
00100         }
00101 }


Field Documentation

std::vector<CFastPtrList<CTransformShape> > NL3D::CQuadGridClipClusterListDist::Models
 

Definition at line 47 of file quad_grid_clip_cluster.h.

Referenced by clipSons(), NL3D::CQuadGridClipClusterQTreeNode::init(), insertModel(), NL3D::CQuadGridClipClusterQTreeNode::profileNumChildren(), resetSons(), and NL3D::CQuadGridClipClusterQTreeNode::~CQuadGridClipClusterQTreeNode().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 07:33:59 2004 for NeL by doxygen 1.3.6