\hypertarget{class_ogre_1_1_movable_object_1_1_listener}{}\section{Ogre\+:\+:Movable\+Object\+:\+:Listener Class Reference}
\label{class_ogre_1_1_movable_object_1_1_listener}\index{Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}}


\hyperlink{class_ogre_1_1_movable_object_1_1_listener}{Listener} which gets called back on \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} events.  




{\ttfamily \#include $<$Ogre\+Movable\+Object.\+h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_movable_object_1_1_listener_a358139c1e09d4c36c050861bd4f5b37e}{Listener} (void)
\item 
virtual \hyperlink{class_ogre_1_1_movable_object_1_1_listener_a7731592ff0013b724f0be7a319a73fa8}{$\sim$\+Listener} ()
\item 
virtual void \hyperlink{class_ogre_1_1_movable_object_1_1_listener_a67127c7e6254c75a3e3f064e614a8152}{object\+Attached} (\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$)
\begin{DoxyCompactList}\small\item\em \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} has been attached to a node. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_movable_object_1_1_listener_a0cc50a90dbeb3d1049e923ee5866a636}{object\+Destroyed} (\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$)
\begin{DoxyCompactList}\small\item\em \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} is being destroyed. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_movable_object_1_1_listener_aa2a6f73325a1609a522a9d6dce5168cf}{object\+Detached} (\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$)
\begin{DoxyCompactList}\small\item\em \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} has been detached from a node. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_movable_object_1_1_listener_a7383d0ff8a3e3777378e1a9f9661146f}{object\+Moved} (\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$)
\begin{DoxyCompactList}\small\item\em \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} has been moved. \end{DoxyCompactList}\item 
virtual const \hyperlink{group___general_gaab30ef14aae93306a6044cb38d835f0c}{Light\+List} $\ast$ \hyperlink{class_ogre_1_1_movable_object_1_1_listener_ad53d3feb40d1d1fb81db1cb620df6d8e}{object\+Query\+Lights} (const \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$)
\begin{DoxyCompactList}\small\item\em Called when the movable object needs to query a light list. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ogre_1_1_movable_object_1_1_listener_a3935f0e525d63b03923aa67b137c0695}{object\+Rendering} (const \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$, const \hyperlink{class_ogre_1_1_camera}{Camera} $\ast$)
\begin{DoxyCompactList}\small\item\em Called when the movable object of the camera to be used for rendering. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{class_ogre_1_1_movable_object_1_1_listener}{Listener} which gets called back on \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} events. 

