Terrain LOD data manager.
More...
#include <OgreTerrainLodManager.h>
|
| TerrainLodManager (Terrain *t, DataStreamPtr &stream) |
|
| TerrainLodManager (Terrain *t, const String &filename="") |
|
virtual | ~TerrainLodManager () |
|
virtual bool | canHandleRequest (const WorkQueue::Request *req, const WorkQueue *srcQ) |
| Return whether this handler can process a given request. More...
|
|
virtual bool | canHandleResponse (const WorkQueue::Response *res, const WorkQueue *srcQ) |
| Return whether this handler can process a given response. More...
|
|
void | close () |
|
void | fillBufferAtLod (uint lodLevel, const float *data, uint dataSize) |
| Copy geometry data from buffer to mHeightData/mDeltaData. More...
|
|
int | getHighestLodLoaded () |
|
int | getHighestLodPrepared () |
|
LodInfo & | getLodInfo (uint lodLevel) |
|
int | getTargetLodLevel () |
|
virtual WorkQueue::Response * | handleRequest (const WorkQueue::Request *req, const WorkQueue *srcQ) |
| The handler method every subclass must implement. More...
|
|
virtual void | handleResponse (const WorkQueue::Response *res, const WorkQueue *srcQ) |
| The handler method every subclass must implement. More...
|
|
bool | isOpen () const |
|
void | open (const String &filename) |
|
void | readLodData (uint16 lowerLodBound, uint16 higherLodBound) |
| Read separated geometry data from file into allocated memory. More...
|
|
void | updateToLodLevel (int lodLevel, bool synchronous=false) |
|
void | waitForDerivedProcesses () |
|
Terrain LOD data manager.
- This class is used for managing terrain LOD data's loading, unloading.
◆ LodData
◆ LodsData
◆ TerrainLodManager() [1/2]
◆ TerrainLodManager() [2/2]
Ogre::TerrainLodManager::TerrainLodManager |
( |
Terrain * |
t, |
|
|
const String & |
filename = "" |
|
) |
| |
◆ ~TerrainLodManager()
virtual Ogre::TerrainLodManager::~TerrainLodManager |
( |
| ) |
|
|
virtual |
◆ open()
void Ogre::TerrainLodManager::open |
( |
const String & |
filename | ) |
|
◆ close()
void Ogre::TerrainLodManager::close |
( |
| ) |
|
◆ isOpen()
bool Ogre::TerrainLodManager::isOpen |
( |
| ) |
const |
◆ canHandleRequest()
◆ canHandleResponse()
◆ handleRequest()
The handler method every subclass must implement.
If a failure is encountered, return a Response with a failure result rather than raise an exception.
- Parameters
-
req | The Request structure, which is effectively owned by the handler during this call. It must be attached to the returned Response regardless of success or failure. |
srcQ | The work queue that this request originated from |
- Returns
- Pointer to a Response object - the caller is responsible for deleting the object.
Implements Ogre::WorkQueue::RequestHandler.
◆ handleResponse()
The handler method every subclass must implement.
- Parameters
-
res | The Response structure. The caller is responsible for deleting this after the call is made, none of the data contained (except pointers to structures in user Any data) will persist after this call is returned. |
srcQ | The work queue that this request originated from |
Implements Ogre::WorkQueue::ResponseHandler.
◆ updateToLodLevel()
void Ogre::TerrainLodManager::updateToLodLevel |
( |
int |
lodLevel, |
|
|
bool |
synchronous = false |
|
) |
| |
◆ saveLodData()
Save each LOD level separately compressed so seek is possible.
◆ fillBufferAtLod()
void Ogre::TerrainLodManager::fillBufferAtLod |
( |
uint |
lodLevel, |
|
|
const float * |
data, |
|
|
uint |
dataSize |
|
) |
| |
Copy geometry data from buffer to mHeightData/mDeltaData.
- Parameters
-
lodLevel | A LOD level to work with |
data | Buffer which holds geometry data if separated form |
◆ readLodData()
void Ogre::TerrainLodManager::readLodData |
( |
uint16 |
lowerLodBound, |
|
|
uint16 |
higherLodBound |
|
) |
| |
Read separated geometry data from file into allocated memory.
- Parameters
-
lowerLodBound | Lower bound of LOD levels to load |
higherLodBound | Upper bound of LOD levels to load |
◆ waitForDerivedProcesses()
void Ogre::TerrainLodManager::waitForDerivedProcesses |
( |
| ) |
|
◆ getHighestLodPrepared()
int Ogre::TerrainLodManager::getHighestLodPrepared |
( |
| ) |
|
|
inline |
◆ getHighestLodLoaded()
int Ogre::TerrainLodManager::getHighestLodLoaded |
( |
| ) |
|
|
inline |
◆ getTargetLodLevel()
int Ogre::TerrainLodManager::getTargetLodLevel |
( |
| ) |
|
|
inline |
◆ getLodInfo()
LodInfo& Ogre::TerrainLodManager::getLodInfo |
( |
uint |
lodLevel | ) |
|
|
inline |
◆ TERRAINLODDATA_CHUNK_ID
const uint32 Ogre::TerrainLodManager::TERRAINLODDATA_CHUNK_ID |
|
static |
◆ TERRAINLODDATA_CHUNK_VERSION
const uint16 Ogre::TerrainLodManager::TERRAINLODDATA_CHUNK_VERSION |
|
static |
◆ WORKQUEUE_LOAD_LOD_DATA_REQUEST
const uint16 Ogre::TerrainLodManager::WORKQUEUE_LOAD_LOD_DATA_REQUEST |
|
static |
The documentation for this class was generated from the following file: