OGRE  13.4 Object-Oriented Graphics Rendering Engine
Ogre::TerrainPaging Class Reference

This class is the 'core' class for paging terrain, that will integrate with the larger paging system and provide the appropriate utility classes required. More...

#include <OgreTerrainPaging.h>

Inheritance diagram for Ogre::TerrainPaging:

## Public Member Functions

TerrainPaging (PageManager *pageMgr)
Constructor. More...

virtual ~TerrainPaging ()

Create a TerrainPagedWorldSection. More...

## Detailed Description

This class is the 'core' class for paging terrain, that will integrate with the larger paging system and provide the appropriate utility classes required.

You should construct this class after PageManager and before any PagedWorlds that might use it are created / loaded. Once constructed, it will make the "Terrain" PagedWorldSection type available, which uses a grid strategy for paging and uses TerrainGroup for the content. Other content can be embedded in the pages too but the terrain is done like this in order to maintain connections between pages and other global data.

Because PagedWorld and all attached classes have to be loadable from a stream, most of the functionality is provided behind generalised interfaces. However, for constructing a paged terrain in code you can use utility methods on this class. This procedurally created data can then be saved in a generic form which will reconstruct on loading. Alternatively you can use the generic methods and simply cast based on your prior knowledge of the types (or checking the type names exposed).

## ◆ TerrainPaging()

 Ogre::TerrainPaging::TerrainPaging ( PageManager * pageMgr )

Constructor.

Parameters
 pageMgr The PageManager which this class should attach to.

## ◆ ~TerrainPaging()

 virtual Ogre::TerrainPaging::~TerrainPaging ( )
virtual

## ◆ createWorldSection()

 TerrainPagedWorldSection* Ogre::TerrainPaging::createWorldSection ( PagedWorld * world, TerrainGroup * terrainGroup, Real loadRadius, Real holdRadius, int32 minX = -10, int32 minY = -10, int32 maxX = 10, int32 maxY = 10, const String & sectionName = BLANKSTRING, uint32 loadingIntervalMs = 900 )

Create a TerrainPagedWorldSection.

This is the simplest way to create a world section which is configured to contain terrain (among other objects if you want). You can also do this by calling PagedWorld::createSection with the type "Terrain" but there are more steps to configuring it that way (note: this is how loading works though so it remains generic).

Parameters