\hypertarget{class_ogre_1_1_animation_track}{}\section{Ogre\+:\+:Animation\+Track Class Reference}
\label{class_ogre_1_1_animation_track}\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}


A \textquotesingle{}track\textquotesingle{} in an animation sequence, i.\+e.  




{\ttfamily \#include $<$Ogre\+Animation\+Track.\+h$>$}



Inheritance diagram for Ogre\+:\+:Animation\+Track\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_ogre_1_1_animation_track__inherit__graph}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{class_ogre_1_1_animation_track_1_1_listener}{Listener}
\begin{DoxyCompactList}\small\item\em \hyperlink{class_ogre_1_1_animation_track_1_1_listener}{Listener} allowing you to override certain behaviour of a track, for example to drive animation procedurally. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_animation_track_a0209b4a0d1461af76fdfcbf31b0537f2}{Animation\+Track} (\hyperlink{class_ogre_1_1_animation}{Animation} $\ast$parent, unsigned short handle)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
virtual \hyperlink{class_ogre_1_1_animation_track_a28fb904ec7b101ad71fae5c6930b0d34}{$\sim$\+Animation\+Track} ()
\item 
virtual void \hyperlink{class_ogre_1_1_animation_track_aed855e8117300af01d646ff49b020916}{\+\_\+apply\+Base\+Key\+Frame} (const \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} $\ast$base)
\begin{DoxyCompactList}\small\item\em Internal method to re-\/base the keyframes relative to a given keyframe. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_animation_track_a6f341ad134c0254f15a0cba2bbae4097}{\+\_\+build\+Key\+Frame\+Index\+Map} (const std\+::vector$<$ \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} $>$ \&key\+Frame\+Times)
\begin{DoxyCompactList}\small\item\em Internal method to build keyframe time index map to translate global lower bound index to local lower bound index. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_animation_track_a7aab09df8cf0fea5b1a53df263b9e2c1}{\+\_\+collect\+Key\+Frame\+Times} (std\+::vector$<$ \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} $>$ \&key\+Frame\+Times)
\begin{DoxyCompactList}\small\item\em Internal method to collect keyframe times, in unique, ordered format. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_animation_track_a1acb5172b8cb3624266e743d15cc2019}{\+\_\+key\+Frame\+Data\+Changed} (void) const
\begin{DoxyCompactList}\small\item\em Internal method used to tell the track that keyframe data has been changed, which may cause it to rebuild some internal data. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_animation_track_aa32b2807aee58478f96e75bfa44141cc}{apply} (const \hyperlink{class_ogre_1_1_time_index}{Time\+Index} \&time\+Index, \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} weight=1.\+0, \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} scale=1.\+0f)=0
\begin{DoxyCompactList}\small\item\em Applies an animation track to the designated target. \end{DoxyCompactList}\item 
virtual \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} $\ast$ \hyperlink{class_ogre_1_1_animation_track_a4517a1b16d6cb601754d98841bb4d7d6}{create\+Key\+Frame} (\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} time\+Pos)
\begin{DoxyCompactList}\small\item\em Creates a new \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} and adds it to this animation at the given time index. \end{DoxyCompactList}\item 
unsigned short \hyperlink{class_ogre_1_1_animation_track_a2fae315ab3444ab494d9b6c66280cd5b}{get\+Handle} (void) const
\begin{DoxyCompactList}\small\item\em Get the handle associated with this track. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_animation_track_a48a8e96d4cb65f050dfed427f4442aa4}{get\+Interpolated\+Key\+Frame} (const \hyperlink{class_ogre_1_1_time_index}{Time\+Index} \&time\+Index, \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} $\ast$kf) const =0
\begin{DoxyCompactList}\small\item\em Gets a \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} object which contains the interpolated transforms at the time index specified. \end{DoxyCompactList}\item 
virtual \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} $\ast$ \hyperlink{class_ogre_1_1_animation_track_a8bf54db4f00bbd9c226c3f778bf7feb1}{get\+Key\+Frame} (unsigned short index) const
\begin{DoxyCompactList}\small\item\em Returns the \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} at the specified index. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} \hyperlink{class_ogre_1_1_animation_track_a3c8653dade6e58c26570ce8aad81b540}{get\+Key\+Frames\+At\+Time} (const \hyperlink{class_ogre_1_1_time_index}{Time\+Index} \&time\+Index, \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} $\ast$$\ast$key\+Frame1, \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} $\ast$$\ast$key\+Frame2, unsigned short $\ast$first\+Key\+Index=0) const
\begin{DoxyCompactList}\small\item\em Gets the 2 \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} objects which are active at the time given, and the blend value between them. \end{DoxyCompactList}\item 
virtual unsigned short \hyperlink{class_ogre_1_1_animation_track_a331ce755fa99ee26c1e2091ca60cb4d9}{get\+Num\+Key\+Frames} (void) const
\begin{DoxyCompactList}\small\item\em Returns the number of keyframes in this animation. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_animation}{Animation} $\ast$ \hyperlink{class_ogre_1_1_animation_track_accfc0e82d5c4ab76072edc11d3c70388}{get\+Parent} () const
\begin{DoxyCompactList}\small\item\em Returns the parent \hyperlink{class_ogre_1_1_animation}{Animation} object for this track. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ogre_1_1_animation_track_a74be6cc62465256955a95736afd2f772}{has\+Non\+Zero\+Key\+Frames} (void) const
\begin{DoxyCompactList}\small\item\em Method to determine if this track has any Key\+Frames which are doing anything useful -\/ can be used to determine if this track can be optimised out. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_animation_track_ad96281be1b189c69a1dbd2283d583503}{optimise} (void)
\begin{DoxyCompactList}\small\item\em Optimise the current track by removing any duplicate keyframes. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_animation_track_ac8f7b83d742998ed46c8cdb10e404df6}{remove\+All\+Key\+Frames} (void)
\begin{DoxyCompactList}\small\item\em Removes all the Key\+Frames from this track. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_animation_track_a3e1ccd99179d804992a5224fe811c2dd}{remove\+Key\+Frame} (unsigned short index)
\begin{DoxyCompactList}\small\item\em Removes a \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} by it\textquotesingle{}s index. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_animation_track_afe26aa738aca34c07407b6566b5d9eeb}{set\+Listener} (\hyperlink{class_ogre_1_1_animation_track_1_1_listener}{Listener} $\ast$l)
\begin{DoxyCompactList}\small\item\em Set a listener for this track. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A \textquotesingle{}track\textquotesingle{} in an animation sequence, i.\+e. 