\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_movable_object_1_1_listener_a358139c1e09d4c36c050861bd4f5b37e}\label{class_ogre_1_1_movable_object_1_1_listener_a358139c1e09d4c36c050861bd4f5b37e}} 
\index{Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}!Listener@{Listener}}
\index{Listener@{Listener}!Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}}
\subsubsection{\texorpdfstring{Listener()}{Listener()}}
{\footnotesize\ttfamily Ogre\+::\+Movable\+Object\+::\+Listener\+::\+Listener (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_movable_object_1_1_listener_a7731592ff0013b724f0be7a319a73fa8}\label{class_ogre_1_1_movable_object_1_1_listener_a7731592ff0013b724f0be7a319a73fa8}} 
\index{Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}!````~Listener@{$\sim$\+Listener}}
\index{````~Listener@{$\sim$\+Listener}!Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}}
\subsubsection{\texorpdfstring{$\sim$\+Listener()}{~Listener()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Movable\+Object\+::\+Listener\+::$\sim$\+Listener (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_movable_object_1_1_listener_a0cc50a90dbeb3d1049e923ee5866a636}\label{class_ogre_1_1_movable_object_1_1_listener_a0cc50a90dbeb3d1049e923ee5866a636}} 
\index{Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}!object\+Destroyed@{object\+Destroyed}}
\index{object\+Destroyed@{object\+Destroyed}!Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}}
\subsubsection{\texorpdfstring{object\+Destroyed()}{objectDestroyed()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Movable\+Object\+::\+Listener\+::object\+Destroyed (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} is being destroyed. 

\mbox{\Hypertarget{class_ogre_1_1_movable_object_1_1_listener_a67127c7e6254c75a3e3f064e614a8152}\label{class_ogre_1_1_movable_object_1_1_listener_a67127c7e6254c75a3e3f064e614a8152}} 
\index{Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}!object\+Attached@{object\+Attached}}
\index{object\+Attached@{object\+Attached}!Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}}
\subsubsection{\texorpdfstring{object\+Attached()}{objectAttached()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Movable\+Object\+::\+Listener\+::object\+Attached (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} has been attached to a node. 

\mbox{\Hypertarget{class_ogre_1_1_movable_object_1_1_listener_aa2a6f73325a1609a522a9d6dce5168cf}\label{class_ogre_1_1_movable_object_1_1_listener_aa2a6f73325a1609a522a9d6dce5168cf}} 
\index{Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}!object\+Detached@{object\+Detached}}
\index{object\+Detached@{object\+Detached}!Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}}
\subsubsection{\texorpdfstring{object\+Detached()}{objectDetached()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Movable\+Object\+::\+Listener\+::object\+Detached (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} has been detached from a node. 

\mbox{\Hypertarget{class_ogre_1_1_movable_object_1_1_listener_a7383d0ff8a3e3777378e1a9f9661146f}\label{class_ogre_1_1_movable_object_1_1_listener_a7383d0ff8a3e3777378e1a9f9661146f}} 
\index{Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}!object\+Moved@{object\+Moved}}
\index{object\+Moved@{object\+Moved}!Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}}
\subsubsection{\texorpdfstring{object\+Moved()}{objectMoved()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Movable\+Object\+::\+Listener\+::object\+Moved (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} has been moved. 

\mbox{\Hypertarget{class_ogre_1_1_movable_object_1_1_listener_a3935f0e525d63b03923aa67b137c0695}\label{class_ogre_1_1_movable_object_1_1_listener_a3935f0e525d63b03923aa67b137c0695}} 
\index{Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}!object\+Rendering@{object\+Rendering}}
\index{object\+Rendering@{object\+Rendering}!Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}}
\subsubsection{\texorpdfstring{object\+Rendering()}{objectRendering()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Movable\+Object\+::\+Listener\+::object\+Rendering (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$}]{,  }\item[{const \hyperlink{class_ogre_1_1_camera}{Camera} $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called when the movable object of the camera to be used for rendering. 

\begin{DoxyReturn}{Returns}
true if allows queue for rendering, false otherwise. 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_movable_object_1_1_listener_ad53d3feb40d1d1fb81db1cb620df6d8e}\label{class_ogre_1_1_movable_object_1_1_listener_ad53d3feb40d1d1fb81db1cb620df6d8e}} 
\index{Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}!object\+Query\+Lights@{object\+Query\+Lights}}
\index{object\+Query\+Lights@{object\+Query\+Lights}!Ogre\+::\+Movable\+Object\+::\+Listener@{Ogre\+::\+Movable\+Object\+::\+Listener}}
\subsubsection{\texorpdfstring{object\+Query\+Lights()}{objectQueryLights()}}
{\footnotesize\ttfamily virtual const \hyperlink{group___general_gaab30ef14aae93306a6044cb38d835f0c}{Light\+List}$\ast$ Ogre\+::\+Movable\+Object\+::\+Listener\+::object\+Query\+Lights (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Called when the movable object needs to query a light list. 

\begin{DoxyRemark}{Remarks}
If you want to customize light finding for this object, you should override this method and hook into \hyperlink{class_ogre_1_1_movable_object}{Movable\+Object} via \hyperlink{class_ogre_1_1_movable_object_ab55eab7ca8e96a3bbb3f69a4095bf067}{Movable\+Object\+::set\+Listener}. Be aware that the default method caches results within a frame to prevent unnecessary recalculation, so if you override this you should provide your own caching to maintain performance. 
\end{DoxyRemark}
\begin{DoxyNote}{Note}
If you use texture shadows, there is an additional restriction -\/ since the lights which should have shadow textures rendered for them are determined based on the entire frustum, and not per-\/object, it is important that the lights returned at the start of this list (up to the number of shadow textures available) are the same lights that were used to generate the shadow textures, and they are in the same order (particularly for additive effects). 

This method will not be called for additive stencil shadows since the light list cannot be varied per object with this technique. 
\end{DoxyNote}
\begin{DoxyReturn}{Returns}
A pointer to a light list if you populated the light list yourself, or N\+U\+LL to fall back on the default finding process. 
\end{DoxyReturn}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_movable_object_8h}{Ogre\+Movable\+Object.\+h}\end{DoxyCompactItemize}
