\hypertarget{a01190}{\section{Skeleton\+T$<$ Point\+T $>$ Class Template Reference}
\label{a01190}\index{Skeleton\+T$<$ Point\+T $>$@{Skeleton\+T$<$ Point\+T $>$}}
}
Inheritance diagram for Skeleton\+T$<$ Point\+T $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a01190}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{a00288}{Animation\+Iterator}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00743}{Iterator} class for the animations attached to a skeleton. \end{DoxyCompactList}\item 
class \hyperlink{a00743}{Iterator}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00743}{Iterator} class for the skeleton. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01190_a51d0c5577a0e24933569eaedda4a2399}{typedef Point\+T {\bfseries Point}}\label{a01190_a51d0c5577a0e24933569eaedda4a2399}

\item 
\hypertarget{a01190_a1c8822392cd6a6889476cc2963e914be}{typedef Point\+::value\+\_\+type {\bfseries Scalar}}\label{a01190_a1c8822392cd6a6889476cc2963e914be}

\item 
\hypertarget{a01190_aaea1ced36e6cd28f6d37d8cc2297bf79}{typedef \hyperlink{a00751}{Joint\+T}$<$ Point $>$ {\bfseries Joint}}\label{a01190_aaea1ced36e6cd28f6d37d8cc2297bf79}

\item 
\hypertarget{a01190_a3a872058758f07b644c13c8a862f905c}{typedef \hyperlink{a00996}{Pose\+T}$<$ Point\+T $>$ {\bfseries Pose}}\label{a01190_a3a872058758f07b644c13c8a862f905c}

\item 
\hypertarget{a01190_a714fc7451995b9a83d07e0e6de1eaee6}{typedef \hyperlink{a00289}{Animation\+T}$<$ Point\+T $>$ {\bfseries Animation}}\label{a01190_a714fc7451995b9a83d07e0e6de1eaee6}

\item 
\hypertarget{a01190_a0736c4c03e436fc94f5bfb4f38369568}{typedef \hyperlink{a00797}{A\+C\+G\+::\+Matrix4x4\+T}$<$ Scalar $>$ {\bfseries Matrix}}\label{a01190_a0736c4c03e436fc94f5bfb4f38369568}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a01190_a5903622c425040c46bfeb925f5a8533e}{Skeleton\+T} ()
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\hyperlink{a01190_a953ce71208fba7903ccddd646bd51ec2}{Skeleton\+T} (const \hyperlink{a01190}{Skeleton\+T}$<$ Point\+T $>$ \&\+\_\+other)
\begin{DoxyCompactList}\small\item\em Copy constructor. \end{DoxyCompactList}\item 
\hyperlink{a01190}{Skeleton\+T} \& \hyperlink{a01190_aac20870e5ab4d710f08ce781d2fe01eb}{operator=} (const \hyperlink{a01190}{Skeleton\+T}$<$ Point\+T $>$ \&\+\_\+other)
\begin{DoxyCompactList}\small\item\em Assignment operator. \end{DoxyCompactList}\item 
\hypertarget{a01190_a648ea54c7936f1834d777fc0585f030f}{\hyperlink{a01190_a648ea54c7936f1834d777fc0585f030f}{$\sim$\+Skeleton\+T} ()}\label{a01190_a648ea54c7936f1834d777fc0585f030f}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf Modifying the tree structure}\par
{\em Use these methods to edit the skeleton tree. }\begin{DoxyCompactItemize}
\item 
void \hyperlink{a01190_a1631f74df397f87ec44b5afa5a339bf4}{add\+Joint} (typename \hyperlink{a01190}{Skeleton\+T}$<$ Point\+T $>$\+::\hyperlink{a00751}{Joint} $\ast$\+\_\+p\+Parent, typename \hyperlink{a01190}{Skeleton\+T}$<$ Point\+T $>$\+::\hyperlink{a00751}{Joint} $\ast$\+\_\+p\+Joint)
\begin{DoxyCompactList}\small\item\em Adds a joint as child of a given parent joint. \end{DoxyCompactList}\item 
void \hyperlink{a01190_ab81c3e2bc02fa7631bc2ff853518ad34}{insert\+Joint} (typename \hyperlink{a01190}{Skeleton\+T}$<$ Point\+T $>$\+::\hyperlink{a00751}{Joint} $\ast$\+\_\+p\+Child, typename \hyperlink{a01190}{Skeleton\+T}$<$ Point\+T $>$\+::\hyperlink{a00751}{Joint} $\ast$\+\_\+p\+Insert)
\begin{DoxyCompactList}\small\item\em insert a Joint given its future child joint \end{DoxyCompactList}\item 
void \hyperlink{a01190_af5a06892dd7d18a6d3509504911b4636}{remove\+Joint} (typename \hyperlink{a01190}{Skeleton\+T}$<$ Point\+T $>$\+::\hyperlink{a00751}{Joint} $\ast$\+\_\+p\+Joint)
\begin{DoxyCompactList}\small\item\em Remove the given joint from the tree. \end{DoxyCompactList}\item 
void \hyperlink{a01190_a6821b1cf6e181dc8bc7247114885815f}{clear} ()
\begin{DoxyCompactList}\small\item\em Removes all joints from the skeleton. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Basic Joint Access}\par
{\em \label{a01190_JointAccess}%
\hypertarget{a01190_JointAccess}{}%


Use these methods to access joints in the skeleton. }\begin{DoxyCompactItemize}
\item 
\hyperlink{a00751}{Joint} $\ast$ \hyperlink{a01190_ae52805fb8d2e0b07edf648653f9aade1}{root} ()
\begin{DoxyCompactList}\small\item\em Returns the root joint. \end{DoxyCompactList}\item 
\hyperlink{a00751}{Joint} $\ast$ \hyperlink{a01190_a2aa22e9b07c72f616712f8c67e8ae0d5}{joint} (const unsigned int \&\+\_\+index)
\begin{DoxyCompactList}\small\item\em Returns the joint with the given index. \end{DoxyCompactList}\item 
int \hyperlink{a01190_a93c6b8e6b78adf48be870171d80cdd3b}{parent} (unsigned int \+\_\+joint)
\begin{DoxyCompactList}\small\item\em Returns the parents id of the given node. \end{DoxyCompactList}\item 
\hypertarget{a01190_ae334f781e2d290c3cb4115625486ac03}{unsigned int \hyperlink{a01190_ae334f781e2d290c3cb4115625486ac03}{child\+Count} (unsigned int \+\_\+joint)}\label{a01190_ae334f781e2d290c3cb4115625486ac03}

