\hypertarget{class_ogre_1_1_terrain_paging}{}\section{Ogre\+:\+:Terrain\+Paging Class Reference}
\label{class_ogre_1_1_terrain_paging}\index{Ogre\+::\+Terrain\+Paging@{Ogre\+::\+Terrain\+Paging}}


This class is the \textquotesingle{}core\textquotesingle{} class for paging terrain, that will integrate with the larger paging system and provide the appropriate utility classes required.  




{\ttfamily \#include $<$Ogre\+Terrain\+Paging.\+h$>$}



Inheritance diagram for Ogre\+:\+:Terrain\+Paging\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=191pt]{class_ogre_1_1_terrain_paging__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_terrain_paging_a9626171913fa5a7a0750d1c7fde899be}{Terrain\+Paging} (\hyperlink{class_ogre_1_1_page_manager}{Page\+Manager} $\ast$page\+Mgr)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
virtual \hyperlink{class_ogre_1_1_terrain_paging_abd25fd10f56c13f1adc25946318338a8}{$\sim$\+Terrain\+Paging} ()
\item 
\hyperlink{class_ogre_1_1_terrain_paged_world_section}{Terrain\+Paged\+World\+Section} $\ast$ \hyperlink{class_ogre_1_1_terrain_paging_ac4a3791deafbd9fea768988db2cc0b6f}{create\+World\+Section} (\hyperlink{class_ogre_1_1_paged_world}{Paged\+World} $\ast$world, \hyperlink{class_ogre_1_1_terrain_group}{Terrain\+Group} $\ast$terrain\+Group, \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} load\+Radius, \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} hold\+Radius, \hyperlink{namespace_ogre_a1c37a43c04753c9ae0c17108c9e6c9d2}{int32} minX=-\/10, \hyperlink{namespace_ogre_a1c37a43c04753c9ae0c17108c9e6c9d2}{int32} minY=-\/10, \hyperlink{namespace_ogre_a1c37a43c04753c9ae0c17108c9e6c9d2}{int32} maxX=10, \hyperlink{namespace_ogre_a1c37a43c04753c9ae0c17108c9e6c9d2}{int32} maxY=10, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&section\+Name=\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}, \hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32} loading\+Interval\+Ms=900)
\begin{DoxyCompactList}\small\item\em Create a \hyperlink{class_ogre_1_1_terrain_paged_world_section}{Terrain\+Paged\+World\+Section}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class is the \textquotesingle{}core\textquotesingle{} class for paging terrain, that will integrate with the larger paging system and provide the appropriate utility classes required. 

\begin{DoxyRemark}{Remarks}
You should construct this class after \hyperlink{class_ogre_1_1_page_manager}{Page\+Manager} and before any Paged\+Worlds that might use it are created / loaded. Once constructed, it will make the \char`\"{}\+Terrain\char`\"{} \hyperlink{class_ogre_1_1_paged_world_section}{Paged\+World\+Section} type available, which uses a grid strategy for paging and uses \hyperlink{class_ogre_1_1_terrain_group}{Terrain\+Group} for the content. Other content can be embedded in the pages too but the terrain is done like this in order to maintain connections between pages and other global data. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
Because \hyperlink{class_ogre_1_1_paged_world}{Paged\+World} and all attached classes have to be loadable from a stream, most of the functionality is provided behind generalised interfaces. However, for constructing a paged terrain in code you can use utility methods on this class. This procedurally created data can then be saved in a generic form which will reconstruct on loading. Alternatively you can use the generic methods and simply cast based on your prior knowledge of the types (or checking the type names exposed). 
\end{DoxyParagraph}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_terrain_paging_a9626171913fa5a7a0750d1c7fde899be}\label{class_ogre_1_1_terrain_paging_a9626171913fa5a7a0750d1c7fde899be}} 
\index{Ogre\+::\+Terrain\+Paging@{Ogre\+::\+Terrain\+Paging}!Terrain\+Paging@{Terrain\+Paging}}
\index{Terrain\+Paging@{Terrain\+Paging}!Ogre\+::\+Terrain\+Paging@{Ogre\+::\+Terrain\+Paging}}
\subsubsection{\texorpdfstring{Terrain\+Paging()}{TerrainPaging()}}
{\footnotesize\ttfamily Ogre\+::\+Terrain\+Paging\+::\+Terrain\+Paging (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_page_manager}{Page\+Manager} $\ast$}]{page\+Mgr }\end{DoxyParamCaption})}



Constructor. 


\begin{DoxyParams}{Parameters}
{\em page\+Mgr} & The \hyperlink{class_ogre_1_1_page_manager}{Page\+Manager} which this class should attach to. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_terrain_paging_abd25fd10f56c13f1adc25946318338a8}\label{class_ogre_1_1_terrain_paging_abd25fd10f56c13f1adc25946318338a8}} 
\index{Ogre\+::\+Terrain\+Paging@{Ogre\+::\+Terrain\+Paging}!````~Terrain\+Paging@{$\sim$\+Terrain\+Paging}}
\index{````~Terrain\+Paging@{$\sim$\+Terrain\+Paging}!Ogre\+::\+Terrain\+Paging@{Ogre\+::\+Terrain\+Paging}}
\subsubsection{\texorpdfstring{$\sim$\+Terrain\+Paging()}{~TerrainPaging()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Terrain\+Paging\+::$\sim$\+Terrain\+Paging (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_terrain_paging_ac4a3791deafbd9fea768988db2cc0b6f}\label{class_ogre_1_1_terrain_paging_ac4a3791deafbd9fea768988db2cc0b6f}} 
\index{Ogre\+::\+Terrain\+Paging@{Ogre\+::\+Terrain\+Paging}!create\+World\+Section@{create\+World\+Section}}
\index{create\+World\+Section@{create\+World\+Section}!Ogre\+::\+Terrain\+Paging@{Ogre\+::\+Terrain\+Paging}}
\subsubsection{\texorpdfstring{create\+World\+Section()}{createWorldSection()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_terrain_paged_world_section}{Terrain\+Paged\+World\+Section}$\ast$ Ogre\+::\+Terrain\+Paging\+::create\+World\+Section (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_paged_world}{Paged\+World} $\ast$}]{world,  }\item[{\hyperlink{class_ogre_1_1_terrain_group}{Terrain\+Group} $\ast$}]{terrain\+Group,  }\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{load\+Radius,  }\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{hold\+Radius,  }\item[{\hyperlink{namespace_ogre_a1c37a43c04753c9ae0c17108c9e6c9d2}{int32}}]{minX = {\ttfamily -\/10},  }\item[{\hyperlink{namespace_ogre_a1c37a43c04753c9ae0c17108c9e6c9d2}{int32}}]{minY = {\ttfamily -\/10},  }\item[{\hyperlink{namespace_ogre_a1c37a43c04753c9ae0c17108c9e6c9d2}{int32}}]{maxX = {\ttfamily 10},  }\item[{\hyperlink{namespace_ogre_a1c37a43c04753c9ae0c17108c9e6c9d2}{int32}}]{maxY = {\ttfamily 10},  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{section\+Name = {\ttfamily \hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}},  }\item[{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}}]{loading\+Interval\+Ms = {\ttfamily 900} }\end{DoxyParamCaption})}



Create a \hyperlink{class_ogre_1_1_terrain_paged_world_section}{Terrain\+Paged\+World\+Section}. 

\begin{DoxyRemark}{Remarks}
This is the simplest way to create a world section which is configured to contain terrain (among other objects if you want). You can also do this by calling \hyperlink{class_ogre_1_1_paged_world_afdd910dcc3bdcaac40d3a30c1f21611e}{Paged\+World\+::create\+Section} with the type \char`\"{}\+Terrain\char`\"{} but there are more steps to configuring it that way (note\+: this is how loading works though so it remains generic). 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em world} & The \hyperlink{class_ogre_1_1_paged_world}{Paged\+World} that is to contain this section \\
\hline
{\em terrain\+Group} & A \hyperlink{class_ogre_1_1_terrain_group}{Terrain\+Group} which must have been pre-\/configured before this call, to at least set the origin, the world size, and the file name convention. \\
\hline
{\em load\+Radius} & The radius from the camera at which terrain pages will be loaded \\
\hline
{\em hold\+Radius} & The radius from the camera at which terrain pages will be held in memory but not loaded if they\textquotesingle{}re not already. This must be larger than load\+Radius and is used to minimise thrashing if the camera goes backwards and forwards at the loading border. \\
\hline
{\em minX,minY,maxX,maxY} & The min/max page indexes that the world will try to load pages for, as measured from the origin page at (0,0) by a signed index. The default is -\/10 to 10 in each direction or 20x20 pages. \\
\hline
{\em section\+Name} & An optional name to give the section (if none is provided, one will be generated) \\
\hline
{\em loading\+Interval\+Ms} & An optional interval in milliseconds to wait between loading single pages. The default is 900 ms. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The world section which is already attached to and owned by the world you passed in. There is no \textquotesingle{}destroy\textquotesingle{} method because you destroy via the \hyperlink{class_ogre_1_1_paged_world}{Paged\+World}, this is just a helper function. 
\end{DoxyReturn}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_terrain_paging_8h}{Ogre\+Terrain\+Paging.\+h}\end{DoxyCompactItemize}
