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


Handles the \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}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_volume_1_1_chunk_handler_ab8efefa0d78d0ba30cab05bfea70a277}{Chunk\+Handler} (void)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
virtual \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 \hyperlink{class_ogre_1_1_volume_1_1_chunk_handler_a45aca5ac0738bf63b7539627a9d0d978}{add\+Request} (const \hyperlink{struct_ogre_1_1_volume_1_1_chunk_request}{Chunk\+Request} \&req)
\begin{DoxyCompactList}\small\item\em Adds a new \hyperlink{struct_ogre_1_1_volume_1_1_chunk_request}{Chunk\+Request} to be loaded to the \hyperlink{class_ogre_1_1_work_queue}{Work\+Queue}. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ogre_1_1_work_queue_1_1_request_handler_adf4a5093c7b789352a0a44629490bc87}{can\+Handle\+Request} (const Request $\ast$req, const \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 \hyperlink{class_ogre_1_1_work_queue_1_1_response_handler_a7a2fabae7f92bed384f100526055a899}{can\+Handle\+Response} (const Response $\ast$res, const \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 
\hyperlink{struct_ogre_1_1_work_queue_1_1_response}{Work\+Queue\+::\+Response} $\ast$ \hyperlink{class_ogre_1_1_volume_1_1_chunk_handler_ab88ea294714037c5eeca4f0a6d7127b3}{handle\+Request} (const \hyperlink{class_ogre_1_1_work_queue_1_1_request}{Work\+Queue\+::\+Request} $\ast$req, const \hyperlink{class_ogre_1_1_work_queue}{Work\+Queue} $\ast$srcQ)
\begin{DoxyCompactList}\small\item\em Implementation for \hyperlink{class_ogre_1_1_work_queue_1_1_request_handler}{Work\+Queue\+::\+Request\+Handler}. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_volume_1_1_chunk_handler_abfe457979450e735b65e5c53712f64c2}{handle\+Response} (const \hyperlink{struct_ogre_1_1_work_queue_1_1_response}{Work\+Queue\+::\+Response} $\ast$res, const \hyperlink{class_ogre_1_1_work_queue}{Work\+Queue} $\ast$srcQ)
\begin{DoxyCompactList}\small\item\em Implementation for \hyperlink{class_ogre_1_1_work_queue_1_1_response_handler}{Work\+Queue\+::\+Response\+Handler}. \end{DoxyCompactList}\item 
void \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 \hyperlink{class_ogre_1_1_work_queue}{Work\+Queue} so it doesn\textquotesingle{}t block. \end{DoxyCompactList}\end{DoxyCompactItemize}


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

\subsection{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\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}!Chunk\+Handler@{Chunk\+Handler}}
\index{Chunk\+Handler@{Chunk\+Handler}!Ogre\+::\+Volume\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}}
\subsubsection{\texorpdfstring{Chunk\+Handler()}{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\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}!````~Chunk\+Handler@{$\sim$\+Chunk\+Handler}}
\index{````~Chunk\+Handler@{$\sim$\+Chunk\+Handler}!Ogre\+::\+Volume\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}}
\subsubsection{\texorpdfstring{$\sim$\+Chunk\+Handler()}{~ChunkHandler()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Volume\+::\+Chunk\+Handler\+::$\sim$\+Chunk\+Handler (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Destructor. 



\subsection{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\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}!add\+Request@{add\+Request}}
\index{add\+Request@{add\+Request}!Ogre\+::\+Volume\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}}
\subsubsection{\texorpdfstring{add\+Request()}{addRequest()}}
{\footnotesize\ttfamily void Ogre\+::\+Volume\+::\+Chunk\+Handler\+::add\+Request (\begin{DoxyParamCaption}\item[{const \hyperlink{struct_ogre_1_1_volume_1_1_chunk_request}{Chunk\+Request} \&}]{req }\end{DoxyParamCaption})}



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


\begin{DoxyParams}{Parameters}
{\em req} & The \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\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}!process\+Work\+Queue@{process\+Work\+Queue}}
\index{process\+Work\+Queue@{process\+Work\+Queue}!Ogre\+::\+Volume\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}}
\subsubsection{\texorpdfstring{process\+Work\+Queue()}{processWorkQueue()}}
{\footnotesize\ttfamily void Ogre\+::\+Volume\+::\+Chunk\+Handler\+::process\+Work\+Queue (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Calls the process-\/update of the \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\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}!handle\+Request@{handle\+Request}}
\index{handle\+Request@{handle\+Request}!Ogre\+::\+Volume\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}}
\subsubsection{\texorpdfstring{handle\+Request()}{handleRequest()}}
{\footnotesize\ttfamily \hyperlink{struct_ogre_1_1_work_queue_1_1_response}{Work\+Queue\+::\+Response}$\ast$ Ogre\+::\+Volume\+::\+Chunk\+Handler\+::handle\+Request (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_work_queue_1_1_request}{Work\+Queue\+::\+Request} $\ast$}]{req,  }\item[{const \hyperlink{class_ogre_1_1_work_queue}{Work\+Queue} $\ast$}]{srcQ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



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



Implements \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\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}!handle\+Response@{handle\+Response}}
\index{handle\+Response@{handle\+Response}!Ogre\+::\+Volume\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}}
\subsubsection{\texorpdfstring{handle\+Response()}{handleResponse()}}
{\footnotesize\ttfamily void Ogre\+::\+Volume\+::\+Chunk\+Handler\+::handle\+Response (\begin{DoxyParamCaption}\item[{const \hyperlink{struct_ogre_1_1_work_queue_1_1_response}{Work\+Queue\+::\+Response} $\ast$}]{res,  }\item[{const \hyperlink{class_ogre_1_1_work_queue}{Work\+Queue} $\ast$}]{srcQ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



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



Implements \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\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}!can\+Handle\+Request@{can\+Handle\+Request}}
\index{can\+Handle\+Request@{can\+Handle\+Request}!Ogre\+::\+Volume\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}}
\subsubsection{\texorpdfstring{can\+Handle\+Request()}{canHandleRequest()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Work\+Queue\+::\+Request\+Handler\+::can\+Handle\+Request (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_work_queue_1_1_request}{Request} $\ast$}]{req,  }\item[{const \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 \hyperlink{class_ogre_1_1_terrain_a22196f59f8f761e7fc4bea11db488252}{Ogre\+::\+Terrain}, \hyperlink{class_ogre_1_1_terrain_group_a008f51c172bd858cca8763af865f3fa1}{Ogre\+::\+Terrain\+Group}, \hyperlink{class_ogre_1_1_resource_background_queue_adc005af8b5c25bcfd6e39d4d5255d754}{Ogre\+::\+Resource\+Background\+Queue}, \hyperlink{class_ogre_1_1_page_a858b194d988c22e52516f03fd50d0062}{Ogre\+::\+Page}, and \hyperlink{class_ogre_1_1_terrain_lod_manager_af274ee16de8e9ddf1f058a2eb0ea1b5e}{Ogre\+::\+Terrain\+Lod\+Manager}.



References Ogre\+::\+Work\+Queue\+::\+Request\+::get\+Aborted(), and O\+G\+R\+E\+\_\+\+N\+O\+D\+I\+S\+C\+A\+RD.



Referenced by Ogre\+::\+Default\+Work\+Queue\+Base\+::set\+Response\+Processing\+Time\+Limit().

\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\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}!can\+Handle\+Response@{can\+Handle\+Response}}
\index{can\+Handle\+Response@{can\+Handle\+Response}!Ogre\+::\+Volume\+::\+Chunk\+Handler@{Ogre\+::\+Volume\+::\+Chunk\+Handler}}
\subsubsection{\texorpdfstring{can\+Handle\+Response()}{canHandleResponse()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Work\+Queue\+::\+Response\+Handler\+::can\+Handle\+Response (\begin{DoxyParamCaption}\item[{const \hyperlink{struct_ogre_1_1_work_queue_1_1_response}{Response} $\ast$}]{res,  }\item[{const \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 \hyperlink{class_ogre_1_1_terrain_a3e3d8150704d279630a3a125b0439138}{Ogre\+::\+Terrain}, \hyperlink{class_ogre_1_1_terrain_group_ad608848047850ff730ef870457b7e14f}{Ogre\+::\+Terrain\+Group}, \hyperlink{class_ogre_1_1_resource_background_queue_a3e162e3a40c4fe36e8e32bf11dcb2c43}{Ogre\+::\+Resource\+Background\+Queue}, \hyperlink{class_ogre_1_1_page_a3e963a28826407a7cb45f6c8fdaab4ce}{Ogre\+::\+Page}, and \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 
\hyperlink{_ogre_volume_chunk_handler_8h}{Ogre\+Volume\+Chunk\+Handler.\+h}\end{DoxyCompactItemize}
