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

Injects the output of a request to the mesh in a thread safe way. More...

#include <OgreLodWorkQueueInjector.h>

+ Inheritance diagram for Ogre::LodWorkQueueInjector:
+ Collaboration diagram for Ogre::LodWorkQueueInjector:

Public Member Functions

 LodWorkQueueInjector ()
 
virtual ~LodWorkQueueInjector ()
 
virtual bool canHandleResponse (const Response *res, const WorkQueue *srcQ)
 Return whether this handler can process a given response. More...
 
LodWorkQueueInjectorListenergetInjectorListener ()
 
void handleResponse (const WorkQueue::Response *res, const WorkQueue *srcQ)
 The handler method every subclass must implement. More...
 
void removeInjectorListener ()
 
void setInjectorListener (LodWorkQueueInjectorListener *injectorListener)
 

Static Public Member Functions

static LodWorkQueueInjectorgetSingleton ()
 
static LodWorkQueueInjectorgetSingletonPtr ()
 

Protected Attributes

LodWorkQueueInjectorListenermInjectorListener
 

Static Protected Attributes

static LodWorkQueueInjectormsSingleton
 

Detailed Description

Injects the output of a request to the mesh in a thread safe way.

Definition at line 42 of file OgreLodWorkQueueInjector.h.

Constructor & Destructor Documentation

Ogre::LodWorkQueueInjector::LodWorkQueueInjector ( )
virtual Ogre::LodWorkQueueInjector::~LodWorkQueueInjector ( )
virtual

Member Function Documentation

virtual bool Ogre::WorkQueue::ResponseHandler::canHandleResponse ( const Response res,
const WorkQueue srcQ 
)
inlinevirtualinherited

Return whether this handler can process a given response.

Remarks
Defaults to true, but if you wish to add several handlers each of which deal with different types of response, you can override this method.

Reimplemented in Ogre::Terrain, Ogre::TerrainGroup, Ogre::ResourceBackgroundQueue, Ogre::Page, and Ogre::TerrainLodManager.

Definition at line 209 of file OgreWorkQueue.h.

References Ogre::WorkQueue::Request::getAborted(), and Ogre::WorkQueue::Response::getRequest().

LodWorkQueueInjectorListener* Ogre::LodWorkQueueInjector::getInjectorListener ( )
inline

Definition at line 56 of file OgreLodWorkQueueInjector.h.

static LodWorkQueueInjector& Ogre::LodWorkQueueInjector::getSingleton ( )
static
static LodWorkQueueInjector* Ogre::LodWorkQueueInjector::getSingletonPtr ( )
static
void Ogre::LodWorkQueueInjector::handleResponse ( const WorkQueue::Response res,
const WorkQueue srcQ 
)
virtual

The handler method every subclass must implement.

Parameters
resThe Response structure. The caller is responsible for deleting this after the call is made, none of the data contained (except pointers to structures in user Any data) will persist after this call is returned.
srcQThe work queue that this request originated from

Implements Ogre::WorkQueue::ResponseHandler.

void Ogre::LodWorkQueueInjector::removeInjectorListener ( )
inline

Definition at line 57 of file OgreLodWorkQueueInjector.h.

void Ogre::LodWorkQueueInjector::setInjectorListener ( LodWorkQueueInjectorListener injectorListener)
inline

Definition at line 55 of file OgreLodWorkQueueInjector.h.

Member Data Documentation

LodWorkQueueInjectorListener* Ogre::LodWorkQueueInjector::mInjectorListener
protected

Definition at line 59 of file OgreLodWorkQueueInjector.h.

LodWorkQueueInjector * Ogre::Singleton< LodWorkQueueInjector >::msSingleton
staticprotectedinherited

Definition at line 75 of file OgreSingleton.h.


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