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