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