| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/sg/lodnode.h>

Public Member Functions | |
| LODNode () | |
| constructs an empty LODNode | |
| LODNode (const SO< Iterator< double > > &distances, const SO< Iterator< SO< SceneNode > > > &nodes) | |
| constructs an LODNode with the given distances and corresponding SceneNode objects | |
| void | append (double distance, const SO< SceneNode > &node) |
| void | remove (double distance) |
| Removes the specified distance and the corresponding node. | |
| void | clear () |
| Removes all distance/node-pairs. | |
| unsigned int | size () const |
| Returns the number of distance/node-pairs. | |
| double | getDistance (unsigned int index) const |
| Returns the distance for the node at the specified index. | |
| SO< SceneNode > | getLodNode (unsigned int index) const |
| Returns the node at the specified index (can return NULL). | |
| SO< SceneNode > | getCurrentLodNode (double distance) const |
| Returns the node for a specified distance (can return NULL). | |
| virtual Bounds | boundingBox (Engine *engine) const |
| Bounding box of the nodes. | |
| virtual void | evaluate (Engine *engine) |
| Evaluates the node corresponding to the current camera distance. | |
| virtual SceneNodeVisitor::TraversalFlag | traverse (SceneNodeVisitor *visitor) |
| virtual void | modified () |
| Overridden to invalidate the m_bbox. | |
| VRS_TYPEINFO (LODNode, SceneNode) | |
| VRS_SERIALIZABLE (LODNode) | |
Protected Member Functions | |
| virtual void | acceptChildren (std::vector< Visitable * > &appendChildrenHere) const |
| virtual double | getDistanceFromCamera (Engine *engine) |
| Computes the distance to the current camera position. | |
Protected Attributes | |
| Bounds | m_bbox |
| VRS::LODNode::LODNode | ( | ) |
constructs an empty LODNode
Inserts the given distance/node-pair into the already contained pairs, sorted by distance; node can be NULL.
| void VRS::LODNode::remove | ( | double | distance | ) |
Removes the specified distance and the corresponding node.
| void VRS::LODNode::clear | ( | ) |
Removes all distance/node-pairs.
| unsigned int VRS::LODNode::size | ( | ) | const |
Returns the number of distance/node-pairs.
| double VRS::LODNode::getDistance | ( | unsigned int | index | ) | const |
Returns the distance for the node at the specified index.
Returns the node at the specified index (can return NULL).
Returns the node for a specified distance (can return NULL).
| virtual void VRS::LODNode::evaluate | ( | Engine * | engine | ) | [virtual] |
| virtual SceneNodeVisitor::TraversalFlag VRS::LODNode::traverse | ( | SceneNodeVisitor * | visitor | ) | [virtual] |
A "visitor" can be sent through a scene graph, e.g., for detecting certain shapes or finding attribute objects etc. The visitor is informed about all shapes, attributes, and scene nodes encountered during a traversal.
Reimplemented from VRS::SceneNode.
| virtual void VRS::LODNode::modified | ( | ) | [virtual] |
| VRS::LODNode::VRS_SERIALIZABLE | ( | LODNode | ) |
| virtual void VRS::LODNode::acceptChildren | ( | std::vector< Visitable * > & | appendChildrenHere | ) | const [protected, virtual] |
Reimplemented from VRS::Visitable.
| virtual double VRS::LODNode::getDistanceFromCamera | ( | Engine * | engine | ) | [protected, virtual] |
Bounds VRS::LODNode::m_bbox [mutable, protected] |