Overview | Modules | Class Hierarchy | Classes | Members

# tlp::QtQuadTreeLODCalculator Class Reference

`#include <QtQuadTreeLODCalculator.h>`

Inherits tlp::QtCPULODCalculator.

Inheritance diagram for tlp::QtQuadTreeLODCalculator:

[legend]
Collaboration diagram for tlp::QtQuadTreeLODCalculator:

[legend]
List of all members.

## Detailed Description

Class use to compute bounding boxs of a vector of GlEntity

## Public Member Functions

- QtQuadTreeLODCalculator ()
- ~QtQuadTreeLODCalculator ()
- void setScene (GlScene *scene)
- bool needEntities ()
- void setNeedEntities (bool)
- void addSimpleEntityBoundingBox (unsigned long 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 > &currentViewport, RenderingEntitiesFlag type)
- void computeFor3DCamera (SimpleBoundingBoxVector *inputSimple, ComplexBoundingBoxVector *inputNodes, ComplexBoundingBoxVector *inputEdges, SimpleLODResultVector *outputSimple, ComplexLODResultVector *outputNodes, ComplexLODResultVector *outputEdges, const Coord &eye, const Matrix< float, 4 > transformMatrix, const Vector< int, 4 > &globalViewport, const Vector< int, 4 > &currentViewport)
- void clear ()
- void removeObservers ()
- void addObservers ()
- void setInputData (GlGraphInputData *newInputData)
- void update (std::set< Observable * >::iterator begin, std::set< Observable * >::iterator end)
- void observableDestroyed (Observable *)
- void addNode (Graph *, const node)
- void addEdge (Graph *, const edge)
- void delNode (Graph *, const node)
- void delEdge (Graph *, const edge)
- void addLocalProperty (Graph *, const std::string &name)
- void delLocalProperty (Graph *, const std::string &name)
- void destroy (Graph *)
- void addLayer (GlScene *, const std::string &, GlLayer *)
- void delLayer (GlScene *, const std::string &, GlLayer *)
- void modifyLayer (GlScene *, const std::string &, GlLayer *)
- void modifyEntity (GlScene *, GlSimpleEntity *)
- virtual GlLODCalculator * clone ()

## Protected Attributes

- GlScene * scene
- QuadTreeNode * nodesQuadTree
- QuadTreeNode * edgesQuadTree
- QuadTreeNode * nodesSelectedQuadTree
- QuadTreeNode * edgesSelectedQuadTree
- QuadTreeNode * entitiesQuadTree
- VectorOfSimpleBoundingBoxVector simpleEntities
- bool haveToCompute
- GlGraphInputData * inputData
- BoundingBox nodesGlobalBoundingBox
- BoundingBox edgesGlobalBoundingBox
- BoundingBox entitiesGlobalBoundingBox
- std::vector< std::pair< Camera *,
  Camera > > cameras
- Camera * currentCamera
- Graph * currentGraph
- PropertyInterface * layoutProperty
- PropertyInterface * sizeProperty
- PropertyInterface * selectionProperty

## Constructor & Destructor Documentation

tlp::QtQuadTreeLODCalculator::QtQuadTreeLODCalculator | ( |  | ) |

tlp::QtQuadTreeLODCalculator::~QtQuadTreeLODCalculator | ( |  | ) |

## Member Function Documentation

void tlp::QtQuadTreeLODCalculator::addEdge | ( | Graph * | ,
|  | const | edge
| ) | `[inline]`

void tlp::QtQuadTreeLODCalculator::addEdgeBoundingBox | ( | unsigned int | id,
|  | const BoundingBox & | bb
| ) |

void tlp::QtQuadTreeLODCalculator::addLayer | ( | GlScene * | ,
|  | const std::string & | ,
|  | GlLayer * |
| ) | `[inline]`

void tlp::QtQuadTreeLODCalculator::addLocalProperty | ( | Graph * | ,
|  | const std::string & | name
| ) |

void tlp::QtQuadTreeLODCalculator::addNode | ( | Graph * | ,
|  | const | node
| ) | `[inline]`

void tlp::QtQuadTreeLODCalculator::addNodeBoundingBox | ( | unsigned int | id,
|  | const BoundingBox & | bb
| ) |

void tlp::QtQuadTreeLODCalculator::addObservers | ( |  | ) |

void tlp::QtQuadTreeLODCalculator::addSimpleEntityBoundingBox | ( | unsigned long | entity,
|  | const BoundingBox & | bb
| ) |

void tlp::QtQuadTreeLODCalculator::clear | ( |  | ) |

virtual GlLODCalculator* tlp::QtQuadTreeLODCalculator::clone | ( |  | ) | `[inline, virtual]`

| Reimplemented from tlp::QtCPULODCalculator.

