\hypertarget{class_ogre_1_1_ray_scene_query_listener}{}\doxysection{Ogre\+::Ray\+Scene\+Query\+Listener Class Reference}
\label{class_ogre_1_1_ray_scene_query_listener}\index{Ogre::RaySceneQueryListener@{Ogre::RaySceneQueryListener}}


Alternative listener class for dealing with \mbox{\hyperlink{class_ogre_1_1_ray_scene_query}{Ray\+Scene\+Query}}.  




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



Inheritance diagram for Ogre\+::Ray\+Scene\+Query\+Listener\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_ray_scene_query_listener__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual \mbox{\hyperlink{class_ogre_1_1_ray_scene_query_listener_a055ea5aff0165926892ad74289d2f73c}{$\sim$\+Ray\+Scene\+Query\+Listener}} ()
\item 
virtual bool \mbox{\hyperlink{class_ogre_1_1_ray_scene_query_listener_ac3c09aba6b71ca28d721be30ed8f06ed}{query\+Result}} (\mbox{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object}} $\ast$obj, \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} distance)=0
\begin{DoxyCompactList}\small\item\em Called when a movable objects intersects the ray. \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{class_ogre_1_1_ray_scene_query_listener_a7c390bfdec4a3e7eaf0491d8cc7b6d3c}{query\+Result}} (\mbox{\hyperlink{struct_ogre_1_1_scene_query_1_1_world_fragment}{Scene\+Query\+::\+World\+Fragment}} $\ast$fragment, \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} distance)=0
\begin{DoxyCompactList}\small\item\em Called when a world fragment is intersected by the ray. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Alternative listener class for dealing with \mbox{\hyperlink{class_ogre_1_1_ray_scene_query}{Ray\+Scene\+Query}}. 

\begin{DoxyRemark}{Remarks}
Because the \mbox{\hyperlink{class_ogre_1_1_ray_scene_query}{Ray\+Scene\+Query}} returns results in an extra bit of information, namely distance, the listener interface must be customised from the standard \mbox{\hyperlink{class_ogre_1_1_scene_query_listener}{Scene\+Query\+Listener}}. 
\end{DoxyRemark}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_ray_scene_query_listener_a055ea5aff0165926892ad74289d2f73c}\label{class_ogre_1_1_ray_scene_query_listener_a055ea5aff0165926892ad74289d2f73c}} 
\index{Ogre::RaySceneQueryListener@{Ogre::RaySceneQueryListener}!````~RaySceneQueryListener@{$\sim$RaySceneQueryListener}}
\index{````~RaySceneQueryListener@{$\sim$RaySceneQueryListener}!Ogre::RaySceneQueryListener@{Ogre::RaySceneQueryListener}}
\doxysubsubsection{\texorpdfstring{$\sim$RaySceneQueryListener()}{~RaySceneQueryListener()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Ray\+Scene\+Query\+Listener\+::$\sim$\+Ray\+Scene\+Query\+Listener (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_ray_scene_query_listener_ac3c09aba6b71ca28d721be30ed8f06ed}\label{class_ogre_1_1_ray_scene_query_listener_ac3c09aba6b71ca28d721be30ed8f06ed}} 
\index{Ogre::RaySceneQueryListener@{Ogre::RaySceneQueryListener}!queryResult@{queryResult}}
\index{queryResult@{queryResult}!Ogre::RaySceneQueryListener@{Ogre::RaySceneQueryListener}}
\doxysubsubsection{\texorpdfstring{queryResult()}{queryResult()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Ray\+Scene\+Query\+Listener\+::query\+Result (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object}} $\ast$}]{obj,  }\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{distance }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Called when a movable objects intersects the ray. 

\begin{DoxyRemark}{Remarks}
As with \mbox{\hyperlink{class_ogre_1_1_scene_query_listener}{Scene\+Query\+Listener}}, the implementor of this method should return \textquotesingle{}true\textquotesingle{} if further results are required, or \textquotesingle{}false\textquotesingle{} to abandon any further results from the current query. 
\end{DoxyRemark}


Implemented in \mbox{\hyperlink{class_ogre_1_1_ray_scene_query_a88c9810df53d94b893bc5aef885d14a1}{Ogre\+::\+Ray\+Scene\+Query}}.

\mbox{\Hypertarget{class_ogre_1_1_ray_scene_query_listener_a7c390bfdec4a3e7eaf0491d8cc7b6d3c}\label{class_ogre_1_1_ray_scene_query_listener_a7c390bfdec4a3e7eaf0491d8cc7b6d3c}} 
\index{Ogre::RaySceneQueryListener@{Ogre::RaySceneQueryListener}!queryResult@{queryResult}}
\index{queryResult@{queryResult}!Ogre::RaySceneQueryListener@{Ogre::RaySceneQueryListener}}
\doxysubsubsection{\texorpdfstring{queryResult()}{queryResult()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Ray\+Scene\+Query\+Listener\+::query\+Result (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct_ogre_1_1_scene_query_1_1_world_fragment}{Scene\+Query\+::\+World\+Fragment}} $\ast$}]{fragment,  }\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{distance }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Called when a world fragment is intersected by the ray. 

\begin{DoxyRemark}{Remarks}
As with \mbox{\hyperlink{class_ogre_1_1_scene_query_listener}{Scene\+Query\+Listener}}, the implementor of this method should return \textquotesingle{}true\textquotesingle{} if further results are required, or \textquotesingle{}false\textquotesingle{} to abandon any further results from the current query. 
\end{DoxyRemark}


Implemented in \mbox{\hyperlink{class_ogre_1_1_ray_scene_query_abd5211784dd04e0e0705fe21d43cb900}{Ogre\+::\+Ray\+Scene\+Query}}.



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}