a sequence of keyframes which affect a certain type of animable object. \begin{DoxyRemark}{Remarks}
This class is intended as a base for more complete classes which will actually animate specific types of object, e.\+g. a bone in a skeleton to affect skeletal animation. An animation will likely include multiple tracks each of which can be made up of many \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} instances. Note that the use of tracks allows each animable object to have it\textquotesingle{}s own number of keyframes, i.\+e. you do not have to have the maximum number of keyframes for all animable objects just to cope with the most animated one. 

Since the most common animable object is a \hyperlink{class_ogre_1_1_node}{Node}, there are options in this class for associating the track with a \hyperlink{class_ogre_1_1_node}{Node} which will receive keyframe updates automatically when the \textquotesingle{}apply\textquotesingle{} method is called. 

By default rotation is done using shortest-\/path algorithm. It is possible to change this behaviour using set\+Use\+Shortest\+Rotation\+Path() method. 
\end{DoxyRemark}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_animation_track_a0209b4a0d1461af76fdfcbf31b0537f2}\label{class_ogre_1_1_animation_track_a0209b4a0d1461af76fdfcbf31b0537f2}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!Animation\+Track@{Animation\+Track}}
\index{Animation\+Track@{Animation\+Track}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{Animation\+Track()}{AnimationTrack()}}
{\footnotesize\ttfamily Ogre\+::\+Animation\+Track\+::\+Animation\+Track (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_animation}{Animation} $\ast$}]{parent,  }\item[{unsigned short}]{handle }\end{DoxyParamCaption})}



