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

Processes requests. More...

#include <OgreLodWorkQueueWorker.h>

+ Inheritance diagram for Ogre::LodWorkQueueWorker:
+ Collaboration diagram for Ogre::LodWorkQueueWorker:

Public Member Functions

 LodWorkQueueWorker ()
virtual ~LodWorkQueueWorker ()
void addRequestToQueue (LodWorkQueueRequest *request)
void addRequestToQueue (LodConfig &lodConfig, LodCollapseCostPtr &cost, LodDataPtr &data, LodInputProviderPtr &input, LodOutputProviderPtr &output, LodCollapserPtr &collapser)
void clearPendingLodRequests ()

Static Public Member Functions

static LodWorkQueueWorkergetSingleton ()
static LodWorkQueueWorkergetSingletonPtr ()

Protected Member Functions

WorkQueue::ResponsehandleRequest (const WorkQueue::Request *req, const WorkQueue *srcQ)
 The handler method every subclass must implement. More...

Protected Attributes

ushort mChannelID

Static Protected Attributes

static LodWorkQueueWorkermsSingleton

Private Member Functions

virtual bool canHandleRequest (const Request *req, const WorkQueue *srcQ)
 Return whether this handler can process a given request. More...

Detailed Description

Processes requests.

Definition at line 42 of file OgreLodWorkQueueWorker.h.

Constructor & Destructor Documentation

Ogre::LodWorkQueueWorker::LodWorkQueueWorker ( )
virtual Ogre::LodWorkQueueWorker::~LodWorkQueueWorker ( )

Member Function Documentation

void Ogre::LodWorkQueueWorker::addRequestToQueue ( LodWorkQueueRequest request)
void Ogre::LodWorkQueueWorker::addRequestToQueue ( LodConfig lodConfig,
LodCollapseCostPtr cost,
LodDataPtr data,
LodInputProviderPtr input,
LodOutputProviderPtr output,
LodCollapserPtr collapser 
virtual bool Ogre::WorkQueue::RequestHandler::canHandleRequest ( const Request req,
const WorkQueue srcQ 

Return whether this handler can process a given request.

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

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

Definition at line 174 of file OgreWorkQueue.h.

References Ogre::WorkQueue::Request::getAborted().

void Ogre::LodWorkQueueWorker::clearPendingLodRequests ( )
static LodWorkQueueWorker& Ogre::LodWorkQueueWorker::getSingleton ( )
static LodWorkQueueWorker* Ogre::LodWorkQueueWorker::getSingletonPtr ( )
WorkQueue::Response* Ogre::LodWorkQueueWorker::handleRequest ( const WorkQueue::Request req,
const WorkQueue srcQ 

The handler method every subclass must implement.

If a failure is encountered, return a Response with a failure result rather than raise an exception.

reqThe Request structure, which is effectively owned by the handler during this call. It must be attached to the returned Response regardless of success or failure.
srcQThe work queue that this request originated from
Pointer to a Response object - the caller is responsible for deleting the object.

Implements Ogre::WorkQueue::RequestHandler.

Member Data Documentation

ushort Ogre::LodWorkQueueWorker::mChannelID

Definition at line 59 of file OgreLodWorkQueueWorker.h.

LodWorkQueueWorker * Ogre::Singleton< LodWorkQueueWorker >::msSingleton

Definition at line 75 of file OgreSingleton.h.

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