Go to the documentation of this file.
29 #ifndef __Ogre_PagedWorldSection_H__
30 #define __Ogre_PagedWorldSection_H__
113 virtual void setStrategy(
const String& stratName);
128 virtual void setSceneManager(
const String& smName);
149 virtual void frameStart(
Real timeSinceLastFrame);
151 virtual void frameEnd(
Real timeElapsed);
153 virtual void notifyCamera(
Camera* cam);
162 virtual Page* loadOrCreatePage(
const Vector3& worldPos);
178 virtual void loadPage(
PageID pageID,
bool forceSynchronous =
false);
187 virtual void unloadPage(
PageID pageID,
bool forceSynchronous =
false);
195 virtual void unloadPage(
Page* p,
bool forceSynchronous =
false);
203 virtual bool _prepareProceduralPage(
Page* page);
211 virtual bool _loadProceduralPage(
Page* page);
219 virtual bool _unloadProceduralPage(
Page* page);
227 virtual bool _unprepareProceduralPage(
Page* page);
242 virtual void holdPage(
PageID pageID);
255 virtual void removeAllPages();
294 virtual const String& getType();
305 virtual const String& getName()
const = 0;
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
A viewpoint from which the scene will be rendered.
virtual ~PagedWorldSectionFactory()
virtual void loadSubtypeData(StreamSerialiser &ser)
Load data specific to a subtype of this class (if any)
The PageManager is the entry point through which you load all PagedWorld instances,...
map< PageID, Page * >::type PageMap
Abstract marker class representing the data held against the PagedWorldSection which is specifically ...
Abstract class that can be implemented by the user application to provide a way to retrieve or genera...
virtual PageStrategyData * getStrategyData() const
Get the data required by the PageStrategy which is specific to this world section.
uint32 PageID
Identifier for a page.
virtual SceneManager * getSceneManager() const
Get the current SceneManager.
Defines the interface to a strategy class which is responsible for deciding when Page instances are r...
virtual PageStrategy * getStrategy() const
Get the page strategy which this section is using.
std::ostream & operator<<(std::ostream &o, const TRect< T > &r)
virtual PagedWorld * getWorld() const
Get the parent world.
Manages the organisation and rendering of a 'scene' i.e.
This class represents a collection of pages which make up a world.
A factory class for creating types of world section.
A 3D box aligned with the x/y/z axes.
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
PageStrategyData * mStrategyData
Utility class providing helper methods for reading / writing structured data held in a DataStream.
static const uint32 CHUNK_ID
virtual void saveSubtypeData(StreamSerialiser &ser)
virtual PageProvider * getPageProvider() const
Get the PageProvider which can provide streams for Pages in this section.
float Real
Software floating point type.
virtual const String & getName() const
Get the name of this section.
PageProvider * mPageProvider
static const uint16 CHUNK_VERSION
Standard 3-dimensional vector.
virtual void setPageProvider(PageProvider *provider)
Set the PageProvider which can provide streams Pages in this section.
#define _OgrePagingExport
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.