Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [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 int | evaluate (Actor *actor, Camera *camera) |
const std::vector< double > & | distanceRangeSet () const |
std::vector< double > & | distanceRangeSet () |
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 55 of file DistanceLODEvaluator.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
Implements vl::LODEvaluator.
Definition at line 59 of file DistanceLODEvaluator.hpp.
References vl::Renderable::boundingBox(), vl::AABB::center(), vl::Matrix4< T_Scalar >::getT(), vl::length(), vl::Actor::lod(), mDistanceRangeSet, vl::Camera::modelingMatrix(), vl::Actor::transform(), and vl::Transform::worldMatrix().
const std::vector<double>& vl::DistanceLODEvaluator::distanceRangeSet | ( | ) | const [inline] |
Definition at line 78 of file DistanceLODEvaluator.hpp.
References mDistanceRangeSet.
Referenced by vl::VLXClassWrapper_LODEvaluator::exportLODEvaluator(), and vl::VLXClassWrapper_LODEvaluator::importLODEvaluator().
std::vector<double>& vl::DistanceLODEvaluator::distanceRangeSet | ( | ) | [inline] |
Definition at line 80 of file DistanceLODEvaluator.hpp.
References mDistanceRangeSet.
std::vector<double> vl::DistanceLODEvaluator::mDistanceRangeSet [protected] |
Definition at line 83 of file DistanceLODEvaluator.hpp.
Referenced by distanceRangeSet(), and evaluate().