OGRE  1.9.0
Public Member Functions | Protected Member Functions | List of all members
Ogre::TerrainAutoUpdateLodByDistance Class Reference

Class implementing TerrainAutoUpdateLod interface. More...

#include <OgreTerrainAutoUpdateLod.h>

Inheritance diagram for Ogre::TerrainAutoUpdateLodByDistance:
Inheritance graph
[legend]

Public Member Functions

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

Protected Member Functions

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

Detailed Description

Class implementing TerrainAutoUpdateLod interface.

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

Definition at line 77 of file OgreTerrainAutoUpdateLod.h.

Member Function Documentation

◆ autoUpdateLod()

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.

◆ autoUpdateLodByDistance()

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.

◆ getStrategyId()

virtual uint32 Ogre::TerrainAutoUpdateLodByDistance::getStrategyId ( )
virtual

Implements Ogre::TerrainAutoUpdateLod.

Definition at line 81 of file OgreTerrainAutoUpdateLod.h.

References Ogre::BY_DISTANCE.

◆ operator delete() [1/3]

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

Definition at line 96 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [2/3]

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

Definition at line 108 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [3/3]

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [1/2]

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [2/2]

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

Definition at line 119 of file OgreMemoryAllocatedObject.h.

◆ operator new() [1/3]

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

Definition at line 73 of file OgreMemoryAllocatedObject.h.

◆ operator new() [2/3]

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

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

◆ operator new() [3/3]

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

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [1/2]

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

Definition at line 91 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [2/2]

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

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

◆ traverseTreeByDistance()

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: