Go to the documentation of this file.
29 #ifndef __Ogre_TerrainPagedWorldSection_H__
30 #define __Ogre_TerrainPagedWorldSection_H__
41 class Grid2DPageStrategy;
42 class Grid2DPageStrategyData;
174 mTerrainDefiner = terrainDefiner;
virtual int32 getPageRangeMinY() const
get the index range of all Pages (values outside this will be ignored)
virtual void setPageRange(int32 minX, int32 minY, int32 maxX, int32 maxY)
Set the index range of all Pages (values outside this will be ignored)
virtual void init(TerrainGroup *grp)
Initialise this section from an existing TerrainGroup instance.
virtual void setLoadRadius(Real sz)
Set the loading radius.
virtual Grid2DPageStrategy * getGridStrategy() const
Convenience method - this section always uses a grid strategy.
virtual void setHoldRadius(Real sz)
Set the Holding radius.
virtual ~TerrainPagedWorldSection()
Helper class to assist you in managing multiple terrain instances that are connected to each other.
Interface to a general purpose request / response style background work queue.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
General purpose request structure.
std::list< PageID > mPagesInLoading
Page strategy which loads new pages based on a regular 2D grid.
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.
virtual Real getLoadRadius() const
Get the loading radius.
#define _OgreTerrainExport
void unloadPage(PageID pageID, bool forceSynchronous=false)
Overridden from PagedWorldSection.
General purpose response structure.
TerrainPagedWorldSection(const String &name, PagedWorld *parent, SceneManager *sm)
Constructor.
virtual void setPageRangeMinY(int32 minY)
Set the index range of all Pages (values outside this will be ignored)
void setDefiner(TerrainDefiner *terrainDefiner)
virtual void setPageRangeMinX(int32 minX)
Set the index range of all Pages (values outside this will be ignored)
virtual void setLoadingIntervalMs(uint32 loadingIntervalMs)
Set the interval between the loading of single pages in milliseconds (ms)
virtual ~TerrainDefiner()
uint32 PageID
Identifier for a page.
virtual uint32 getLoadingIntervalMs() const
Get the interval between the loading of single pages in milliseconds (ms)
virtual int32 getPageRangeMaxY() const
get the index range of all Pages (values outside this will be ignored)
Manages the organisation and rendering of a 'scene' i.e.
void loadPage(PageID pageID, bool forceSynchronous=false)
Overridden from PagedWorldSection.
virtual Grid2DPageStrategyData * getGridStrategyData() const
Convenience method - this section always uses a grid strategy.
Interface definition for a handler of responses.
uint32 mLoadingIntervalMs
unsigned long mNextLoadingTime
This class represents a collection of pages which make up a world.
virtual void define(TerrainGroup *terrainGroup, long x, long y)
void saveSubtypeData(StreamSerialiser &ser)
A world section which includes paged terrain.
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
virtual void setPageRangeMaxX(int32 maxX)
Set the index range of all Pages (values outside this will be ignored)
void handleResponse(const WorkQueue::Response *res, const WorkQueue *srcQ)
WorkQueue::ResponseHandler override.
Utility class providing helper methods for reading / writing structured data held in a DataStream.
virtual void syncSettings()
Specialisation of PageStrategyData for Grid2DPageStrategy.
virtual void setPageRangeMaxY(int32 maxY)
Set the index range of all Pages (values outside this will be ignored)
WorkQueue::Response * handleRequest(const WorkQueue::Request *req, const WorkQueue *srcQ)
WorkQueue::RequestHandler override.
TerrainGroup * mTerrainGroup
Interface definition for a handler of requests.
float Real
Software floating point type.
void loadSubtypeData(StreamSerialiser &ser)
Overridden from PagedWorldSection.
virtual int32 getPageRangeMaxX() const
get the index range of all Pages (values outside this will be ignored)
virtual int32 getPageRangeMinX() const
get the index range of all Pages (values outside this will be ignored)
virtual Real getHoldRadius()
Get the Holding radius.
virtual TerrainGroup * getTerrainGroup()
Get the TerrainGroup which this world section is using.
static const uint16 WORKQUEUE_LOAD_TERRAIN_PAGE_REQUEST
TerrainDefiner * mTerrainDefiner
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.