\hypertarget{class_ogre_1_1_sphere_scene_query}{}\doxysection{Ogre\+::Sphere\+Scene\+Query Class Reference}
\label{class_ogre_1_1_sphere_scene_query}\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}


Specialises the \mbox{\hyperlink{class_ogre_1_1_scene_query}{Scene\+Query}} class for querying within a sphere.  




{\ttfamily \#include $<$Ogre\+Scene\+Query.\+h$>$}



Inheritance diagram for Ogre\+::Sphere\+Scene\+Query\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_sphere_scene_query__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3a}{World\+Fragment\+Type}} \{ \newline
\mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aa6ed287fab168d451beb369009f0fd03b}{W\+F\+T\+\_\+\+N\+O\+NE}}, 
\mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aa667bbec7031e58ab244f9efc32056f38}{W\+F\+T\+\_\+\+P\+L\+A\+N\+E\+\_\+\+B\+O\+U\+N\+D\+E\+D\+\_\+\+R\+E\+G\+I\+ON}}, 
\mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aa018493b6c87271e0c8ba014f058cffd3}{W\+F\+T\+\_\+\+S\+I\+N\+G\+L\+E\+\_\+\+I\+N\+T\+E\+R\+S\+E\+C\+T\+I\+ON}}, 
\mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aadeefa0cc2dfd1ec783c2a266ea61f925}{W\+F\+T\+\_\+\+C\+U\+S\+T\+O\+M\+\_\+\+G\+E\+O\+M\+E\+T\+RY}}, 
\newline
\mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aad498944c8c6b81d737c3ceee86881e8d}{W\+F\+T\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+O\+P\+E\+R\+A\+T\+I\+ON}}
 \}
\begin{DoxyCompactList}\small\item\em This type can be used by collaborating applications \& Scene\+Managers to agree on the type of world geometry to be returned from queries. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_sphere_scene_query_a5355b72d0d8fb12e4e35f8661652f190}{Sphere\+Scene\+Query}} (\mbox{\hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager}} $\ast$mgr)
\item 
virtual \mbox{\hyperlink{class_ogre_1_1_sphere_scene_query_ad0b1caec71e5feae87779d34351da924}{$\sim$\+Sphere\+Scene\+Query}} ()
\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_region_scene_query_a1f8750081b57a70381bc6dd9fe663955}{clear\+Results}} (void)
\begin{DoxyCompactList}\small\item\em Clears the results of the last query execution. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_region_scene_query_a20e200f7a33292e6644a44bf882ae8f6}{execute}} (\mbox{\hyperlink{class_ogre_1_1_scene_query_listener}{Scene\+Query\+Listener}} $\ast$listener)=0
\begin{DoxyCompactList}\small\item\em Executes the query and returns each match through a listener interface. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{struct_ogre_1_1_scene_query_result}{Scene\+Query\+Result}} \& \mbox{\hyperlink{class_ogre_1_1_region_scene_query_a982dda57528c3a3ccaa4d577335ed87c}{execute}} (void)
\begin{DoxyCompactList}\small\item\em Executes the query, returning the results back in one list. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{struct_ogre_1_1_scene_query_result}{Scene\+Query\+Result}} \& \mbox{\hyperlink{class_ogre_1_1_region_scene_query_a40f55e11da42a7228929bc4cc049e041}{get\+Last\+Results}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the results of the last query that was run using this object, provided the query was executed using the collection-\/returning version of execute. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{class_ogre_1_1_scene_query_aed7b296e80ea3acebc493842727e8db3}{get\+Query\+Mask}} (void) const
\begin{DoxyCompactList}\small\item\em Returns the current mask for this query. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{class_ogre_1_1_scene_query_a47fac5b11f62901c14b1bd757ea5c14b}{get\+Query\+Type\+Mask}} (void) const
\begin{DoxyCompactList}\small\item\em Returns the current mask for this query. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{class_ogre_1_1_sphere}{Sphere}} \& \mbox{\hyperlink{class_ogre_1_1_sphere_scene_query_ab21e3cfc134292363497701523f87ade}{get\+Sphere}} () const
\begin{DoxyCompactList}\small\item\em Gets the sphere which is being used for this query. \end{DoxyCompactList}\item 
virtual const std\+::set$<$ \mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3a}{World\+Fragment\+Type}} $>$ $\ast$ \mbox{\hyperlink{class_ogre_1_1_scene_query_acceb4087f3a6ed148ae92f7e39fd1179}{get\+Supported\+World\+Fragment\+Types}} (void) const
\begin{DoxyCompactList}\small\item\em Returns the types of world fragments this query supports. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3a}{World\+Fragment\+Type}} \mbox{\hyperlink{class_ogre_1_1_scene_query_acffb9330fc3de7109f8274822e362b00}{get\+World\+Fragment\+Type}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the current world fragment types to be returned from the query. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_region_scene_query_a49641297f4affe82b8e9f8b9ab3ff9f4}{query\+Result}} (\mbox{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object}} $\ast$first)
\begin{DoxyCompactList}\small\item\em Self-\/callback in order to deal with execute which returns collection. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_region_scene_query_ae52b991bb3e6ecdb688c3d06d245c468}{query\+Result}} (\mbox{\hyperlink{struct_ogre_1_1_scene_query_1_1_world_fragment}{Scene\+Query\+::\+World\+Fragment}} $\ast$fragment)
\begin{DoxyCompactList}\small\item\em Self-\/callback in order to deal with execute which returns collection. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_scene_query_ad392a7fc0b338e5507540d3183f82cfb}{set\+Query\+Mask}} (\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} mask)
\begin{DoxyCompactList}\small\item\em Sets the mask for results of this query. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_scene_query_abaca8d4d9b59a571e2d8e9a2cac7ce42}{set\+Query\+Type\+Mask}} (\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} mask)
\begin{DoxyCompactList}\small\item\em Sets the type mask for results of this query. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_sphere_scene_query_a6b8ac84df4b61cdd0abba7fcd43ae956}{set\+Sphere}} (const \mbox{\hyperlink{class_ogre_1_1_sphere}{Sphere}} \&sphere)
\begin{DoxyCompactList}\small\item\em Sets the sphere which is to be used for this query. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_scene_query_aec3aa0b8b16c41fae990ee78150f8d2a}{set\+World\+Fragment\+Type}} (enum \mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3a}{World\+Fragment\+Type}} wft)
\begin{DoxyCompactList}\small\item\em Tells the query what kind of world geometry to return from queries; often the full renderable geometry is not what is needed. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Specialises the \mbox{\hyperlink{class_ogre_1_1_scene_query}{Scene\+Query}} class for querying within a sphere. 

\doxysubsection{Member Enumeration Documentation}
\mbox{\Hypertarget{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3a}\label{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3a}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!WorldFragmentType@{WorldFragmentType}}
\index{WorldFragmentType@{WorldFragmentType}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{WorldFragmentType}{WorldFragmentType}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3a}{Ogre\+::\+Scene\+Query\+::\+World\+Fragment\+Type}}\hspace{0.3cm}{\ttfamily [inherited]}}



This type can be used by collaborating applications \& Scene\+Managers to agree on the type of world geometry to be returned from queries. 

