Public Member Functions | Protected Member Functions
Ogre::TerrainAutoUpdateLodByDistance Class Reference

Class implementing TerrainAutoUpdateLod interface. More...

#include <OgreTerrainAutoUpdateLod.h>

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

List of all members.

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, 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
void * operator new (size_t sz)
void * operator new (size_t sz, void *ptr)
 placement operator new
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
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.
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

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.

Implements Ogre::TerrainAutoUpdateLod.

Definition at line 81 of file OgreTerrainAutoUpdateLod.h.

References Ogre::BY_DISTANCE.

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

Definition at line 96 of file OgreMemoryAllocatedObject.h.

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

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.

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

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.

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.

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

Definition at line 73 of file OgreMemoryAllocatedObject.h.

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.

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.

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

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:

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:41:41