\hypertarget{class_ogre_1_1_distance_lod_box_strategy}{}\section{Ogre\+:\+:Distance\+Lod\+Box\+Strategy Class Reference}
\label{class_ogre_1_1_distance_lod_box_strategy}\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}


Level of detail strategy based on distance from camera to an object\textquotesingle{}s bounding box.  




{\ttfamily \#include $<$Ogre\+Distance\+Lod\+Strategy.\+h$>$}



Inheritance diagram for Ogre\+:\+:Distance\+Lod\+Box\+Strategy\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_distance_lod_box_strategy__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_distance_lod_box_strategy_aefc779936e9fe54a627715bbc0a7f3d9}{Distance\+Lod\+Box\+Strategy} ()
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_lod_strategy_ab3a486ff7212d5175828e4fef82ca37c}{assert\+Sorted} (const \hyperlink{class_ogre_1_1_mesh_a6c2d57227cf44de50edabb8f428c6785}{Mesh\+::\+Lod\+Value\+List} \&values) const
\begin{DoxyCompactList}\small\item\em Assert that the L\+OD values are sorted from greatest detail to least detail. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} \hyperlink{class_ogre_1_1_distance_lod_strategy_base_aac8890f5f7fbda974dee926427d83068}{get\+Base\+Value} () const
\begin{DoxyCompactList}\small\item\em Get the value of the first (highest) level of detail. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort} \hyperlink{class_ogre_1_1_distance_lod_strategy_base_aeffd29cba6c233aacd441337be5d611c}{get\+Index} (\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} value, const \hyperlink{class_ogre_1_1_mesh_a5895cc4a48a728812531f3cc90e40412}{Mesh\+::\+Mesh\+Lod\+Usage\+List} \&mesh\+Lod\+Usage\+List) const
\begin{DoxyCompactList}\small\item\em Get the index of the L\+OD usage which applies to a given value. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort} \hyperlink{class_ogre_1_1_distance_lod_strategy_base_ad7af9e2a1466c1e068451da58c4a2eec}{get\+Index} (\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} value, const \hyperlink{class_ogre_1_1_material_a7b73a4bace2cde1c32b0d4fdea407ff4}{Material\+::\+Lod\+Value\+List} \&material\+Lod\+Value\+List) const
\begin{DoxyCompactList}\small\item\em Get the index of the L\+OD usage which applies to a given value. \end{DoxyCompactList}\item 
const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \& \hyperlink{class_ogre_1_1_lod_strategy_a6ffe63d24cfcaf5c0d6028fe61baa80e}{get\+Name} () const
\begin{DoxyCompactList}\small\item\em Get the name of this strategy. \end{DoxyCompactList}\item 
\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} \hyperlink{class_ogre_1_1_distance_lod_box_strategy_aff196162af81de81c84aa38ee9a97005}{get\+Squared\+Depth} (const \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$movable\+Object, const \hyperlink{class_ogre_1_1_camera}{Ogre\+::\+Camera} $\ast$camera) const
\begin{DoxyCompactList}\small\item\em Get the squared depth from camera to the L\+OD object. \end{DoxyCompactList}\item 
\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} \hyperlink{class_ogre_1_1_lod_strategy_adeb7d40e283838e2f04139fc183c95d0}{get\+Value} (const \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$movable\+Object, const \hyperlink{class_ogre_1_1_camera}{Camera} $\ast$camera) const
\begin{DoxyCompactList}\small\item\em Compute the L\+OD value for a given movable object relative to a given camera. \end{DoxyCompactList}\item 
bool \hyperlink{class_ogre_1_1_distance_lod_strategy_base_a5b60368988f8c388b97d6af77b7c08c9}{is\+Reference\+View\+Enabled} () const
\begin{DoxyCompactList}\small\item\em Determine if use of the reference view is enabled. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ogre_1_1_distance_lod_strategy_base_a8288f7831f24cdc5734964234f7bbfc0}{is\+Sorted} (const \hyperlink{class_ogre_1_1_mesh_a6c2d57227cf44de50edabb8f428c6785}{Mesh\+::\+Lod\+Value\+List} \&values) const
\begin{DoxyCompactList}\small\item\em Determine if the L\+OD values are sorted from greatest detail to least detail. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_distance_lod_strategy_base_aed77c6dfbdc0fbf75bf9deaf4f2b8bfc}{set\+Reference\+View} (\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} viewport\+Width, \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} viewport\+Height, \hyperlink{class_ogre_1_1_radian}{Radian} fovY)
\begin{DoxyCompactList}\small\item\em Sets the reference view upon which the distances were based. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_distance_lod_strategy_base_a0de7722e986cdcca067bc1773feb6065}{set\+Reference\+View\+Enabled} (bool value)
\begin{DoxyCompactList}\small\item\em Enables to disables use of the reference view. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_distance_lod_strategy_base_a7d70473daa55f3b36cf1bfbf41b05701}{sort} (\hyperlink{class_ogre_1_1_mesh_a5895cc4a48a728812531f3cc90e40412}{Mesh\+::\+Mesh\+Lod\+Usage\+List} \&mesh\+Lod\+Usage\+List) const
\begin{DoxyCompactList}\small\item\em Sort mesh L\+OD usage list from greatest to least detail. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} \hyperlink{class_ogre_1_1_distance_lod_strategy_base_a9049c547f1df50c59ccea9ffa5170bce}{transform\+Bias} (\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} factor) const
\begin{DoxyCompactList}\small\item\em Transform L\+OD bias so it only needs to be multiplied by the L\+OD value. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} \hyperlink{class_ogre_1_1_distance_lod_strategy_base_a6637262cc1547ecb50bd3a55720896df}{transform\+User\+Value} (\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} user\+Value) const
\begin{DoxyCompactList}\small\item\em Transform user supplied value to internal value. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{class_ogre_1_1_distance_lod_box_strategy}{Distance\+Lod\+Box\+Strategy} \& \hyperlink{class_ogre_1_1_distance_lod_box_strategy_a98a0b20f19acff557e6ff512cd7ceb02}{get\+Singleton} (void)
\begin{DoxyCompactList}\small\item\em Get the singleton instance. \end{DoxyCompactList}\item 
static \hyperlink{class_ogre_1_1_distance_lod_box_strategy}{Distance\+Lod\+Box\+Strategy} $\ast$ \hyperlink{class_ogre_1_1_distance_lod_box_strategy_a28bf7af2f635feb42ba86a43cee253f6}{get\+Singleton\+Ptr} (void)
\begin{DoxyCompactList}\small\item\em Get the singleton instance. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Level of detail strategy based on distance from camera to an object\textquotesingle{}s bounding box. 