Constructor. 

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a28fb904ec7b101ad71fae5c6930b0d34}\label{class_ogre_1_1_animation_track_a28fb904ec7b101ad71fae5c6930b0d34}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!````~Animation\+Track@{$\sim$\+Animation\+Track}}
\index{````~Animation\+Track@{$\sim$\+Animation\+Track}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{$\sim$\+Animation\+Track()}{~AnimationTrack()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Animation\+Track\+::$\sim$\+Animation\+Track (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_animation_track_a2fae315ab3444ab494d9b6c66280cd5b}\label{class_ogre_1_1_animation_track_a2fae315ab3444ab494d9b6c66280cd5b}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!get\+Handle@{get\+Handle}}
\index{get\+Handle@{get\+Handle}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Handle()}{getHandle()}}
{\footnotesize\ttfamily unsigned short Ogre\+::\+Animation\+Track\+::get\+Handle (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the handle associated with this track. 



Referenced by Ogre\+::\+Lod0\+Stripifier\+::\+Strip\+Lod0\+Vertices().

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a331ce755fa99ee26c1e2091ca60cb4d9}\label{class_ogre_1_1_animation_track_a331ce755fa99ee26c1e2091ca60cb4d9}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!get\+Num\+Key\+Frames@{get\+Num\+Key\+Frames}}
\index{get\+Num\+Key\+Frames@{get\+Num\+Key\+Frames}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Num\+Key\+Frames()}{getNumKeyFrames()}}
{\footnotesize\ttfamily virtual unsigned short Ogre\+::\+Animation\+Track\+::get\+Num\+Key\+Frames (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Returns the number of keyframes in this animation. 



Referenced by Ogre\+::\+Lod0\+Stripifier\+::$\sim$\+Lod0\+Stripifier().

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a8bf54db4f00bbd9c226c3f778bf7feb1}\label{class_ogre_1_1_animation_track_a8bf54db4f00bbd9c226c3f778bf7feb1}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!get\+Key\+Frame@{get\+Key\+Frame}}
\index{get\+Key\+Frame@{get\+Key\+Frame}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Key\+Frame()}{getKeyFrame()}}
{\footnotesize\ttfamily virtual \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}$\ast$ Ogre\+::\+Animation\+Track\+::get\+Key\+Frame (\begin{DoxyParamCaption}\item[{unsigned short}]{index }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Returns the \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} at the specified index. 

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a3c8653dade6e58c26570ce8aad81b540}\label{class_ogre_1_1_animation_track_a3c8653dade6e58c26570ce8aad81b540}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!get\+Key\+Frames\+At\+Time@{get\+Key\+Frames\+At\+Time}}
\index{get\+Key\+Frames\+At\+Time@{get\+Key\+Frames\+At\+Time}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Key\+Frames\+At\+Time()}{getKeyFramesAtTime()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} Ogre\+::\+Animation\+Track\+::get\+Key\+Frames\+At\+Time (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_time_index}{Time\+Index} \&}]{time\+Index,  }\item[{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} $\ast$$\ast$}]{key\+Frame1,  }\item[{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} $\ast$$\ast$}]{key\+Frame2,  }\item[{unsigned short $\ast$}]{first\+Key\+Index = {\ttfamily 0} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Gets the 2 \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} objects which are active at the time given, and the blend value between them. 

\begin{DoxyRemark}{Remarks}
At any point in time in an animation, there are either 1 or 2 keyframes which are \textquotesingle{}active\textquotesingle{}, 1 if the time index is exactly on a keyframe, 2 at all other times i.\+e. the keyframe before and the keyframe after. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
This method returns those keyframes given a time index, and also returns a parametric value indicating the value of \textquotesingle{}t\textquotesingle{} representing where the time index falls between them. E.\+g. if it returns 0, the time index is exactly on key\+Frame1, if it returns 0.\+5 it is half way between key\+Frame1 and key\+Frame2 etc. 
\end{DoxyParagraph}

