28#ifndef __Pixel_Count_Lod_Strategy_H__
29#define __Pixel_Count_Lod_Strategy_H__
static AbsolutePixelCountLodStrategy & getSingleton(void)
Override standard Singleton retrieval.
AbsolutePixelCountLodStrategy()
Default constructor.
static AbsolutePixelCountLodStrategy * getSingletonPtr(void)
Override standard Singleton retrieval.
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.
LodStrategy(const String &name)
Constructor accepting name.
vector< Real >::type LodValueList
distance list used to specify LOD
vector< Real >::type LodValueList
vector< MeshLodUsage >::type MeshLodUsageList
Abstract class defining a movable object in a scene.
virtual Real transformBias(Real factor) const
Transform LOD bias so it only needs to be multiplied by the LOD value.
virtual bool isSorted(const Mesh::LodValueList &values) const
Determine if the LOD values are sorted from greatest detail to least detail.
virtual void sort(Mesh::MeshLodUsageList &meshLodUsageList) const
Sort mesh LOD usage list from greatest to least detail.
virtual ushort getIndex(Real value, const Material::LodValueList &materialLodValueList) const
Get the index of the LOD usage which applies to a given 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.
virtual Real getBaseValue() const
Get the value of the first (highest) 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.
PixelCountLodStrategy(const String &name)
Default constructor.
static ScreenRatioPixelCountLodStrategy & getSingleton(void)
Override standard Singleton retrieval.
Real getValueImpl(const MovableObject *movableObject, const Camera *camera) const
Compute the LOD value for a given movable object relative to a given camera.
ScreenRatioPixelCountLodStrategy()
Default constructor.
static ScreenRatioPixelCountLodStrategy * getSingletonPtr(void)
Override standard Singleton retrieval.
Singleton(const Singleton< AbsolutePixelCountLodStrategy > &)
float Real
Software floating point type.