\begin{DoxyRemark}{Remarks}
The purpose of the reference view is to ensure a consistent experience for all users. Monitors of different resolutions and aspect ratios will each have different results for the distance queries. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
It depends on gameplay testing. If all testers had 16\+:9 monitors and 110° F\+OV, then that\textquotesingle{}s the value you should enter (to ensure as much as possible the experience stays consistent for all other users who don\textquotesingle{}t have a 16\+:9 monitor and/or use a different F\+OV). 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
If all your testers had 4\+:3 monitors, then enter a 4\+:3 resolution. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
If all your testers had varying resolutions or you just didn\textquotesingle{}t care, then this feature is useless for you and should be disabled (default\+: disabled). 
\end{DoxyParagraph}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_distance_lod_box_strategy_aefc779936e9fe54a627715bbc0a7f3d9}\label{class_ogre_1_1_distance_lod_box_strategy_aefc779936e9fe54a627715bbc0a7f3d9}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!Distance\+Lod\+Box\+Strategy@{Distance\+Lod\+Box\+Strategy}}
\index{Distance\+Lod\+Box\+Strategy@{Distance\+Lod\+Box\+Strategy}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{Distance\+Lod\+Box\+Strategy()}{DistanceLodBoxStrategy()}}
{\footnotesize\ttfamily Ogre\+::\+Distance\+Lod\+Box\+Strategy\+::\+Distance\+Lod\+Box\+Strategy (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Default constructor. 



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_distance_lod_box_strategy_aff196162af81de81c84aa38ee9a97005}\label{class_ogre_1_1_distance_lod_box_strategy_aff196162af81de81c84aa38ee9a97005}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!get\+Squared\+Depth@{get\+Squared\+Depth}}
\index{get\+Squared\+Depth@{get\+Squared\+Depth}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{get\+Squared\+Depth()}{getSquaredDepth()}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} Ogre\+::\+Distance\+Lod\+Box\+Strategy\+::get\+Squared\+Depth (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$}]{movable\+Object,  }\item[{const \hyperlink{class_ogre_1_1_camera}{Ogre\+::\+Camera} $\ast$}]{camera }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Get the squared depth from camera to the L\+OD object. 