\begin{DoxyCompactList}\small\item\em Returns the number of children of the given node. \end{DoxyCompactList}\item 
unsigned int \hyperlink{a01190_aff0691b56a0097bdd172de03c464e695}{child} (unsigned int \+\_\+joint, unsigned int \+\_\+child)
\begin{DoxyCompactList}\small\item\em Returns the child with the given index. \end{DoxyCompactList}\item 
\hypertarget{a01190_a5f84278746abf75857b26ed83575041e}{unsigned int \hyperlink{a01190_a5f84278746abf75857b26ed83575041e}{joint\+Count} ()}\label{a01190_a5f84278746abf75857b26ed83575041e}

\begin{DoxyCompactList}\small\item\em Returns the number of joints. \end{DoxyCompactList}\item 
\hyperlink{a00743}{Iterator} \hyperlink{a01190_a0fe6ab4ddb20601bfba4d195e4e3c780}{begin} ()
\begin{DoxyCompactList}\small\item\em \hyperlink{a00743}{Iterator} over joints of the skeletal tree in T\+O\+P-\/\+D\+O\+W\+N order (from root to leafs) \end{DoxyCompactList}\item 
\hypertarget{a01190_ad5e80649bdb640885fd1b905896d6fbb}{\hyperlink{a00743}{Iterator} \hyperlink{a01190_ad5e80649bdb640885fd1b905896d6fbb}{end} ()}\label{a01190_ad5e80649bdb640885fd1b905896d6fbb}

\begin{DoxyCompactList}\small\item\em Compare an iterator with the return value of this method to test if it is done. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Animation}\par
{\em \label{a01190_AnimationAccess}%
\hypertarget{a01190_AnimationAccess}{}%
 Use these methods to equip the skeleton with animation data. }\begin{DoxyCompactItemize}
\item 
\hyperlink{a00996}{Pose} $\ast$ \hyperlink{a01190_a7e96e80691fc672b038ff2c81a732f8f}{pose} (const \hyperlink{a00286}{Animation\+Handle} \&\+\_\+h\+Ani)
\begin{DoxyCompactList}\small\item\em Returns a pointer to the pose with the given animation handle. \end{DoxyCompactList}\item 
\hyperlink{a00996}{Pose} $\ast$ \hyperlink{a01190_a089d5f7bae7aa66c5461d5e57a1f6358}{reference\+Pose} ()
\begin{DoxyCompactList}\small\item\em Returns a pointer to the reference pose. \end{DoxyCompactList}\item 
\hyperlink{a00286}{Animation\+Handle} \hyperlink{a01190_a2a6af6bb29d734e9c40e9e2e2ba932c1}{add\+Animation} (std\+::string \+\_\+name, \hyperlink{a00289}{Animation} $\ast$\+\_\+animation)
\begin{DoxyCompactList}\small\item\em Adds a new animation to the list. \end{DoxyCompactList}\item 
\hyperlink{a00286}{Animation\+Handle} \hyperlink{a01190_abf3a46e985ac769e91d4e32b0f63f6c2}{clone\+Animation} (std\+::string \+\_\+name, const \hyperlink{a00286}{Animation\+Handle} \&\+\_\+h\+Ani)
\begin{DoxyCompactList}\small\item\em Creates a new animation by cloning an existing one. \end{DoxyCompactList}\item 
\hypertarget{a01190_a398a067b07ff2655a15fdb9e0eced705}{\hyperlink{a00286}{Animation\+Handle} \hyperlink{a01190_a398a067b07ff2655a15fdb9e0eced705}{animation\+Handle} (std\+::string \+\_\+name)}\label{a01190_a398a067b07ff2655a15fdb9e0eced705}

\begin{DoxyCompactList}\small\item\em Get an \hyperlink{a00286}{Animation\+Handle} to the animation with the given name. \end{DoxyCompactList}\item 
\hypertarget{a01190_a4a44784946e15d4b0b6157e6f625a6e6}{\hyperlink{a00289}{Animation} $\ast$ \hyperlink{a01190_a4a44784946e15d4b0b6157e6f625a6e6}{animation} (std\+::string \+\_\+name)}\label{a01190_a4a44784946e15d4b0b6157e6f625a6e6}

\begin{DoxyCompactList}\small\item\em Returns a pointer to the animation to the given name. \end{DoxyCompactList}\item 
\hypertarget{a01190_a67fe9009e4befb8611bb2f7514b9bcb3}{\hyperlink{a00289}{Animation} $\ast$ \hyperlink{a01190_a67fe9009e4befb8611bb2f7514b9bcb3}{animation} (const \hyperlink{a00286}{Animation\+Handle} \&\+\_\+h\+Ani)}\label{a01190_a67fe9009e4befb8611bb2f7514b9bcb3}

\begin{DoxyCompactList}\small\item\em Returns a pointer to the animation to the given name. \end{DoxyCompactList}\item 
\hypertarget{a01190_a57e99b716deebef3f5d693dc212f58f3}{void \hyperlink{a01190_a57e99b716deebef3f5d693dc212f58f3}{remove\+Animation} (std\+::string \+\_\+name)}\label{a01190_a57e99b716deebef3f5d693dc212f58f3}

\begin{DoxyCompactList}\small\item\em Removes an animation from the list. \end{DoxyCompactList}\item 
\hypertarget{a01190_acdc93effbb9c7fbb3096084e940f2c1b}{void \hyperlink{a01190_acdc93effbb9c7fbb3096084e940f2c1b}{remove\+Animation} (const \hyperlink{a00286}{Animation\+Handle} \&\+\_\+h\+Ani)}\label{a01190_acdc93effbb9c7fbb3096084e940f2c1b}

\begin{DoxyCompactList}\small\item\em Removes an animation from the list. \end{DoxyCompactList}\item 
\hypertarget{a01190_a565a32956bcb38cd9d82e60e2f512b78}{void \hyperlink{a01190_a565a32956bcb38cd9d82e60e2f512b78}{clear\+Animations} ()}\label{a01190_a565a32956bcb38cd9d82e60e2f512b78}

