\hypertarget{class_ogre_1_1_volume_1_1_chunk_handler}{}\doxysection{Ogre\+::Volume\+::Chunk\+Handler Class Reference}
\label{class_ogre_1_1_volume_1_1_chunk_handler}\index{Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}}


Handles the \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} management of the chunks.  




{\ttfamily \#include $<$Ogre\+Volume\+Chunk\+Handler.\+h$>$}



Inheritance diagram for Ogre\+::Volume\+::Chunk\+Handler\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_volume_1_1_chunk_handler__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_volume_1_1_chunk_handler_ab8efefa0d78d0ba30cab05bfea70a277}{Chunk\+Handler}} (void)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{class_ogre_1_1_volume_1_1_chunk_handler_a1517ea9c2dae541805fadab8cdda4f20}{$\sim$\+Chunk\+Handler}} (void)
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_volume_1_1_chunk_handler_a45aca5ac0738bf63b7539627a9d0d978}{add\+Request}} (const \mbox{\hyperlink{struct_ogre_1_1_volume_1_1_chunk_request}{Chunk\+Request}} \&req)
\begin{DoxyCompactList}\small\item\em Adds a new \mbox{\hyperlink{struct_ogre_1_1_volume_1_1_chunk_request}{Chunk\+Request}} to be loaded to the \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}}. \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_request_handler_adf4a5093c7b789352a0a44629490bc87}{can\+Handle\+Request}} (const Request $\ast$req, const \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} $\ast$srcQ)
\begin{DoxyCompactList}\small\item\em Return whether this handler can process a given request. \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_response_handler_a7a2fabae7f92bed384f100526055a899}{can\+Handle\+Response}} (const Response $\ast$res, const \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} $\ast$srcQ)
\begin{DoxyCompactList}\small\item\em Return whether this handler can process a given response. \end{DoxyCompactList}\item 
\mbox{\hyperlink{struct_ogre_1_1_work_queue_1_1_response}{Work\+Queue\+::\+Response}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_volume_1_1_chunk_handler_ab88ea294714037c5eeca4f0a6d7127b3}{handle\+Request}} (const \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_request}{Work\+Queue\+::\+Request}} $\ast$req, const \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} $\ast$srcQ)
\begin{DoxyCompactList}\small\item\em Implementation for \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_request_handler}{Work\+Queue\+::\+Request\+Handler}}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_volume_1_1_chunk_handler_abfe457979450e735b65e5c53712f64c2}{handle\+Response}} (const \mbox{\hyperlink{struct_ogre_1_1_work_queue_1_1_response}{Work\+Queue\+::\+Response}} $\ast$res, const \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} $\ast$srcQ)
\begin{DoxyCompactList}\small\item\em Implementation for \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_response_handler}{Work\+Queue\+::\+Response\+Handler}}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_volume_1_1_chunk_handler_a01cc02bd48e1529f4ad464dc19f3e420}{process\+Work\+Queue}} (void)
\begin{DoxyCompactList}\small\item\em Calls the process-\/update of the \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} so it doesn\textquotesingle{}t block. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Handles the \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} management of the chunks. 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_volume_1_1_chunk_handler_ab8efefa0d78d0ba30cab05bfea70a277}\label{class_ogre_1_1_volume_1_1_chunk_handler_ab8efefa0d78d0ba30cab05bfea70a277}} 
\index{Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}!ChunkHandler@{ChunkHandler}}
\index{ChunkHandler@{ChunkHandler}!Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}}
\doxysubsubsection{\texorpdfstring{ChunkHandler()}{ChunkHandler()}}
{\footnotesize\ttfamily Ogre\+::\+Volume\+::\+Chunk\+Handler\+::\+Chunk\+Handler (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Constructor. 

\mbox{\Hypertarget{class_ogre_1_1_volume_1_1_chunk_handler_a1517ea9c2dae541805fadab8cdda4f20}\label{class_ogre_1_1_volume_1_1_chunk_handler_a1517ea9c2dae541805fadab8cdda4f20}} 
\index{Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}!````~ChunkHandler@{$\sim$ChunkHandler}}
\index{````~ChunkHandler@{$\sim$ChunkHandler}!Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}}
\doxysubsubsection{\texorpdfstring{$\sim$ChunkHandler()}{~ChunkHandler()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Volume\+::\+Chunk\+Handler\+::$\sim$\+Chunk\+Handler (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Destructor. 



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_volume_1_1_chunk_handler_a45aca5ac0738bf63b7539627a9d0d978}\label{class_ogre_1_1_volume_1_1_chunk_handler_a45aca5ac0738bf63b7539627a9d0d978}} 
\index{Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}!addRequest@{addRequest}}
\index{addRequest@{addRequest}!Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}}
\doxysubsubsection{\texorpdfstring{addRequest()}{addRequest()}}
{\footnotesize\ttfamily void Ogre\+::\+Volume\+::\+Chunk\+Handler\+::add\+Request (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{struct_ogre_1_1_volume_1_1_chunk_request}{Chunk\+Request}} \&}]{req }\end{DoxyParamCaption})}



Adds a new \mbox{\hyperlink{struct_ogre_1_1_volume_1_1_chunk_request}{Chunk\+Request}} to be loaded to the \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}}. 


\begin{DoxyParams}{Parameters}
{\em req} & The \mbox{\hyperlink{struct_ogre_1_1_volume_1_1_chunk_request}{Chunk\+Request}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_volume_1_1_chunk_handler_a01cc02bd48e1529f4ad464dc19f3e420}\label{class_ogre_1_1_volume_1_1_chunk_handler_a01cc02bd48e1529f4ad464dc19f3e420}} 
\index{Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}!processWorkQueue@{processWorkQueue}}
\index{processWorkQueue@{processWorkQueue}!Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}}
\doxysubsubsection{\texorpdfstring{processWorkQueue()}{processWorkQueue()}}
{\footnotesize\ttfamily void Ogre\+::\+Volume\+::\+Chunk\+Handler\+::process\+Work\+Queue (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Calls the process-\/update of the \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} so it doesn\textquotesingle{}t block. 

\mbox{\Hypertarget{class_ogre_1_1_volume_1_1_chunk_handler_ab88ea294714037c5eeca4f0a6d7127b3}\label{class_ogre_1_1_volume_1_1_chunk_handler_ab88ea294714037c5eeca4f0a6d7127b3}} 
\index{Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}!handleRequest@{handleRequest}}
\index{handleRequest@{handleRequest}!Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}}
\doxysubsubsection{\texorpdfstring{handleRequest()}{handleRequest()}}
{\footnotesize\ttfamily \mbox{\hyperlink{struct_ogre_1_1_work_queue_1_1_response}{Work\+Queue\+::\+Response}}$\ast$ Ogre\+::\+Volume\+::\+Chunk\+Handler\+::handle\+Request (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_request}{Work\+Queue\+::\+Request}} $\ast$}]{req,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} $\ast$}]{srcQ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Implementation for \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_request_handler}{Work\+Queue\+::\+Request\+Handler}}. 



Implements \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_request_handler_a1c412e904f71b9dec519c4aa1b5ceead}{Ogre\+::\+Work\+Queue\+::\+Request\+Handler}}.

\mbox{\Hypertarget{class_ogre_1_1_volume_1_1_chunk_handler_abfe457979450e735b65e5c53712f64c2}\label{class_ogre_1_1_volume_1_1_chunk_handler_abfe457979450e735b65e5c53712f64c2}} 
\index{Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}!handleResponse@{handleResponse}}
\index{handleResponse@{handleResponse}!Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}}
\doxysubsubsection{\texorpdfstring{handleResponse()}{handleResponse()}}
{\footnotesize\ttfamily void Ogre\+::\+Volume\+::\+Chunk\+Handler\+::handle\+Response (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{struct_ogre_1_1_work_queue_1_1_response}{Work\+Queue\+::\+Response}} $\ast$}]{res,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} $\ast$}]{srcQ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Implementation for \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_response_handler}{Work\+Queue\+::\+Response\+Handler}}. 



Implements \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_response_handler_a8fab0334551e482042df078a5945f5de}{Ogre\+::\+Work\+Queue\+::\+Response\+Handler}}.

