OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::TerrainAutoUpdateLodByDistance Class Reference

Class implementing TerrainAutoUpdateLod interface. More...

#include <OgreTerrainAutoUpdateLod.h>

+ Inheritance diagram for Ogre::TerrainAutoUpdateLodByDistance:
+ Collaboration diagram for Ogre::TerrainAutoUpdateLodByDistance:

Public Member Functions

virtual void autoUpdateLod (Terrain *terrain, bool synchronous, const Any &data)
 Method to be called to change terrain's LOD level. More...
 
virtual uint32 getStrategyId ()
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 

Protected Member Functions

void autoUpdateLodByDistance (Terrain *terrain, bool synchronous, const Real holdDistance)
 Modifies Terrain's LOD level according to it's distance from camera. More...
 
int traverseTreeByDistance (TerrainQuadTreeNode *node, const Camera *cam, Real cFactor, const Real holdDistance)
 Traverse Terrain's QuadTree and calculate what LOD level is needed. More...
 

Detailed Description

Class implementing TerrainAutoUpdateLod interface.

It does LOD level increase/decrease according to camera's distance to Terrain.

Definition at line 76 of file OgreTerrainAutoUpdateLod.h.

Member Function Documentation

virtual void Ogre::TerrainAutoUpdateLodByDistance::autoUpdateLod ( Terrain terrain,
bool  synchronous,
const Any data 
)
virtual

Method to be called to change terrain's LOD level.

Parameters
terrainInstance of Terrain which LOD level is going to be changed
synchronousRun this as part of main thread or in background
dataAny user specific data.

Implements Ogre::TerrainAutoUpdateLod.

void Ogre::TerrainAutoUpdateLodByDistance::autoUpdateLodByDistance ( Terrain terrain,
bool  synchronous,
const Real  holdDistance 
)
protected

Modifies Terrain's LOD level according to it's distance from camera.

Parameters
holdDistanceHow far ahead of terrain's LOD level change this LOD level should be loaded.
virtual uint32 Ogre::TerrainAutoUpdateLodByDistance::getStrategyId ( )
inlinevirtual

Implements Ogre::TerrainAutoUpdateLod.

Definition at line 80 of file OgreTerrainAutoUpdateLod.h.

References Ogre::BY_DISTANCE.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

int Ogre::TerrainAutoUpdateLodByDistance::traverseTreeByDistance ( TerrainQuadTreeNode node,
const Camera cam,
Real  cFactor,
const Real  holdDistance 
)
protected

Traverse Terrain's QuadTree and calculate what LOD level is needed.


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