Implements \hyperlink{class_ogre_1_1_distance_lod_strategy_base_a4f8f711a88a7ad7308bfb58e525503ab}{Ogre\+::\+Distance\+Lod\+Strategy\+Base}.

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_box_strategy_a98a0b20f19acff557e6ff512cd7ceb02}\label{class_ogre_1_1_distance_lod_box_strategy_a98a0b20f19acff557e6ff512cd7ceb02}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!get\+Singleton@{get\+Singleton}}
\index{get\+Singleton@{get\+Singleton}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{get\+Singleton()}{getSingleton()}}
{\footnotesize\ttfamily static \hyperlink{class_ogre_1_1_distance_lod_box_strategy}{Distance\+Lod\+Box\+Strategy}\& Ogre\+::\+Distance\+Lod\+Box\+Strategy\+::get\+Singleton (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Get the singleton instance. 

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_box_strategy_a28bf7af2f635feb42ba86a43cee253f6}\label{class_ogre_1_1_distance_lod_box_strategy_a28bf7af2f635feb42ba86a43cee253f6}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!get\+Singleton\+Ptr@{get\+Singleton\+Ptr}}
\index{get\+Singleton\+Ptr@{get\+Singleton\+Ptr}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{get\+Singleton\+Ptr()}{getSingletonPtr()}}
{\footnotesize\ttfamily static \hyperlink{class_ogre_1_1_distance_lod_box_strategy}{Distance\+Lod\+Box\+Strategy}$\ast$ Ogre\+::\+Distance\+Lod\+Box\+Strategy\+::get\+Singleton\+Ptr (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Get the singleton instance. 

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_strategy_base_aac8890f5f7fbda974dee926427d83068}\label{class_ogre_1_1_distance_lod_strategy_base_aac8890f5f7fbda974dee926427d83068}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!get\+Base\+Value@{get\+Base\+Value}}
\index{get\+Base\+Value@{get\+Base\+Value}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{get\+Base\+Value()}{getBaseValue()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::get\+Base\+Value (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Get the value of the first (highest) level of detail. 



Implements \hyperlink{class_ogre_1_1_lod_strategy_a11c15567a651d4e46856030f6d34b789}{Ogre\+::\+Lod\+Strategy}.

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_strategy_base_a9049c547f1df50c59ccea9ffa5170bce}\label{class_ogre_1_1_distance_lod_strategy_base_a9049c547f1df50c59ccea9ffa5170bce}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!transform\+Bias@{transform\+Bias}}
\index{transform\+Bias@{transform\+Bias}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{transform\+Bias()}{transformBias()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::transform\+Bias (\begin{DoxyParamCaption}\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{factor }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Transform L\+OD bias so it only needs to be multiplied by the L\+OD value. 



Implements \hyperlink{class_ogre_1_1_lod_strategy_aeaf5bcfb7457356cb921366769490705}{Ogre\+::\+Lod\+Strategy}.

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_strategy_base_a6637262cc1547ecb50bd3a55720896df}\label{class_ogre_1_1_distance_lod_strategy_base_a6637262cc1547ecb50bd3a55720896df}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!transform\+User\+Value@{transform\+User\+Value}}
\index{transform\+User\+Value@{transform\+User\+Value}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{transform\+User\+Value()}{transformUserValue()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::transform\+User\+Value (\begin{DoxyParamCaption}\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{user\+Value }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Transform user supplied value to internal value. 

\begin{DoxyRemark}{Remarks}
By default, performs no transformation. 

Do not throw exceptions for invalid values here, as the L\+OD strategy may be changed such that the values become valid. 
\end{DoxyRemark}


Reimplemented from \hyperlink{class_ogre_1_1_lod_strategy_a60e9908806b839380729aae13b9a959a}{Ogre\+::\+Lod\+Strategy}.

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_strategy_base_aeffd29cba6c233aacd441337be5d611c}\label{class_ogre_1_1_distance_lod_strategy_base_aeffd29cba6c233aacd441337be5d611c}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!get\+Index@{get\+Index}}
\index{get\+Index@{get\+Index}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{get\+Index()}{getIndex()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort} Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::get\+Index (\begin{DoxyParamCaption}\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{value,  }\item[{const \hyperlink{class_ogre_1_1_mesh_a5895cc4a48a728812531f3cc90e40412}{Mesh\+::\+Mesh\+Lod\+Usage\+List} \&}]{mesh\+Lod\+Usage\+List }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Get the index of the L\+OD usage which applies to a given value. 



Implements \hyperlink{class_ogre_1_1_lod_strategy_a25dbe720f04a6787f5bc143d522f8f83}{Ogre\+::\+Lod\+Strategy}.

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_strategy_base_ad7af9e2a1466c1e068451da58c4a2eec}\label{class_ogre_1_1_distance_lod_strategy_base_ad7af9e2a1466c1e068451da58c4a2eec}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!get\+Index@{get\+Index}}
\index{get\+Index@{get\+Index}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{get\+Index()}{getIndex()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort} Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::get\+Index (\begin{DoxyParamCaption}\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{value,  }\item[{const \hyperlink{class_ogre_1_1_material_a7b73a4bace2cde1c32b0d4fdea407ff4}{Material\+::\+Lod\+Value\+List} \&}]{material\+Lod\+Value\+List }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Get the index of the L\+OD usage which applies to a given value. 



Implements \hyperlink{class_ogre_1_1_lod_strategy_ac1509db4186c609e174deeb3be5b3760}{Ogre\+::\+Lod\+Strategy}.

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_strategy_base_a7d70473daa55f3b36cf1bfbf41b05701}\label{class_ogre_1_1_distance_lod_strategy_base_a7d70473daa55f3b36cf1bfbf41b05701}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!sort@{sort}}
\index{sort@{sort}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{sort()}{sort()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::sort (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_mesh_a5895cc4a48a728812531f3cc90e40412}{Mesh\+::\+Mesh\+Lod\+Usage\+List} \&}]{mesh\+Lod\+Usage\+List }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Sort mesh L\+OD usage list from greatest to least detail. 



Implements \hyperlink{class_ogre_1_1_lod_strategy_a5f7dbdd90f8acb8edbffbf40fbd13df5}{Ogre\+::\+Lod\+Strategy}.

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_strategy_base_a8288f7831f24cdc5734964234f7bbfc0}\label{class_ogre_1_1_distance_lod_strategy_base_a8288f7831f24cdc5734964234f7bbfc0}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!is\+Sorted@{is\+Sorted}}
\index{is\+Sorted@{is\+Sorted}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{is\+Sorted()}{isSorted()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::is\+Sorted (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_mesh_a6c2d57227cf44de50edabb8f428c6785}{Mesh\+::\+Lod\+Value\+List} \&}]{values }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Determine if the L\+OD values are sorted from greatest detail to least detail. 



Implements \hyperlink{class_ogre_1_1_lod_strategy_a7a1baabc9cc705dc5551a86534145ca3}{Ogre\+::\+Lod\+Strategy}.

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_strategy_base_aed77c6dfbdc0fbf75bf9deaf4f2b8bfc}\label{class_ogre_1_1_distance_lod_strategy_base_aed77c6dfbdc0fbf75bf9deaf4f2b8bfc}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!set\+Reference\+View@{set\+Reference\+View}}
\index{set\+Reference\+View@{set\+Reference\+View}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{set\+Reference\+View()}{setReferenceView()}}
{\footnotesize\ttfamily void Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::set\+Reference\+View (\begin{DoxyParamCaption}\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{viewport\+Width,  }\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{viewport\+Height,  }\item[{\hyperlink{class_ogre_1_1_radian}{Radian}}]{fovY }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inherited]}}



