\hypertarget{class_ogre_1_1_distance_lod_sphere_strategy}{}\doxysection{Ogre\+::Distance\+Lod\+Sphere\+Strategy Class Reference}
\label{class_ogre_1_1_distance_lod_sphere_strategy}\index{Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}


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




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



Inheritance diagram for Ogre\+::Distance\+Lod\+Sphere\+Strategy\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_distance_lod_sphere_strategy__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_distance_lod_sphere_strategy_a99b5ef240e4230111c22e2e131474f3f}{Distance\+Lod\+Sphere\+Strategy}} ()
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_lod_strategy_ab3a486ff7212d5175828e4fef82ca37c}{assert\+Sorted}} (const \mbox{\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 \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} \mbox{\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 \mbox{\hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort}} \mbox{\hyperlink{class_ogre_1_1_distance_lod_strategy_base_ad7af9e2a1466c1e068451da58c4a2eec}{get\+Index}} (\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} value, const \mbox{\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 
virtual \mbox{\hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort}} \mbox{\hyperlink{class_ogre_1_1_distance_lod_strategy_base_aeffd29cba6c233aacd441337be5d611c}{get\+Index}} (\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} value, const \mbox{\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 
const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \& \mbox{\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 
\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} \mbox{\hyperlink{class_ogre_1_1_distance_lod_sphere_strategy_a68dbd83cee06a2bbbbf531e04083610e}{get\+Squared\+Depth}} (const \mbox{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object}} $\ast$movable\+Object, const \mbox{\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 
\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} \mbox{\hyperlink{class_ogre_1_1_lod_strategy_adeb7d40e283838e2f04139fc183c95d0}{get\+Value}} (const \mbox{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object}} $\ast$movable\+Object, const \mbox{\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 \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_distance_lod_strategy_base_a8288f7831f24cdc5734964234f7bbfc0}{is\+Sorted}} (const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_distance_lod_strategy_base_aed77c6dfbdc0fbf75bf9deaf4f2b8bfc}{set\+Reference\+View}} (\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} viewport\+Width, \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} viewport\+Height, \mbox{\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 \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_distance_lod_strategy_base_a7d70473daa55f3b36cf1bfbf41b05701}{sort}} (\mbox{\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 \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} \mbox{\hyperlink{class_ogre_1_1_distance_lod_strategy_base_a9049c547f1df50c59ccea9ffa5170bce}{transform\+Bias}} (\mbox{\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 \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} \mbox{\hyperlink{class_ogre_1_1_distance_lod_strategy_base_a6637262cc1547ecb50bd3a55720896df}{transform\+User\+Value}} (\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} user\+Value) const
\begin{DoxyCompactList}\small\item\em Transform user supplied value to internal value. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \mbox{\hyperlink{class_ogre_1_1_distance_lod_sphere_strategy}{Distance\+Lod\+Sphere\+Strategy}} \& \mbox{\hyperlink{class_ogre_1_1_distance_lod_sphere_strategy_a14e22a0257b4a4c46f87b168a250305c}{get\+Singleton}} (void)
\begin{DoxyCompactList}\small\item\em Get the singleton instance. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{class_ogre_1_1_distance_lod_sphere_strategy}{Distance\+Lod\+Sphere\+Strategy}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_distance_lod_sphere_strategy_a206e94b589be3276dd239c88ca94930e}{get\+Singleton\+Ptr}} (void)
\begin{DoxyCompactList}\small\item\em Get the singleton instance. \end{DoxyCompactList}\end{DoxyCompactItemize}


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

\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}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_distance_lod_sphere_strategy_a99b5ef240e4230111c22e2e131474f3f}\label{class_ogre_1_1_distance_lod_sphere_strategy_a99b5ef240e4230111c22e2e131474f3f}} 
\index{Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!DistanceLodSphereStrategy@{DistanceLodSphereStrategy}}
\index{DistanceLodSphereStrategy@{DistanceLodSphereStrategy}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{DistanceLodSphereStrategy()}{DistanceLodSphereStrategy()}}
{\footnotesize\ttfamily Ogre\+::\+Distance\+Lod\+Sphere\+Strategy\+::\+Distance\+Lod\+Sphere\+Strategy (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Default constructor. 



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_distance_lod_sphere_strategy_a68dbd83cee06a2bbbbf531e04083610e}\label{class_ogre_1_1_distance_lod_sphere_strategy_a68dbd83cee06a2bbbbf531e04083610e}} 
\index{Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!getSquaredDepth@{getSquaredDepth}}
\index{getSquaredDepth@{getSquaredDepth}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{getSquaredDepth()}{getSquaredDepth()}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} Ogre\+::\+Distance\+Lod\+Sphere\+Strategy\+::get\+Squared\+Depth (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object}} $\ast$}]{movable\+Object,  }\item[{const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_distance_lod_strategy_base_a4f8f711a88a7ad7308bfb58e525503ab}{Ogre\+::\+Distance\+Lod\+Strategy\+Base}}.

