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


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}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{class_ogre_1_1_animation_track_1_1_listener}{Listener}}
\begin{DoxyCompactList}\small\item\em \mbox{\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}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_animation_track_a0209b4a0d1461af76fdfcbf31b0537f2}{Animation\+Track}} (\mbox{\hyperlink{class_ogre_1_1_animation}{Animation}} $\ast$parent, unsigned short handle)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{class_ogre_1_1_animation_track_a28fb904ec7b101ad71fae5c6930b0d34}{$\sim$\+Animation\+Track}} ()
\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_animation_track_aed855e8117300af01d646ff49b020916}{\+\_\+apply\+Base\+Key\+Frame}} (const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_animation_track_a6f341ad134c0254f15a0cba2bbae4097}{\+\_\+build\+Key\+Frame\+Index\+Map}} (const std\+::vector$<$ \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_animation_track_a7aab09df8cf0fea5b1a53df263b9e2c1}{\+\_\+collect\+Key\+Frame\+Times}} (std\+::vector$<$ \mbox{\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 \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_animation_track_aa32b2807aee58478f96e75bfa44141cc}{apply}} (const \mbox{\hyperlink{class_ogre_1_1_time_index}{Time\+Index}} \&time\+Index, \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} weight=1.\+0, \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_animation_track_a4517a1b16d6cb601754d98841bb4d7d6}{create\+Key\+Frame}} (\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} time\+Pos)
\begin{DoxyCompactList}\small\item\em Creates a new \mbox{\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 \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_animation_track_a48a8e96d4cb65f050dfed427f4442aa4}{get\+Interpolated\+Key\+Frame}} (const \mbox{\hyperlink{class_ogre_1_1_time_index}{Time\+Index}} \&time\+Index, \mbox{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}} $\ast$kf) const =0
\begin{DoxyCompactList}\small\item\em Gets a \mbox{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}} object which contains the interpolated transforms at the time index specified. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_animation_track_a8bf54db4f00bbd9c226c3f778bf7feb1}{get\+Key\+Frame}} (unsigned short index) const
\begin{DoxyCompactList}\small\item\em Returns the \mbox{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}} at the specified index. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} \mbox{\hyperlink{class_ogre_1_1_animation_track_a3c8653dade6e58c26570ce8aad81b540}{get\+Key\+Frames\+At\+Time}} (const \mbox{\hyperlink{class_ogre_1_1_time_index}{Time\+Index}} \&time\+Index, \mbox{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}} $\ast$$\ast$key\+Frame1, \mbox{\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 \mbox{\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 \mbox{\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 
\mbox{\hyperlink{class_ogre_1_1_animation}{Animation}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_animation_track_accfc0e82d5c4ab76072edc11d3c70388}{get\+Parent}} () const
\begin{DoxyCompactList}\small\item\em Returns the parent \mbox{\hyperlink{class_ogre_1_1_animation}{Animation}} object for this track. \end{DoxyCompactList}\item 
virtual bool \mbox{\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 \mbox{\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 \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_animation_track_a3e1ccd99179d804992a5224fe811c2dd}{remove\+Key\+Frame}} (unsigned short index)
\begin{DoxyCompactList}\small\item\em Removes a \mbox{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}} by it\textquotesingle{}s index. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_animation_track_afe26aa738aca34c07407b6566b5d9eeb}{set\+Listener}} (\mbox{\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}


\doxysubsection{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 \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_node}{Node}}, there are options in this class for associating the track with a \mbox{\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}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_animation_track_a0209b4a0d1461af76fdfcbf31b0537f2}\label{class_ogre_1_1_animation_track_a0209b4a0d1461af76fdfcbf31b0537f2}} 
\index{Ogre::AnimationTrack@{Ogre::AnimationTrack}!AnimationTrack@{AnimationTrack}}
\index{AnimationTrack@{AnimationTrack}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{AnimationTrack()}{AnimationTrack()}}
{\footnotesize\ttfamily Ogre\+::\+Animation\+Track\+::\+Animation\+Track (\begin{DoxyParamCaption}\item[{\mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!````~AnimationTrack@{$\sim$AnimationTrack}}
\index{````~AnimationTrack@{$\sim$AnimationTrack}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{$\sim$AnimationTrack()}{~AnimationTrack()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Animation\+Track\+::$\sim$\+Animation\+Track (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_animation_track_a2fae315ab3444ab494d9b6c66280cd5b}\label{class_ogre_1_1_animation_track_a2fae315ab3444ab494d9b6c66280cd5b}} 
\index{Ogre::AnimationTrack@{Ogre::AnimationTrack}!getHandle@{getHandle}}
\index{getHandle@{getHandle}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{getHandle()}{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::AnimationTrack@{Ogre::AnimationTrack}!getNumKeyFrames@{getNumKeyFrames}}
\index{getNumKeyFrames@{getNumKeyFrames}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{getNumKeyFrames()}{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. 

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a8bf54db4f00bbd9c226c3f778bf7feb1}\label{class_ogre_1_1_animation_track_a8bf54db4f00bbd9c226c3f778bf7feb1}} 
\index{Ogre::AnimationTrack@{Ogre::AnimationTrack}!getKeyFrame@{getKeyFrame}}
\index{getKeyFrame@{getKeyFrame}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{getKeyFrame()}{getKeyFrame()}}
{\footnotesize\ttfamily virtual \mbox{\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 \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!getKeyFramesAtTime@{getKeyFramesAtTime}}
\index{getKeyFramesAtTime@{getKeyFramesAtTime}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{getKeyFramesAtTime()}{getKeyFramesAtTime()}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} Ogre\+::\+Animation\+Track\+::get\+Key\+Frames\+At\+Time (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_time_index}{Time\+Index}} \&}]{time\+Index,  }\item[{\mbox{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}} $\ast$$\ast$}]{key\+Frame1,  }\item[{\mbox{\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 \mbox{\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 \mbox{\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 \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!createKeyFrame@{createKeyFrame}}
\index{createKeyFrame@{createKeyFrame}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{createKeyFrame()}{createKeyFrame()}}
{\footnotesize\ttfamily virtual \mbox{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}}$\ast$ Ogre\+::\+Animation\+Track\+::create\+Key\+Frame (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{time\+Pos }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Creates a new \mbox{\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 \mbox{\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 \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!removeKeyFrame@{removeKeyFrame}}
\index{removeKeyFrame@{removeKeyFrame}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{removeKeyFrame()}{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 \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!removeAllKeyFrames@{removeAllKeyFrames}}
\index{removeAllKeyFrames@{removeAllKeyFrames}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{removeAllKeyFrames()}{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::AnimationTrack@{Ogre::AnimationTrack}!getInterpolatedKeyFrame@{getInterpolatedKeyFrame}}
\index{getInterpolatedKeyFrame@{getInterpolatedKeyFrame}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{getInterpolatedKeyFrame()}{getInterpolatedKeyFrame()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::get\+Interpolated\+Key\+Frame (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_time_index}{Time\+Index}} \&}]{time\+Index,  }\item[{\mbox{\hyperlink{class_ogre_1_1_key_frame}{Key\+Frame}} $\ast$}]{kf }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}



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

\begin{DoxyRemark}{Remarks}
The \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_vertex_animation_track_abed93bed5d31de9ad6d32107d681f120}{Ogre\+::\+Vertex\+Animation\+Track}}, \mbox{\hyperlink{class_ogre_1_1_node_animation_track_a78b7aba35868b71aaf14c7b8bb91f37f}{Ogre\+::\+Node\+Animation\+Track}}, and \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!apply@{apply}}
\index{apply@{apply}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{apply()}{apply()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::apply (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_time_index}{Time\+Index}} \&}]{time\+Index,  }\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{weight = {\ttfamily 1.0},  }\item[{\mbox{\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 \mbox{\hyperlink{class_ogre_1_1_vertex_animation_track_a142ab858538a9984b4cf2b5267fcda45}{Ogre\+::\+Vertex\+Animation\+Track}}, \mbox{\hyperlink{class_ogre_1_1_node_animation_track_a6260acaf8a310d45a175030e5b2f41d7}{Ogre\+::\+Node\+Animation\+Track}}, and \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!\_keyFrameDataChanged@{\_keyFrameDataChanged}}
\index{\_keyFrameDataChanged@{\_keyFrameDataChanged}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{\_keyFrameDataChanged()}{\_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 \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!hasNonZeroKeyFrames@{hasNonZeroKeyFrames}}
\index{hasNonZeroKeyFrames@{hasNonZeroKeyFrames}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{hasNonZeroKeyFrames()}{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 \mbox{\hyperlink{class_ogre_1_1_vertex_animation_track_aabc8b1f4f66f7e07c6b96064441735eb}{Ogre\+::\+Vertex\+Animation\+Track}}, and \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!optimise@{optimise}}
\index{optimise@{optimise}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\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 \mbox{\hyperlink{class_ogre_1_1_vertex_animation_track_a366c0dfa30d9b59d685ff1f7622b5ba7}{Ogre\+::\+Vertex\+Animation\+Track}}, and \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!\_collectKeyFrameTimes@{\_collectKeyFrameTimes}}
\index{\_collectKeyFrameTimes@{\_collectKeyFrameTimes}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{\_collectKeyFrameTimes()}{\_collectKeyFrameTimes()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::\+\_\+collect\+Key\+Frame\+Times (\begin{DoxyParamCaption}\item[{std\+::vector$<$ \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!\_buildKeyFrameIndexMap@{\_buildKeyFrameIndexMap}}
\index{\_buildKeyFrameIndexMap@{\_buildKeyFrameIndexMap}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{\_buildKeyFrameIndexMap()}{\_buildKeyFrameIndexMap()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::\+\_\+build\+Key\+Frame\+Index\+Map (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!\_applyBaseKeyFrame@{\_applyBaseKeyFrame}}
\index{\_applyBaseKeyFrame@{\_applyBaseKeyFrame}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{\_applyBaseKeyFrame()}{\_applyBaseKeyFrame()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::\+\_\+apply\+Base\+Key\+Frame (\begin{DoxyParamCaption}\item[{const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_vertex_animation_track_a6a2e377adc0c21f46907ac73553c2024}{Ogre\+::\+Vertex\+Animation\+Track}}, and \mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!setListener@{setListener}}
\index{setListener@{setListener}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{setListener()}{setListener()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Animation\+Track\+::set\+Listener (\begin{DoxyParamCaption}\item[{\mbox{\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::AnimationTrack@{Ogre::AnimationTrack}!getParent@{getParent}}
\index{getParent@{getParent}!Ogre::AnimationTrack@{Ogre::AnimationTrack}}
\doxysubsubsection{\texorpdfstring{getParent()}{getParent()}}
{\footnotesize\ttfamily \mbox{\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 \mbox{\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 
\mbox{\hyperlink{_ogre_animation_track_8h}{Ogre\+Animation\+Track.\+h}}\end{DoxyCompactItemize}
