OGRE-Next
2.3
Object-Oriented Graphics Rendering Engine
|
#include <OgrePage.h>
Public Types | |
typedef vector< PageContentCollection * >::type | ContentCollectionList |
Public Member Functions | |
Page (PageID pageID, PagedWorldSection *parent) | |
virtual | ~Page () |
void | _notifyModified () |
Tell the page that it is modified. More... | |
bool | canHandleRequest (const WorkQueue::Request *req, const WorkQueue *srcQ) |
WorkQueue::RequestHandler override. More... | |
bool | canHandleResponse (const WorkQueue::Response *res, const WorkQueue *srcQ) |
WorkQueue::ResponseHandler override. More... | |
virtual PageContentCollection * | createContentCollection (const String &typeName) |
Create a new PageContentCollection within this page. More... | |
virtual void | destroyAllContentCollections () |
Destroy all PageContentCollections within this page. More... | |
virtual void | destroyContentCollection (PageContentCollection *coll) |
Destroy a PageContentCollection within this page. More... | |
virtual void | frameEnd (Real timeElapsed) |
Called when the frame ends. More... | |
virtual void | frameStart (Real timeSinceLastFrame) |
Called when the frame starts. More... | |
virtual PageContentCollection * | getContentCollection (size_t index) |
Get a content collection. More... | |
virtual size_t | getContentCollectionCount () const |
Get the number of content collections. More... | |
const ContentCollectionList & | getContentCollectionList () const |
Get the list of content collections. More... | |
virtual unsigned long | getFrameLastHeld () |
Get the frame number in which this Page was last loaded or held. More... | |
virtual PageID | getID () const |
Get the ID of this page, unique within the parent. More... | |
PageManager * | getManager () const |
virtual PagedWorldSection * | getParentSection () const |
Get the PagedWorldSection this page belongs to. More... | |
SceneManager * | getSceneManager () const |
WorkQueue::Response * | handleRequest (const WorkQueue::Request *req, const WorkQueue *srcQ) |
WorkQueue::RequestHandler override. More... | |
void | handleResponse (const WorkQueue::Response *res, const WorkQueue *srcQ) |
WorkQueue::ResponseHandler override. More... | |
bool | isDeferredProcessInProgress () const |
If true, it's not safe to access this Page at this time, contents may be changing. More... | |
virtual bool | isHeld () const |
Returns whether this page was 'held' in the last frame, that is was it either directly needed, or requested to stay in memory (held - as in a buffer region for example). More... | |
bool | isModified () const |
virtual void | load (bool synchronous) |
Load this page. More... | |
virtual void | notifyCamera (Camera *cam) |
Notify a section of the current camera. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
virtual void | save () |
Save page data to an automatically generated file name. More... | |
virtual void | save (const String &filename) |
Save page data to a file. More... | |
virtual void | save (StreamSerialiser &stream) |
Save page data to a serialiser. More... | |
virtual void | touch () |
'Touch' the page to let it know it's being used More... | |
virtual void | unload () |
Unload this page. More... | |
Static Public Attributes | |
static const uint32 | CHUNK_CONTENTCOLLECTION_DECLARATION_ID |
static const uint32 | CHUNK_ID |
static const uint16 | CHUNK_VERSION |
static const uint16 | WORKQUEUE_CHANGECOLLECTION_REQUEST |
static const uint16 | WORKQUEUE_PREPARE_REQUEST |
Friends | |
_OgrePagingExport friend std::ostream & | operator<< (std::ostream &o, const Page &p) |
Function for writing to a stream. More... | |
Page class.
typedef vector<PageContentCollection*>::type Ogre::Page::ContentCollectionList |
Ogre::Page::Page | ( | PageID | pageID, |
PagedWorldSection * | parent | ||
) |
|
virtual |
|
inline |
Tell the page that it is modified.
|
virtual |
WorkQueue::RequestHandler override.
Reimplemented from Ogre::WorkQueue::RequestHandler.
|
virtual |
WorkQueue::ResponseHandler override.
Reimplemented from Ogre::WorkQueue::ResponseHandler.
|
virtual |
Create a new PageContentCollection within this page.
This is equivalent to calling PageManager::createContentCollection and then attachContentCollection.
typeName | The name of the type of content collection (see PageManager::getContentCollectionFactories) |
|
virtual |
Destroy all PageContentCollections within this page.
|
virtual |
Destroy a PageContentCollection within this page.
This is equivalent to calling detachContentCollection and PageManager::destroyContentCollection.
|
virtual |
Called when the frame ends.
|
virtual |
Called when the frame starts.
|
virtual |
Get a content collection.
|
virtual |
Get the number of content collections.
const ContentCollectionList& Ogre::Page::getContentCollectionList | ( | ) | const |
Get the list of content collections.
|
inlinevirtual |
|
inlinevirtual |
Get the ID of this page, unique within the parent.
PageManager* Ogre::Page::getManager | ( | ) | const |
|
inlinevirtual |
Get the PagedWorldSection this page belongs to.
SceneManager* Ogre::Page::getSceneManager | ( | ) | const |
|
virtual |
WorkQueue::RequestHandler override.
Implements Ogre::WorkQueue::RequestHandler.
|
virtual |
WorkQueue::ResponseHandler override.
Implements Ogre::WorkQueue::ResponseHandler.
|
inline |
If true, it's not safe to access this Page at this time, contents may be changing.
|
virtual |
Returns whether this page was 'held' in the last frame, that is was it either directly needed, or requested to stay in memory (held - as in a buffer region for example).
If not, this page is eligible for removal.
|
inline |
|
virtual |
Load this page.
synchronous | Whether to force this to happen synchronously. |
|
virtual |
Notify a section of the current camera.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
virtual |
Save page data to an automatically generated file name.
|
virtual |
Save page data to a file.
|
virtual |
Save page data to a serialiser.
|
virtual |
'Touch' the page to let it know it's being used
|
virtual |
Unload this page.
|
friend |
Function for writing to a stream.
|
static |
|
static |
|
static |
|
static |
|
static |