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


Alternative listener class for dealing with \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}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual \hyperlink{class_ogre_1_1_ray_scene_query_listener_a055ea5aff0165926892ad74289d2f73c}{$\sim$\+Ray\+Scene\+Query\+Listener} ()
\item 
virtual bool \hyperlink{class_ogre_1_1_ray_scene_query_listener_ac3c09aba6b71ca28d721be30ed8f06ed}{query\+Result} (\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$obj, \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 \hyperlink{class_ogre_1_1_ray_scene_query_listener_a7c390bfdec4a3e7eaf0491d8cc7b6d3c}{query\+Result} (\hyperlink{struct_ogre_1_1_scene_query_1_1_world_fragment}{Scene\+Query\+::\+World\+Fragment} $\ast$fragment, \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}


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

\begin{DoxyRemark}{Remarks}
Because the \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 \hyperlink{class_ogre_1_1_scene_query_listener}{Scene\+Query\+Listener}. 
\end{DoxyRemark}


\subsection{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\+::\+Ray\+Scene\+Query\+Listener@{Ogre\+::\+Ray\+Scene\+Query\+Listener}!````~Ray\+Scene\+Query\+Listener@{$\sim$\+Ray\+Scene\+Query\+Listener}}
\index{````~Ray\+Scene\+Query\+Listener@{$\sim$\+Ray\+Scene\+Query\+Listener}!Ogre\+::\+Ray\+Scene\+Query\+Listener@{Ogre\+::\+Ray\+Scene\+Query\+Listener}}
\subsubsection{\texorpdfstring{$\sim$\+Ray\+Scene\+Query\+Listener()}{~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]}}



\subsection{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\+::\+Ray\+Scene\+Query\+Listener@{Ogre\+::\+Ray\+Scene\+Query\+Listener}!query\+Result@{query\+Result}}
\index{query\+Result@{query\+Result}!Ogre\+::\+Ray\+Scene\+Query\+Listener@{Ogre\+::\+Ray\+Scene\+Query\+Listener}}
\subsubsection{\texorpdfstring{query\+Result()}{queryResult()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Ray\+Scene\+Query\+Listener\+::query\+Result (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$}]{obj,  }\item[{\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 \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 \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\+::\+Ray\+Scene\+Query\+Listener@{Ogre\+::\+Ray\+Scene\+Query\+Listener}!query\+Result@{query\+Result}}
\index{query\+Result@{query\+Result}!Ogre\+::\+Ray\+Scene\+Query\+Listener@{Ogre\+::\+Ray\+Scene\+Query\+Listener}}
\subsubsection{\texorpdfstring{query\+Result()}{queryResult()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Ray\+Scene\+Query\+Listener\+::query\+Result (\begin{DoxyParamCaption}\item[{\hyperlink{struct_ogre_1_1_scene_query_1_1_world_fragment}{Scene\+Query\+::\+World\+Fragment} $\ast$}]{fragment,  }\item[{\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 \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 \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 
\hyperlink{_ogre_scene_query_8h}{Ogre\+Scene\+Query.\+h}\end{DoxyCompactItemize}