\begin{DoxyCompactList}\small\item\em Removes all animations. \end{DoxyCompactList}\item 
void \hyperlink{a01190_a5721ebe1a6400cab1228db9409aa54a1}{replace\+Animation\+Name} (const std\+::string \&\+\_\+str\+Old, const std\+::string \&\+\_\+str\+New)
\begin{DoxyCompactList}\small\item\em Returns a pointer to the pose with the given animation handle. \end{DoxyCompactList}\item 
\hyperlink{a00288}{Animation\+Iterator} \hyperlink{a01190_acc4f31c8b7005f39305b3c1af2dc714f}{animations\+Begin} ()
\begin{DoxyCompactList}\small\item\em \hyperlink{a00743}{Iterator} over the animations. \end{DoxyCompactList}\item 
\hypertarget{a01190_a127cffdc07b0ec3d060e45479331b447}{\hyperlink{a00288}{Animation\+Iterator} \hyperlink{a01190_a127cffdc07b0ec3d060e45479331b447}{animations\+End} ()}\label{a01190_a127cffdc07b0ec3d060e45479331b447}

\begin{DoxyCompactList}\small\item\em Returns an iterator pointing behind the last animation. \end{DoxyCompactList}\item 
unsigned int \hyperlink{a01190_a09aa9a102cad8c73864506b31a3c270e}{animation\+Count} ()
\begin{DoxyCompactList}\small\item\em Returns the number of animations stored in this skeleton. \end{DoxyCompactList}\item 
const std\+::string \& \hyperlink{a01190_abd4f42245983db4bb300716e51f34327}{animation\+Name} (unsigned int \+\_\+index)
\begin{DoxyCompactList}\small\item\em Returns the name of the animation with the given index. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a01190_a9eb2a8fd710af136ab590999986f85a6}{update\+From\+Global} (unsigned int \+\_\+id\+Joint)
\begin{DoxyCompactList}\small\item\em update the structure when parent changes for a joint \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01190_abd4d02c493f9d01270b5f718f206e512}{std\+::vector$<$ \hyperlink{a00751}{Joint} $\ast$ $>$ \hyperlink{a01190_abd4d02c493f9d01270b5f718f206e512}{joints\+\_\+}}\label{a01190_abd4d02c493f9d01270b5f718f206e512}

\begin{DoxyCompactList}\small\item\em Joints of the skeleton. \end{DoxyCompactList}\item 
\hypertarget{a01190_ace78db78878e162bdaab0a790107b347}{std\+::map$<$ std\+::string, \\*
unsigned int $>$ \hyperlink{a01190_ace78db78878e162bdaab0a790107b347}{names\+\_\+}}\label{a01190_ace78db78878e162bdaab0a790107b347}

\begin{DoxyCompactList}\small\item\em Binds a name to each animation. \end{DoxyCompactList}\item 
\hypertarget{a01190_ab72782057bc3745e9f193ca05d653a1b}{std\+::vector$<$ \hyperlink{a00289}{Animation} $\ast$ $>$ \hyperlink{a01190_ab72782057bc3745e9f193ca05d653a1b}{animations\+\_\+}}\label{a01190_ab72782057bc3745e9f193ca05d653a1b}

\begin{DoxyCompactList}\small\item\em Animations defined on the skeleton. \end{DoxyCompactList}\item 
\hypertarget{a01190_a9eee78efb6d1d95744f4c49dd55c3838}{\hyperlink{a00996}{Pose} \hyperlink{a01190_a9eee78efb6d1d95744f4c49dd55c3838}{reference\+Pose\+\_\+}}\label{a01190_a9eee78efb6d1d95744f4c49dd55c3838}

\begin{DoxyCompactList}\small\item\em The skeletons reference pose. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01190_a118cad8c1eb2ea94b469cb023c9f8472}{{\footnotesize template$<$typename $>$ }\\class {\bfseries Joint\+T}}\label{a01190_a118cad8c1eb2ea94b469cb023c9f8472}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class Point\+T$>$class Skeleton\+T$<$ Point\+T $>$}



