|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CQuadGridClipManager Class ReferenceA quadgrix of QuadGridCluster.
More...
#include <quad_grid_clip_manager.h>
List of all members.
Detailed Description
A quadgrix of QuadGridCluster.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 53 of file quad_grid_clip_manager.h.
Constructor & Destructor Documentation
NL3D::CQuadGridClipManager::CQuadGridClipManager |
( |
|
) |
|
|
NL3D::CQuadGridClipManager::~CQuadGridClipManager |
( |
|
) |
|
|
Member Function Documentation
void NL3D::CQuadGridClipManager::deleteCaseModels |
( |
CClipTrav * |
pClipTrav, |
|
|
sint |
x, |
|
|
sint |
y |
|
) |
[private] |
|
void NL3D::CQuadGridClipManager::init |
( |
CScene * |
scene, |
|
|
float |
clusterSize, |
|
|
std::vector< float > |
maxDists, |
|
|
float |
radiusMax |
|
) |
|
|
|
Init the manager.
-
Parameters:
-
clusterSize |
is the size of a cluster. eg: 160mx160m. |
maxDists |
eg (100, 500). Intervalls of distance for fast DistMax clip optimisation. there is maxDists.size()+1 clusters created by case of clusterSize*clusterSize. And as so many test. |
radiusMax |
a square of radiusMax*2 x radiusMax*2 of CQuadGridClusterCase are ensured to be created. |
Definition at line 61 of file quad_grid_clip_manager.cpp.
References _ClusterSize, _MaxDists, _RadiusMax, _Scene, nlassert, and reset. |
|
link a model to the best cluster possible, and update the bbox of this cluster.
if out of range (no cluster found), don't link to any and return false. NB: pTfmShp->getFirstParent() should be NULL.
Definition at line 199 of file quad_grid_clip_manager.cpp.
References _ClusterSize, _Height, _MaxDists, _QuadGridClusterCases, _Width, _X, _Y, nlassert, x, and y. |
void NL3D::CQuadGridClipManager::reset |
( |
|
) |
|
|
|
delete clusters from scene, and reset the manager.
Definition at line 83 of file quad_grid_clip_manager.cpp.
References _ClusterSize, _Height, _MaxDists, _QuadGridClusterCases, _Scene, _Width, _X, _Y, NL3D::ClipTravId, deleteCaseModels, x, and y.
Referenced by init, and ~CQuadGridClipManager. |
void NL3D::CQuadGridClipManager::updateClustersFromCamera |
( |
CClipTrav * |
pClipTrav, |
|
|
const CVector & |
camPos |
|
) |
|
|
|
create / delete QuadGridClusters around us.
Definition at line 116 of file quad_grid_clip_manager.cpp.
References _ClusterSize, _Height, _QuadGridClusterCases, _RadiusMax, _Width, _X, _Y, deleteCaseModels, newCaseModels, x, and y. |
Member Data Documentation
float NL3D::CQuadGridClipManager::_ClusterSize [private]
|
|
sint NL3D::CQuadGridClipManager::_Height [private]
|
|
std::vector<float> NL3D::CQuadGridClipManager::_MaxDists [private]
|
|
float NL3D::CQuadGridClipManager::_RadiusMax [private]
|
|
CScene* NL3D::CQuadGridClipManager::_Scene [private]
|
|
sint NL3D::CQuadGridClipManager::_Width [private]
|
|
sint NL3D::CQuadGridClipManager::_X [private]
|
|
sint NL3D::CQuadGridClipManager::_Y [private]
|
|
The documentation for this class was generated from the following files:
|
|