Not all these types will be supported by all Scene\+Managers; once the application has decided which \mbox{\hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager}} specialisation to use, it is expected that it will know which type of world geometry abstraction is available to it. \begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{WFT\_NONE@{WFT\_NONE}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!WFT\_NONE@{WFT\_NONE}}}\mbox{\Hypertarget{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aa6ed287fab168d451beb369009f0fd03b}\label{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aa6ed287fab168d451beb369009f0fd03b}} 
W\+F\+T\+\_\+\+N\+O\+NE&Return no world geometry hits at all. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{WFT\_PLANE\_BOUNDED\_REGION@{WFT\_PLANE\_BOUNDED\_REGION}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!WFT\_PLANE\_BOUNDED\_REGION@{WFT\_PLANE\_BOUNDED\_REGION}}}\mbox{\Hypertarget{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aa667bbec7031e58ab244f9efc32056f38}\label{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aa667bbec7031e58ab244f9efc32056f38}} 
W\+F\+T\+\_\+\+P\+L\+A\+N\+E\+\_\+\+B\+O\+U\+N\+D\+E\+D\+\_\+\+R\+E\+G\+I\+ON&Return pointers to convex plane-\/bounded regions. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{WFT\_SINGLE\_INTERSECTION@{WFT\_SINGLE\_INTERSECTION}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!WFT\_SINGLE\_INTERSECTION@{WFT\_SINGLE\_INTERSECTION}}}\mbox{\Hypertarget{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aa018493b6c87271e0c8ba014f058cffd3}\label{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aa018493b6c87271e0c8ba014f058cffd3}} 
W\+F\+T\+\_\+\+S\+I\+N\+G\+L\+E\+\_\+\+I\+N\+T\+E\+R\+S\+E\+C\+T\+I\+ON&Return a single intersection point (typically \mbox{\hyperlink{class_ogre_1_1_ray_scene_query}{Ray\+Scene\+Query}} only) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{WFT\_CUSTOM\_GEOMETRY@{WFT\_CUSTOM\_GEOMETRY}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!WFT\_CUSTOM\_GEOMETRY@{WFT\_CUSTOM\_GEOMETRY}}}\mbox{\Hypertarget{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aadeefa0cc2dfd1ec783c2a266ea61f925}\label{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aadeefa0cc2dfd1ec783c2a266ea61f925}} 
W\+F\+T\+\_\+\+C\+U\+S\+T\+O\+M\+\_\+\+G\+E\+O\+M\+E\+T\+RY&Custom geometry as defined by the \mbox{\hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager}}. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{WFT\_RENDER\_OPERATION@{WFT\_RENDER\_OPERATION}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!WFT\_RENDER\_OPERATION@{WFT\_RENDER\_OPERATION}}}\mbox{\Hypertarget{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aad498944c8c6b81d737c3ceee86881e8d}\label{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3aad498944c8c6b81d737c3ceee86881e8d}} 
W\+F\+T\+\_\+\+R\+E\+N\+D\+E\+R\+\_\+\+O\+P\+E\+R\+A\+T\+I\+ON&General \mbox{\hyperlink{class_ogre_1_1_render_operation}{Render\+Operation}} structure. \\
\hline

\end{DoxyEnumFields}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_sphere_scene_query_a5355b72d0d8fb12e4e35f8661652f190}\label{class_ogre_1_1_sphere_scene_query_a5355b72d0d8fb12e4e35f8661652f190}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!SphereSceneQuery@{SphereSceneQuery}}
\index{SphereSceneQuery@{SphereSceneQuery}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{SphereSceneQuery()}{SphereSceneQuery()}}
{\footnotesize\ttfamily Ogre\+::\+Sphere\+Scene\+Query\+::\+Sphere\+Scene\+Query (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager}} $\ast$}]{mgr }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_ogre_1_1_sphere_scene_query_ad0b1caec71e5feae87779d34351da924}\label{class_ogre_1_1_sphere_scene_query_ad0b1caec71e5feae87779d34351da924}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!````~SphereSceneQuery@{$\sim$SphereSceneQuery}}
\index{````~SphereSceneQuery@{$\sim$SphereSceneQuery}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{$\sim$SphereSceneQuery()}{~SphereSceneQuery()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Sphere\+Scene\+Query\+::$\sim$\+Sphere\+Scene\+Query (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_sphere_scene_query_a6b8ac84df4b61cdd0abba7fcd43ae956}\label{class_ogre_1_1_sphere_scene_query_a6b8ac84df4b61cdd0abba7fcd43ae956}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!setSphere@{setSphere}}
\index{setSphere@{setSphere}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{setSphere()}{setSphere()}}
{\footnotesize\ttfamily void Ogre\+::\+Sphere\+Scene\+Query\+::set\+Sphere (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_sphere}{Sphere}} \&}]{sphere }\end{DoxyParamCaption})}



Sets the sphere which is to be used for this query. 

