#include <OgreTerrainPage.h>
Public Types | |
typedef std::vector< TerrainRenderable * > | TerrainRow |
typedef std::vector< TerrainRow > | Terrain2D |
Public Methods | |
TerrainPage (unsigned short numTiles) | |
The main constructor. | |
virtual | ~TerrainPage () |
Destructor, will organise the deletion of pages. | |
void | linkNeighbours (void) |
After TerrainRenderables have been populated, this method adds the neighbour links. | |
TerrainRenderable * | getTerrainTile (const Vector3 &pt) |
Returns the TerrainRenderable that contains the given pt. | |
Public Attributes | |
Terrain2D | tiles |
2-dimensional vector of tiles, pre-allocated to the correct size | |
unsigned short | tilesPerPage |
The number of tiles across a page. | |
SceneNode * | pageSceneNode |
The scene node to which all the tiles for this page are attached. |
All this class does do is pre-create a 2D vector of 'slots' in which to place the TerrainRenderable pointers, which it does on construction. Note that this structure is public to allow completely free access to users of this class.
Definition at line 46 of file OgreTerrainPage.h.
|
Definition at line 50 of file OgreTerrainPage.h. |
|
Definition at line 49 of file OgreTerrainPage.h. Referenced by TerrainPage(). |
|
The main constructor.
Definition at line 31 of file OgreTerrainPage.cpp. References pageSceneNode, TerrainRow, tiles, and tilesPerPage. |
|
Destructor, will organise the deletion of pages.
Definition at line 50 of file OgreTerrainPage.cpp. References tiles. |
|
Returns the TerrainRenderable that contains the given pt. If no tile exists at the point, it returns 0; Definition at line 91 of file OgreTerrainPage.cpp. References Ogre::AxisAlignedBox::getAllCorners(), tiles, Ogre::Vector3::x, and Ogre::Vector3::z. Referenced by Ogre::TerrainSceneManager::getTerrainTile(). |
|
After TerrainRenderables have been populated, this method adds the neighbour links.
Definition at line 67 of file OgreTerrainPage.cpp. References tiles, and tilesPerPage. Referenced by Ogre::TerrainPageSource::buildPage(). |
|
The scene node to which all the tiles for this page are attached.
Definition at line 57 of file OgreTerrainPage.h. Referenced by Ogre::TerrainSceneManager::attachPage(), Ogre::TerrainPageSource::buildPage(), and TerrainPage(). |
|
2-dimensional vector of tiles, pre-allocated to the correct size
Definition at line 53 of file OgreTerrainPage.h. Referenced by Ogre::TerrainPageSource::buildPage(), getTerrainTile(), linkNeighbours(), TerrainPage(), and ~TerrainPage(). |
|
The number of tiles across a page.
Definition at line 55 of file OgreTerrainPage.h. Referenced by linkNeighbours(), and TerrainPage(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:50:03 2004