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 approximate 2d area that an Actor covers on the screen. More...
#include <PixelLODEvaluator.hpp>
Public Member Functions | |
| PixelLODEvaluator () | |
| virtual const char * | className () |
| Returns the name of the class. | |
| virtual int | evaluate (Actor *actor, Camera *camera) |
| const std::vector< float > & | distanceRangeSet () |
| void | clearPixelRangeSet () |
| int | distanceRangeCount () const |
| float | distanceRange (int index) const |
| void | setPixelRangeSet (const std::vector< float > &distance_set) |
| void | addPixelRange (float distance) |
| void | setPixelRange (int index, float distance) |
Protected Attributes | |
| std::vector< float > | mPixelRangeSet |
A LODEvaluator that computes the appropriate LOD based on the approximate 2d area that an Actor covers on the screen.
Definition at line 50 of file PixelLODEvaluator.hpp.
| vl::PixelLODEvaluator::PixelLODEvaluator | ( | ) | [inline] |
Definition at line 53 of file PixelLODEvaluator.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
| virtual const char* vl::PixelLODEvaluator::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::LODEvaluator.
Definition at line 58 of file PixelLODEvaluator.hpp.
Implements vl::LODEvaluator.
Definition at line 38 of file PixelLODEvaluator.cpp.
References vl::AABB::addPoint(), vl::AABB::height(), vl::Viewport::height(), vl::Actor::lod(), vl::AABB::maxCorner(), vl::AABB::minCorner(), mPixelRangeSet, vl::Camera::projectionMatrix(), vl::AABB::setNull(), vl::Actor::transform(), vl::Camera::viewMatrix(), vl::Camera::viewport(), vl::Vector4< T_Scalar >::w(), vl::AABB::width(), vl::Viewport::width(), vl::ITransform::worldMatrix(), vl::Viewport::x(), vl::Vector4< T_Scalar >::x(), vl::Vector3< T_Scalar >::x(), vl::Vector4< T_Scalar >::xyz(), vl::Viewport::y(), vl::Vector4< T_Scalar >::y(), vl::Vector3< T_Scalar >::y(), vl::Vector4< T_Scalar >::z(), and vl::Vector3< T_Scalar >::z().
| const std::vector<float>& vl::PixelLODEvaluator::distanceRangeSet | ( | ) | [inline] |
Definition at line 62 of file PixelLODEvaluator.hpp.
| void vl::PixelLODEvaluator::clearPixelRangeSet | ( | ) | [inline] |
Definition at line 63 of file PixelLODEvaluator.hpp.
| int vl::PixelLODEvaluator::distanceRangeCount | ( | ) | const [inline] |
Definition at line 64 of file PixelLODEvaluator.hpp.
| float vl::PixelLODEvaluator::distanceRange | ( | int | index ) | const [inline] |
Definition at line 65 of file PixelLODEvaluator.hpp.
| void PixelLODEvaluator::setPixelRangeSet | ( | const std::vector< float > & | distance_set ) |
Definition at line 98 of file PixelLODEvaluator.cpp.
References mPixelRangeSet.
| void PixelLODEvaluator::addPixelRange | ( | float | distance ) |
Definition at line 104 of file PixelLODEvaluator.cpp.
References mPixelRangeSet.
| void PixelLODEvaluator::setPixelRange | ( | int | index, |
| float | distance | ||
| ) |
Definition at line 110 of file PixelLODEvaluator.cpp.
References vl::distance(), and mPixelRangeSet.
std::vector<float> vl::PixelLODEvaluator::mPixelRangeSet [protected] |
Definition at line 72 of file PixelLODEvaluator.hpp.
Referenced by addPixelRange(), evaluate(), setPixelRange(), and setPixelRangeSet().