\mbox{\Hypertarget{class_ogre_1_1_sphere_scene_query_ab21e3cfc134292363497701523f87ade}\label{class_ogre_1_1_sphere_scene_query_ab21e3cfc134292363497701523f87ade}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!getSphere@{getSphere}}
\index{getSphere@{getSphere}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{getSphere()}{getSphere()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{class_ogre_1_1_sphere}{Sphere}}\& Ogre\+::\+Sphere\+Scene\+Query\+::get\+Sphere (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Gets the sphere which is being used for this query. 

\mbox{\Hypertarget{class_ogre_1_1_region_scene_query_a982dda57528c3a3ccaa4d577335ed87c}\label{class_ogre_1_1_region_scene_query_a982dda57528c3a3ccaa4d577335ed87c}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!execute@{execute}}
\index{execute@{execute}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{execute()}{execute()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{struct_ogre_1_1_scene_query_result}{Scene\+Query\+Result}}\& Ogre\+::\+Region\+Scene\+Query\+::execute (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Executes the query, returning the results back in one list. 

\begin{DoxyRemark}{Remarks}
This method executes the scene query as configured, gathers the results into one structure and returns a reference to that structure. These results will also persist in this query object until the next query is executed, or \mbox{\hyperlink{class_ogre_1_1_region_scene_query_a1f8750081b57a70381bc6dd9fe663955}{clear\+Results()}} is called. An more lightweight version of this method that returns results through a listener is also available. 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_region_scene_query_a20e200f7a33292e6644a44bf882ae8f6}\label{class_ogre_1_1_region_scene_query_a20e200f7a33292e6644a44bf882ae8f6}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!execute@{execute}}
\index{execute@{execute}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{execute()}{execute()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Region\+Scene\+Query\+::execute (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_scene_query_listener}{Scene\+Query\+Listener}} $\ast$}]{listener }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}, {\ttfamily [inherited]}}



Executes the query and returns each match through a listener interface. 

\begin{DoxyRemark}{Remarks}
Note that this method does not store the results of the query internally so does not update the \textquotesingle{}last result\textquotesingle{} value. This means that this version of execute is more lightweight and therefore more efficient than the version which returns the results as a collection. 
\end{DoxyRemark}


Implemented in \mbox{\hyperlink{class_ogre_1_1_default_axis_aligned_box_scene_query_a292facff73bd8bae34c7a911f7e349ac}{Ogre\+::\+Default\+Axis\+Aligned\+Box\+Scene\+Query}}, \mbox{\hyperlink{class_ogre_1_1_default_plane_bounded_volume_list_scene_query_aa4e94ff73decaf0fa57ba229c4c5ad9e}{Ogre\+::\+Default\+Plane\+Bounded\+Volume\+List\+Scene\+Query}}, \mbox{\hyperlink{class_ogre_1_1_default_sphere_scene_query_ab2ce328ff825042d30b4604588b645a3}{Ogre\+::\+Default\+Sphere\+Scene\+Query}}, \mbox{\hyperlink{class_ogre_1_1_p_c_z_plane_bounded_volume_list_scene_query_a6d356a6b29d31e469f87a423450918a1}{Ogre\+::\+P\+C\+Z\+Plane\+Bounded\+Volume\+List\+Scene\+Query}}, \mbox{\hyperlink{class_ogre_1_1_octree_axis_aligned_box_scene_query_a2553733fdc17487436c9e58aa2034fb1}{Ogre\+::\+Octree\+Axis\+Aligned\+Box\+Scene\+Query}}, \mbox{\hyperlink{class_ogre_1_1_p_c_z_sphere_scene_query_a9e5580664c0930de75bce01131b87ec1}{Ogre\+::\+P\+C\+Z\+Sphere\+Scene\+Query}}, \mbox{\hyperlink{class_ogre_1_1_octree_plane_bounded_volume_list_scene_query_aff287fcb064d163d1dc6f625086d9a0a}{Ogre\+::\+Octree\+Plane\+Bounded\+Volume\+List\+Scene\+Query}}, \mbox{\hyperlink{class_ogre_1_1_octree_sphere_scene_query_a603c6249a4f26a1769564e5444e7f656}{Ogre\+::\+Octree\+Sphere\+Scene\+Query}}, and \mbox{\hyperlink{class_ogre_1_1_p_c_z_axis_aligned_box_scene_query_ab95be91b59fd8e1b7097957946a2eb27}{Ogre\+::\+P\+C\+Z\+Axis\+Aligned\+Box\+Scene\+Query}}.

