Handles the WorkQueue management of the chunks. More...
#include <OgreVolumeChunkHandler.h>
Public Member Functions | |
ChunkHandler (void) | |
Constructor. More... | |
virtual | ~ChunkHandler (void) |
Destructor. More... | |
void | addRequest (const ChunkRequest &req) |
Adds a new ChunkRequest to be loaded to the WorkQueue. More... | |
virtual bool | canHandleRequest (const Request *req, const WorkQueue *srcQ) |
Return whether this handler can process a given request. More... | |
virtual bool | canHandleResponse (const Response *res, const WorkQueue *srcQ) |
Return whether this handler can process a given response. More... | |
WorkQueue::Response * | handleRequest (const WorkQueue::Request *req, const WorkQueue *srcQ) |
Implementation for WorkQueue::RequestHandler. More... | |
void | handleResponse (const WorkQueue::Response *res, const WorkQueue *srcQ) |
Implementation for WorkQueue::ResponseHandler. More... | |
void | processWorkQueue (void) |
Calls the process-update of the WorkQueue so it doesn't block. More... | |
Protected Member Functions | |
void | init (void) |
Initializes the WorkQueue (once). More... | |
Protected Attributes | |
uint16 | mWorkQueueChannel |
The workqueue channel. More... | |
WorkQueue * | mWQ |
The workqueue. More... | |
Static Protected Attributes | |
static const uint16 | WORKQUEUE_LOAD_REQUEST |
The workqueue load request. More... | |
Handles the WorkQueue management of the chunks.
Definition at line 90 of file OgreVolumeChunkHandler.h.
Ogre::Volume::ChunkHandler::ChunkHandler | ( | void | ) |
Constructor.
|
virtual |
Destructor.
void Ogre::Volume::ChunkHandler::addRequest | ( | const ChunkRequest & | req | ) |
Adds a new ChunkRequest to be loaded to the WorkQueue.
req | The ChunkRequest. |
|
inlinevirtualinherited |
Return whether this handler can process a given request.
Reimplemented in Ogre::Terrain, Ogre::TerrainGroup, Ogre::ResourceBackgroundQueue, Ogre::Page, and Ogre::TerrainLodManager.
Definition at line 173 of file OgreWorkQueue.h.
References Ogre::WorkQueue::Request::getAborted().
|
inlinevirtualinherited |
Return whether this handler can process a given response.
Reimplemented in Ogre::Terrain, Ogre::TerrainGroup, Ogre::ResourceBackgroundQueue, Ogre::Page, and Ogre::TerrainLodManager.
Definition at line 208 of file OgreWorkQueue.h.
References Ogre::WorkQueue::Request::getAborted(), and Ogre::WorkQueue::Response::getRequest().
|
virtual |
Implementation for WorkQueue::RequestHandler.
Implements Ogre::WorkQueue::RequestHandler.
|
virtual |
Implementation for WorkQueue::ResponseHandler.
Implements Ogre::WorkQueue::ResponseHandler.
|
protected |
Initializes the WorkQueue (once).
void Ogre::Volume::ChunkHandler::processWorkQueue | ( | void | ) |
Calls the process-update of the WorkQueue so it doesn't block.
|
protected |
The workqueue channel.
Definition at line 101 of file OgreVolumeChunkHandler.h.
|
protected |
The workqueue.
Definition at line 98 of file OgreVolumeChunkHandler.h.
|
staticprotected |
The workqueue load request.
Definition at line 95 of file OgreVolumeChunkHandler.h.