|
| PageManager () |
|
virtual | ~PageManager () |
|
virtual bool | _loadProceduralPage (Page *page, PagedWorldSection *section) |
| Give a provider the opportunity to prepare page content procedurally.
|
|
virtual bool | _prepareProceduralPage (Page *page, PagedWorldSection *section) |
| Give a provider the opportunity to prepare page content procedurally.
|
|
StreamSerialiser * | _readPageStream (PageID pageID, PagedWorldSection *section) |
| Get a serialiser set up to read Page data for the given PageID.
|
|
StreamSerialiser * | _readWorldStream (const String &filename) |
| Get a serialiser set up to read PagedWorld data for the given world name.
|
|
virtual bool | _unloadProceduralPage (Page *page, PagedWorldSection *section) |
| Give a manager the opportunity to unload page content procedurally.
|
|
virtual bool | _unprepareProceduralPage (Page *page, PagedWorldSection *section) |
| Give a manager the opportunity to unprepare page content procedurally.
|
|
StreamSerialiser * | _writePageStream (PageID pageID, PagedWorldSection *section) |
| Get a serialiser set up to write Page data for the given PageID.
|
|
StreamSerialiser * | _writeWorldStream (const String &filename) |
| Get a serialiser set up to write PagedWorld data.
|
|
void | addCamera (Camera *c) |
| Tells the paging system to start tracking a given camera.
|
|
void | addContentCollectionFactory (PageContentCollectionFactory *f) |
| Add a new PageContentCollectionFactory implementation.
|
|
void | addContentFactory (PageContentFactory *f) |
| Add a new PageContentFactory implementation.
|
|
void | addStrategy (PageStrategy *strategy) |
| Add a new PageStrategy implementation.
|
|
void | addWorldSectionFactory (PagedWorldSectionFactory *f) |
| Add a new PagedWorldSectionFactory implementation.
|
|
PageContent * | createContent (const String &typeName) |
| Create a new instance of PageContent using the registered factories.
|
|
PageContentCollection * | createContentCollection (const String &typeName) |
| Create a new instance of PageContentCollection using the registered factories.
|
|
PagedWorld * | createWorld (const String &name=BLANKSTRING) |
| Create a new PagedWorld instance.
|
|
PagedWorldSection * | createWorldSection (const String &typeName, const String &name, PagedWorld *parent, SceneManager *sm) |
| Create a new instance of PagedWorldSection using the registered factories.
|
|
void | destroyContent (PageContent *c) |
| Destroy an instance of PageContent.
|
|
void | destroyContentCollection (PageContentCollection *coll) |
| Destroy an instance of PageContentCollection.
|
|
void | destroyWorld (const String &name) |
| Destroy a world.
|
|
void | destroyWorld (PagedWorld *world) |
| Destroy a world.
|
|
void | destroyWorldSection (PagedWorldSection *s) |
| Destroy an instance of PagedWorldSection.
|
|
const CameraList & | getCameraList () const |
| Returns a list of cameras being tracked.
|
|
const ContentCollectionFactoryMap & | getContentCollectionFactories () const |
| Get a reference to the registered strategies.
|
|
PageContentCollectionFactory * | getContentCollectionFactory (const String &name) |
| Get a PageContentCollectionFactory.
|
|
const ContentFactoryMap & | getContentFactories () const |
| Get a reference to the registered strategies.
|
|
PageContentFactory * | getContentFactory (const String &name) |
| Get a PageContentFactory.
|
|
uint8 | getDebugDisplayLevel () const |
| Get the debug display level.
|
|
PageProvider * | getPageProvider () const |
| Get the PageProvider which can provide streams for any Page.
|
|
const String & | getPageResourceGroup () const |
| Get the resource group that will be used to read/write files when the default load routines are used.
|
|
bool | getPagingOperationsEnabled () const |
| Get whether paging operations are currently allowed to happen.
|
|
const StrategyMap & | getStrategies () const |
| Get a reference to the registered strategies.
|
|
PageStrategy * | getStrategy (const String &name) |
| Get a PageStrategy.
|
|
PagedWorld * | getWorld (const String &name) |
| Get a named world.
|
|
const WorldMap & | getWorlds () const |
| Get a reference to the worlds that are currently loaded.
|
|
const WorldSectionFactoryMap & | getWorldSectionFactories () const |
| Get a reference to the registered strategies.
|
|
PagedWorldSectionFactory * | getWorldSectionFactory (const String &name) |
| Get a PagedWorldSectionFactory.
|
|
bool | hasCamera (Camera *c) const |
| Returns whether or not a given camera is being watched by the paging system.
|
|
PagedWorld * | loadWorld (const DataStreamPtr &stream, const String &name=BLANKSTRING) |
| Load a new PagedWorld from a stream.
|
|
PagedWorld * | loadWorld (const String &filename, const String &name=BLANKSTRING) |
| Load a new PagedWorld from a file.
|
|
void | removeCamera (Camera *c) |
| Tells the paging system to stop tracking a given camera.
|
|
void | removeContentCollectionFactory (PageContentCollectionFactory *f) |
| Remove a PageContentCollectionFactory implementation.
|
|
void | removeContentFactory (PageContentFactory *f) |
| Remove a PageContentFactory implementation.
|
|
void | removeStrategy (PageStrategy *strategy) |
| Remove a PageStrategy implementation.
|
|
void | removeWorldSectionFactory (PagedWorldSectionFactory *f) |
| Remove a PagedWorldSectionFactory implementation.
|
|
void | saveWorld (PagedWorld *world, const DataStreamPtr &stream) |
| Save a PagedWorld instance to a file.
|
|
void | saveWorld (PagedWorld *world, const String &filename) |
| Save a PagedWorld instance to a file.
|
|
void | setDebugDisplayLevel (uint8 lvl) |
| Set the debug display level.
|
|
void | setPageProvider (PageProvider *provider) |
| Set the PageProvider which can provide streams for any Page.
|
|
void | setPageResourceGroup (const String &g) |
| Set the resource group that will be used to read/write files when the default load routines are used.
|
|
void | setPagingOperationsEnabled (bool enabled) |
| Pause or unpause all paging operations.
|
|
The PageManager is the entry point through which you load all PagedWorld instances, and the place where PageStrategy instances and factory classes are registered to customise the paging behaviour.
To get started, the minimum you need is a PagedWorld with at least one PagedWorldSection within it, and at least one Camera being tracked (see addCamera).