\mbox{\Hypertarget{class_ogre_1_1_region_scene_query_a40f55e11da42a7228929bc4cc049e041}\label{class_ogre_1_1_region_scene_query_a40f55e11da42a7228929bc4cc049e041}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!getLastResults@{getLastResults}}
\index{getLastResults@{getLastResults}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{getLastResults()}{getLastResults()}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{struct_ogre_1_1_scene_query_result}{Scene\+Query\+Result}}\& Ogre\+::\+Region\+Scene\+Query\+::get\+Last\+Results (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Gets the results of the last query that was run using this object, provided the query was executed using the collection-\/returning version of execute. 

\mbox{\Hypertarget{class_ogre_1_1_region_scene_query_a1f8750081b57a70381bc6dd9fe663955}\label{class_ogre_1_1_region_scene_query_a1f8750081b57a70381bc6dd9fe663955}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!clearResults@{clearResults}}
\index{clearResults@{clearResults}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{clearResults()}{clearResults()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Region\+Scene\+Query\+::clear\+Results (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Clears the results of the last query execution. 

\begin{DoxyRemark}{Remarks}
You only need to call this if you specifically want to free up the memory used by this object to hold the last query results. This object clears the results itself when executing and when destroying itself. 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_region_scene_query_a49641297f4affe82b8e9f8b9ab3ff9f4}\label{class_ogre_1_1_region_scene_query_a49641297f4affe82b8e9f8b9ab3ff9f4}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!queryResult@{queryResult}}
\index{queryResult@{queryResult}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{queryResult()}{queryResult()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Ogre\+::\+Region\+Scene\+Query\+::query\+Result (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object}} $\ast$}]{first }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Self-\/callback in order to deal with execute which returns collection. 



Implements \mbox{\hyperlink{class_ogre_1_1_scene_query_listener_a70936d2cd7413dd284faef05528ddb92}{Ogre\+::\+Scene\+Query\+Listener}}.

\mbox{\Hypertarget{class_ogre_1_1_region_scene_query_ae52b991bb3e6ecdb688c3d06d245c468}\label{class_ogre_1_1_region_scene_query_ae52b991bb3e6ecdb688c3d06d245c468}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!queryResult@{queryResult}}
\index{queryResult@{queryResult}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{queryResult()}{queryResult()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily bool Ogre\+::\+Region\+Scene\+Query\+::query\+Result (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct_ogre_1_1_scene_query_1_1_world_fragment}{Scene\+Query\+::\+World\+Fragment}} $\ast$}]{fragment }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Self-\/callback in order to deal with execute which returns collection. 



Implements \mbox{\hyperlink{class_ogre_1_1_scene_query_listener_ac17a072217f44693bb45ecbcd1623611}{Ogre\+::\+Scene\+Query\+Listener}}.

\mbox{\Hypertarget{class_ogre_1_1_scene_query_ad392a7fc0b338e5507540d3183f82cfb}\label{class_ogre_1_1_scene_query_ad392a7fc0b338e5507540d3183f82cfb}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!setQueryMask@{setQueryMask}}
\index{setQueryMask@{setQueryMask}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{setQueryMask()}{setQueryMask()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Scene\+Query\+::set\+Query\+Mask (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}}}]{mask }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Sets the mask for results of this query. 

