diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02210.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a02210.html')
-rw-r--r-- | docs/doxygen/nel/a02210.html | 1360 |
1 files changed, 1360 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02210.html b/docs/doxygen/nel/a02210.html new file mode 100644 index 00000000..60ce7ce2 --- /dev/null +++ b/docs/doxygen/nel/a02210.html @@ -0,0 +1,1360 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: NL3D::CAnimationSet class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::CAnimationSet Class Reference</h1><code>#include <<a class="el" href="a05450.html">animation_set.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CAnimationSet: +<p><center><img src="a02210.png" usemap="#NL3D::CAnimationSet_map" border="0" alt=""></center> +<map name="NL3D::CAnimationSet_map"> +<area href="a02209.html" alt="NLMISC::CRefCount" shape="rect" coords="0,0,132,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +An <a class="el" href="a02210.html">CAnimationSet</a> is set of <a class="el" href="a02205.html">CAnimation</a>. It manages global channel ID for a set of animations with many tracks. An Id is associed with each track name.<p> +<dl compact><dt><b>Author:</b></dt><dd>Cyril 'Hulud' Corvazier <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a05450.html#l00054">54</a> of file <a class="el" href="a05450.html">animation_set.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Types</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom>{ <a class="el" href="a02210.html#NL3D_1_1CAnimationSetw0NL3D_1_1CAnimationSetw1">NotFound</a> = 0xffffffff + }</td></tr> + +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta0">addAnimation</a> (const char *name, <a class="el" href="a02205.html">CAnimation</a> *animation)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta1">addSkeletonWeight</a> (const char *name, <a class="el" href="a03405.html">CSkeletonWeight</a> *skeletonWeight)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta2">build</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02205.html">CAnimation</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta3">getAnimation</a> (<a class="el" href="a04558.html#a15">uint</a> animationId)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02205.html">CAnimation</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta4">getAnimation</a> (<a class="el" href="a04558.html#a15">uint</a> animationId) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta5">getAnimationIdByName</a> (const std::string &name) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const std::string & </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta6">getAnimationName</a> (<a class="el" href="a04558.html#a15">uint</a> animationId) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta7">getChannelIdByName</a> (const std::string &name) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta8">getNumAnimation</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta9">getNumChannelId</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta10">getNumSkeletonWeight</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a14">sint</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a02209.html#NLGEORGES_1_1UTypea8">getRefCount</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03405.html">CSkeletonWeight</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta12">getSkeletonWeight</a> (<a class="el" href="a04558.html#a15">uint</a> skeletonId)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a03405.html">CSkeletonWeight</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta13">getSkeletonWeight</a> (<a class="el" href="a04558.html#a15">uint</a> skeletonId) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta14">getSkeletonWeightIdByName</a> (const std::string &name) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const std::string & </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta15">getSkeletonWeightName</a> (<a class="el" href="a04558.html#a15">uint</a> skeletonId) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta16">loadFromFiles</a> (const std::string &path, bool recurse=true, const char *ext="anim", bool wantWarningMessage=true)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta17">reset</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta18">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Serial the template. <a href="#NL3D_1_1CAnimationSeta18"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSeta19">~CAnimationSet</a> ()</td></tr> + +<tr><td colspan=2><br><h2>Data Fields</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a14">sint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02209.html#NLGEORGES_1_1UTypeo0">crefs</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>CPtrInfo * </td><td class="memItemRight" valign=bottom><a class="el" href="a02209.html#NLGEORGES_1_1UTypeo1">pinfo</a></td></tr> + +<tr><td colspan=2><br><h2>Static Public Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>CPtrInfo </td><td class="memItemRight" valign=bottom><a class="el" href="a02209.html#NLGEORGES_1_1UTypes0">NullPtrInfo</a></td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="a02205.html">CAnimation</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::map< std::string, <a class="el" href="a04558.html#a11">uint32</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSetr1">_AnimationIdByName</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< std::string > </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSetr2">_AnimationName</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::map< std::string, <a class="el" href="a04558.html#a11">uint32</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSetr3">_ChannelIdByName</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="a03405.html">CSkeletonWeight</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSetr4">_SkeletonWeight</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::map< std::string, <a class="el" href="a04558.html#a11">uint32</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSetr5">_SkeletonWeightIdByName</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< std::string > </td><td class="memItemRight" valign=bottom><a class="el" href="a02210.html#NL3D_1_1CAnimationSetr6">_SkeletonWeightName</a></td></tr> + +<tr><td colspan=2><br><h2>Friends</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="a02209.html#NLGEORGES_1_1UTypen0">CPtrInfo</a></td></tr> + +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationSetw0" doxytag="NL3D::CAnimationSet::@6" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> anonymous enum + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<dl compact><dt><b>Enumeration values: </b></dt><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CAnimationSetw0NL3D_1_1CAnimationSetw1" doxytag="NotFound" ></a>NotFound</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a05450.html#l00058">58</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +<div class="fragment"><pre>00058 { <a class="code" href="a02210.html#NL3D_1_1CAnimationSetw0NL3D_1_1CAnimationSetw1">NotFound</a>=0xffffffff }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationSeta19" doxytag="NL3D::CAnimationSet::~CAnimationSet" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NL3D::CAnimationSet::~<a class="el" href="a02210.html">CAnimationSet</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05449.html#l00043">43</a> of file <a class="el" href="a05449.html">animation_set.cpp</a>. +<p> +References <a class="el" href="a05450.html#l00223">_Animation</a>, <a class="el" href="a05646.html#l00977">s</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00044 { +00045 <span class="comment">// Erase all animations.</span> +00046 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> a=0; a<<a class="code" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a>.size(); a++) +00047 <span class="keyword">delete</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a>[a]; +00048 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a626">s</a>=0; <a class="code" href="a04223.html#a626">s</a><<a class="code" href="a02210.html#NL3D_1_1CAnimationSetr4">_SkeletonWeight</a>.size(); <a class="code" href="a04223.html#a626">s</a>++) +00049 <span class="keyword">delete</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr4">_SkeletonWeight</a>[<a class="code" href="a04223.html#a626">s</a>]; +00050 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationSeta0" doxytag="NL3D::CAnimationSet::addAnimation" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSet::addAnimation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname" nowrap> <em>name</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a02205.html">CAnimation</a> * </td> + <td class="mdname" nowrap> <em>animation</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Add an animation to the set. The pointer of the animation must be allocated with new. It is then handled by the animation set.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>name</em> </td><td>is the name of the animation. </td></tr> + <tr><td valign=top><em>animation</em> </td><td>is the animation pointer. </td></tr> + </table> +</dl> +<dl compact><dt><b>Returns:</b></dt><dd>the id of the new animation.</dd></dl> + +<p> +Definition at line <a class="el" href="a05449.html#l00061">61</a> of file <a class="el" href="a05449.html">animation_set.cpp</a>. +<p> +References <a class="el" href="a05450.html#l00223">_Animation</a>, <a class="el" href="a05450.html#l00228">_AnimationIdByName</a>, <a class="el" href="a05450.html#l00225">_AnimationName</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05931.html#l00111">NL3D::CLodCharacterBuilder::addAnim()</a>, and <a class="el" href="a05449.html#l00155">loadFromFiles()</a>. +<p> +<div class="fragment"><pre>00062 { +00063 <span class="comment">// Add an animation</span> +00064 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a>.push_back (animation); +00065 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr2">_AnimationName</a>.push_back (name); +00066 +00067 <span class="comment">// Add an entry name / animation</span> +00068 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr1">_AnimationIdByName</a>.insert (std::map <std::string, uint32>::value_type (name, <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a>.size()-1)); +00069 +00070 <span class="comment">// Return animation id</span> +00071 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a>.size()-1; +00072 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta1" doxytag="NL3D::CAnimationSet::addSkeletonWeight" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSet::addSkeletonWeight </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname" nowrap> <em>name</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a03405.html">CSkeletonWeight</a> * </td> + <td class="mdname" nowrap> <em>skeletonWeight</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Add a skeleton weight to the set. The pointer of the skeletonWeight must be allocated with new. It is then handled by the animation set.<p> +<dl compact><dt><b>Returns:</b></dt><dd>the id of the new skeleton.</dd></dl> + +<p> +Definition at line <a class="el" href="a05449.html#l00076">76</a> of file <a class="el" href="a05449.html">animation_set.cpp</a>. +<p> +References <a class="el" href="a05450.html#l00229">_SkeletonWeightIdByName</a>, <a class="el" href="a05450.html#l00226">_SkeletonWeightName</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00077 { +00078 <span class="comment">// Add an animation</span> +00079 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr4">_SkeletonWeight</a>.push_back (skeletonWeight); +00080 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr6">_SkeletonWeightName</a>.push_back (name); +00081 +00082 <span class="comment">// Add an entry name / animation</span> +00083 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr5">_SkeletonWeightIdByName</a>.insert (std::map <std::string, uint32>::value_type (name, <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr4">_SkeletonWeight</a>.size()-1)); +00084 +00085 <span class="comment">// Return animation id</span> +00086 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr4">_SkeletonWeight</a>.size()-1; +00087 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta2" doxytag="NL3D::CAnimationSet::build" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationSet::build </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Final build of the animation set.<p> +First, for each animation you want to add to the set, you must add the animation in the set.<p> +When all animations are built, call this method to finlize the set. +<p> +Definition at line <a class="el" href="a05449.html#l00104">104</a> of file <a class="el" href="a05449.html">animation_set.cpp</a>. +<p> +References <a class="el" href="a05450.html#l00223">_Animation</a>, <a class="el" href="a05450.html#l00227">_ChannelIdByName</a>, <a class="el" href="a05450.html#l00112">getAnimation()</a>, <a class="el" href="a05443.html#l00108">NL3D::CAnimation::getTrackNames()</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05931.html#l00111">NL3D::CLodCharacterBuilder::addAnim()</a>, and <a class="el" href="a05449.html#l00155">loadFromFiles()</a>. +<p> +<div class="fragment"><pre>00105 { +00106 <span class="comment">// Clear the channel map</span> +00107 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr3">_ChannelIdByName</a>.clear (); +00108 +00109 <span class="comment">// Set of names</span> +00110 std::set<std::string> channelNames; +00111 +00112 <span class="comment">// For each animation in the set</span> +00113 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> a=0; a<<a class="code" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a>.size(); a++) +00114 { +00115 <span class="comment">// Fill the set of channel names</span> +00116 <a class="code" href="a02210.html#NL3D_1_1CAnimationSeta4">getAnimation</a> (a)->getTrackNames (channelNames); +00117 } +00118 +00119 <span class="comment">// Add this name in the map with there iD</span> +00120 <a class="code" href="a04558.html#a15">uint</a> <span class="keywordtype">id</span>=0; +00121 std::set<std::string>::iterator ite=channelNames.begin (); +00122 <span class="keywordflow">while</span> (ite!=channelNames.end ()) +00123 { +00124 <span class="comment">// Insert an entry</span> +00125 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr3">_ChannelIdByName</a>.insert (std::map <std::string, uint32>::value_type (*ite, <span class="keywordtype">id</span>++)); +00126 +00127 <span class="comment">// Next entry</span> +00128 ite++; +00129 } +00130 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta3" doxytag="NL3D::CAnimationSet::getAnimation" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02205.html">CAnimation</a>* NL3D::CAnimationSet::getAnimation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>animationId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a writable animation pointer. +<p> +Definition at line <a class="el" href="a05450.html#l00120">120</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05450.html#l00223">_Animation</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00121 { +00122 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a>[animationId]; +00123 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta4" doxytag="NL3D::CAnimationSet::getAnimation" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02205.html">CAnimation</a>* NL3D::CAnimationSet::getAnimation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>animationId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a read only animation pointer. +<p> +Definition at line <a class="el" href="a05450.html#l00112">112</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05450.html#l00223">_Animation</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05449.html#l00104">build()</a>, <a class="el" href="a05447.html#l00316">NL3D::CAnimationPlaylist::getLocalTime()</a>, <a class="el" href="a05543.html#l00449">NL3D::CChannelMixer::setSlotAnimation()</a>, and <a class="el" href="a05447.html#l00176">NL3D::CAnimationPlaylist::setupMixer()</a>. +<p> +<div class="fragment"><pre>00113 { +00114 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a>[animationId]; +00115 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta5" doxytag="NL3D::CAnimationSet::getAnimationIdByName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSet::getAnimationIdByName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a animation ID by name. If no channel is found, method returns NotFound. +<p> +Definition at line <a class="el" href="a05450.html#l00083">83</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05450.html#l00228">_AnimationIdByName</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05931.html#l00111">NL3D::CLodCharacterBuilder::addAnim()</a>. +<p> +<div class="fragment"><pre>00084 { +00085 <span class="comment">// Look for an id with this name</span> +00086 std::map <std::string, uint32>::const_iterator ite=<a class="code" href="a02210.html#NL3D_1_1CAnimationSetr1">_AnimationIdByName</a>.find (name); +00087 <span class="keywordflow">if</span> (ite!=<a class="code" href="a02210.html#NL3D_1_1CAnimationSetr1">_AnimationIdByName</a>.end ()) +00088 <span class="keywordflow">return</span> ite->second; +00089 <span class="keywordflow">else</span> +00090 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetw0NL3D_1_1CAnimationSetw1">NotFound</a>; +00091 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta6" doxytag="NL3D::CAnimationSet::getAnimationName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const std::string& NL3D::CAnimationSet::getAnimationName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>animationId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get animation name. +<p> +Definition at line <a class="el" href="a05450.html#l00104">104</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05450.html#l00225">_AnimationName</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00105 { +00106 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr2">_AnimationName</a>[animationId]; +00107 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta7" doxytag="NL3D::CAnimationSet::getChannelIdByName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSet::getChannelIdByName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a channel ID with its name. If no channel is found, method returns NotFound. +<p> +Definition at line <a class="el" href="a05450.html#l00070">70</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05450.html#l00227">_ChannelIdByName</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05543.html#l00306">NL3D::CChannelMixer::addChannel()</a>, and <a class="el" href="a05543.html#l00516">NL3D::CChannelMixer::applySkeletonWeight()</a>. +<p> +<div class="fragment"><pre>00071 { +00072 <span class="comment">// Look for an id with this name</span> +00073 std::map <std::string, uint32>::const_iterator ite=<a class="code" href="a02210.html#NL3D_1_1CAnimationSetr3">_ChannelIdByName</a>.find (name); +00074 <span class="keywordflow">if</span> (ite!=<a class="code" href="a02210.html#NL3D_1_1CAnimationSetr3">_ChannelIdByName</a>.end ()) +00075 <span class="keywordflow">return</span> ite->second; +00076 <span class="keywordflow">else</span> +00077 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetw0NL3D_1_1CAnimationSetw1">NotFound</a>; +00078 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta8" doxytag="NL3D::CAnimationSet::getNumAnimation" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSet::getNumAnimation </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get animations count. +<p> +Definition at line <a class="el" href="a05450.html#l00096">96</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05450.html#l00223">_Animation</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00097 { +00098 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a>.size(); +00099 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta9" doxytag="NL3D::CAnimationSet::getNumChannelId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSet::getNumChannelId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get channel ID count. This number is the count of different track name in the animation set. +<p> +Definition at line <a class="el" href="a05449.html#l00054">54</a> of file <a class="el" href="a05449.html">animation_set.cpp</a>. +<p> +References <a class="el" href="a05450.html#l00227">_ChannelIdByName</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00055 { +00056 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr3">_ChannelIdByName</a>.size (); +00057 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta10" doxytag="NL3D::CAnimationSet::getNumSkeletonWeight" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSet::getNumSkeletonWeight </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get skeleton weight count. +<p> +Definition at line <a class="el" href="a05450.html#l00128">128</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00129 { +00130 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr4">_SkeletonWeight</a>.size(); +00131 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLGEORGES_1_1UTypea8" doxytag="NL3D::CAnimationSet::getRefCount" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a14">sint</a>& NLMISC::CRefCount::getRefCount </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06402.html#l00070">70</a> of file <a class="el" href="a06402.html">smart_ptr.h</a>. +<p> +References <a class="el" href="a06402.html#l00079">NLMISC::CRefCount::crefs</a>, and <a class="el" href="a05981.html#l00104">sint</a>. +<p> +<div class="fragment"><pre>00071 { +00072 <span class="keywordflow">return</span> <a class="code" href="a02209.html#NLGEORGES_1_1UTypeo0">crefs</a>; +00073 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta12" doxytag="NL3D::CAnimationSet::getSkeletonWeight" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03405.html">CSkeletonWeight</a>* NL3D::CAnimationSet::getSkeletonWeight </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>skeletonId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a writable skeleton weight pointer. +<p> +Definition at line <a class="el" href="a05450.html#l00165">165</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00166 { +00167 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr4">_SkeletonWeight</a>[skeletonId]; +00168 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta13" doxytag="NL3D::CAnimationSet::getSkeletonWeight" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a03405.html">CSkeletonWeight</a>* NL3D::CAnimationSet::getSkeletonWeight </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>skeletonId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a read only skeleton weight pointer. +<p> +Definition at line <a class="el" href="a05450.html#l00157">157</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05543.html#l00516">NL3D::CChannelMixer::applySkeletonWeight()</a>. +<p> +<div class="fragment"><pre>00158 { +00159 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr4">_SkeletonWeight</a>[skeletonId]; +00160 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta14" doxytag="NL3D::CAnimationSet::getSkeletonWeightIdByName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSet::getSkeletonWeightIdByName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a skeleton weight ID by name. If no skeleton weight is found, method returns NotFound. +<p> +Definition at line <a class="el" href="a05450.html#l00136">136</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05450.html#l00229">_SkeletonWeightIdByName</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00137 { +00138 <span class="comment">// Look for an id with this name</span> +00139 std::map <std::string, uint32>::const_iterator ite=<a class="code" href="a02210.html#NL3D_1_1CAnimationSetr5">_SkeletonWeightIdByName</a>.find (name); +00140 <span class="keywordflow">if</span> (ite!=<a class="code" href="a02210.html#NL3D_1_1CAnimationSetr5">_SkeletonWeightIdByName</a>.end ()) +00141 <span class="keywordflow">return</span> ite->second; +00142 <span class="keywordflow">else</span> +00143 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetw0NL3D_1_1CAnimationSetw1">NotFound</a>; +00144 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta15" doxytag="NL3D::CAnimationSet::getSkeletonWeightName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const std::string& NL3D::CAnimationSet::getSkeletonWeightName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>skeletonId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get skeleton template name. +<p> +Definition at line <a class="el" href="a05450.html#l00149">149</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +References <a class="el" href="a05450.html#l00226">_SkeletonWeightName</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00150 { +00151 <span class="keywordflow">return</span> <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr6">_SkeletonWeightName</a>[skeletonId]; +00152 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta16" doxytag="NL3D::CAnimationSet::loadFromFiles" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NL3D::CAnimationSet::loadFromFiles </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname" nowrap> <em>path</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>recurse</em> = true, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>ext</em> = "anim", </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>wantWarningMessage</em> = true</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Helper method. Load an animation set from animation files in a directory, then call <a class="el" href="a02210.html#NL3D_1_1CAnimationSeta2">build()</a>. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>path</em> </td><td>Path to look at for animations </td></tr> + <tr><td valign=top><em>recurse</em> </td><td>wether to recurse to load animation in sub folders </td></tr> + <tr><td valign=top><em>ext</em> </td><td>the extension for animation files </td></tr> + <tr><td valign=top><em>wantWarningMessage</em> </td><td>displays warning if some of the files could not be loaded </td></tr> + </table> +</dl> +<dl compact><dt><b>Returns:</b></dt><dd>true if everything loaded ok</dd></dl> + +<p> +Definition at line <a class="el" href="a05449.html#l00155">155</a> of file <a class="el" href="a05449.html">animation_set.cpp</a>. +<p> +References <a class="el" href="a05449.html#l00061">addAnimation()</a>, <a class="el" href="a05449.html#l00104">build()</a>, <a class="el" href="a05708.html#l00255">NLMISC::CIFile::close()</a>, <a class="el" href="a06167.html#l01352">NLMISC::CFile::getExtension()</a>, <a class="el" href="a06167.html#l00688">NLMISC::CPath::getPathContent()</a>, <a class="el" href="a05622.html#l00111">nlinfo</a>, <a class="el" href="a05708.html#l00135">NLMISC::CIFile::open()</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00156 { +00157 <span class="keywordtype">bool</span> everythingOk = <span class="keyword">true</span>; +00158 std::vector<std::string> anims; +00159 <a class="code" href="a03072.html#NLMISC_1_1CPathe12">NLMISC::CPath::getPathContent</a>(path, recurse, <span class="keyword">false</span>, <span class="keyword">true</span>, anims); +00160 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> k = 0; k < anims.size(); ++k) +00161 { +00162 std::string fileExt = <a class="code" href="a02524.html#NLMISC_1_1CFilee7">NLMISC::CFile::getExtension</a>(anims[k]); +00163 <span class="keywordflow">if</span> (fileExt == ext) <span class="comment">// an animation file ?</span> +00164 { +00165 <span class="keywordflow">try</span> +00166 { +00167 <a class="code" href="a02653.html">NLMISC::CIFile</a> iFile; +00168 iFile.<a class="code" href="a02653.html#NLMISC_1_1CIFilea12">open</a>(anims[k]); +00169 std::auto_ptr<CAnimation> anim(<span class="keyword">new</span> CAnimation); +00170 anim->serial(iFile); +00171 <a class="code" href="a02210.html#NL3D_1_1CAnimationSeta0">addAnimation</a>(NLMISC::CFile::getFilenameWithoutExtension(anims[k]).c_str(), anim.release()); +00172 iFile.<a class="code" href="a02653.html#NLMISC_1_1CIFilea3">close</a>(); +00173 +00174 } +00175 <span class="keywordflow">catch</span> (<a class="code" href="a03781.html">NLMISC::EStream</a> &e) +00176 { +00177 <span class="keywordflow">if</span> (wantWarningMessage) +00178 { +00179 <a class="code" href="a04199.html#a1">nlinfo</a>(<span class="stringliteral">"Unable to load an automatic animation : %s"</span>, e.what()); +00180 } +00181 everythingOk = <span class="keyword">false</span>; +00182 } +00183 } +00184 } +00185 <a class="code" href="a02210.html#NL3D_1_1CAnimationSeta2">build</a>(); +00186 <span class="keywordflow">return</span> everythingOk; +00187 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta17" doxytag="NL3D::CAnimationSet::reset" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationSet::reset </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Reset the animation set. +<p> +Definition at line <a class="el" href="a05449.html#l00091">91</a> of file <a class="el" href="a05449.html">animation_set.cpp</a>. +<p> +References <a class="el" href="a05450.html#l00223">_Animation</a>, <a class="el" href="a05450.html#l00228">_AnimationIdByName</a>, <a class="el" href="a05450.html#l00225">_AnimationName</a>, <a class="el" href="a05450.html#l00227">_ChannelIdByName</a>, <a class="el" href="a05450.html#l00229">_SkeletonWeightIdByName</a>, and <a class="el" href="a05450.html#l00226">_SkeletonWeightName</a>. +<p> +<div class="fragment"><pre>00092 { +00093 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr0">_Animation</a>.clear(); +00094 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr4">_SkeletonWeight</a>.clear(); +00095 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr2">_AnimationName</a>.clear(); +00096 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr6">_SkeletonWeightName</a>.clear(); +00097 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr3">_ChannelIdByName</a>.clear(); +00098 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr1">_AnimationIdByName</a>.clear(); +00099 <a class="code" href="a02210.html#NL3D_1_1CAnimationSetr5">_SkeletonWeightIdByName</a>.clear(); +00100 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSeta18" doxytag="NL3D::CAnimationSet::serial" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationSet::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Serial the template. +<p> + +<p> +Definition at line <a class="el" href="a05449.html#l00134">134</a> of file <a class="el" href="a05449.html">animation_set.cpp</a>. +<p> +References <a class="el" href="a05450.html#l00223">_Animation</a>, <a class="el" href="a05450.html#l00228">_AnimationIdByName</a>, <a class="el" href="a05450.html#l00225">_AnimationName</a>, <a class="el" href="a05450.html#l00227">_ChannelIdByName</a>, <a class="el" href="a05450.html#l00229">_SkeletonWeightIdByName</a>, <a class="el" href="a05450.html#l00226">_SkeletonWeightName</a>, <a class="el" href="a06462.html#l00520">NLMISC::IStream::serialCheck()</a>, <a class="el" href="a06462.html#l00324">NLMISC::IStream::serialCont()</a>, <a class="el" href="a06462.html#l00354">NLMISC::IStream::serialContPtr()</a>, <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00135 { +00136 <span class="comment">// Serial an header</span> +00137 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_0">serialCheck</a> ((<a class="code" href="a04558.html#a11">uint32</a>)'_LEN'); +00138 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_0">serialCheck</a> ((<a class="code" href="a04558.html#a11">uint32</a>)'MINA'); +00139 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_0">serialCheck</a> ((<a class="code" href="a04558.html#a11">uint32</a>)'TES_'); +00140 +00141 <span class="comment">// Serial a version</span> +00142 (<span class="keywordtype">void</span>)f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a> (0); +00143 +00144 <span class="comment">// Serial the class</span> +00145 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2034_4">serialContPtr</a> (_Animation); +00146 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2034_4">serialContPtr</a> (_SkeletonWeight); +00147 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a> (_AnimationName); +00148 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a> (_SkeletonWeightName); +00149 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_ChannelIdByName); +00150 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_AnimationIdByName); +00151 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_SkeletonWeightIdByName); +00152 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Friends And Related Function Documentation</h2> +<a class="anchor" name="NLGEORGES_1_1UTypen0" doxytag="NL3D::CAnimationSet::CPtrInfo" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> friend struct CPtrInfo<code> [friend, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06402.html#l00067">67</a> of file <a class="el" href="a06402.html">smart_ptr.h</a>. </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationSetr0" doxytag="NL3D::CAnimationSet::_Animation" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="a02205.html">CAnimation</a>*> <a class="el" href="a02210.html#NL3D_1_1CAnimationSetr0">NL3D::CAnimationSet::_Animation</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05450.html#l00223">223</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +Referenced by <a class="el" href="a05449.html#l00061">addAnimation()</a>, <a class="el" href="a05449.html#l00104">build()</a>, <a class="el" href="a05450.html#l00112">getAnimation()</a>, <a class="el" href="a05450.html#l00096">getNumAnimation()</a>, <a class="el" href="a05449.html#l00091">reset()</a>, <a class="el" href="a05449.html#l00134">serial()</a>, and <a class="el" href="a05449.html#l00043">~CAnimationSet()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetr1" doxytag="NL3D::CAnimationSet::_AnimationIdByName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::map<std::string, <a class="el" href="a04558.html#a11">uint32</a>> <a class="el" href="a02210.html#NL3D_1_1CAnimationSetr1">NL3D::CAnimationSet::_AnimationIdByName</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05450.html#l00228">228</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +Referenced by <a class="el" href="a05449.html#l00061">addAnimation()</a>, <a class="el" href="a05450.html#l00083">getAnimationIdByName()</a>, <a class="el" href="a05449.html#l00091">reset()</a>, and <a class="el" href="a05449.html#l00134">serial()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetr2" doxytag="NL3D::CAnimationSet::_AnimationName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<std::string> <a class="el" href="a02210.html#NL3D_1_1CAnimationSetr2">NL3D::CAnimationSet::_AnimationName</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05450.html#l00225">225</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +Referenced by <a class="el" href="a05449.html#l00061">addAnimation()</a>, <a class="el" href="a05450.html#l00104">getAnimationName()</a>, <a class="el" href="a05449.html#l00091">reset()</a>, and <a class="el" href="a05449.html#l00134">serial()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetr3" doxytag="NL3D::CAnimationSet::_ChannelIdByName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::map<std::string, <a class="el" href="a04558.html#a11">uint32</a>> <a class="el" href="a02210.html#NL3D_1_1CAnimationSetr3">NL3D::CAnimationSet::_ChannelIdByName</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05450.html#l00227">227</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +Referenced by <a class="el" href="a05449.html#l00104">build()</a>, <a class="el" href="a05450.html#l00070">getChannelIdByName()</a>, <a class="el" href="a05449.html#l00054">getNumChannelId()</a>, <a class="el" href="a05449.html#l00091">reset()</a>, and <a class="el" href="a05449.html#l00134">serial()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetr4" doxytag="NL3D::CAnimationSet::_SkeletonWeight" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="a03405.html">CSkeletonWeight</a>*> <a class="el" href="a02210.html#NL3D_1_1CAnimationSetr4">NL3D::CAnimationSet::_SkeletonWeight</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05450.html#l00224">224</a> of file <a class="el" href="a05450.html">animation_set.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetr5" doxytag="NL3D::CAnimationSet::_SkeletonWeightIdByName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::map<std::string, <a class="el" href="a04558.html#a11">uint32</a>> <a class="el" href="a02210.html#NL3D_1_1CAnimationSetr5">NL3D::CAnimationSet::_SkeletonWeightIdByName</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05450.html#l00229">229</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +Referenced by <a class="el" href="a05449.html#l00076">addSkeletonWeight()</a>, <a class="el" href="a05450.html#l00136">getSkeletonWeightIdByName()</a>, <a class="el" href="a05449.html#l00091">reset()</a>, and <a class="el" href="a05449.html#l00134">serial()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetr6" doxytag="NL3D::CAnimationSet::_SkeletonWeightName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<std::string> <a class="el" href="a02210.html#NL3D_1_1CAnimationSetr6">NL3D::CAnimationSet::_SkeletonWeightName</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05450.html#l00226">226</a> of file <a class="el" href="a05450.html">animation_set.h</a>. +<p> +Referenced by <a class="el" href="a05449.html#l00076">addSkeletonWeight()</a>, <a class="el" href="a05450.html#l00149">getSkeletonWeightName()</a>, <a class="el" href="a05449.html#l00091">reset()</a>, and <a class="el" href="a05449.html#l00134">serial()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLGEORGES_1_1UTypeo0" doxytag="NL3D::CAnimationSet::crefs" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a14">sint</a> <a class="el" href="a02209.html#NLGEORGES_1_1UTypeo0">NLMISC::CRefCount::crefs</a><code> [mutable, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06402.html#l00079">79</a> of file <a class="el" href="a06402.html">smart_ptr.h</a>. +<p> +Referenced by <a class="el" href="a06402.html#l00085">NLMISC::CRefCount::CRefCount()</a>, <a class="el" href="a06402.html#l00070">NLMISC::CRefCount::getRefCount()</a>, and <a class="el" href="a06403.html#l00044">NLMISC::CRefCount::~CRefCount()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLGEORGES_1_1UTypes0" doxytag="NL3D::CAnimationSet::NullPtrInfo" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03320.html">CRefCount::CPtrInfo</a> <a class="el" href="a02209.html#NLGEORGES_1_1UTypes0">NLMISC::CRefCount::NullPtrInfo</a><code> [static, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="a06402.html#l00085">NLMISC::CRefCount::CRefCount()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLGEORGES_1_1UTypeo1" doxytag="NL3D::CAnimationSet::pinfo" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> CPtrInfo* <a class="el" href="a02209.html#NLGEORGES_1_1UTypeo1">NLMISC::CRefCount::pinfo</a><code> [mutable, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06402.html#l00080">80</a> of file <a class="el" href="a06402.html">smart_ptr.h</a>. +<p> +Referenced by <a class="el" href="a06402.html#l00085">NLMISC::CRefCount::CRefCount()</a>, and <a class="el" href="a06403.html#l00044">NLMISC::CRefCount::~CRefCount()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a05450.html">animation_set.h</a><li><a class="el" href="a05449.html">animation_set.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:44:28 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |