Go to the documentation of this file.
28 #ifndef __Pixel_Count_Lod_Strategy_H__
29 #define __Pixel_Count_Lod_Strategy_H__
static ScreenRatioPixelCountLodStrategy * getSingletonPtr(void)
Override standard Singleton retrieval.
vector< MeshLodUsage >::type MeshLodUsageList
virtual ushort getIndex(Real value, const Material::LodValueList &materialLodValueList) const
Get the index of the LOD usage which applies to a given value.
vector< Real >::type LodValueList
virtual void sort(Mesh::MeshLodUsageList &meshLodUsageList) const
Sort mesh LOD usage list from greatest to least detail.
Real getValueImpl(const MovableObject *movableObject, const Camera *camera) const
Compute the LOD value for a given movable object relative to a given camera.
A viewpoint from which the scene will be rendered.
virtual bool isSorted(const Mesh::LodValueList &values) const
Determine if the LOD values are sorted from greatest detail to least detail.
virtual Real getBaseValue() const
Get the value of the first (highest) level of detail.
virtual Real transformBias(Real factor) const
Transform LOD bias so it only needs to be multiplied by the LOD value.
virtual Real getValueImpl(const MovableObject *movableObject, const Camera *camera) const =0
Compute the LOD value for a given movable object relative to a given camera.
Abstract class defining a movable object in a scene.
Abstract base class for level of detail strategy based on pixel count approximations from bounding sp...
Real getValueImpl(const MovableObject *movableObject, const Camera *camera) const
Compute the LOD value for a given movable object relative to a given camera.
static ScreenRatioPixelCountLodStrategy & getSingleton(void)
Override standard Singleton retrieval.
AbsolutePixelCountLodStrategy()
Default constructor.
Strategy for determining level of detail.
virtual ushort getIndex(Real value, const Mesh::MeshLodUsageList &meshLodUsageList) const
Get the index of the LOD usage which applies to a given value.
vector< Real >::type LodValueList
distance list used to specify LOD
Template class for creating single-instance global classes.
ScreenRatioPixelCountLodStrategy()
Default constructor.
static AbsolutePixelCountLodStrategy & getSingleton(void)
Override standard Singleton retrieval.
PixelCountLodStrategy(const String &name)
Default constructor.
static AbsolutePixelCountLodStrategy * getSingletonPtr(void)
Override standard Singleton retrieval.
float Real
Software floating point type.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.