void tlp::QtQuadTreeLODCalculator::compute | ( | const Vector< int, 4 > & | globalViewport,
|  | const Vector< int, 4 > & | currentViewport,
|  | RenderingEntitiesFlag | type
| ) |

void tlp::QtQuadTreeLODCalculator::computeFor3DCamera | ( | SimpleBoundingBoxVector * | inputSimple,
|  | ComplexBoundingBoxVector * | inputNodes,
|  | ComplexBoundingBoxVector * | inputEdges,
|  | SimpleLODResultVector * | outputSimple,
|  | ComplexLODResultVector * | outputNodes,
|  | ComplexLODResultVector * | outputEdges,
|  | const Coord & | eye,
|  | const Matrix< float, 4 > | transformMatrix,
|  | const Vector< int, 4 > & | globalViewport,
|  | const Vector< int, 4 > & | currentViewport
| ) | `[virtual]`

| Reimplemented from tlp::QtCPULODCalculator.

void tlp::QtQuadTreeLODCalculator::delEdge | ( | Graph * | ,
|  | const | edge
| ) | `[inline]`

void tlp::QtQuadTreeLODCalculator::delLayer | ( | GlScene * | ,
|  | const std::string & | ,
|  | GlLayer * |
| ) | `[inline]`

void tlp::QtQuadTreeLODCalculator::delLocalProperty | ( | Graph * | ,
|  | const std::string & | name
| ) |

void tlp::QtQuadTreeLODCalculator::delNode | ( | Graph * | ,
|  | const | node
| ) | `[inline]`

void tlp::QtQuadTreeLODCalculator::destroy | ( | Graph * |  | ) |

void tlp::QtQuadTreeLODCalculator::modifyEntity | ( | GlScene * | ,
|  | GlSimpleEntity * |
| ) | `[inline]`

void tlp::QtQuadTreeLODCalculator::modifyLayer | ( | GlScene * | ,
|  | const std::string & | ,
|  | GlLayer * |
| ) | `[inline]`

bool tlp::QtQuadTreeLODCalculator::needEntities | ( |  | ) |

void tlp::QtQuadTreeLODCalculator::observableDestroyed | ( | Observable * |  | ) | `[inline]`

void tlp::QtQuadTreeLODCalculator::removeObservers | ( |  | ) |

void tlp::QtQuadTreeLODCalculator::setInputData | ( | GlGraphInputData * | newInputData | ) |

void tlp::QtQuadTreeLODCalculator::setNeedEntities | ( | bool |  | ) |

void tlp::QtQuadTreeLODCalculator::setScene | ( | GlScene * | scene | ) |

void tlp::QtQuadTreeLODCalculator::update | ( | std::set< Observable * >::iterator | begin,
|  | std::set< Observable * >::iterator | end
| ) |

## Member Data Documentation

std::vector<std::pair<Camera*,Camera> > tlp::QtQuadTreeLODCalculator::cameras`[protected]`

Camera* tlp::QtQuadTreeLODCalculator::currentCamera`[protected]`

Graph* tlp::QtQuadTreeLODCalculator::currentGraph`[protected]`

BoundingBox tlp::QtQuadTreeLODCalculator::edgesGlobalBoundingBox`[protected]`

QuadTreeNode* tlp::QtQuadTreeLODCalculator::edgesQuadTree`[protected]`

QuadTreeNode* tlp::QtQuadTreeLODCalculator::edgesSelectedQuadTree`[protected]`

BoundingBox tlp::QtQuadTreeLODCalculator::entitiesGlobalBoundingBox`[protected]`

QuadTreeNode* tlp::QtQuadTreeLODCalculator::entitiesQuadTree`[protected]`

bool tlp::QtQuadTreeLODCalculator::haveToCompute`[protected]`

GlGraphInputData* tlp::QtQuadTreeLODCalculator::inputData`[protected]`

PropertyInterface* tlp::QtQuadTreeLODCalculator::layoutProperty`[protected]`

BoundingBox tlp::QtQuadTreeLODCalculator::nodesGlobalBoundingBox`[protected]`

QuadTreeNode* tlp::QtQuadTreeLODCalculator::nodesQuadTree`[protected]`

QuadTreeNode* tlp::QtQuadTreeLODCalculator::nodesSelectedQuadTree`[protected]`

GlScene* tlp::QtQuadTreeLODCalculator::scene`[protected]`

PropertyInterface* tlp::QtQuadTreeLODCalculator::selectionProperty`[protected]`

VectorOfSimpleBoundingBoxVector tlp::QtQuadTreeLODCalculator::simpleEntities`[protected]`

PropertyInterface* tlp::QtQuadTreeLODCalculator::sizeProperty`[protected]`

Tulip Software by LaBRI Visualization Team 2001 - 2010