#include <OgreHeightmapTerrainPageSource.h>
Inheritance diagram for Ogre::HeightmapTerrainPageSource:
Public Member Functions | |
HeightmapTerrainPageSource () | |
~HeightmapTerrainPageSource () | |
void | shutdown (void) |
TerrainPageSource. | |
void | requestPage (ushort x, ushort y) |
TerrainPageSource. | |
void | expirePage (ushort x, ushort y) |
TerrainPageSource. | |
void | initialise (TerrainSceneManager *tsm, ushort tileSize, ushort pageSize, bool asyncLoading, TerrainPageSourceOptionList &optionList) |
TerrainPageSource. | |
Static Public Member Functions | |
void | addListener (TerrainPageSourceListener *pl) |
Register a class which will be called back whenever a new page is available. | |
void | removeListener (TerrainPageSourceListener *pl) |
Unregister a class which will be called back whenever a new page is available. | |
Protected Member Functions | |
void | loadHeightmap (void) |
Load a heightmap. | |
void | firePageConstructed (size_t pagex, size_t pagez, Real *heightData) |
Internal method for firing pageContructed events. | |
virtual TerrainPage * | buildPage (Real *heightData, const MaterialPtr &pMaterial) |
Utility method for building a page of tiles based on some source data, wherever that may have come from. | |
Protected Attributes | |
bool | mIsRaw |
Is this input RAW? | |
bool | mFlipTerrain |
Should we flip terrain vertically? | |
Image | mImage |
Image containing the source heightmap if loaded from non-RAW. | |
MemoryDataStreamPtr | mRawData |
Arbitrary data loaded from RAW. | |
TerrainPage * | mPage |
The (single) terrain page this source will provide. | |
String | mSource |
Source file name. | |
size_t | mRawSize |
Manual size if source is RAW. | |
uchar | mRawBpp |
Manual bpp if source is RAW. | |
TerrainSceneManager * | mSceneManager |
Link back to parent manager. | |
bool | mAsyncLoading |
Has asynchronous loading been requested? | |
unsigned short | mPageSize |
The expected size of the page in number of vertices. | |
unsigned short | mTileSize |
The expected size of a tile in number of vertices. |
Definition at line 40 of file OgreHeightmapTerrainPageSource.h.
|
|
|
|
|
Register a class which will be called back whenever a new page is available.
|
|
Utility method for building a page of tiles based on some source data, wherever that may have come from.
|
|
Implements Ogre::TerrainPageSource. |
|
Internal method for firing pageContructed events.
|
|
Reimplemented from Ogre::TerrainPageSource. |
|
Load a heightmap.
|
|
Unregister a class which will be called back whenever a new page is available.
|
|
Implements Ogre::TerrainPageSource. |
|
Reimplemented from Ogre::TerrainPageSource. |
|
Has asynchronous loading been requested?
Definition at line 138 of file OgreTerrainPageSource.h. |
|
Should we flip terrain vertically?
Definition at line 46 of file OgreHeightmapTerrainPageSource.h. |
|
Image containing the source heightmap if loaded from non-RAW.
Definition at line 48 of file OgreHeightmapTerrainPageSource.h. |
|
Is this input RAW?
Definition at line 44 of file OgreHeightmapTerrainPageSource.h. |
|
The (single) terrain page this source will provide.
Definition at line 52 of file OgreHeightmapTerrainPageSource.h. |
|
The expected size of the page in number of vertices.
Definition at line 140 of file OgreTerrainPageSource.h. |
|
Manual bpp if source is RAW.
Definition at line 58 of file OgreHeightmapTerrainPageSource.h. |
|
Arbitrary data loaded from RAW.
Definition at line 50 of file OgreHeightmapTerrainPageSource.h. |
|
Manual size if source is RAW.
Definition at line 56 of file OgreHeightmapTerrainPageSource.h. |
|
Link back to parent manager.
Definition at line 136 of file OgreTerrainPageSource.h. |
|
Source file name.
Definition at line 54 of file OgreHeightmapTerrainPageSource.h. |
|
The expected size of a tile in number of vertices.
Definition at line 142 of file OgreTerrainPageSource.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:47:13 2006