\mbox{\Hypertarget{class_ogre_1_1_work_queue_1_1_request_handler_adf4a5093c7b789352a0a44629490bc87}\label{class_ogre_1_1_work_queue_1_1_request_handler_adf4a5093c7b789352a0a44629490bc87}} 
\index{Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}!canHandleRequest@{canHandleRequest}}
\index{canHandleRequest@{canHandleRequest}!Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}}
\doxysubsubsection{\texorpdfstring{canHandleRequest()}{canHandleRequest()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Work\+Queue\+::\+Request\+Handler\+::can\+Handle\+Request (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_work_queue_1_1_request}{Request}} $\ast$}]{req,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} $\ast$}]{srcQ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}, {\ttfamily [inherited]}}



Return whether this handler can process a given request. 

\begin{DoxyRemark}{Remarks}
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. 
\end{DoxyRemark}


Reimplemented in \mbox{\hyperlink{class_ogre_1_1_terrain_a22196f59f8f761e7fc4bea11db488252}{Ogre\+::\+Terrain}}, \mbox{\hyperlink{class_ogre_1_1_terrain_group_a008f51c172bd858cca8763af865f3fa1}{Ogre\+::\+Terrain\+Group}}, \mbox{\hyperlink{class_ogre_1_1_resource_background_queue_adc005af8b5c25bcfd6e39d4d5255d754}{Ogre\+::\+Resource\+Background\+Queue}}, \mbox{\hyperlink{class_ogre_1_1_page_a858b194d988c22e52516f03fd50d0062}{Ogre\+::\+Page}}, and \mbox{\hyperlink{class_ogre_1_1_terrain_lod_manager_af274ee16de8e9ddf1f058a2eb0ea1b5e}{Ogre\+::\+Terrain\+Lod\+Manager}}.



References Ogre\+::\+Work\+Queue\+::\+Request\+::get\+Aborted().

\mbox{\Hypertarget{class_ogre_1_1_work_queue_1_1_response_handler_a7a2fabae7f92bed384f100526055a899}\label{class_ogre_1_1_work_queue_1_1_response_handler_a7a2fabae7f92bed384f100526055a899}} 
\index{Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}!canHandleResponse@{canHandleResponse}}
\index{canHandleResponse@{canHandleResponse}!Ogre::Volume::ChunkHandler@{Ogre::Volume::ChunkHandler}}
\doxysubsubsection{\texorpdfstring{canHandleResponse()}{canHandleResponse()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Work\+Queue\+::\+Response\+Handler\+::can\+Handle\+Response (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{struct_ogre_1_1_work_queue_1_1_response}{Response}} $\ast$}]{res,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}} $\ast$}]{srcQ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}, {\ttfamily [inherited]}}



Return whether this handler can process a given response. 

\begin{DoxyRemark}{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. 
\end{DoxyRemark}


Reimplemented in \mbox{\hyperlink{class_ogre_1_1_terrain_a3e3d8150704d279630a3a125b0439138}{Ogre\+::\+Terrain}}, \mbox{\hyperlink{class_ogre_1_1_terrain_group_ad608848047850ff730ef870457b7e14f}{Ogre\+::\+Terrain\+Group}}, \mbox{\hyperlink{class_ogre_1_1_resource_background_queue_a3e162e3a40c4fe36e8e32bf11dcb2c43}{Ogre\+::\+Resource\+Background\+Queue}}, \mbox{\hyperlink{class_ogre_1_1_page_a3e963a28826407a7cb45f6c8fdaab4ce}{Ogre\+::\+Page}}, and \mbox{\hyperlink{class_ogre_1_1_terrain_lod_manager_a0aa9184563866da3d6de2ed040bc6667}{Ogre\+::\+Terrain\+Lod\+Manager}}.



References Ogre\+::\+Work\+Queue\+::\+Request\+::get\+Aborted(), and Ogre\+::\+Work\+Queue\+::\+Response\+::get\+Request().



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_volume_chunk_handler_8h}{Ogre\+Volume\+Chunk\+Handler.\+h}}\end{DoxyCompactItemize}
