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();
TerrainGroup * mTerrainGroup
Specialisation of PageStrategyData for Grid2DPageStrategy.
Interface to a general purpose request / response style background work queue.
A world section which includes paged terrain.
TerrainDefiner * mTerrainDefiner
uint32 mLoadingIntervalMs
float Real
Software floating point type.
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
static const uint16 WORKQUEUE_LOAD_TERRAIN_PAGE_REQUEST
std::list< PageID > mPagesInLoading
General purpose request structure.
Helper class to assist you in managing multiple terrain instances that are connected to each other...
General purpose response structure.
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...
#define _OgreTerrainExport
This class represents a collection of pages which make up a world.
Utility class providing helper methods for reading / writing structured data held in a DataStream...
void setDefiner(TerrainDefiner *terrainDefiner)
virtual TerrainGroup * getTerrainGroup()
Get the TerrainGroup which this world section is using.
Page strategy which loads new pages based on a regular 2D grid.
uint32 PageID
Identifier for a page.
unsigned long mNextLoadingTime
Interface definition for a handler of responses.
virtual void define(TerrainGroup *terrainGroup, long x, long y)
virtual ~TerrainDefiner()
Manages the organisation and rendering of a 'scene' i.e.
Interface definition for a handler of requests.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...