Definition at line 56 of file Joint\+T.\+hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a01190_a5903622c425040c46bfeb925f5a8533e}{\index{Skeleton\+T@{Skeleton\+T}!Skeleton\+T@{Skeleton\+T}}
\index{Skeleton\+T@{Skeleton\+T}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{Skeleton\+T}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Skeleton\+T} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{a01190_a5903622c425040c46bfeb925f5a8533e}


Default constructor. 

Default Constructor. 

Definition at line 377 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a953ce71208fba7903ccddd646bd51ec2}{\index{Skeleton\+T@{Skeleton\+T}!Skeleton\+T@{Skeleton\+T}}
\index{Skeleton\+T@{Skeleton\+T}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{Skeleton\+T}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Skeleton\+T} (
\begin{DoxyParamCaption}
\item[{const {\bf Skeleton\+T}$<$ Point\+T $>$ \&}]{\+\_\+other}
\end{DoxyParamCaption}
)}}\label{a01190_a953ce71208fba7903ccddd646bd51ec2}


Copy constructor. 

Copy Constructor -\/ Creates a copy of the given skeleton.

The copy does not inherit properties. You have to copy them yourself if you need them in the clone. 

Definition at line 389 of file Skeleton\+T.\+cc.



\subsection{Member Function Documentation}
\hypertarget{a01190_a2a6af6bb29d734e9c40e9e2e2ba932c1}{\index{Skeleton\+T@{Skeleton\+T}!add\+Animation@{add\+Animation}}
\index{add\+Animation@{add\+Animation}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{add\+Animation}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Animation\+Handle} {\bf Skeleton\+T}$<$ Point\+T $>$\+::add\+Animation (
\begin{DoxyParamCaption}
\item[{std\+::string}]{\+\_\+name, }
\item[{{\bf Animation} $\ast$}]{\+\_\+animation}
\end{DoxyParamCaption}
)}}\label{a01190_a2a6af6bb29d734e9c40e9e2e2ba932c1}


Adds a new animation to the list. 

The name is used to identify the animation. The \hyperlink{a00286}{Animation\+Handle} to the animation becomes invalid as soon as an animation is removed. 

Definition at line 775 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a1631f74df397f87ec44b5afa5a339bf4}{\index{Skeleton\+T@{Skeleton\+T}!add\+Joint@{add\+Joint}}
\index{add\+Joint@{add\+Joint}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{add\+Joint}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ void {\bf Skeleton\+T}$<$ Point\+T $>$\+::add\+Joint (
\begin{DoxyParamCaption}
\item[{typename {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Joint} $\ast$}]{\+\_\+p\+Parent, }
\item[{typename {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Joint} $\ast$}]{\+\_\+p\+Joint}
\end{DoxyParamCaption}
)}}\label{a01190_a1631f74df397f87ec44b5afa5a339bf4}


Adds a joint as child of a given parent joint. 

Pass 0 as parent if you want to set a new root joint. This will remove all joints from the skeleton, clean the properties and clear all animation data.


\begin{DoxyParams}{Parameters}
{\em \+\_\+p\+Parent} & The parent joint, 0 if the root is set \\
\hline
{\em \+\_\+p\+Joint} & The joint that has to be added to the tree \\
\hline
\end{DoxyParams}


Definition at line 494 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a09aa9a102cad8c73864506b31a3c270e}{\index{Skeleton\+T@{Skeleton\+T}!animation\+Count@{animation\+Count}}
\index{animation\+Count@{animation\+Count}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{animation\+Count}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ unsigned int {\bf Skeleton\+T}$<$ Point\+T $>$\+::animation\+Count (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{a01190_a09aa9a102cad8c73864506b31a3c270e}


Returns the number of animations stored in this skeleton. 

\begin{DoxySeeAlso}{See also}
\hyperlink{a01190_abd4f42245983db4bb300716e51f34327}{animation\+Name} 
\end{DoxySeeAlso}


Definition at line 971 of file Skeleton\+T.\+cc.

\hypertarget{a01190_abd4f42245983db4bb300716e51f34327}{\index{Skeleton\+T@{Skeleton\+T}!animation\+Name@{animation\+Name}}
\index{animation\+Name@{animation\+Name}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{animation\+Name}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ const std\+::string \& {\bf Skeleton\+T}$<$ Point\+T $>$\+::animation\+Name (
\begin{DoxyParamCaption}
\item[{unsigned int}]{\+\_\+index}
\end{DoxyParamCaption}
)}}\label{a01190_abd4f42245983db4bb300716e51f34327}


Returns the name of the animation with the given index. 

\begin{DoxySeeAlso}{See also}
\hyperlink{a01190_a09aa9a102cad8c73864506b31a3c270e}{animation\+Count} 
\end{DoxySeeAlso}


Definition at line 984 of file Skeleton\+T.\+cc.

\hypertarget{a01190_acc4f31c8b7005f39305b3c1af2dc714f}{\index{Skeleton\+T@{Skeleton\+T}!animations\+Begin@{animations\+Begin}}
\index{animations\+Begin@{animations\+Begin}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{animations\+Begin}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Animation\+Iterator} {\bf Skeleton\+T}$<$ Point\+T $>$\+::animations\+Begin (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{a01190_acc4f31c8b7005f39305b3c1af2dc714f}


\hyperlink{a00743}{Iterator} over the animations. 

Returns an iterator pointing to the first animation. 

Definition at line 945 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a0fe6ab4ddb20601bfba4d195e4e3c780}{\index{Skeleton\+T@{Skeleton\+T}!begin@{begin}}
\index{begin@{begin}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{begin}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Iterator} {\bf Skeleton\+T}$<$ Point\+T $>$\+::begin (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{a01190_a0fe6ab4ddb20601bfba4d195e4e3c780}


\hyperlink{a00743}{Iterator} over joints of the skeletal tree in T\+O\+P-\/\+D\+O\+W\+N order (from root to leafs) 

Returns an iterator pointing to the root joint.

Use the iterator to traverse the skeleton in a top-\/down, \char`\"{}left-\/to-\/right\char`\"{} manner. 

Definition at line 714 of file Skeleton\+T.\+cc.

\hypertarget{a01190_aff0691b56a0097bdd172de03c464e695}{\index{Skeleton\+T@{Skeleton\+T}!child@{child}}
\index{child@{child}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{child}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ unsigned int {\bf Skeleton\+T}$<$ Point\+T $>$\+::child (
\begin{DoxyParamCaption}
\item[{unsigned int}]{\+\_\+joint, }
\item[{unsigned int}]{\+\_\+child}
\end{DoxyParamCaption}
)}}\label{a01190_aff0691b56a0097bdd172de03c464e695}


Returns the child with the given index. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+joint} & An index identifying a joint \\
\hline
{\em \+\_\+child} & An index identifying a child of that joint \\
\hline
\end{DoxyParams}


Definition at line 690 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a6821b1cf6e181dc8bc7247114885815f}{\index{Skeleton\+T@{Skeleton\+T}!clear@{clear}}
\index{clear@{clear}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{clear}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ void {\bf Skeleton\+T}$<$ Point\+T $>$\+::clear (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01190_a6821b1cf6e181dc8bc7247114885815f}


Removes all joints from the skeleton. 

This method also frees the memory occupied by the joints calling {\itshape delete} on each of them. Notice that all animations will be deleted as well, since without joint there cannot be animation. Also the properties are cleaned. 

Definition at line 599 of file Skeleton\+T.\+cc.

\hypertarget{a01190_abf3a46e985ac769e91d4e32b0f63f6c2}{\index{Skeleton\+T@{Skeleton\+T}!clone\+Animation@{clone\+Animation}}
\index{clone\+Animation@{clone\+Animation}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{clone\+Animation}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Animation\+Handle} {\bf Skeleton\+T}$<$ Point\+T $>$\+::clone\+Animation (
\begin{DoxyParamCaption}
\item[{std\+::string}]{\+\_\+name, }
\item[{const {\bf Animation\+Handle} \&}]{\+\_\+h\+Ani}
\end{DoxyParamCaption}
)}}\label{a01190_abf3a46e985ac769e91d4e32b0f63f6c2}


Creates a new animation by cloning an existing one. 

All poses for all joints in all frames of the existing animation will be cloned. If the animation handle is invalid a copy of the default pose will be created. 

Definition at line 809 of file Skeleton\+T.\+cc.

\hypertarget{a01190_ab81c3e2bc02fa7631bc2ff853518ad34}{\index{Skeleton\+T@{Skeleton\+T}!insert\+Joint@{insert\+Joint}}
\index{insert\+Joint@{insert\+Joint}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{insert\+Joint}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ void {\bf Skeleton\+T}$<$ Point\+T $>$\+::insert\+Joint (
\begin{DoxyParamCaption}
\item[{typename {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Joint} $\ast$}]{\+\_\+p\+Child, }
\item[{typename {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Joint} $\ast$}]{\+\_\+p\+Insert}
\end{DoxyParamCaption}
)}}\label{a01190_ab81c3e2bc02fa7631bc2ff853518ad34}


insert a Joint given its future child joint 


\begin{DoxyParams}{Parameters}
{\em \+\_\+p\+Child} & existing joint, will be the child \\
\hline
{\em \+\_\+p\+Insert} & joint, which will be inserted. \+\_\+p\+Child will be his child and the parent of \+\_\+p\+Child will be his parent. \\
\hline
\end{DoxyParams}


Definition at line 1024 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a2aa22e9b07c72f616712f8c67e8ae0d5}{\index{Skeleton\+T@{Skeleton\+T}!joint@{joint}}
\index{joint@{joint}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{joint}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Joint} $\ast$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::joint (
\begin{DoxyParamCaption}
\item[{const unsigned int \&}]{\+\_\+index}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01190_a2aa22e9b07c72f616712f8c67e8ae0d5}


Returns the joint with the given index. 

\hyperlink{a00751_a9fd03a24a9948759c598186f63ba0701}{Joint\+T$<$$>$\+::id\+\_\+} is always equal to \+\_\+index.


\begin{DoxyParams}{Parameters}
{\em \+\_\+index} & The joints index, in the range \mbox{[}0, \hyperlink{a01190_a5f84278746abf75857b26ed83575041e}{Skeleton\+T$<$$>$\+::joint\+Count}) \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Returns a pointer to the joint or 0 if the index does not exist. 
\end{DoxyReturn}


Definition at line 642 of file Skeleton\+T.\+cc.

\hypertarget{a01190_aac20870e5ab4d710f08ce781d2fe01eb}{\index{Skeleton\+T@{Skeleton\+T}!operator=@{operator=}}
\index{operator=@{operator=}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Skeleton\+T}$<$ Point\+T $>$ \& {\bf Skeleton\+T}$<$ Point\+T $>$\+::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf Skeleton\+T}$<$ Point\+T $>$ \&}]{\+\_\+other}
\end{DoxyParamCaption}
)}}\label{a01190_aac20870e5ab4d710f08ce781d2fe01eb}


