A world section which includes paged terrain. More...
#include <OgreTerrainPagedWorldSection.h>

Public Types | |
| typedef map< PageID, Page * >::type | PageMap |
Public Member Functions | |
| TerrainPagedWorldSection (const String &name, PagedWorld *parent, SceneManager *sm) | |
| Constructor. | |
| ~TerrainPagedWorldSection () | |
| virtual void | init (TerrainGroup *grp) |
| Initialise this section from an existing TerrainGroup instance. | |
| virtual TerrainGroup * | getTerrainGroup () |
| Get the TerrainGroup which this world section is using. | |
| virtual void | setLoadRadius (Real sz) |
| Set the loading radius. | |
| virtual Real | getLoadRadius () const |
| Get the loading radius. | |
| virtual void | setHoldRadius (Real sz) |
| Set the Holding radius. | |
| virtual Real | getHoldRadius () |
| Get the Holding radius. | |
| 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 | setPageRangeMinX (int32 minX) |
| Set the index range of all Pages (values outside this will be ignored) | |
| virtual void | setPageRangeMinY (int32 minY) |
| Set the index range of all Pages (values outside this will be ignored) | |
| virtual void | setPageRangeMaxX (int32 maxX) |
| Set the index range of all Pages (values outside this will be ignored) | |
| virtual void | setPageRangeMaxY (int32 maxY) |
| Set 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 int32 | getPageRangeMinY () const |
| get the index range of all Pages (values outside this will be ignored) | |
| virtual int32 | getPageRangeMaxX () const |
| get the index range of all Pages (values outside this will be ignored) | |
| virtual int32 | getPageRangeMaxY () const |
| get the index range of all Pages (values outside this will be ignored) | |
| virtual Grid2DPageStrategy * | getGridStrategy () const |
| Convenience method - this section always uses a grid strategy. | |
| virtual Grid2DPageStrategyData * | getGridStrategyData () const |
| Convenience method - this section always uses a grid strategy. | |
| void | loadPage (PageID pageID, bool forceSynchronous=false) |
| Overridden from PagedWorldSection. | |
| void | unloadPage (PageID pageID, bool forceSynchronous=false) |
| Overridden from PagedWorldSection. | |
| PageManager * | getManager () const |
| virtual const String & | getName () const |
| Get the name of this section. | |
| virtual PageStrategy * | getStrategy () const |
| Get the page strategy which this section is using. | |
| virtual void | setStrategy (PageStrategy *strat) |
| Change the page strategy. | |
| virtual void | setStrategy (const String &stratName) |
| Change the page strategy. | |
| virtual void | setSceneManager (SceneManager *sm) |
| Change the SceneManager. | |
| virtual void | setSceneManager (const String &smName) |
| Change the SceneManager. | |
| virtual SceneManager * | getSceneManager () const |
| Get the current SceneManager. | |
| virtual PagedWorld * | getWorld () const |
| Get the parent world. | |
| virtual PageStrategyData * | getStrategyData () const |
| Get the data required by the PageStrategy which is specific to this world section. | |
| virtual void | setBoundingBox (const AxisAlignedBox &box) |
| Set the bounds of this section. | |
| virtual const AxisAlignedBox & | getBoundingBox () const |
| Get the bounds of this section. | |
| virtual bool | load (StreamSerialiser &stream) |
| Load this section from a stream (returns true if successful) | |
| virtual void | save (StreamSerialiser &stream) |
| Save this section to a stream. | |
| virtual void | frameStart (Real timeSinceLastFrame) |
| Called when the frame starts. | |
| virtual void | frameEnd (Real timeElapsed) |
| Called when the frame ends. | |
| virtual void | notifyCamera (Camera *cam) |
| Notify a section of the current camera. | |
| virtual Page * | loadOrCreatePage (const Vector3 &worldPos) |
| Load or create a page against this section covering the given world space position. | |
| virtual PageID | getPageID (const Vector3 &worldPos) |
| Get the page ID for a given world position. | |
| virtual void | unloadPage (Page *p, bool forceSynchronous=false) |
| Ask for a page to be unloaded with the given (section-relative) PageID. | |
| virtual bool | _prepareProceduralPage (Page *page) |
| Give a section the opportunity to prepare page content procedurally. | |
| virtual bool | _loadProceduralPage (Page *page) |
| Give a section the opportunity to prepare page content procedurally. | |
| virtual bool | _unloadProceduralPage (Page *page) |
| Give a section the opportunity to unload page content procedurally. | |
| virtual bool | _unprepareProceduralPage (Page *page) |
| Give a section the opportunity to unprepare page content procedurally. | |
| virtual void | holdPage (PageID pageID) |
| Ask for a page to be kept in memory if it's loaded. | |
| virtual Page * | getPage (PageID pageID) |
| Retrieves a Page. | |
| virtual void | removeAllPages () |
| Remove all pages immediately. | |
| virtual void | setPageProvider (PageProvider *provider) |
| Set the PageProvider which can provide streams Pages in this section. | |
| virtual PageProvider * | getPageProvider () const |
| Get the PageProvider which can provide streams for Pages in this section. | |
| virtual StreamSerialiser * | _readPageStream (PageID pageID) |
| Get a serialiser set up to read Page data for the given PageID. | |
| virtual StreamSerialiser * | _writePageStream (PageID pageID) |
| Get a serialiser set up to write Page data for the given PageID. | |
| virtual const String & | getType () |
| Get the type name of this section. | |
| void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info | |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz, void *ptr) |
| placement operator new | |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info | |
| void * | operator new[] (size_t sz) |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr, void *) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
Static Public Attributes | |
| static const uint32 | CHUNK_ID |
| static const uint16 | CHUNK_VERSION |
Protected Member Functions | |
| void | loadSubtypeData (StreamSerialiser &ser) |
| Overridden from PagedWorldSection. | |
| void | saveSubtypeData (StreamSerialiser &ser) |
| virtual void | syncSettings () |
Protected Attributes | |
| TerrainGroup * | mTerrainGroup |
| String | mName |
| AxisAlignedBox | mAABB |
| PagedWorld * | mParent |
| PageStrategy * | mStrategy |
| PageStrategyData * | mStrategyData |
| PageMap | mPages |
| PageProvider * | mPageProvider |
| SceneManager * | mSceneMgr |
Friends | |
| _OgrePagingExport friend std::ostream & | operator<< (std::ostream &o, const PagedWorldSection &p) |
| Function for writing to a stream. | |
A world section which includes paged terrain.
Definition at line 80 of file OgreTerrainPagedWorldSection.h.
typedef map<PageID, Page*>::type Ogre::PagedWorldSection::PageMap [inherited] |
Definition at line 72 of file OgrePagedWorldSection.h.
| Ogre::TerrainPagedWorldSection::TerrainPagedWorldSection | ( | const String & | name, |
| PagedWorld * | parent, | ||
| SceneManager * | sm | ||
| ) |
Constructor.
| name | The name of the section |
| parent | The parent world |
| sm | The SceneManager to use (can be left as null if to be loaded) |
| virtual bool Ogre::PagedWorldSection::_loadProceduralPage | ( | Page * | page | ) | [virtual, inherited] |
Give a section the opportunity to prepare page content procedurally.
| virtual bool Ogre::PagedWorldSection::_prepareProceduralPage | ( | Page * | page | ) | [virtual, inherited] |
Give a section the opportunity to prepare page content procedurally.
| virtual StreamSerialiser* Ogre::PagedWorldSection::_readPageStream | ( | PageID | pageID | ) | [virtual, inherited] |
Get a serialiser set up to read Page data for the given PageID.
| pageID | The ID of the page being requested |
| virtual bool Ogre::PagedWorldSection::_unloadProceduralPage | ( | Page * | page | ) | [virtual, inherited] |
Give a section the opportunity to unload page content procedurally.
| virtual bool Ogre::PagedWorldSection::_unprepareProceduralPage | ( | Page * | page | ) | [virtual, inherited] |
Give a section the opportunity to unprepare page content procedurally.
| virtual StreamSerialiser* Ogre::PagedWorldSection::_writePageStream | ( | PageID | pageID | ) | [virtual, inherited] |
Get a serialiser set up to write Page data for the given PageID.
| pageID | The ID of the page being requested |
| virtual void Ogre::PagedWorldSection::frameEnd | ( | Real | timeElapsed | ) | [virtual, inherited] |
Called when the frame ends.
| virtual void Ogre::PagedWorldSection::frameStart | ( | Real | timeSinceLastFrame | ) | [virtual, inherited] |
Called when the frame starts.
| virtual const AxisAlignedBox& Ogre::PagedWorldSection::getBoundingBox | ( | ) | const [virtual, inherited] |
Get the bounds of this section.
| virtual Grid2DPageStrategy* Ogre::TerrainPagedWorldSection::getGridStrategy | ( | ) | const [virtual] |
Convenience method - this section always uses a grid strategy.
| virtual Grid2DPageStrategyData* Ogre::TerrainPagedWorldSection::getGridStrategyData | ( | ) | const [virtual] |
Convenience method - this section always uses a grid strategy.
| virtual Real Ogre::TerrainPagedWorldSection::getHoldRadius | ( | ) | [virtual] |
Get the Holding radius.
| virtual Real Ogre::TerrainPagedWorldSection::getLoadRadius | ( | ) | const [virtual] |
Get the loading radius.
| PageManager* Ogre::PagedWorldSection::getManager | ( | ) | const [inherited] |
| virtual const String& Ogre::PagedWorldSection::getName | ( | void | ) | const [virtual, inherited] |
Get the name of this section.
Definition at line 99 of file OgrePagedWorldSection.h.
| virtual Page* Ogre::PagedWorldSection::getPage | ( | PageID | pageID | ) | [virtual, inherited] |
| virtual PageID Ogre::PagedWorldSection::getPageID | ( | const Vector3 & | worldPos | ) | [virtual, inherited] |
Get the page ID for a given world position.
| virtual PageProvider* Ogre::PagedWorldSection::getPageProvider | ( | ) | const [virtual, inherited] |
Get the PageProvider which can provide streams for Pages in this section.
Definition at line 271 of file OgrePagedWorldSection.h.
| virtual int32 Ogre::TerrainPagedWorldSection::getPageRangeMaxX | ( | ) | const [virtual] |
get the index range of all Pages (values outside this will be ignored)
| virtual int32 Ogre::TerrainPagedWorldSection::getPageRangeMaxY | ( | ) | const [virtual] |
get the index range of all Pages (values outside this will be ignored)
| virtual int32 Ogre::TerrainPagedWorldSection::getPageRangeMinX | ( | ) | const [virtual] |
get the index range of all Pages (values outside this will be ignored)
| virtual int32 Ogre::TerrainPagedWorldSection::getPageRangeMinY | ( | ) | const [virtual] |
get the index range of all Pages (values outside this will be ignored)
| virtual SceneManager* Ogre::PagedWorldSection::getSceneManager | ( | ) | const [virtual, inherited] |
Get the current SceneManager.
Definition at line 130 of file OgrePagedWorldSection.h.
| virtual PageStrategy* Ogre::PagedWorldSection::getStrategy | ( | ) | const [virtual, inherited] |
Get the page strategy which this section is using.
Definition at line 101 of file OgrePagedWorldSection.h.
| virtual PageStrategyData* Ogre::PagedWorldSection::getStrategyData | ( | ) | const [virtual, inherited] |
Get the data required by the PageStrategy which is specific to this world section.
Definition at line 135 of file OgrePagedWorldSection.h.
| virtual TerrainGroup* Ogre::TerrainPagedWorldSection::getTerrainGroup | ( | ) | [virtual] |
Get the TerrainGroup which this world section is using.
Definition at line 107 of file OgreTerrainPagedWorldSection.h.
| virtual const String& Ogre::PagedWorldSection::getType | ( | ) | [virtual, inherited] |
Get the type name of this section.
| virtual PagedWorld* Ogre::PagedWorldSection::getWorld | ( | ) | const [virtual, inherited] |
Get the parent world.
Definition at line 133 of file OgrePagedWorldSection.h.
| virtual void Ogre::PagedWorldSection::holdPage | ( | PageID | pageID | ) | [virtual, inherited] |
Ask for a page to be kept in memory if it's loaded.
| virtual void Ogre::TerrainPagedWorldSection::init | ( | TerrainGroup * | grp | ) | [virtual] |
Initialise this section from an existing TerrainGroup instance.
| grp | The TerrainGroup which will form the basis of this world section. The instance will be owned by this class from now on and will be destroyed by it. |
| virtual bool Ogre::PagedWorldSection::load | ( | StreamSerialiser & | stream | ) | [virtual, inherited] |
Load this section from a stream (returns true if successful)
| virtual Page* Ogre::PagedWorldSection::loadOrCreatePage | ( | const Vector3 & | worldPos | ) | [virtual, inherited] |
Load or create a page against this section covering the given world space position.
| void Ogre::TerrainPagedWorldSection::loadPage | ( | PageID | pageID, |
| bool | forceSynchronous = false |
||
| ) | [virtual] |
Overridden from PagedWorldSection.
Reimplemented from Ogre::PagedWorldSection.
| void Ogre::TerrainPagedWorldSection::loadSubtypeData | ( | StreamSerialiser & | ser | ) | [protected, virtual] |
Overridden from PagedWorldSection.
Reimplemented from Ogre::PagedWorldSection.
| virtual void Ogre::PagedWorldSection::notifyCamera | ( | Camera * | cam | ) | [virtual, inherited] |
Notify a section of the current camera.
| void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
| void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, |
| void * | |||
| ) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
| void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, |
| const char * | , | ||
| int | , | ||
| const char * | |||
| ) | [inherited] |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
| void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
| void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, |
| const char * | , | ||
| int | , | ||
| const char * | |||
| ) | [inherited] |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
| void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, |
| const char * | file, | ||
| int | line, | ||
| const char * | func | ||
| ) | [inherited] |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
| void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
| void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, |
| void * | ptr | ||
| ) | [inherited] |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
| void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, |
| const char * | file, | ||
| int | line, | ||
| const char * | func | ||
| ) | [inherited] |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
| void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
| virtual void Ogre::PagedWorldSection::removeAllPages | ( | ) | [virtual, inherited] |
Remove all pages immediately.
| virtual void Ogre::PagedWorldSection::save | ( | StreamSerialiser & | stream | ) | [virtual, inherited] |
Save this section to a stream.
| void Ogre::TerrainPagedWorldSection::saveSubtypeData | ( | StreamSerialiser & | ser | ) | [protected, virtual] |
Reimplemented from Ogre::PagedWorldSection.
| virtual void Ogre::PagedWorldSection::setBoundingBox | ( | const AxisAlignedBox & | box | ) | [virtual, inherited] |
Set the bounds of this section.
| virtual void Ogre::TerrainPagedWorldSection::setHoldRadius | ( | Real | sz | ) | [virtual] |
Set the Holding radius.
| virtual void Ogre::TerrainPagedWorldSection::setLoadRadius | ( | Real | sz | ) | [virtual] |
Set the loading radius.
| virtual void Ogre::PagedWorldSection::setPageProvider | ( | PageProvider * | provider | ) | [virtual, inherited] |
Set the PageProvider which can provide streams Pages in this section.
Definition at line 268 of file OgrePagedWorldSection.h.
| virtual void Ogre::TerrainPagedWorldSection::setPageRange | ( | int32 | minX, |
| int32 | minY, | ||
| int32 | maxX, | ||
| int32 | maxY | ||
| ) | [virtual] |
Set the index range of all Pages (values outside this will be ignored)
| virtual void Ogre::TerrainPagedWorldSection::setPageRangeMaxX | ( | int32 | maxX | ) | [virtual] |
Set the index range of all Pages (values outside this will be ignored)
| virtual void Ogre::TerrainPagedWorldSection::setPageRangeMaxY | ( | int32 | maxY | ) | [virtual] |
Set the index range of all Pages (values outside this will be ignored)
| virtual void Ogre::TerrainPagedWorldSection::setPageRangeMinX | ( | int32 | minX | ) | [virtual] |
Set the index range of all Pages (values outside this will be ignored)
| virtual void Ogre::TerrainPagedWorldSection::setPageRangeMinY | ( | int32 | minY | ) | [virtual] |
Set the index range of all Pages (values outside this will be ignored)
| virtual void Ogre::PagedWorldSection::setSceneManager | ( | SceneManager * | sm | ) | [virtual, inherited] |
Change the SceneManager.
| virtual void Ogre::PagedWorldSection::setSceneManager | ( | const String & | smName | ) | [virtual, inherited] |
Change the SceneManager.
| smName | The instance name of the SceneManager |
| virtual void Ogre::PagedWorldSection::setStrategy | ( | PageStrategy * | strat | ) | [virtual, inherited] |
Change the page strategy.
| virtual void Ogre::PagedWorldSection::setStrategy | ( | const String & | stratName | ) | [virtual, inherited] |
Change the page strategy.
| virtual void Ogre::TerrainPagedWorldSection::syncSettings | ( | ) | [protected, virtual] |
| void Ogre::TerrainPagedWorldSection::unloadPage | ( | PageID | pageID, |
| bool | forceSynchronous = false |
||
| ) | [virtual] |
Overridden from PagedWorldSection.
Reimplemented from Ogre::PagedWorldSection.
| virtual void Ogre::PagedWorldSection::unloadPage | ( | Page * | p, |
| bool | forceSynchronous = false |
||
| ) | [virtual, inherited] |
Ask for a page to be unloaded with the given (section-relative) PageID.
| p | The Page to unload |
| forceSynchronous | If true, the page will always be unloaded synchronously |
| _OgrePagingExport friend std::ostream& operator<< | ( | std::ostream & | o, |
| const PagedWorldSection & | p | ||
| ) | [friend, inherited] |
Function for writing to a stream.
const uint32 Ogre::PagedWorldSection::CHUNK_ID [static, inherited] |
Definition at line 89 of file OgrePagedWorldSection.h.
const uint16 Ogre::PagedWorldSection::CHUNK_VERSION [static, inherited] |
Definition at line 90 of file OgrePagedWorldSection.h.
AxisAlignedBox Ogre::PagedWorldSection::mAABB [protected, inherited] |
Definition at line 75 of file OgrePagedWorldSection.h.
String Ogre::PagedWorldSection::mName [protected, inherited] |
Definition at line 74 of file OgrePagedWorldSection.h.
PageProvider* Ogre::PagedWorldSection::mPageProvider [protected, inherited] |
Definition at line 80 of file OgrePagedWorldSection.h.
PageMap Ogre::PagedWorldSection::mPages [protected, inherited] |
Definition at line 79 of file OgrePagedWorldSection.h.
PagedWorld* Ogre::PagedWorldSection::mParent [protected, inherited] |
Definition at line 76 of file OgrePagedWorldSection.h.
SceneManager* Ogre::PagedWorldSection::mSceneMgr [protected, inherited] |
Definition at line 81 of file OgrePagedWorldSection.h.
PageStrategy* Ogre::PagedWorldSection::mStrategy [protected, inherited] |
Definition at line 77 of file OgrePagedWorldSection.h.
PageStrategyData* Ogre::PagedWorldSection::mStrategyData [protected, inherited] |
Definition at line 78 of file OgrePagedWorldSection.h.
Definition at line 147 of file OgreTerrainPagedWorldSection.h.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sun Sep 2 2012 07:27:44