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


Specialised \hyperlink{class_ogre_1_1_animation_track}{Animation\+Track} for dealing with changing vertex position information.  




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



Inheritance diagram for Ogre\+:\+:Vertex\+Animation\+Track\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=233pt]{class_ogre_1_1_vertex_animation_track__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134}{Target\+Mode} \{ \hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134a2e9398cdf64d0a07033f83a3ddaadf2c}{T\+M\+\_\+\+S\+O\+F\+T\+W\+A\+RE}, 
\hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134a8c5fb4696cb266eb28aa2ec029aad0c3}{T\+M\+\_\+\+H\+A\+R\+D\+W\+A\+RE}
 \}\begin{DoxyCompactList}\small\item\em The target animation mode. \end{DoxyCompactList}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_vertex_animation_track_a06136478dc5dff67a65d50067628a24b}{Vertex\+Animation\+Track} (\hyperlink{class_ogre_1_1_animation}{Animation} $\ast$parent, unsigned short handle, \hyperlink{group___animation_ga9046e6e0d12c46c57a9056987e9d158e}{Vertex\+Animation\+Type} anim\+Type)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_vertex_animation_track_ad608609aaa85876c7c23c298e446cdff}{Vertex\+Animation\+Track} (\hyperlink{class_ogre_1_1_animation}{Animation} $\ast$parent, unsigned short handle, \hyperlink{group___animation_ga9046e6e0d12c46c57a9056987e9d158e}{Vertex\+Animation\+Type} anim\+Type, \hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} $\ast$target\+Data, \hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134}{Target\+Mode} target=\hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134a2e9398cdf64d0a07033f83a3ddaadf2c}{T\+M\+\_\+\+S\+O\+F\+T\+W\+A\+RE})