\mbox{\Hypertarget{class_ogre_1_1_distance_lod_sphere_strategy_a14e22a0257b4a4c46f87b168a250305c}\label{class_ogre_1_1_distance_lod_sphere_strategy_a14e22a0257b4a4c46f87b168a250305c}} 
\index{Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!getSingleton@{getSingleton}}
\index{getSingleton@{getSingleton}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{getSingleton()}{getSingleton()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{class_ogre_1_1_distance_lod_sphere_strategy}{Distance\+Lod\+Sphere\+Strategy}}\& Ogre\+::\+Distance\+Lod\+Sphere\+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_sphere_strategy_a206e94b589be3276dd239c88ca94930e}\label{class_ogre_1_1_distance_lod_sphere_strategy_a206e94b589be3276dd239c88ca94930e}} 
\index{Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!getSingletonPtr@{getSingletonPtr}}
\index{getSingletonPtr@{getSingletonPtr}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{getSingletonPtr()}{getSingletonPtr()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{class_ogre_1_1_distance_lod_sphere_strategy}{Distance\+Lod\+Sphere\+Strategy}}$\ast$ Ogre\+::\+Distance\+Lod\+Sphere\+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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!getBaseValue@{getBaseValue}}
\index{getBaseValue@{getBaseValue}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{getBaseValue()}{getBaseValue()}}
{\footnotesize\ttfamily virtual \mbox{\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 \mbox{\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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!transformBias@{transformBias}}
\index{transformBias@{transformBias}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{transformBias()}{transformBias()}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::transform\+Bias (\begin{DoxyParamCaption}\item[{\mbox{\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 \mbox{\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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!transformUserValue@{transformUserValue}}
\index{transformUserValue@{transformUserValue}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{transformUserValue()}{transformUserValue()}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::transform\+User\+Value (\begin{DoxyParamCaption}\item[{\mbox{\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 \mbox{\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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!getIndex@{getIndex}}
\index{getIndex@{getIndex}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{getIndex()}{getIndex()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort}} Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::get\+Index (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{value,  }\item[{const \mbox{\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 \mbox{\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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!getIndex@{getIndex}}
\index{getIndex@{getIndex}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{getIndex()}{getIndex()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort}} Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::get\+Index (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{value,  }\item[{const \mbox{\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 \mbox{\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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!sort@{sort}}
\index{sort@{sort}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{sort()}{sort()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::sort (\begin{DoxyParamCaption}\item[{\mbox{\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 \mbox{\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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!isSorted@{isSorted}}
\index{isSorted@{isSorted}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{isSorted()}{isSorted()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::is\+Sorted (\begin{DoxyParamCaption}\item[{const \mbox{\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 \mbox{\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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!setReferenceView@{setReferenceView}}
\index{setReferenceView@{setReferenceView}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{setReferenceView()}{setReferenceView()}}
{\footnotesize\ttfamily void Ogre\+::\+Distance\+Lod\+Strategy\+Base\+::set\+Reference\+View (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{viewport\+Width,  }\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{viewport\+Height,  }\item[{\mbox{\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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!setReferenceViewEnabled@{setReferenceViewEnabled}}
\index{setReferenceViewEnabled@{setReferenceViewEnabled}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{setReferenceViewEnabled()}{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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!isReferenceViewEnabled@{isReferenceViewEnabled}}
\index{isReferenceViewEnabled@{isReferenceViewEnabled}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{isReferenceViewEnabled()}{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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!getValue@{getValue}}
\index{getValue@{getValue}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{getValue()}{getValue()}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} Ogre\+::\+Lod\+Strategy\+::get\+Value (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object}} $\ast$}]{movable\+Object,  }\item[{const \mbox{\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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!assertSorted@{assertSorted}}
\index{assertSorted@{assertSorted}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{assertSorted()}{assertSorted()}}
{\footnotesize\ttfamily void Ogre\+::\+Lod\+Strategy\+::assert\+Sorted (\begin{DoxyParamCaption}\item[{const \mbox{\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::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}!getName@{getName}}
\index{getName@{getName}!Ogre::DistanceLodSphereStrategy@{Ogre::DistanceLodSphereStrategy}}
\doxysubsubsection{\texorpdfstring{getName()}{getName()}}
{\footnotesize\ttfamily const \mbox{\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 
\mbox{\hyperlink{_ogre_distance_lod_strategy_8h}{Ogre\+Distance\+Lod\+Strategy.\+h}}\end{DoxyCompactItemize}
