29 #ifndef __Ogre_TerrainPagedWorldSection_H__
30 #define __Ogre_TerrainPagedWorldSection_H__
41 class Grid2DPageStrategy;
42 class Grid2DPageStrategyData;
112 virtual void setLoadRadius(
Real sz);
114 virtual Real getLoadRadius()
const;
116 virtual void setHoldRadius(
Real sz);
118 virtual Real getHoldRadius();
122 virtual void setPageRangeMinX(
int32 minX);
124 virtual void setPageRangeMinY(
int32 minY);
126 virtual void setPageRangeMaxX(
int32 maxX);
128 virtual void setPageRangeMaxY(
int32 maxY);
130 virtual int32 getPageRangeMinX()
const;
132 virtual int32 getPageRangeMinY()
const;
134 virtual int32 getPageRangeMaxX()
const;
136 virtual int32 getPageRangeMaxY()
const;
144 virtual void setLoadingIntervalMs(
uint32 loadingIntervalMs);
146 virtual uint32 getLoadingIntervalMs()
const;
149 void loadPage(
PageID pageID,
bool forceSynchronous =
false);
151 void unloadPage(
PageID pageID,
bool forceSynchronous =
false);
174 mTerrainDefiner = terrainDefiner;
190 virtual void syncSettings();
Specialisation of PageStrategyData for Grid2DPageStrategy.
float Real
Software floating point type.
General purpose request structure.
General purpose response structure.
Manages the organisation and rendering of a 'scene' i.e.
This class represents a collection of pages which make up a world.
Page strategy which loads new pages based on a regular 2D grid.
std::list< PageID > mPagesInLoading
static const uint16 WORKQUEUE_LOAD_TERRAIN_PAGE_REQUEST
virtual void defineTerrain(long x, long y)
Define a 'slot' in the terrain grid - in this case to be loaded from a generated file name...
TerrainGroup * mTerrainGroup
Interface definition for a handler of requests.
A world section which includes paged terrain.
virtual ~TerrainDefiner()
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
unsigned long mNextLoadingTime
#define _OgreTerrainExport
Utility class providing helper methods for reading / writing structured data held in a DataStream...
Interface definition for a handler of responses.
virtual void define(TerrainGroup *terrainGroup, long x, long y)
TerrainDefiner * mTerrainDefiner
uint32 mLoadingIntervalMs
void setDefiner(TerrainDefiner *terrainDefiner)
Interface to a general purpose request / response style background work queue.
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
Helper class to assist you in managing multiple terrain instances that are connected to each other...
uint32 PageID
Identifier for a page.
virtual TerrainGroup * getTerrainGroup()
Get the TerrainGroup which this world section is using.