Sets the reference view upon which the distances were based. 

\begin{DoxyNote}{Note}
This automatically enables use of the reference view. 

There is no corresponding get method for these values as they are not saved, but used to compute a reference value. 
\end{DoxyNote}
\mbox{\Hypertarget{class_ogre_1_1_distance_lod_strategy_base_a0de7722e986cdcca067bc1773feb6065}\label{class_ogre_1_1_distance_lod_strategy_base_a0de7722e986cdcca067bc1773feb6065}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!set\+Reference\+View\+Enabled@{set\+Reference\+View\+Enabled}}
\index{set\+Reference\+View\+Enabled@{set\+Reference\+View\+Enabled}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{set\+Reference\+View\+Enabled()}{setReferenceViewEnabled()}}
{\footnotesize\ttfamily void Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::set\+Reference\+View\+Enabled (\begin{DoxyParamCaption}\item[{bool}]{value }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inherited]}}



Enables to disables use of the reference view. 

\begin{DoxyNote}{Note}
Do not enable use of the reference view before setting it. 
\end{DoxyNote}
\mbox{\Hypertarget{class_ogre_1_1_distance_lod_strategy_base_a5b60368988f8c388b97d6af77b7c08c9}\label{class_ogre_1_1_distance_lod_strategy_base_a5b60368988f8c388b97d6af77b7c08c9}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!is\+Reference\+View\+Enabled@{is\+Reference\+View\+Enabled}}
\index{is\+Reference\+View\+Enabled@{is\+Reference\+View\+Enabled}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{is\+Reference\+View\+Enabled()}{isReferenceViewEnabled()}}
{\footnotesize\ttfamily bool Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::is\+Reference\+View\+Enabled (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inherited]}}