\begin{DoxyCompactList}\small\item\em Constructor, associates with target \hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} and temp buffer (for software) \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_vertex_animation_track_a6a2e377adc0c21f46907ac73553c2024}{\+\_\+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 
\hyperlink{class_ogre_1_1_vertex_animation_track}{Vertex\+Animation\+Track} $\ast$ \hyperlink{class_ogre_1_1_vertex_animation_track_ac25e07be07f2660350d9cab0c051312b}{\+\_\+clone} (\hyperlink{class_ogre_1_1_animation}{Animation} $\ast$new\+Parent) const
\begin{DoxyCompactList}\small\item\em Clone this track (internal use only) \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_vertex_animation_track_a142ab858538a9984b4cf2b5267fcda45}{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)
\begin{DoxyCompactList}\small\item\em Applies an animation track to the designated target. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_vertex_animation_track_a2a0f0bf65e74c4cd3a92fd60e2e26cbe}{apply\+To\+Vertex\+Data} (\hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} $\ast$data, const \hyperlink{class_ogre_1_1_time_index}{Time\+Index} \&time\+Index, \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} weight=1.\+0, const \hyperlink{group___animation_ga8f03b49c53cbcc1d22f4ef3abfb5b1eb}{Pose\+List} $\ast$pose\+List=0)
\begin{DoxyCompactList}\small\item\em As the \textquotesingle{}apply\textquotesingle{} method but applies to specified \hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} instead of associated data. \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 
virtual \hyperlink{class_ogre_1_1_vertex_morph_key_frame}{Vertex\+Morph\+Key\+Frame} $\ast$ \hyperlink{class_ogre_1_1_vertex_animation_track_a827ce0ebb406c71ef1868edf98ef58fc}{create\+Vertex\+Morph\+Key\+Frame} (\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} time\+Pos)
\begin{DoxyCompactList}\small\item\em Creates a new morph \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} and adds it to this animation at the given time index. \end{DoxyCompactList}\item 
virtual \hyperlink{class_ogre_1_1_vertex_pose_key_frame}{Vertex\+Pose\+Key\+Frame} $\ast$ \hyperlink{class_ogre_1_1_vertex_animation_track_a4b0bd6098fec16a9e1083f0e36a755e9}{create\+Vertex\+Pose\+Key\+Frame} (\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} time\+Pos)
\begin{DoxyCompactList}\small\item\em Creates the single pose \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} and adds it to this animation. \end{DoxyCompactList}\item 
\hyperlink{group___animation_ga9046e6e0d12c46c57a9056987e9d158e}{Vertex\+Animation\+Type} \hyperlink{class_ogre_1_1_vertex_animation_track_a8156ab1eafdc3c7337107140e7636083}{get\+Animation\+Type} (void) const
\begin{DoxyCompactList}\small\item\em Get the type of vertex animation we\textquotesingle{}re performing. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} $\ast$ \hyperlink{class_ogre_1_1_vertex_animation_track_a937f79e756c372bcf0a220af45b862e6}{get\+Associated\+Vertex\+Data} (void) const
\begin{DoxyCompactList}\small\item\em Gets the associated \hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} which this track will update. \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_vertex_animation_track_abed93bed5d31de9ad6d32107d681f120}{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
\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 
\hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134}{Target\+Mode} \hyperlink{class_ogre_1_1_vertex_animation_track_a4ecfbd4d53babaa1307bf31d92b4e23a}{get\+Target\+Mode} (void) const
\begin{DoxyCompactList}\small\item\em Get the target mode. \end{DoxyCompactList}\item 
bool \hyperlink{class_ogre_1_1_vertex_animation_track_aefed421a139ca642194815bd8747fb74}{get\+Vertex\+Animation\+Includes\+Normals} () const
\begin{DoxyCompactList}\small\item\em Whether the vertex animation (if present) includes normals. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_vertex_morph_key_frame}{Vertex\+Morph\+Key\+Frame} $\ast$ \hyperlink{class_ogre_1_1_vertex_animation_track_a0730e63246a217ec4b036211274b7392}{get\+Vertex\+Morph\+Key\+Frame} (unsigned short index) const
\begin{DoxyCompactList}\small\item\em Returns the morph \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} at the specified index. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_vertex_pose_key_frame}{Vertex\+Pose\+Key\+Frame} $\ast$ \hyperlink{class_ogre_1_1_vertex_animation_track_a7d394fe2e69f00ff4de4e960e4b753e1}{get\+Vertex\+Pose\+Key\+Frame} (unsigned short index) const
\begin{DoxyCompactList}\small\item\em Returns the pose \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} at the specified index. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ogre_1_1_vertex_animation_track_aabc8b1f4f66f7e07c6b96064441735eb}{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_vertex_animation_track_a366c0dfa30d9b59d685ff1f7622b5ba7}{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 
void \hyperlink{class_ogre_1_1_vertex_animation_track_aa37cffa57bfec055af3982f6c50c45a9}{set\+Associated\+Vertex\+Data} (\hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} $\ast$data)
\begin{DoxyCompactList}\small\item\em Sets the associated \hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} which this track will update. \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}\item 
void \hyperlink{class_ogre_1_1_vertex_animation_track_ad3def6ebcacc946484a16745ba89a060}{set\+Target\+Mode} (\hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134}{Target\+Mode} m)
\begin{DoxyCompactList}\small\item\em Set the target mode. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Specialised \hyperlink{class_ogre_1_1_animation_track}{Animation\+Track} for dealing with changing vertex position information. 

\begin{DoxySeeAlso}{See also}
\hyperlink{group___animation_ga9046e6e0d12c46c57a9056987e9d158e}{Vertex\+Animation\+Type} 
\end{DoxySeeAlso}


\subsection{Member Enumeration Documentation}
\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134}\label{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!Target\+Mode@{Target\+Mode}}
\index{Target\+Mode@{Target\+Mode}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{Target\+Mode}{TargetMode}}
{\footnotesize\ttfamily enum \hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134}{Ogre\+::\+Vertex\+Animation\+Track\+::\+Target\+Mode}}



The target animation mode. 

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{T\+M\+\_\+\+S\+O\+F\+T\+W\+A\+RE@{T\+M\+\_\+\+S\+O\+F\+T\+W\+A\+RE}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!T\+M\+\_\+\+S\+O\+F\+T\+W\+A\+RE@{T\+M\+\_\+\+S\+O\+F\+T\+W\+A\+RE}}}\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134a2e9398cdf64d0a07033f83a3ddaadf2c}\label{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134a2e9398cdf64d0a07033f83a3ddaadf2c}} 
T\+M\+\_\+\+S\+O\+F\+T\+W\+A\+RE&Interpolate vertex positions in software. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{T\+M\+\_\+\+H\+A\+R\+D\+W\+A\+RE@{T\+M\+\_\+\+H\+A\+R\+D\+W\+A\+RE}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!T\+M\+\_\+\+H\+A\+R\+D\+W\+A\+RE@{T\+M\+\_\+\+H\+A\+R\+D\+W\+A\+RE}}}\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134a8c5fb4696cb266eb28aa2ec029aad0c3}\label{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134a8c5fb4696cb266eb28aa2ec029aad0c3}} 
T\+M\+\_\+\+H\+A\+R\+D\+W\+A\+RE&Bind keyframe 1 to position, and keyframe 2 to a texture coordinate for interpolation in hardware. \\
\hline

\end{DoxyEnumFields}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a06136478dc5dff67a65d50067628a24b}\label{class_ogre_1_1_vertex_animation_track_a06136478dc5dff67a65d50067628a24b}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!Vertex\+Animation\+Track@{Vertex\+Animation\+Track}}
\index{Vertex\+Animation\+Track@{Vertex\+Animation\+Track}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{Vertex\+Animation\+Track()}{VertexAnimationTrack()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Ogre\+::\+Vertex\+Animation\+Track\+::\+Vertex\+Animation\+Track (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_animation}{Animation} $\ast$}]{parent,  }\item[{unsigned short}]{handle,  }\item[{\hyperlink{group___animation_ga9046e6e0d12c46c57a9056987e9d158e}{Vertex\+Animation\+Type}}]{anim\+Type }\end{DoxyParamCaption})}



Constructor. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_ad608609aaa85876c7c23c298e446cdff}\label{class_ogre_1_1_vertex_animation_track_ad608609aaa85876c7c23c298e446cdff}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!Vertex\+Animation\+Track@{Vertex\+Animation\+Track}}
\index{Vertex\+Animation\+Track@{Vertex\+Animation\+Track}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{Vertex\+Animation\+Track()}{VertexAnimationTrack()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Ogre\+::\+Vertex\+Animation\+Track\+::\+Vertex\+Animation\+Track (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_animation}{Animation} $\ast$}]{parent,  }\item[{unsigned short}]{handle,  }\item[{\hyperlink{group___animation_ga9046e6e0d12c46c57a9056987e9d158e}{Vertex\+Animation\+Type}}]{anim\+Type,  }\item[{\hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} $\ast$}]{target\+Data,  }\item[{\hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134}{Target\+Mode}}]{target = {\ttfamily \hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134a2e9398cdf64d0a07033f83a3ddaadf2c}{T\+M\+\_\+\+S\+O\+F\+T\+W\+A\+RE}} }\end{DoxyParamCaption})}



