|
| PagedWorldSection (const String &name, PagedWorld *parent, SceneManager *sm) |
| Construct a new instance, specifying the parent and scene manager. More...
|
|
virtual | ~PagedWorldSection () |
|
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 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...
|
|
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 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 const String & | getType () |
| Get the type name of this section. More...
|
|
virtual PagedWorld * | getWorld () const |
| Get the parent world. More...
|
|
virtual void | holdPage (PageID pageID) |
| Ask for a page to be kept in memory if it's loaded. 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...
|
|
virtual void | loadPage (PageID pageID, bool forceSynchronous=false) |
| Ask for a page to be loaded with the given (section-relative) PageID. More...
|
|
virtual void | notifyCamera (Camera *cam) |
| Notify a section of the current camera. More...
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info More...
|
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new More...
|
|
void * | operator new[] (size_t sz) |
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info 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...
|
|
virtual void | setPageProvider (PageProvider *provider) |
| Set the PageProvider which can provide streams Pages in this section. More...
|
|
virtual void | setSceneManager (const String &smName) |
| Change the SceneManager. More...
|
|
virtual void | setSceneManager (SceneManager *sm) |
| Change the SceneManager. More...
|
|
virtual void | setStrategy (const String &stratName) |
| Change the page strategy. More...
|
|
virtual void | setStrategy (PageStrategy *strat) |
| Change the page strategy. More...
|
|
virtual void | unloadPage (Page *p, bool forceSynchronous=false) |
| Ask for a page to be unloaded with the given (section-relative) PageID. More...
|
|
virtual void | unloadPage (PageID pageID, bool forceSynchronous=false) |
| Ask for a page to be unloaded with the given (section-relative) PageID. More...
|
|
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a generally localised set of Page instances.
- PagedWorldSection instances are fully contained within the PagedWorld and their definitions are loaded in their entirety when the PagedWorld is loaded. However, no Page instances are initially loaded - those are the responsibility of the PageStrategy.
- PagedWorldSection can be subclassed and derived types provided by a PagedWorldSectionFactory. These subclasses might come preconfigured with a strategy for example, or with additional metadata used only for that particular type of section.
- A PagedWorldSection targets a specific SceneManager. When you create one in code via PagedWorld::createSection, you pass that SceneManager in manually. When loading from a saved world file however, the SceneManager type and instance name are saved and that SceneManager is looked up on loading, or created if it didn't exist.