\begin{DoxyParams}{Parameters}
{\em time\+Index} & The time index. \\
\hline
{\em key\+Frame1} & Pointer to a \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} pointer which will receive the pointer to the keyframe just before or at this time index. \\
\hline
{\em key\+Frame2} & Pointer to a \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} pointer which will receive the pointer to the keyframe just after this time index. \\
\hline
{\em first\+Key\+Index} & Pointer to an unsigned short which, if supplied, will receive the index of the \textquotesingle{}from\textquotesingle{} keyframe in case the caller needs it. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Parametric value indicating how far along the gap between the 2 keyframes the time\+Index value is, e.\+g. 0.\+0 for exactly at 1, 0.\+25 for a quarter etc. By definition the range of this value is\+: 0.\+0 $<$= return\+Value $<$ 1.\+0 . 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_animation_track_a4517a1b16d6cb601754d98841bb4d7d6}\label{class_ogre_1_1_animation_track_a4517a1b16d6cb601754d98841bb4d7d6}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!create\+Key\+Frame@{create\+Key\+Frame}}
\index{create\+Key\+Frame@{create\+Key\+Frame}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{create\+Key\+Frame()}{createKeyFrame()}}
{\footnotesize\ttfamily virtual \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}$\ast$ Ogre\+::\+Animation\+Track\+::create\+Key\+Frame (\begin{DoxyParamCaption}\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{time\+Pos }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Creates a new \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} and adds it to this animation at the given time index. 

\begin{DoxyRemark}{Remarks}
It is better to create Key\+Frames in time order. Creating them out of order can result in expensive reordering processing. Note that a \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} at time index 0.\+0 is always created for you, so you don\textquotesingle{}t need to create this one, just access it using get\+Key\+Frame(0); 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em time\+Pos} & The time from which this \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} will apply. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_animation_track_a3e1ccd99179d804992a5224fe811c2dd}\label{class_ogre_1_1_animation_track_a3e1ccd99179d804992a5224fe811c2dd}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!remove\+Key\+Frame@{remove\+Key\+Frame}}
\index{remove\+Key\+Frame@{remove\+Key\+Frame}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{remove\+Key\+Frame()}{removeKeyFrame()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::remove\+Key\+Frame (\begin{DoxyParamCaption}\item[{unsigned short}]{index }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Removes a \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} by it\textquotesingle{}s index. 

\mbox{\Hypertarget{class_ogre_1_1_animation_track_ac8f7b83d742998ed46c8cdb10e404df6}\label{class_ogre_1_1_animation_track_ac8f7b83d742998ed46c8cdb10e404df6}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!remove\+All\+Key\+Frames@{remove\+All\+Key\+Frames}}
\index{remove\+All\+Key\+Frames@{remove\+All\+Key\+Frames}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{remove\+All\+Key\+Frames()}{removeAllKeyFrames()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::remove\+All\+Key\+Frames (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Removes all the Key\+Frames from this track. 

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a48a8e96d4cb65f050dfed427f4442aa4}\label{class_ogre_1_1_animation_track_a48a8e96d4cb65f050dfed427f4442aa4}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!get\+Interpolated\+Key\+Frame@{get\+Interpolated\+Key\+Frame}}
\index{get\+Interpolated\+Key\+Frame@{get\+Interpolated\+Key\+Frame}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Interpolated\+Key\+Frame()}{getInterpolatedKeyFrame()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::get\+Interpolated\+Key\+Frame (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_time_index}{Time\+Index} \&}]{time\+Index,  }\item[{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} $\ast$}]{kf }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}



Gets a \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} object which contains the interpolated transforms at the time index specified. 

\begin{DoxyRemark}{Remarks}
The \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} objects held by this class are transformation snapshots at discrete points in time. Normally however, you want to interpolate between these keyframes to produce smooth movement, and this method allows you to do this easily. In animation terminology this is called \textquotesingle{}tweening\textquotesingle{}. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em time\+Index} & The time (in relation to the whole animation sequence) \\
\hline
{\em kf} & Keyframe object to store results \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{class_ogre_1_1_vertex_animation_track_abed93bed5d31de9ad6d32107d681f120}{Ogre\+::\+Vertex\+Animation\+Track}, \hyperlink{class_ogre_1_1_node_animation_track_a78b7aba35868b71aaf14c7b8bb91f37f}{Ogre\+::\+Node\+Animation\+Track}, and \hyperlink{class_ogre_1_1_numeric_animation_track_ac2a34a7e875f08ffbcf938072144d379}{Ogre\+::\+Numeric\+Animation\+Track}.

