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;
A viewpoint from which the scene will be rendered.
virtual void saveSubtypeData(StreamSerialiser &ser)
float Real
Software floating point type.
virtual const String & getName() const
Get the name of this section.
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.
virtual PageProvider * getPageProvider() const
Get the PageProvider which can provide streams for Pages in this section.
Manages the organisation and rendering of a 'scene' i.e.
This class represents a collection of pages which make up a world.
A 3D box aligned with the x/y/z axes.
virtual PageStrategy * getStrategy() const
Get the page strategy which this section is using.
virtual PagedWorld * getWorld() const
Get the parent world.
static const uint32 CHUNK_ID
PageStrategyData * mStrategyData
map< PageID, Page * >::type PageMap
A factory class for creating types of world section.
virtual void loadSubtypeData(StreamSerialiser &ser)
Load data specific to a subtype of this class (if any)
PageProvider * mPageProvider
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
#define _OgrePagingExport
Utility class providing helper methods for reading / writing structured data held in a DataStream...
Standard 3-dimensional vector.
std::ostream & operator<<(std::ostream &o, const TRect< T > &r)
virtual SceneManager * getSceneManager() const
Get the current SceneManager.
Abstract marker class representing the data held against the PagedWorldSection which is specifically ...
virtual void setPageProvider(PageProvider *provider)
Set the PageProvider which can provide streams Pages in this section.
virtual ~PagedWorldSectionFactory()
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.
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...
static const uint16 CHUNK_VERSION
uint32 PageID
Identifier for a page.