OGRE  14.2
Object-Oriented Graphics Rendering Engine
Ogre::PageContentCollection Class Referenceabstract

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

#include <OgrePageContentCollection.h>

+ Inheritance 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...
 
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
 

Detailed Description

Definition of the interface for a collection of PageContent instances.

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.

Constructor & Destructor Documentation

◆ PageContentCollection()

Ogre::PageContentCollection::PageContentCollection ( PageContentCollectionFactory creator)

◆ ~PageContentCollection()

virtual Ogre::PageContentCollection::~PageContentCollection ( )
virtual

Member Function Documentation

◆ getManager()

PageManager* Ogre::PageContentCollection::getManager ( ) const

◆ getParentPage()

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

◆ getSceneManager()

SceneManager* Ogre::PageContentCollection::getSceneManager ( ) const

◆ getType()

virtual const String& Ogre::PageContentCollection::getType ( ) const
virtual

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

◆ _notifyAttached()

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

Internal method to notify a collection that it is attached.

◆ save()

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

Save the collection to a stream.

Implemented in Ogre::SimplePageContentCollection.

◆ frameStart()

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

Called when the frame starts.

Implemented in Ogre::SimplePageContentCollection.

◆ frameEnd()

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

Called when the frame ends.

Implemented in Ogre::SimplePageContentCollection.

◆ notifyCamera()

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

Notify a section of the current camera.

Implemented in Ogre::SimplePageContentCollection.

◆ prepare()

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

Prepare data - may be called in the background.

Implemented in Ogre::SimplePageContentCollection.

◆ load()

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

Load - will be called in main thread.

Implemented in Ogre::SimplePageContentCollection.

◆ unload()

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

Unload - will be called in main thread.

Implemented in Ogre::SimplePageContentCollection.

◆ unprepare()

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

Unprepare data - may be called in the background.

Implemented in Ogre::SimplePageContentCollection.

Member Data Documentation

◆ CHUNK_ID

const uint32 Ogre::PageContentCollection::CHUNK_ID
static

◆ CHUNK_VERSION

const uint16 Ogre::PageContentCollection::CHUNK_VERSION
static

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