Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
A LODEvaluator that computes the appropriate LOD based on the distance of an Actor from the Camera. More...
#include <DistanceLODEvaluator.hpp>
Public Member Functions | |
| DistanceLODEvaluator () | |
| virtual const char * | className () |
| Returns the name of the class. | |
| virtual int | evaluate (Actor *actor, Camera *camera) |
| const std::vector< double > & | distanceRangeSet () |
| void | clearDistanceRangeSet () |
| int | distanceRangeCount () const |
| double | distanceRange (int index) const |
| void | setDistanceRangeSet (const std::vector< double > &distance_set) |
| void | addDistanceRange (double distance) |
| void | setDistanceRange (int index, double distance) |
Protected Attributes | |
| std::vector< double > | mDistanceRangeSet |
A LODEvaluator that computes the appropriate LOD based on the distance of an Actor from the Camera.
Definition at line 50 of file DistanceLODEvaluator.hpp.
| vl::DistanceLODEvaluator::DistanceLODEvaluator | ( | ) | [inline] |
Definition at line 53 of file DistanceLODEvaluator.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
| virtual const char* vl::DistanceLODEvaluator::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::LODEvaluator.
Definition at line 57 of file DistanceLODEvaluator.hpp.
Implements vl::LODEvaluator.
Definition at line 58 of file DistanceLODEvaluator.hpp.
References vl::Matrix4< T_Scalar >::getT(), vl::Camera::inverseViewMatrix(), vl::length(), vl::Actor::lod(), mDistanceRangeSet, vl::Actor::transform(), and vl::Transform::worldMatrix().
| const std::vector<double>& vl::DistanceLODEvaluator::distanceRangeSet | ( | ) | [inline] |
Definition at line 77 of file DistanceLODEvaluator.hpp.
References mDistanceRangeSet.
| void vl::DistanceLODEvaluator::clearDistanceRangeSet | ( | ) | [inline] |
Definition at line 78 of file DistanceLODEvaluator.hpp.
References mDistanceRangeSet.
| int vl::DistanceLODEvaluator::distanceRangeCount | ( | ) | const [inline] |
Definition at line 79 of file DistanceLODEvaluator.hpp.
References mDistanceRangeSet.
| double vl::DistanceLODEvaluator::distanceRange | ( | int | index ) | const [inline] |
Definition at line 80 of file DistanceLODEvaluator.hpp.
References mDistanceRangeSet.
| void vl::DistanceLODEvaluator::setDistanceRangeSet | ( | const std::vector< double > & | distance_set ) | [inline] |
Definition at line 82 of file DistanceLODEvaluator.hpp.
References mDistanceRangeSet.
| void vl::DistanceLODEvaluator::addDistanceRange | ( | double | distance ) | [inline] |
Definition at line 83 of file DistanceLODEvaluator.hpp.
References mDistanceRangeSet.
| void vl::DistanceLODEvaluator::setDistanceRange | ( | int | index, |
| double | distance | ||
| ) | [inline] |
Definition at line 84 of file DistanceLODEvaluator.hpp.
References vl::distance(), and mDistanceRangeSet.
std::vector<double> vl::DistanceLODEvaluator::mDistanceRangeSet [protected] |
Definition at line 87 of file DistanceLODEvaluator.hpp.
Referenced by addDistanceRange(), clearDistanceRangeSet(), distanceRange(), distanceRangeCount(), distanceRangeSet(), evaluate(), setDistanceRange(), and setDistanceRangeSet().