OGRE  1.9
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::PageContentCollection Class Referenceabstract

Definition of the interface for a collection of PageContent instances. More...

#include <OgrePageContentCollection.h>

+ Inheritance diagram for Ogre::PageContentCollection:
+ Collaboration diagram for Ogre::PageContentCollection:

Public Member Functions

 PageContentCollection (PageContentCollectionFactory *creator)
 
virtual ~PageContentCollection ()
 
virtual void _notifyAttached (Page *parent)
 Internal method to notify a collection that it is attached. More...
 
virtual void frameEnd (Real timeElapsed)=0
 Called when the frame ends. More...
 
virtual void frameStart (Real timeSinceLastFrame)=0
 Called when the frame starts. More...
 
PageManagergetManager () const
 
PagegetParentPage () const
 
SceneManagergetSceneManager () const
 
virtual const StringgetType () const
 Get the type of the collection, which will match it's factory. More...
 
virtual void load ()=0
 Load - will be called in main thread. More...
 
virtual void notifyCamera (Camera *cam)=0
 Notify a section of the current camera. More...
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
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 * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 
virtual bool prepare (StreamSerialiser &ser)=0
 Prepare data - may be called in the background. More...
 
virtual void save (StreamSerialiser &stream)=0
 Save the collection to a stream. More...
 
virtual void unload ()=0
 Unload - will be called in main thread. More...
 
virtual void unprepare ()=0
 Unprepare data - may be called in the background. More...
 

Static Public Attributes

static const uint32 CHUNK_ID
 
static const uint16 CHUNK_VERSION
 

Protected Attributes

PageContentCollectionFactorymCreator
 
PagemParent
 

Detailed Description

Definition of the interface for a collection of PageContent instances.

Remarks
This class acts as a grouping level for PageContent instances. Rather than PageContent instances being held in a list directly under Page, which might be the most obvious solution, this intermediate class is here to allow the collection of relevant PageContent instances to be modified at runtime if required. For example, potentially you might want to define Page-level LOD in which different collections of PageContent are loaded at different times.

Definition at line 55 of file OgrePageContentCollection.h.

Constructor & Destructor Documentation

Ogre::PageContentCollection::PageContentCollection ( PageContentCollectionFactory creator)
virtual Ogre::PageContentCollection::~PageContentCollection ( )
virtual

Member Function Documentation

virtual void Ogre::PageContentCollection::_notifyAttached ( Page parent)
virtual

Internal method to notify a collection that it is attached.

virtual void Ogre::PageContentCollection::frameEnd ( Real  timeElapsed)
pure virtual

Called when the frame ends.

Implemented in Ogre::SimplePageContentCollection.

virtual void Ogre::PageContentCollection::frameStart ( Real  timeSinceLastFrame)
pure virtual

Called when the frame starts.

Implemented in Ogre::SimplePageContentCollection.

PageManager* Ogre::PageContentCollection::getManager ( ) const
Page* Ogre::PageContentCollection::getParentPage ( ) const
inline

Definition at line 68 of file OgrePageContentCollection.h.

SceneManager* Ogre::PageContentCollection::getSceneManager ( ) const
virtual const String& Ogre::PageContentCollection::getType ( ) const
virtual

Get the type of the collection, which will match it's factory.

virtual void Ogre::PageContentCollection::load ( )
pure virtual

Load - will be called in main thread.

Implemented in Ogre::SimplePageContentCollection.

virtual void Ogre::PageContentCollection::notifyCamera ( Camera cam)
pure virtual

Notify a section of the current camera.

Implemented in Ogre::SimplePageContentCollection.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

virtual bool Ogre::PageContentCollection::prepare ( StreamSerialiser ser)
pure virtual

Prepare data - may be called in the background.

Implemented in Ogre::SimplePageContentCollection.

virtual void Ogre::PageContentCollection::save ( StreamSerialiser stream)
pure virtual

Save the collection to a stream.

Implemented in Ogre::SimplePageContentCollection.

virtual void Ogre::PageContentCollection::unload ( )
pure virtual

Unload - will be called in main thread.

Implemented in Ogre::SimplePageContentCollection.

virtual void Ogre::PageContentCollection::unprepare ( )
pure virtual

Unprepare data - may be called in the background.

Implemented in Ogre::SimplePageContentCollection.

Member Data Documentation

const uint32 Ogre::PageContentCollection::CHUNK_ID
static

Definition at line 61 of file OgrePageContentCollection.h.

const uint16 Ogre::PageContentCollection::CHUNK_VERSION
static

Definition at line 62 of file OgrePageContentCollection.h.

PageContentCollectionFactory* Ogre::PageContentCollection::mCreator
protected

Definition at line 58 of file OgrePageContentCollection.h.

Page* Ogre::PageContentCollection::mParent
protected

Definition at line 59 of file OgrePageContentCollection.h.


The documentation for this class was generated from the following file: