|
| TerrainPagedWorldSection (const String &name, PagedWorld *parent, SceneManager *sm) |
| Constructor. More...
|
|
virtual | ~TerrainPagedWorldSection () |
|
virtual bool | _loadProceduralPage (Page *page) |
| Give a section the opportunity to prepare page content procedurally. More...
|
|
virtual bool | _prepareProceduralPage (Page *page) |
| Give a section the opportunity to prepare page content procedurally. More...
|
|
virtual StreamSerialiser * | _readPageStream (PageID pageID) |
| Get a serialiser set up to read Page data for the given PageID. More...
|
|
virtual bool | _unloadProceduralPage (Page *page) |
| Give a section the opportunity to unload page content procedurally. More...
|
|
virtual bool | _unprepareProceduralPage (Page *page) |
| Give a section the opportunity to unprepare page content procedurally. More...
|
|
virtual StreamSerialiser * | _writePageStream (PageID pageID) |
| Get a serialiser set up to write Page data for the given PageID. More...
|
|
virtual bool | canHandleRequest (const Request *req, const WorkQueue *srcQ) |
| Return whether this handler can process a given request. More...
|
|
virtual bool | canHandleResponse (const Response *res, const WorkQueue *srcQ) |
| Return whether this handler can process a given response. More...
|
|
virtual void | frameEnd (Real timeElapsed) |
| Called when the frame ends. More...
|
|
virtual void | frameStart (Real timeSinceLastFrame) |
| Called when the frame starts. More...
|
|
virtual const AxisAlignedBox & | getBoundingBox () const |
| Get the bounds of this section. More...
|
|
virtual Grid2DPageStrategy * | getGridStrategy () const |
| Convenience method - this section always uses a grid strategy. More...
|
|
virtual Grid2DPageStrategyData * | getGridStrategyData () const |
| Convenience method - this section always uses a grid strategy. More...
|
|
virtual Real | getHoldRadius () |
| Get the Holding radius. More...
|
|
virtual uint32 | getLoadingIntervalMs () const |
| Get the interval between the loading of single pages in milliseconds (ms) More...
|
|
virtual Real | getLoadRadius () const |
| Get the loading radius. More...
|
|
PageManager * | getManager () const |
|
virtual const String & | getName () const |
| Get the name of this section. More...
|
|
virtual Page * | getPage (PageID pageID) |
| Retrieves a Page. More...
|
|
virtual PageID | getPageID (const Vector3 &worldPos) |
| Get the page ID for a given world position. More...
|
|
virtual PageProvider * | getPageProvider () const |
| Get the PageProvider which can provide streams for Pages in this section. More...
|
|
virtual int32 | getPageRangeMaxX () const |
| get the index range of all Pages (values outside this will be ignored) More...
|
|
virtual int32 | getPageRangeMaxY () const |
| get the index range of all Pages (values outside this will be ignored) More...
|
|
virtual int32 | getPageRangeMinX () const |
| get the index range of all Pages (values outside this will be ignored) More...
|
|
virtual int32 | getPageRangeMinY () const |
| get the index range of all Pages (values outside this will be ignored) More...
|
|
virtual SceneManager * | getSceneManager () const |
| Get the current SceneManager. More...
|
|
virtual PageStrategy * | getStrategy () const |
| Get the page strategy which this section is using. More...
|
|
virtual PageStrategyData * | getStrategyData () const |
| Get the data required by the PageStrategy which is specific to this world section. More...
|
|
virtual TerrainGroup * | getTerrainGroup () |
| Get the TerrainGroup which this world section is using. More...
|
|
virtual const String & | getType () |
| Get the type name of this section. More...
|
|
virtual PagedWorld * | getWorld () const |
| Get the parent world. More...
|
|
WorkQueue::Response * | handleRequest (const WorkQueue::Request *req, const WorkQueue *srcQ) |
| WorkQueue::RequestHandler override. More...
|
|
void | handleResponse (const WorkQueue::Response *res, const WorkQueue *srcQ) |
| WorkQueue::ResponseHandler override. More...
|
|
virtual void | holdPage (PageID pageID) |
| Ask for a page to be kept in memory if it's loaded. More...
|
|
virtual void | init (TerrainGroup *grp) |
| Initialise this section from an existing TerrainGroup instance. More...
|
|
virtual bool | load (StreamSerialiser &stream) |
| Load this section from a stream (returns true if successful) More...
|
|
virtual Page * | loadOrCreatePage (const Vector3 &worldPos) |
| Load or create a page against this section covering the given world space position. More...
|
|
void | loadPage (PageID pageID, bool forceSynchronous=false) |
| Overridden from PagedWorldSection. More...
|
|
virtual void | notifyCamera (Camera *cam) |
| Notify a section of the current camera. More...
|
|
virtual void | removeAllPages () |
| Remove all pages immediately. More...
|
|
virtual void | save (StreamSerialiser &stream) |
| Save this section to a stream. More...
|
|
virtual void | setBoundingBox (const AxisAlignedBox &box) |
| Set the bounds of this section. More...
|
|
void | setDefiner (TerrainDefiner *terrainDefiner) |
|
virtual void | setHoldRadius (Real sz) |
| Set the Holding radius. More...
|
|
virtual void | setLoadingIntervalMs (uint32 loadingIntervalMs) |
| Set the interval between the loading of single pages in milliseconds (ms) More...
|
|
virtual void | setLoadRadius (Real sz) |
| Set the loading radius. More...
|
|
virtual void | setPageProvider (PageProvider *provider) |
| Set the PageProvider which can provide streams Pages in this section. More...
|
|
virtual void | setPageRange (int32 minX, int32 minY, int32 maxX, int32 maxY) |
| Set the index range of all Pages (values outside this will be ignored) More...
|
|
virtual void | setPageRangeMaxX (int32 maxX) |
| Set the index range of all Pages (values outside this will be ignored) More...
|
|
virtual void | setPageRangeMaxY (int32 maxY) |
| Set the index range of all Pages (values outside this will be ignored) More...
|
|
virtual void | setPageRangeMinX (int32 minX) |
| Set the index range of all Pages (values outside this will be ignored) More...
|
|
virtual void | setPageRangeMinY (int32 minY) |
| Set the index range of all Pages (values outside this will be ignored) More...
|
|
virtual void | setSceneManager (SceneManager *sm) |
| Change the SceneManager. More...
|
|
virtual void | setSceneManager (const String &smName) |
| Change the SceneManager. More...
|
|
virtual void | setStrategy (PageStrategy *strat) |
| Change the page strategy. More...
|
|
virtual void | setStrategy (const String &stratName) |
| Change the page strategy. More...
|
|
void | unloadPage (PageID pageID, bool forceSynchronous=false) |
| Overridden from PagedWorldSection. More...
|
|
virtual void | unloadPage (Page *p, bool forceSynchronous=false) |
| Ask for a page to be unloaded with the given (section-relative) PageID. More...
|
|
A world section which includes paged terrain.
- When creating this in code, the user should make use of the helper functions on the TerrainPaging class. The basic sequence is that you define your terrain settings in a TerrainGroup, and then create an instance of TerrainPagedWorldSection via TerrainPaging::createWorldSection. That's basically all there is to it - the normal rules of TerrainGroup apply, it's just that instead of having to choose when to try to load / unload pages from the TerrainGroup, that is automatically done by the paging system. You can also create other types of content in this PagedWorldSection other than terrain, it's just that this comes with terrain handling built-in.
- When this world data is saved, you basically get 3 sets of data - firstly the top-level 'world data' which is where the definition of the world sections are stored (and hence, the definition of this class, although none of the terrain instance content is included). Secondly, you get a number of .page files which include any other content that you might have inserted into the pages. Lastly, you get the standard terrain data files which are saved as per TerrainGroup.