\begin{DoxyRemark}{Remarks}
This method allows you to set a \textquotesingle{}mask\textquotesingle{} to limit the results of this query to certain types of result. The actual meaning of this value is up to the application; basically \mbox{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object}} instances will only be returned from this query if a bitwise A\+ND operation between this mask value and the \mbox{\hyperlink{class_ogre_1_1_movable_object_ad66149b7a6f5ba1cd5c58fbd69f0446a}{Movable\+Object\+::get\+Query\+Flags}} value is non-\/zero. The application will have to decide what each of the bits means. 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_scene_query_aed7b296e80ea3acebc493842727e8db3}\label{class_ogre_1_1_scene_query_aed7b296e80ea3acebc493842727e8db3}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!getQueryMask@{getQueryMask}}
\index{getQueryMask@{getQueryMask}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{getQueryMask()}{getQueryMask()}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Scene\+Query\+::get\+Query\+Mask (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Returns the current mask for this query. 

\mbox{\Hypertarget{class_ogre_1_1_scene_query_abaca8d4d9b59a571e2d8e9a2cac7ce42}\label{class_ogre_1_1_scene_query_abaca8d4d9b59a571e2d8e9a2cac7ce42}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!setQueryTypeMask@{setQueryTypeMask}}
\index{setQueryTypeMask@{setQueryTypeMask}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{setQueryTypeMask()}{setQueryTypeMask()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Scene\+Query\+::set\+Query\+Type\+Mask (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}}}]{mask }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Sets the type mask for results of this query. 

\begin{DoxyRemark}{Remarks}
This method allows you to set a \textquotesingle{}type mask\textquotesingle{} to limit the results of this query to certain types of objects. Whilst set\+Query\+Mask deals with flags set per instance of object, this method deals with setting a mask on flags set per type of object. Both may exclude an object from query results. 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_scene_query_a47fac5b11f62901c14b1bd757ea5c14b}\label{class_ogre_1_1_scene_query_a47fac5b11f62901c14b1bd757ea5c14b}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!getQueryTypeMask@{getQueryTypeMask}}
\index{getQueryTypeMask@{getQueryTypeMask}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{getQueryTypeMask()}{getQueryTypeMask()}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Scene\+Query\+::get\+Query\+Type\+Mask (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Returns the current mask for this query. 

\mbox{\Hypertarget{class_ogre_1_1_scene_query_aec3aa0b8b16c41fae990ee78150f8d2a}\label{class_ogre_1_1_scene_query_aec3aa0b8b16c41fae990ee78150f8d2a}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!setWorldFragmentType@{setWorldFragmentType}}
\index{setWorldFragmentType@{setWorldFragmentType}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{setWorldFragmentType()}{setWorldFragmentType()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Scene\+Query\+::set\+World\+Fragment\+Type (\begin{DoxyParamCaption}\item[{enum \mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3a}{World\+Fragment\+Type}}}]{wft }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Tells the query what kind of world geometry to return from queries; often the full renderable geometry is not what is needed. 

\begin{DoxyRemark}{Remarks}
The application receiving the world geometry is expected to know what to do with it; inevitably this means that the application must have knowledge of at least some of the structures used by the custom \mbox{\hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager}}. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
The default setting is W\+F\+T\+\_\+\+N\+O\+NE. 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_ogre_1_1_scene_query_acffb9330fc3de7109f8274822e362b00}\label{class_ogre_1_1_scene_query_acffb9330fc3de7109f8274822e362b00}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!getWorldFragmentType@{getWorldFragmentType}}
\index{getWorldFragmentType@{getWorldFragmentType}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{getWorldFragmentType()}{getWorldFragmentType()}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3a}{World\+Fragment\+Type}} Ogre\+::\+Scene\+Query\+::get\+World\+Fragment\+Type (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}, {\ttfamily [inherited]}}



Gets the current world fragment types to be returned from the query. 

\mbox{\Hypertarget{class_ogre_1_1_scene_query_acceb4087f3a6ed148ae92f7e39fd1179}\label{class_ogre_1_1_scene_query_acceb4087f3a6ed148ae92f7e39fd1179}} 
\index{Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}!getSupportedWorldFragmentTypes@{getSupportedWorldFragmentTypes}}
\index{getSupportedWorldFragmentTypes@{getSupportedWorldFragmentTypes}!Ogre::SphereSceneQuery@{Ogre::SphereSceneQuery}}
\doxysubsubsection{\texorpdfstring{getSupportedWorldFragmentTypes()}{getSupportedWorldFragmentTypes()}}
{\footnotesize\ttfamily virtual const std\+::set$<$\mbox{\hyperlink{class_ogre_1_1_scene_query_a0a75b5ed976da2f9023382f4c4514b3a}{World\+Fragment\+Type}}$>$$\ast$ Ogre\+::\+Scene\+Query\+::get\+Supported\+World\+Fragment\+Types (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}, {\ttfamily [inherited]}}



Returns the types of world fragments this query supports. 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_scene_query_8h}{Ogre\+Scene\+Query.\+h}}\end{DoxyCompactItemize}
