29#ifndef __Ogre_Page_H__
30#define __Ogre_Page_H__
128 virtual void load(
bool synchronous);
#define _OgrePagingExport
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.
Definition of the interface for a collection of PageContent instances.
The PageManager is the entry point through which you load all PagedWorld instances,...
virtual size_t getContentCollectionCount() const
Get the number of content collections.
virtual bool prepareImpl(PageData *dataToPopulate)
Page(PageID pageID, PagedWorldSection *parent)
virtual bool isHeld() const
Returns whether this page was 'held' in the last frame, that is was it either directly needed,...
virtual PagedWorldSection * getParentSection() const
Get the PagedWorldSection this page belongs to.
virtual void unload()
Unload this page.
virtual bool prepareImpl(StreamSerialiser &str, PageData *dataToPopulate)
vector< PageContentCollection * >::type ContentCollectionList
bool canHandleResponse(const WorkQueue::Response *res, const WorkQueue *srcQ)
WorkQueue::ResponseHandler override.
virtual void touch()
'Touch' the page to let it know it's being used
virtual void save()
Save page data to an automatically generated file name.
bool mDeferredProcessInProgress
const ContentCollectionList & getContentCollectionList() const
Get the list of content collections.
ContentCollectionList mContentCollections
static const uint16 CHUNK_VERSION
virtual PageID getID() const
Get the ID of this page, unique within the parent.
static const uint32 CHUNK_CONTENTCOLLECTION_DECLARATION_ID
PageManager * getManager() const
SceneManager * getSceneManager() const
virtual PageContentCollection * getContentCollection(size_t index)
Get a content collection.
virtual void destroyAllContentCollections()
Destroy all PageContentCollections within this page.
virtual unsigned long getFrameLastHeld()
Get the frame number in which this Page was last loaded or held.
bool canHandleRequest(const WorkQueue::Request *req, const WorkQueue *srcQ)
WorkQueue::RequestHandler override.
PagedWorldSection * mParent
virtual void destroyContentCollection(PageContentCollection *coll)
Destroy a PageContentCollection within this page.
void handleResponse(const WorkQueue::Response *res, const WorkQueue *srcQ)
WorkQueue::ResponseHandler override.
static const uint32 CHUNK_ID
bool isDeferredProcessInProgress() const
If true, it's not safe to access this Page at this time, contents may be changing.
virtual void load(bool synchronous)
Load this page.
virtual void notifyCamera(Camera *cam)
Notify a section of the current camera.
virtual void save(StreamSerialiser &stream)
Save page data to a serialiser.
virtual void frameEnd(Real timeElapsed)
Called when the frame ends.
void updateDebugDisplay()
void _notifyModified()
Tell the page that it is modified.
WorkQueue::Response * handleRequest(const WorkQueue::Request *req, const WorkQueue *srcQ)
WorkQueue::RequestHandler override.
static const uint16 WORKQUEUE_PREPARE_REQUEST
unsigned long mFrameLastHeld
virtual void save(const String &filename)
Save page data to a file.
virtual void frameStart(Real timeSinceLastFrame)
Called when the frame starts.
String generateFilename() const
virtual PageContentCollection * createContentCollection(const String &typeName)
Create a new PageContentCollection within this page.
static const uint16 WORKQUEUE_CHANGECOLLECTION_REQUEST
Represents a section of the PagedWorld which uses a given PageStrategy, and which is made up of a gen...
Manages the organisation and rendering of a 'scene' i.e.
Class representing a node in the scene graph.
Utility class providing helper methods for reading / writing structured data held in a DataStream.
Interface definition for a handler of requests.
General purpose request structure.
Interface definition for a handler of responses.
Interface to a general purpose request / response style background work queue.
std::ostream & operator<<(std::ostream &o, const TRect< T > &r)
uint32 PageID
Identifier for a page.
float Real
Software floating point type.
ContentCollectionList collectionsToAdd
General purpose response structure.