Determine if use of the reference view is enabled. 

\mbox{\Hypertarget{class_ogre_1_1_lod_strategy_adeb7d40e283838e2f04139fc183c95d0}\label{class_ogre_1_1_lod_strategy_adeb7d40e283838e2f04139fc183c95d0}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!get\+Value@{get\+Value}}
\index{get\+Value@{get\+Value}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{get\+Value()}{getValue()}}
{\footnotesize\ttfamily \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} Ogre\+::\+Lod\+Strategy\+::get\+Value (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$}]{movable\+Object,  }\item[{const \hyperlink{class_ogre_1_1_camera}{Camera} $\ast$}]{camera }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inherited]}}



Compute the L\+OD value for a given movable object relative to a given camera. 

\mbox{\Hypertarget{class_ogre_1_1_lod_strategy_ab3a486ff7212d5175828e4fef82ca37c}\label{class_ogre_1_1_lod_strategy_ab3a486ff7212d5175828e4fef82ca37c}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!assert\+Sorted@{assert\+Sorted}}
\index{assert\+Sorted@{assert\+Sorted}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{assert\+Sorted()}{assertSorted()}}
{\footnotesize\ttfamily void Ogre\+::\+Lod\+Strategy\+::assert\+Sorted (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_mesh_a6c2d57227cf44de50edabb8f428c6785}{Mesh\+::\+Lod\+Value\+List} \&}]{values }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inherited]}}



Assert that the L\+OD values are sorted from greatest detail to least detail. 

\mbox{\Hypertarget{class_ogre_1_1_lod_strategy_a6ffe63d24cfcaf5c0d6028fe61baa80e}\label{class_ogre_1_1_lod_strategy_a6ffe63d24cfcaf5c0d6028fe61baa80e}} 
\index{Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}!get\+Name@{get\+Name}}
\index{get\+Name@{get\+Name}!Ogre\+::\+Distance\+Lod\+Box\+Strategy@{Ogre\+::\+Distance\+Lod\+Box\+Strategy}}
\subsubsection{\texorpdfstring{get\+Name()}{getName()}}
{\footnotesize\ttfamily const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}\& Ogre\+::\+Lod\+Strategy\+::get\+Name (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Get the name of this strategy. 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_distance_lod_strategy_8h}{Ogre\+Distance\+Lod\+Strategy.\+h}\end{DoxyCompactItemize}
