29 #ifndef __Ogre_PageManager_H__
30 #define __Ogre_PageManager_H__
50 class PagedWorldSection;
51 class PagedWorldSectionFactory;
149 void destroyWorld(
const String& name);
399 void addCamera(
Camera* c);
403 void removeCamera(
Camera* c);
407 bool hasCamera(
Camera* c)
const;
450 void cameraPreRenderScene(
Camera* cam);
451 void cameraDestroyed(
Camera* cam);
456 void createStandardStrategies();
457 void createStandardContentFactories();
Grid3DPageStrategy * mGrid3DPageStrategy
WorldSectionFactoryMap mWorldSectionFactories
A viewpoint from which the scene will be rendered.
virtual StreamSerialiser * readPageStream(PageID pageID, PagedWorldSection *section)
Get a serialiser set up to read Page data for the given PageID, or null if this provider cannot suppl...
ContentFactoryMap mContentFactories
void setPageResourceGroup(const String &g)
Set the resource group that will be used to read/write files when the default load routines are used...
Utility class to generate a sequentially numbered series of names.
const String & getPageResourceGroup() const
Get the resource group that will be used to read/write files when the default load routines are used...
virtual bool prepareProceduralPage(Page *page, PagedWorldSection *section)
Give a provider the opportunity to prepare page content procedurally.
Page strategy which loads new pages based on a regular 3D grid.
void setPageProvider(PageProvider *provider)
Set the PageProvider which can provide streams for any Page.
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.
String mPageResourceGroup
map< String, PagedWorldSectionFactory * >::type WorldSectionFactoryMap
Manages the organisation and rendering of a 'scene' i.e.
This class represents a collection of pages which make up a world.
void setPagingOperationsEnabled(bool enabled)
Pause or unpause all paging operations.
SimplePageContentCollectionFactory * mSimpleCollectionFactory
Page strategy which loads new pages based on a regular 2D grid.
Grid2DPageStrategy * mGrid2DPageStrategy
Define the interface to a factory class that will create subclasses of PageContentCollection.
A factory class for creating types of world section.
Interface definition for a unit of content within a page.
Factory class for SimplePageContentCollection.
void setDebugDisplayLevel(uint8 lvl)
Set the debug display level.
map< String, PageContentCollectionFactory * >::type ContentCollectionFactoryMap
Definition of the interface for a collection of PageContent instances.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
PageProvider * mPageProvider
ContentCollectionFactoryMap mContentCollectionFactories
A interface class defining a listener which can be used to receive notifications of frame events...
const WorldMap & getWorlds() const
Get a reference to the worlds that are currently loaded.
#define _OgrePagingExport
map< String, PagedWorld * >::type WorldMap
Utility class providing helper methods for reading / writing structured data held in a DataStream...
vector< Camera * >::type CameraList
Define the interface to a factory class that will create subclasses of PageContent.
bool getPagingOperationsEnabled() const
Get whether paging operations are currently allowed to happen.
map< String, PageStrategy * >::type StrategyMap
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
virtual bool loadProceduralPage(Page *page, PagedWorldSection *section)
Give a provider the opportunity to load page content procedurally.
virtual bool unloadProceduralPage(Page *page, PagedWorldSection *section)
Give a provider the opportunity to unload page content procedurally.
NameGenerator mWorldNameGenerator
map< String, PageContentFactory * >::type ContentFactoryMap
Struct containing information about a frame event.
PageProvider * getPageProvider() const
Get the PageProvider which can provide streams for any Page.
virtual bool unprepareProceduralPage(Page *page, PagedWorldSection *section)
Give a provider the opportunity to unprepare page content procedurally.
Abstract class that can be implemented by the user application to provide a way to retrieve or genera...
Listener interface so you can be notified of Camera events.
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
Defines the interface to a strategy class which is responsible for deciding when Page instances are r...
virtual StreamSerialiser * readWorldStream(const String &filename)
Get a serialiser set up to read PagedWorld data for the given world filename.
virtual StreamSerialiser * writePageStream(PageID pageID, PagedWorldSection *section)
Get a serialiser set up to write Page data for the given PageID, or null if this provider cannot supp...
uint8 getDebugDisplayLevel() const
Get the debug display level.
virtual StreamSerialiser * writeWorldStream(const String &filename)
Get a serialiser set up to write PagedWorld data for the given world filename.
uint32 PageID
Identifier for a page.