#include <GlQuadTreeLODCalculator.h>
List of all members.
Public Member Functions
- GlQuadTreeLODCalculator ()
- ~GlQuadTreeLODCalculator ()
- void setScene (GlScene &scene)
- bool needEntities ()
- void setNeedEntities (bool)
- void addSimpleEntityBoundingBox (GlSimpleEntity *entity, const BoundingBox &bb)
- void addNodeBoundingBox (unsigned int id, const BoundingBox &bb)
- void addEdgeBoundingBox (unsigned int id, const BoundingBox &bb)
- void compute (const Vector< int, 4 > &globalViewport, const Vector< int, 4 > ¤tViewport)
- void computeFor3DCamera (LayerLODUnit *layerLODUnit, const Coord &eye, const Matrix< float, 4 > transformMatrix, const Vector< int, 4 > &globalViewport, const Vector< int, 4 > ¤tViewport)
- void setInputData (GlGraphInputData *newInputData)
- virtual GlLODCalculator * clone ()
Protected Member Functions
Protected Attributes
Detailed Description
Class use to compute bounding boxs of a vector of GlEntity
Constructor & Destructor Documentation
tlp::GlQuadTreeLODCalculator::GlQuadTreeLODCalculator |
( |
| ) |
|
tlp::GlQuadTreeLODCalculator::~GlQuadTreeLODCalculator |
( |
| ) |
|
Member Function Documentation
void tlp::GlQuadTreeLODCalculator::addEdge |
( |
Graph * |
, |
|
|
const edge |
|
|
) |
| [inline, protected] |
void tlp::GlQuadTreeLODCalculator::addEdgeBoundingBox |
( |
unsigned int |
id, |
|
|
const BoundingBox & |
bb |
|
) |
| [virtual] |
void tlp::GlQuadTreeLODCalculator::addNode |
( |
Graph * |
, |
|
|
const node |
|
|
) |
| [inline, protected] |
void tlp::GlQuadTreeLODCalculator::addNodeBoundingBox |
( |
unsigned int |
id, |
|
|
const BoundingBox & |
bb |
|
) |
| [virtual] |
void tlp::GlQuadTreeLODCalculator::addObservers |
( |
| ) |
[protected] |
void tlp::GlQuadTreeLODCalculator::addSimpleEntityBoundingBox |
( |
GlSimpleEntity * |
entity, |
|
|
const BoundingBox & |
bb |
|
) |
| [virtual] |
This function is call by GlLODSceneVisitor when a simple entitie is found
Reimplemented from tlp::GlCPULODCalculator.
void tlp::GlQuadTreeLODCalculator::afterSetAllEdgeValue |
( |
PropertyInterface * |
| ) |
[protected] |
void tlp::GlQuadTreeLODCalculator::afterSetAllNodeValue |
( |
PropertyInterface * |
| ) |
[protected] |
void tlp::GlQuadTreeLODCalculator::afterSetEdgeValue |
( |
PropertyInterface * |
, |
|
|
const edge |
e |
|
) |
| [protected] |
void tlp::GlQuadTreeLODCalculator::afterSetNodeValue |
( |
PropertyInterface * |
, |
|
|
const node |
n |
|
) |
| [protected] |
void tlp::GlQuadTreeLODCalculator::clearCamerasObservers |
( |
| ) |
[protected] |
virtual GlLODCalculator* tlp::GlQuadTreeLODCalculator::clone |
( |
| ) |
[inline, virtual] |
void tlp::GlQuadTreeLODCalculator::compute |
( |
const Vector< int, 4 > & |
globalViewport, |
|
|
const Vector< int, 4 > & |
currentViewport |
|
) |
| [virtual] |
void tlp::GlQuadTreeLODCalculator::computeFor3DCamera |
( |
LayerLODUnit * |
layerLODUnit, |
|
|
const Coord & |
eye, |
|
|
const Matrix< float, 4 > |
transformMatrix, |
|
|
const Vector< int, 4 > & |
globalViewport, |
|
|
const Vector< int, 4 > & |
currentViewport |
|
) |
| [virtual] |
void tlp::GlQuadTreeLODCalculator::delEdge |
( |
Graph * |
, |
|
|
const edge |
|
|
) |
| [inline, protected] |
void tlp::GlQuadTreeLODCalculator::delNode |
( |
Graph * |
, |
|
|
const node |
|
|
) |
| [inline, protected] |
void tlp::GlQuadTreeLODCalculator::destroy |
( |
Graph * |
| ) |
[protected] |
void tlp::GlQuadTreeLODCalculator::destroy |
( |
PropertyInterface * |
| ) |
[protected] |
void tlp::GlQuadTreeLODCalculator::destroy |
( |
const Camera * |
| ) |
[protected] |
void tlp::GlQuadTreeLODCalculator::initCamerasObservers |
( |
| ) |
[protected] |
bool tlp::GlQuadTreeLODCalculator::needEntities |
( |
| ) |
|
To know if the calculator need to have entities returned by a visitor in GlScene
void tlp::GlQuadTreeLODCalculator::observableDestroyed |
( |
Observable * |
| ) |
[inline, protected] |
void tlp::GlQuadTreeLODCalculator::removeObservers |
( |
| ) |
[protected] |
void tlp::GlQuadTreeLODCalculator::setHaveToCompute |
( |
| ) |
[protected] |
void tlp::GlQuadTreeLODCalculator::setInputData |
( |
GlGraphInputData * |
newInputData | ) |
|
Change the input data used by this LOD calculator
void tlp::GlQuadTreeLODCalculator::setNeedEntities |
( |
bool |
| ) |
|
Set if the calculator need to have entities
void tlp::GlQuadTreeLODCalculator::setScene |
( |
GlScene & |
scene | ) |
|
Set the SlScene used by this calculator
void tlp::GlQuadTreeLODCalculator::treatEvent |
( |
const Event & |
ev | ) |
[protected] |
void tlp::GlQuadTreeLODCalculator::update |
( |
PropertyInterface * |
property | ) |
[protected] |
Member Data Documentation
|