Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::PixelLODEvaluator Class Reference

A LODEvaluator that computes the appropriate LOD based on the approximate 2d area that an Actor covers on the screen. More...

#include <PixelLODEvaluator.hpp>

Inheritance diagram for vl::PixelLODEvaluator:
vl::LODEvaluator vl::Object

List of all members.

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

Detailed Description

A LODEvaluator that computes the appropriate LOD based on the approximate 2d area that an Actor covers on the screen.

See also:

Definition at line 50 of file PixelLODEvaluator.hpp.


Constructor & Destructor Documentation

vl::PixelLODEvaluator::PixelLODEvaluator (  ) [inline]

Definition at line 53 of file PixelLODEvaluator.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

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.

int PixelLODEvaluator::evaluate ( Actor actor,
Camera camera 
) [virtual]
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.


Member Data Documentation

std::vector<float> vl::PixelLODEvaluator::mPixelRangeSet [protected]

Definition at line 72 of file PixelLODEvaluator.hpp.

Referenced by addPixelRange(), evaluate(), setPixelRange(), and setPixelRangeSet().


The documentation for this class was generated from the following files:

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:43.
Permission is granted to use this page to write and publish articles regarding Visualization Library.