Assignment operator. 

Assignment operator -\/ returns a copy of the skeleton.

The copy does not inherit properties. You have to copy them yourself if you need them in the clone. 

Definition at line 431 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a93c6b8e6b78adf48be870171d80cdd3b}{\index{Skeleton\+T@{Skeleton\+T}!parent@{parent}}
\index{parent@{parent}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{parent}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ int {\bf Skeleton\+T}$<$ Point\+T $>$\+::parent (
\begin{DoxyParamCaption}
\item[{unsigned int}]{\+\_\+joint}
\end{DoxyParamCaption}
)}}\label{a01190_a93c6b8e6b78adf48be870171d80cdd3b}


Returns the parents id of the given node. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+joint} & A nodes index \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The parent nodes index or -\/1 if {\itshape \+\_\+joint} is the root node 
\end{DoxyReturn}


Definition at line 658 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a7e96e80691fc672b038ff2c81a732f8f}{\index{Skeleton\+T@{Skeleton\+T}!pose@{pose}}
\index{pose@{pose}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{pose}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Pose} $\ast$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::pose (
\begin{DoxyParamCaption}
\item[{const {\bf Animation\+Handle} \&}]{\+\_\+h\+Ani}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01190_a7e96e80691fc672b038ff2c81a732f8f}


Returns a pointer to the pose with the given animation handle. 

If the animation handle is invalid the reference pose is returned. 

Definition at line 741 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a089d5f7bae7aa66c5461d5e57a1f6358}{\index{Skeleton\+T@{Skeleton\+T}!reference\+Pose@{reference\+Pose}}
\index{reference\+Pose@{reference\+Pose}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{reference\+Pose}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Pose} $\ast$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::reference\+Pose (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01190_a089d5f7bae7aa66c5461d5e57a1f6358}


Returns a pointer to the reference pose. 

Use this if you need access to the special data members of the reference pose. Notice you can also get the reference pose by passing \hyperlink{a00286}{Animation\+Handle()} to the \hyperlink{a01190_a7e96e80691fc672b038ff2c81a732f8f}{Skeleton\+T$<$$>$\+::pose} method\+: 
\begin{DoxyCode}
\hyperlink{a03393_aee0be07b858d2cd3abe529e1284f8cb4}{skeleton}.\hyperlink{a01190_a7e96e80691fc672b038ff2c81a732f8f}{pose}(\hyperlink{a00286}{AnimationHandle}());
\end{DoxyCode}
 

Definition at line 761 of file Skeleton\+T.\+cc.

\hypertarget{a01190_af5a06892dd7d18a6d3509504911b4636}{\index{Skeleton\+T@{Skeleton\+T}!remove\+Joint@{remove\+Joint}}
\index{remove\+Joint@{remove\+Joint}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{remove\+Joint}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ void {\bf Skeleton\+T}$<$ Point\+T $>$\+::remove\+Joint (
\begin{DoxyParamCaption}
\item[{typename {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Joint} $\ast$}]{\+\_\+p\+Joint}
\end{DoxyParamCaption}
)}}\label{a01190_af5a06892dd7d18a6d3509504911b4636}


Remove the given joint from the tree. 

This method will not only remove the given joint from the vector, it will also reduce the index of all joints with a larger index by one. This is to compensate for their new position in the vector and to make sure the sequence of indices is still continuous.

Also all poses and properties are updated. 

Definition at line 538 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a5721ebe1a6400cab1228db9409aa54a1}{\index{Skeleton\+T@{Skeleton\+T}!replace\+Animation\+Name@{replace\+Animation\+Name}}
\index{replace\+Animation\+Name@{replace\+Animation\+Name}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{replace\+Animation\+Name}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Point\+T$>$ void {\bf Skeleton\+T}$<$ Point\+T $>$\+::replace\+Animation\+Name (
\begin{DoxyParamCaption}
\item[{const std\+::string \&}]{\+\_\+str\+Old, }
\item[{const std\+::string \&}]{\+\_\+str\+New}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01190_a5721ebe1a6400cab1228db9409aa54a1}


Returns a pointer to the pose with the given animation handle. 

If the animation handle is invalid the reference pose is returned. 

Definition at line 196 of file Skeleton\+T.\+hh.

\hypertarget{a01190_ae52805fb8d2e0b07edf648653f9aade1}{\index{Skeleton\+T@{Skeleton\+T}!root@{root}}
\index{root@{root}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{root}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::{\bf Joint} $\ast$ {\bf Skeleton\+T}$<$ Point\+T $>$\+::root (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01190_ae52805fb8d2e0b07edf648653f9aade1}


Returns the root joint. 

The root joint has always index 0.

\begin{DoxyReturn}{Returns}
Returns the root joint or 0 if the tree is empty 
\end{DoxyReturn}


Definition at line 624 of file Skeleton\+T.\+cc.

\hypertarget{a01190_a9eb2a8fd710af136ab590999986f85a6}{\index{Skeleton\+T@{Skeleton\+T}!update\+From\+Global@{update\+From\+Global}}
\index{update\+From\+Global@{update\+From\+Global}!Skeleton\+T@{Skeleton\+T}}
\subsubsection[{update\+From\+Global}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Point\+T $>$ void {\bf Skeleton\+T}$<$ Point\+T $>$\+::update\+From\+Global (
\begin{DoxyParamCaption}
\item[{unsigned int}]{\+\_\+id\+Joint}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}}\label{a01190_a9eb2a8fd710af136ab590999986f85a6}


update the structure when parent changes for a joint 

Updates the local matrix for the given joint in all poses.


\begin{DoxyParams}{Parameters}
{\em \+\_\+id\+Joint} & The joints index \\
\hline
\end{DoxyParams}


Definition at line 1006 of file Skeleton\+T.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Object\+Types/\+Skeleton/Joint\+T.\+hh\item 
Object\+Types/\+Skeleton/Skeleton\+T.\+hh\item 
Object\+Types/\+Skeleton/Skeleton\+T.\+cc\end{DoxyCompactItemize}