\mbox{\Hypertarget{class_ogre_1_1_animation_track_aa32b2807aee58478f96e75bfa44141cc}\label{class_ogre_1_1_animation_track_aa32b2807aee58478f96e75bfa44141cc}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!apply@{apply}}
\index{apply@{apply}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{apply()}{apply()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::apply (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_time_index}{Time\+Index} \&}]{time\+Index,  }\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{weight = {\ttfamily 1.0},  }\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{scale = {\ttfamily 1.0f} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Applies an animation track to the designated target. 


\begin{DoxyParams}{Parameters}
{\em time\+Index} & The time position in the animation to apply. \\
\hline
{\em weight} & The influence to give to this track, 1.\+0 for full influence, less to blend with other animations. \\
\hline
{\em scale} & The scale to apply to translations and scalings, useful for adapting an animation to a different size target. \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{class_ogre_1_1_vertex_animation_track_a142ab858538a9984b4cf2b5267fcda45}{Ogre\+::\+Vertex\+Animation\+Track}, \hyperlink{class_ogre_1_1_node_animation_track_a6260acaf8a310d45a175030e5b2f41d7}{Ogre\+::\+Node\+Animation\+Track}, and \hyperlink{class_ogre_1_1_numeric_animation_track_aadd219663715ff7f2f74b7255ebcbae4}{Ogre\+::\+Numeric\+Animation\+Track}.

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a1acb5172b8cb3624266e743d15cc2019}\label{class_ogre_1_1_animation_track_a1acb5172b8cb3624266e743d15cc2019}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!\+\_\+key\+Frame\+Data\+Changed@{\+\_\+key\+Frame\+Data\+Changed}}
\index{\+\_\+key\+Frame\+Data\+Changed@{\+\_\+key\+Frame\+Data\+Changed}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{\+\_\+key\+Frame\+Data\+Changed()}{\_keyFrameDataChanged()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::\+\_\+key\+Frame\+Data\+Changed (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Internal method used to tell the track that keyframe data has been changed, which may cause it to rebuild some internal data. 



Reimplemented in \hyperlink{class_ogre_1_1_node_animation_track_a082462ae5fb20507dcf8985645c9862f}{Ogre\+::\+Node\+Animation\+Track}.

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a74be6cc62465256955a95736afd2f772}\label{class_ogre_1_1_animation_track_a74be6cc62465256955a95736afd2f772}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!has\+Non\+Zero\+Key\+Frames@{has\+Non\+Zero\+Key\+Frames}}
\index{has\+Non\+Zero\+Key\+Frames@{has\+Non\+Zero\+Key\+Frames}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{has\+Non\+Zero\+Key\+Frames()}{hasNonZeroKeyFrames()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Animation\+Track\+::has\+Non\+Zero\+Key\+Frames (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Method to determine if this track has any Key\+Frames which are doing anything useful -\/ can be used to determine if this track can be optimised out. 



Reimplemented in \hyperlink{class_ogre_1_1_vertex_animation_track_aabc8b1f4f66f7e07c6b96064441735eb}{Ogre\+::\+Vertex\+Animation\+Track}, and \hyperlink{class_ogre_1_1_node_animation_track_a7413eb2da49422804744265bc5fe6434}{Ogre\+::\+Node\+Animation\+Track}.

\mbox{\Hypertarget{class_ogre_1_1_animation_track_ad96281be1b189c69a1dbd2283d583503}\label{class_ogre_1_1_animation_track_ad96281be1b189c69a1dbd2283d583503}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!optimise@{optimise}}
\index{optimise@{optimise}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{optimise()}{optimise()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::optimise (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Optimise the current track by removing any duplicate keyframes. 



Reimplemented in \hyperlink{class_ogre_1_1_vertex_animation_track_a366c0dfa30d9b59d685ff1f7622b5ba7}{Ogre\+::\+Vertex\+Animation\+Track}, and \hyperlink{class_ogre_1_1_node_animation_track_abab18a48c2cf56ef09d5049fa8289ad2}{Ogre\+::\+Node\+Animation\+Track}.

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a7aab09df8cf0fea5b1a53df263b9e2c1}\label{class_ogre_1_1_animation_track_a7aab09df8cf0fea5b1a53df263b9e2c1}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!\+\_\+collect\+Key\+Frame\+Times@{\+\_\+collect\+Key\+Frame\+Times}}
\index{\+\_\+collect\+Key\+Frame\+Times@{\+\_\+collect\+Key\+Frame\+Times}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{\+\_\+collect\+Key\+Frame\+Times()}{\_collectKeyFrameTimes()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::\+\_\+collect\+Key\+Frame\+Times (\begin{DoxyParamCaption}\item[{std\+::vector$<$ \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} $>$ \&}]{key\+Frame\+Times }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Internal method to collect keyframe times, in unique, ordered format. 

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a6f341ad134c0254f15a0cba2bbae4097}\label{class_ogre_1_1_animation_track_a6f341ad134c0254f15a0cba2bbae4097}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!\+\_\+build\+Key\+Frame\+Index\+Map@{\+\_\+build\+Key\+Frame\+Index\+Map}}
\index{\+\_\+build\+Key\+Frame\+Index\+Map@{\+\_\+build\+Key\+Frame\+Index\+Map}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{\+\_\+build\+Key\+Frame\+Index\+Map()}{\_buildKeyFrameIndexMap()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::\+\_\+build\+Key\+Frame\+Index\+Map (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} $>$ \&}]{key\+Frame\+Times }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Internal method to build keyframe time index map to translate global lower bound index to local lower bound index. 

\mbox{\Hypertarget{class_ogre_1_1_animation_track_aed855e8117300af01d646ff49b020916}\label{class_ogre_1_1_animation_track_aed855e8117300af01d646ff49b020916}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!\+\_\+apply\+Base\+Key\+Frame@{\+\_\+apply\+Base\+Key\+Frame}}
\index{\+\_\+apply\+Base\+Key\+Frame@{\+\_\+apply\+Base\+Key\+Frame}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{\+\_\+apply\+Base\+Key\+Frame()}{\_applyBaseKeyFrame()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::\+\_\+apply\+Base\+Key\+Frame (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} $\ast$}]{base }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Internal method to re-\/base the keyframes relative to a given keyframe. 



Reimplemented in \hyperlink{class_ogre_1_1_vertex_animation_track_a6a2e377adc0c21f46907ac73553c2024}{Ogre\+::\+Vertex\+Animation\+Track}, and \hyperlink{class_ogre_1_1_node_animation_track_acdfc6729a95edae3da832c713648046d}{Ogre\+::\+Node\+Animation\+Track}.

\mbox{\Hypertarget{class_ogre_1_1_animation_track_afe26aa738aca34c07407b6566b5d9eeb}\label{class_ogre_1_1_animation_track_afe26aa738aca34c07407b6566b5d9eeb}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!set\+Listener@{set\+Listener}}
\index{set\+Listener@{set\+Listener}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{set\+Listener()}{setListener()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::set\+Listener (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_animation_track_1_1_listener}{Listener} $\ast$}]{l }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Set a listener for this track. 

\mbox{\Hypertarget{class_ogre_1_1_animation_track_accfc0e82d5c4ab76072edc11d3c70388}\label{class_ogre_1_1_animation_track_accfc0e82d5c4ab76072edc11d3c70388}} 
\index{Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}!get\+Parent@{get\+Parent}}
\index{get\+Parent@{get\+Parent}!Ogre\+::\+Animation\+Track@{Ogre\+::\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Parent()}{getParent()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_animation}{Animation}$\ast$ Ogre\+::\+Animation\+Track\+::get\+Parent (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Returns the parent \hyperlink{class_ogre_1_1_animation}{Animation} object for this track. 



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