Constructor, associates with target \hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} and temp buffer (for software) 



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a8156ab1eafdc3c7337107140e7636083}\label{class_ogre_1_1_vertex_animation_track_a8156ab1eafdc3c7337107140e7636083}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Animation\+Type@{get\+Animation\+Type}}
\index{get\+Animation\+Type@{get\+Animation\+Type}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Animation\+Type()}{getAnimationType()}}
{\footnotesize\ttfamily \hyperlink{group___animation_ga9046e6e0d12c46c57a9056987e9d158e}{Vertex\+Animation\+Type} Ogre\+::\+Vertex\+Animation\+Track\+::get\+Animation\+Type (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the type of vertex animation we\textquotesingle{}re performing. 



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

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_aefed421a139ca642194815bd8747fb74}\label{class_ogre_1_1_vertex_animation_track_aefed421a139ca642194815bd8747fb74}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Vertex\+Animation\+Includes\+Normals@{get\+Vertex\+Animation\+Includes\+Normals}}
\index{get\+Vertex\+Animation\+Includes\+Normals@{get\+Vertex\+Animation\+Includes\+Normals}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Vertex\+Animation\+Includes\+Normals()}{getVertexAnimationIncludesNormals()}}
{\footnotesize\ttfamily bool Ogre\+::\+Vertex\+Animation\+Track\+::get\+Vertex\+Animation\+Includes\+Normals (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Whether the vertex animation (if present) includes normals. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a827ce0ebb406c71ef1868edf98ef58fc}\label{class_ogre_1_1_vertex_animation_track_a827ce0ebb406c71ef1868edf98ef58fc}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!create\+Vertex\+Morph\+Key\+Frame@{create\+Vertex\+Morph\+Key\+Frame}}
\index{create\+Vertex\+Morph\+Key\+Frame@{create\+Vertex\+Morph\+Key\+Frame}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{create\+Vertex\+Morph\+Key\+Frame()}{createVertexMorphKeyFrame()}}
{\footnotesize\ttfamily virtual \hyperlink{class_ogre_1_1_vertex_morph_key_frame}{Vertex\+Morph\+Key\+Frame}$\ast$ Ogre\+::\+Vertex\+Animation\+Track\+::create\+Vertex\+Morph\+Key\+Frame (\begin{DoxyParamCaption}\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{time\+Pos }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Creates a new morph \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_vertex_animation_track_a4b0bd6098fec16a9e1083f0e36a755e9}\label{class_ogre_1_1_vertex_animation_track_a4b0bd6098fec16a9e1083f0e36a755e9}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!create\+Vertex\+Pose\+Key\+Frame@{create\+Vertex\+Pose\+Key\+Frame}}
\index{create\+Vertex\+Pose\+Key\+Frame@{create\+Vertex\+Pose\+Key\+Frame}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{create\+Vertex\+Pose\+Key\+Frame()}{createVertexPoseKeyFrame()}}
{\footnotesize\ttfamily virtual \hyperlink{class_ogre_1_1_vertex_pose_key_frame}{Vertex\+Pose\+Key\+Frame}$\ast$ Ogre\+::\+Vertex\+Animation\+Track\+::create\+Vertex\+Pose\+Key\+Frame (\begin{DoxyParamCaption}\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{time\+Pos }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Creates the single pose \hyperlink{class_ogre_1_1_key_frame}{Key\+Frame} and adds it to this animation. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_abed93bed5d31de9ad6d32107d681f120}\label{class_ogre_1_1_vertex_animation_track_abed93bed5d31de9ad6d32107d681f120}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Interpolated\+Key\+Frame@{get\+Interpolated\+Key\+Frame}}
\index{get\+Interpolated\+Key\+Frame@{get\+Interpolated\+Key\+Frame}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Interpolated\+Key\+Frame()}{getInterpolatedKeyFrame()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Vertex\+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 [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}


Implements \hyperlink{class_ogre_1_1_animation_track_a48a8e96d4cb65f050dfed427f4442aa4}{Ogre\+::\+Animation\+Track}.

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a142ab858538a9984b4cf2b5267fcda45}\label{class_ogre_1_1_vertex_animation_track_a142ab858538a9984b4cf2b5267fcda45}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!apply@{apply}}
\index{apply@{apply}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{apply()}{apply()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Vertex\+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 [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}


Implements \hyperlink{class_ogre_1_1_animation_track_aa32b2807aee58478f96e75bfa44141cc}{Ogre\+::\+Animation\+Track}.

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a2a0f0bf65e74c4cd3a92fd60e2e26cbe}\label{class_ogre_1_1_vertex_animation_track_a2a0f0bf65e74c4cd3a92fd60e2e26cbe}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!apply\+To\+Vertex\+Data@{apply\+To\+Vertex\+Data}}
\index{apply\+To\+Vertex\+Data@{apply\+To\+Vertex\+Data}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{apply\+To\+Vertex\+Data()}{applyToVertexData()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Vertex\+Animation\+Track\+::apply\+To\+Vertex\+Data (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} $\ast$}]{data,  }\item[{const \hyperlink{class_ogre_1_1_time_index}{Time\+Index} \&}]{time\+Index,  }\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{weight = {\ttfamily 1.0},  }\item[{const \hyperlink{group___animation_ga8f03b49c53cbcc1d22f4ef3abfb5b1eb}{Pose\+List} $\ast$}]{pose\+List = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



As the \textquotesingle{}apply\textquotesingle{} method but applies to specified \hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} instead of associated data. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a0730e63246a217ec4b036211274b7392}\label{class_ogre_1_1_vertex_animation_track_a0730e63246a217ec4b036211274b7392}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Vertex\+Morph\+Key\+Frame@{get\+Vertex\+Morph\+Key\+Frame}}
\index{get\+Vertex\+Morph\+Key\+Frame@{get\+Vertex\+Morph\+Key\+Frame}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Vertex\+Morph\+Key\+Frame()}{getVertexMorphKeyFrame()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_vertex_morph_key_frame}{Vertex\+Morph\+Key\+Frame}$\ast$ Ogre\+::\+Vertex\+Animation\+Track\+::get\+Vertex\+Morph\+Key\+Frame (\begin{DoxyParamCaption}\item[{unsigned short}]{index }\end{DoxyParamCaption}) const}



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



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

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a7d394fe2e69f00ff4de4e960e4b753e1}\label{class_ogre_1_1_vertex_animation_track_a7d394fe2e69f00ff4de4e960e4b753e1}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Vertex\+Pose\+Key\+Frame@{get\+Vertex\+Pose\+Key\+Frame}}
\index{get\+Vertex\+Pose\+Key\+Frame@{get\+Vertex\+Pose\+Key\+Frame}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Vertex\+Pose\+Key\+Frame()}{getVertexPoseKeyFrame()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_vertex_pose_key_frame}{Vertex\+Pose\+Key\+Frame}$\ast$ Ogre\+::\+Vertex\+Animation\+Track\+::get\+Vertex\+Pose\+Key\+Frame (\begin{DoxyParamCaption}\item[{unsigned short}]{index }\end{DoxyParamCaption}) const}



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

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_aa37cffa57bfec055af3982f6c50c45a9}\label{class_ogre_1_1_vertex_animation_track_aa37cffa57bfec055af3982f6c50c45a9}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!set\+Associated\+Vertex\+Data@{set\+Associated\+Vertex\+Data}}
\index{set\+Associated\+Vertex\+Data@{set\+Associated\+Vertex\+Data}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{set\+Associated\+Vertex\+Data()}{setAssociatedVertexData()}}
{\footnotesize\ttfamily void Ogre\+::\+Vertex\+Animation\+Track\+::set\+Associated\+Vertex\+Data (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} $\ast$}]{data }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Sets the associated \hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} which this track will update. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a937f79e756c372bcf0a220af45b862e6}\label{class_ogre_1_1_vertex_animation_track_a937f79e756c372bcf0a220af45b862e6}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Associated\+Vertex\+Data@{get\+Associated\+Vertex\+Data}}
\index{get\+Associated\+Vertex\+Data@{get\+Associated\+Vertex\+Data}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Associated\+Vertex\+Data()}{getAssociatedVertexData()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data}$\ast$ Ogre\+::\+Vertex\+Animation\+Track\+::get\+Associated\+Vertex\+Data (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets the associated \hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data} which this track will update. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_ad3def6ebcacc946484a16745ba89a060}\label{class_ogre_1_1_vertex_animation_track_ad3def6ebcacc946484a16745ba89a060}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!set\+Target\+Mode@{set\+Target\+Mode}}
\index{set\+Target\+Mode@{set\+Target\+Mode}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{set\+Target\+Mode()}{setTargetMode()}}
{\footnotesize\ttfamily void Ogre\+::\+Vertex\+Animation\+Track\+::set\+Target\+Mode (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134}{Target\+Mode}}]{m }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Set the target mode. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a4ecfbd4d53babaa1307bf31d92b4e23a}\label{class_ogre_1_1_vertex_animation_track_a4ecfbd4d53babaa1307bf31d92b4e23a}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Target\+Mode@{get\+Target\+Mode}}
\index{get\+Target\+Mode@{get\+Target\+Mode}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{get\+Target\+Mode()}{getTargetMode()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_vertex_animation_track_a8428fcdefb79b2dd650b22968a3e8134}{Target\+Mode} Ogre\+::\+Vertex\+Animation\+Track\+::get\+Target\+Mode (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the target mode. 

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_aabc8b1f4f66f7e07c6b96064441735eb}\label{class_ogre_1_1_vertex_animation_track_aabc8b1f4f66f7e07c6b96064441735eb}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!has\+Non\+Zero\+Key\+Frames@{has\+Non\+Zero\+Key\+Frames}}
\index{has\+Non\+Zero\+Key\+Frames@{has\+Non\+Zero\+Key\+Frames}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{has\+Non\+Zero\+Key\+Frames()}{hasNonZeroKeyFrames()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Vertex\+Animation\+Track\+::has\+Non\+Zero\+Key\+Frames (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\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 from \hyperlink{class_ogre_1_1_animation_track_a74be6cc62465256955a95736afd2f772}{Ogre\+::\+Animation\+Track}.

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



Optimise the current track by removing any duplicate keyframes. 



Reimplemented from \hyperlink{class_ogre_1_1_animation_track_ad96281be1b189c69a1dbd2283d583503}{Ogre\+::\+Animation\+Track}.

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_ac25e07be07f2660350d9cab0c051312b}\label{class_ogre_1_1_vertex_animation_track_ac25e07be07f2660350d9cab0c051312b}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!\+\_\+clone@{\+\_\+clone}}
\index{\+\_\+clone@{\+\_\+clone}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{\+\_\+clone()}{\_clone()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_vertex_animation_track}{Vertex\+Animation\+Track}$\ast$ Ogre\+::\+Vertex\+Animation\+Track\+::\+\_\+clone (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_animation}{Animation} $\ast$}]{new\+Parent }\end{DoxyParamCaption}) const}



Clone this track (internal use only) 

\mbox{\Hypertarget{class_ogre_1_1_vertex_animation_track_a6a2e377adc0c21f46907ac73553c2024}\label{class_ogre_1_1_vertex_animation_track_a6a2e377adc0c21f46907ac73553c2024}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!\+\_\+apply\+Base\+Key\+Frame@{\+\_\+apply\+Base\+Key\+Frame}}
\index{\+\_\+apply\+Base\+Key\+Frame@{\+\_\+apply\+Base\+Key\+Frame}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}}
\subsubsection{\texorpdfstring{\+\_\+apply\+Base\+Key\+Frame()}{\_applyBaseKeyFrame()}}
{\footnotesize\ttfamily void Ogre\+::\+Vertex\+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 from \hyperlink{class_ogre_1_1_animation_track_aed855e8117300af01d646ff49b020916}{Ogre\+::\+Animation\+Track}.

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a2fae315ab3444ab494d9b6c66280cd5b}\label{class_ogre_1_1_animation_track_a2fae315ab3444ab494d9b6c66280cd5b}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Handle@{get\+Handle}}
\index{get\+Handle@{get\+Handle}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Num\+Key\+Frames@{get\+Num\+Key\+Frames}}
\index{get\+Num\+Key\+Frames@{get\+Num\+Key\+Frames}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Key\+Frame@{get\+Key\+Frame}}
\index{get\+Key\+Frame@{get\+Key\+Frame}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Key\+Frames\+At\+Time@{get\+Key\+Frames\+At\+Time}}
\index{get\+Key\+Frames\+At\+Time@{get\+Key\+Frames\+At\+Time}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!create\+Key\+Frame@{create\+Key\+Frame}}
\index{create\+Key\+Frame@{create\+Key\+Frame}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!remove\+Key\+Frame@{remove\+Key\+Frame}}
\index{remove\+Key\+Frame@{remove\+Key\+Frame}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!remove\+All\+Key\+Frames@{remove\+All\+Key\+Frames}}
\index{remove\+All\+Key\+Frames@{remove\+All\+Key\+Frames}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



Removes all the Key\+Frames from this track. 

\mbox{\Hypertarget{class_ogre_1_1_animation_track_a1acb5172b8cb3624266e743d15cc2019}\label{class_ogre_1_1_animation_track_a1acb5172b8cb3624266e743d15cc2019}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!\+\_\+key\+Frame\+Data\+Changed@{\+\_\+key\+Frame\+Data\+Changed}}
\index{\+\_\+key\+Frame\+Data\+Changed@{\+\_\+key\+Frame\+Data\+Changed}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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_a7aab09df8cf0fea5b1a53df263b9e2c1}\label{class_ogre_1_1_animation_track_a7aab09df8cf0fea5b1a53df263b9e2c1}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!\+\_\+collect\+Key\+Frame\+Times@{\+\_\+collect\+Key\+Frame\+Times}}
\index{\+\_\+collect\+Key\+Frame\+Times@{\+\_\+collect\+Key\+Frame\+Times}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!\+\_\+build\+Key\+Frame\+Index\+Map@{\+\_\+build\+Key\+Frame\+Index\+Map}}
\index{\+\_\+build\+Key\+Frame\+Index\+Map@{\+\_\+build\+Key\+Frame\+Index\+Map}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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_afe26aa738aca34c07407b6566b5d9eeb}\label{class_ogre_1_1_animation_track_afe26aa738aca34c07407b6566b5d9eeb}} 
\index{Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!set\+Listener@{set\+Listener}}
\index{set\+Listener@{set\+Listener}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+Animation\+Track}!get\+Parent@{get\+Parent}}
\index{get\+Parent@{get\+Parent}!Ogre\+::\+Vertex\+Animation\+Track@{Ogre\+::\+Vertex\+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]}, {\ttfamily [inherited]}}



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}
