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/a02211.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a02211.html | 862 |
1 files changed, 862 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02211.html b/docs/doxygen/nel/a02211.html new file mode 100644 index 00000000..a6c71227 --- /dev/null +++ b/docs/doxygen/nel/a02211.html @@ -0,0 +1,862 @@ +<!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::CAnimationSetUser 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::CAnimationSetUser Class Reference</h1><code>#include <<a class="el" href="a05452.html">animation_set_user.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CAnimationSetUser: +<p><center><img src="a02211.png" usemap="#NL3D::CAnimationSetUser_map" border="0" alt=""></center> +<map name="NL3D::CAnimationSetUser_map"> +<area href="a02212.html" alt="NL3D::UAnimationSet" shape="rect" coords="0,0,158,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +<a class="el" href="a02212.html">UAnimationSet</a> implementation <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <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="a05452.html#l00055">55</a> of file <a class="el" href="a05452.html">animation_set_user.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="a02212.html#NL3D_1_1UAnimationSetw0NL3D_1_1UAnimationSetw1">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="a02211.html#NL3D_1_1CAnimationSetUsera0">addAnimation</a> (const char *fileName, const char *animName)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUsera1">addSkeletonWeight</a> (const char *fileName, const char *skelName)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUsera2">build</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUsera3">CAnimationSetUser</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#NL3D_1_1CAnimationSetUsera3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUsera4">CAnimationSetUser</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#NL3D_1_1CAnimationSetUsera4"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02210.html">CAnimationSet</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUsera5">getAnimationSet</a> () const </td></tr> + +<tr><td colspan="2"><div class="groupHeader">Animations mgt.</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a02206.html">UAnimation</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUserz31_0">getAnimation</a> (<a class="el" href="a04558.html#a15">uint</a> animationId)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUserz31_1">getAnimationIdByName</a> (const std::string &name) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual const std::string & </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUserz31_2">getAnimationName</a> (<a class="el" href="a04558.html#a15">uint</a> animationId) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUserz31_3">getNumAnimation</a> () const </td></tr> + +<tr><td colspan="2"><div class="groupHeader">Channel mgt.</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUserz35_0">getChannelIdByName</a> (const std::string &name) const </td></tr> + +<tr><td colspan="2"><div class="groupHeader">SkeletonWeight mgt.</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUserz33_0">getNumSkeletonWeight</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUserz33_1">getSkeletonWeightIdByName</a> (const std::string &name) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual const std::string & </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUserz33_2">getSkeletonWeightName</a> (<a class="el" href="a04558.html#a15">uint</a> skeletonId) const </td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03408.html">NLMISC::CSmartPtr</a>< <a class="el" href="a02210.html">CAnimationSet</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a></td></tr> + +<tr><td colspan=2><br><h2>Friends</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUsern0">CPlayListManagerUser</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="a02211.html#NL3D_1_1CAnimationSetUsern1">CSceneUser</a></td></tr> + +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NL3D_1_1UAnimationSetw0" doxytag="NL3D::CAnimationSetUser::@61" ></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<code> [inherited]</code> + </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_1UAnimationSetw0NL3D_1_1UAnimationSetw1" doxytag="NotFound" ></a>NotFound</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a06593.html#l00056">56</a> of file <a class="el" href="a06593.html">u_animation_set.h</a>. +<p> +<div class="fragment"><pre>00056 { <a class="code" href="a02212.html#NL3D_1_1UAnimationSetw0NL3D_1_1UAnimationSetw1">NotFound</a>=0xffffffff }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationSetUsera4" doxytag="NL3D::CAnimationSetUser::CAnimationSetUser" ></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::CAnimationSetUser::CAnimationSetUser </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </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> +Constructor. +<p> + +<p> +Definition at line <a class="el" href="a05452.html#l00065">65</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00066 { +00067 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00068 +00069 <a class="code" href="a04199.html#a6">nlassert</a>((<a class="code" href="a04558.html#a15">uint</a>)UAnimationSet::NotFound == (<a class="code" href="a04558.html#a15">uint</a>)CAnimationSet::NotFound ); +00070 +00071 <span class="comment">// create a smartptred animation set.</span> +00072 <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>= <span class="keyword">new</span> CAnimationSet; +00073 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUsera3" doxytag="NL3D::CAnimationSetUser::CAnimationSetUser" ></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::CAnimationSetUser::CAnimationSetUser </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><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Constructor. +<p> + +<p> +Definition at line <a class="el" href="a05452.html#l00076">76</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00077 { +00078 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00079 +00080 <a class="code" href="a04199.html#a6">nlassert</a>((<a class="code" href="a04558.html#a15">uint</a>)UAnimationSet::NotFound == (<a class="code" href="a04558.html#a15">uint</a>)CAnimationSet::NotFound ); +00081 +00082 <span class="comment">// create a smartptred animation set.</span> +00083 <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>= <span class="keyword">new</span> CAnimationSet; +00084 +00085 <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->serial(f); +00086 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationSetUsera0" doxytag="NL3D::CAnimationSetUser::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::CAnimationSetUser::addAnimation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname" nowrap> <em>fileName</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>animName</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Add an animation in the animation set. After adding all your animations, call <a class="el" href="a02211.html#NL3D_1_1CAnimationSetUsera2">build()</a>.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>fileName</em> </td><td>is the animation filename </td></tr> + <tr><td valign=top><em>animName</em> </td><td>is the name of the animation in the animation set. </td></tr> + </table> +</dl> +<dl compact><dt><b>Returns:</b></dt><dd>NotFound if the file is not found.</dd></dl> + +<p> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1372_0">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05452.html#l00095">95</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05538.html#l02654">file</a>, <a class="el" href="a06167.html#l00320">NLMISC::CPath::lookup()</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00096 { +00097 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00098 +00099 <span class="comment">// Allocate an animation</span> +00100 std::auto_ptr<CAnimation> anim (<span class="keyword">new</span> CAnimation); +00101 +00102 <span class="comment">// Read it</span> +00103 <a class="code" href="a02653.html">NLMISC::CIFile</a> <a class="code" href="a04115.html#a95">file</a>; +00104 std::string path = <a class="code" href="a03072.html#NLMISC_1_1CPathe15">NLMISC::CPath::lookup</a> (fileName, <span class="keyword">false</span>, <span class="keyword">true</span>); +00105 <span class="keywordflow">if</span> (path.empty()) +00106 path = fileName; +00107 <span class="keywordflow">if</span> ( <a class="code" href="a04115.html#a95">file</a>.open ( path ) ) +00108 { +00109 <span class="comment">// Serial the animation</span> +00110 <a class="code" href="a04115.html#a95">file</a>.serial (*anim); +00111 +00112 <span class="comment">// Add the animation</span> +00113 <a class="code" href="a04558.html#a15">uint</a> <span class="keywordtype">id</span>=<a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->addAnimation (animName, anim.release()); +00114 +00115 <span class="comment">// Return id</span> +00116 <span class="keywordflow">return</span> <span class="keywordtype">id</span>; +00117 } +00118 <span class="keywordflow">else</span> <span class="keywordflow">return</span> UAnimationSet::NotFound; +00119 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUsera1" doxytag="NL3D::CAnimationSetUser::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"> virtual <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSetUser::addSkeletonWeight </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname" nowrap> <em>fileName</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>skelName</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Add a skeleton weight in the animation set. This method use CPath to search the skeleton file.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>fileName</em> </td><td>is the skeleton weight filename </td></tr> + <tr><td valign=top><em>animName</em> </td><td>is the name of the skeleton weight in the animation set. </td></tr> + </table> +</dl> +<dl compact><dt><b>Returns:</b></dt><dd>the id of the new skeleton or NotFound if the file is not found.</dd></dl> + +<p> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1372_1">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05452.html#l00139">139</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05538.html#l02654">file</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00140 { +00141 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00142 +00143 <span class="comment">// Allocate an animation</span> +00144 std::auto_ptr<CSkeletonWeight> skeletonWeight (<span class="keyword">new</span> CSkeletonWeight); +00145 +00146 <span class="comment">// Read it</span> +00147 <a class="code" href="a02653.html">NLMISC::CIFile</a> <a class="code" href="a04115.html#a95">file</a>; +00148 <span class="keywordflow">if</span> (<a class="code" href="a04115.html#a95">file</a>.open ( NLMISC::CPath::lookup( fileName ) ) ) +00149 { +00150 <span class="comment">// Serial the animation</span> +00151 <a class="code" href="a04115.html#a95">file</a>.serial (*skeletonWeight); +00152 +00153 <span class="comment">// Add the animation</span> +00154 <a class="code" href="a04558.html#a15">uint</a> <span class="keywordtype">id</span>=<a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->addSkeletonWeight (skelName, skeletonWeight.release()); +00155 +00156 <span class="comment">// Return id</span> +00157 <span class="keywordflow">return</span> <span class="keywordtype">id</span>; +00158 } +00159 <span class="keywordflow">else</span> <span class="keywordflow">return</span> UAnimationSet::NotFound; +00160 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUsera2" doxytag="NL3D::CAnimationSetUser::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"> virtual void NL3D::CAnimationSetUser::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><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Build the animation set. Call build after adding all your animations. +<p> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1372_2">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05452.html#l00124">124</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, and <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>. +<p> +<div class="fragment"><pre>00125 { +00126 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00127 +00128 <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->build (); +00129 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUserz31_0" doxytag="NL3D::CAnimationSetUser::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="a02206.html">UAnimation</a> * NL3D::CAnimationSetUser::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> [virtual]</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> +<dl compact><dt><b>Returns:</b></dt><dd>the end time.</dd></dl> + +<p> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1374_0">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05451.html#l00036">36</a> of file <a class="el" href="a05451.html">animation_set_user.cpp</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00037 { +00038 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00039 +00040 <span class="keywordflow">return</span> <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->getAnimation (animationId); +00041 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUserz31_1" doxytag="NL3D::CAnimationSetUser::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"> virtual <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSetUser::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, virtual]</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 animation is found, method returns NotFound. +<p> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1374_1">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05452.html#l00177">177</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00178 { +00179 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00180 +00181 <span class="keywordflow">return</span> <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->getAnimationIdByName(name); +00182 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUserz31_2" doxytag="NL3D::CAnimationSetUser::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"> virtual const std::string& NL3D::CAnimationSetUser::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, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get animation name. +<p> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1374_2">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05452.html#l00187">187</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05452.html#l00167">getNumAnimation()</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, <a class="el" href="a05622.html#l00154">nlerror</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00188 { +00189 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00190 +00191 <span class="keywordflow">if</span>(animationId>=<a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserz31_3">getNumAnimation</a>()) +00192 <a class="code" href="a04199.html#a3">nlerror</a>(<span class="stringliteral">"getAnimation*(): bad animation Id"</span>); +00193 <span class="keywordflow">return</span> <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->getAnimationName(animationId); +00194 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUsera5" doxytag="NL3D::CAnimationSetUser::getAnimationSet" ></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="a02210.html">CAnimationSet</a> * NL3D::CAnimationSetUser::getAnimationSet </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> + +<p> +Definition at line <a class="el" href="a05451.html#l00045">45</a> of file <a class="el" href="a05451.html">animation_set_user.cpp</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, and <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>. +<p> +Referenced by <a class="el" href="a06177.html#l00039">NL3D::H_AUTO_DECL()</a>. +<p> +<div class="fragment"><pre>00046 { +00047 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00048 +00049 <span class="keywordflow">return</span> <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>; +00050 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUserz35_0" doxytag="NL3D::CAnimationSetUser::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"> virtual <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSetUser::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, virtual]</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> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1378_0">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05452.html#l00246">246</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00247 { +00248 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00249 +00250 <span class="keywordflow">return</span> <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->getChannelIdByName(name); +00251 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUserz31_3" doxytag="NL3D::CAnimationSetUser::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"> virtual <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSetUser::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, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get animations count. +<p> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1374_3">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05452.html#l00167">167</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05452.html#l00187">getAnimationName()</a>. +<p> +<div class="fragment"><pre>00168 { +00169 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00170 +00171 <span class="keywordflow">return</span> <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->getNumAnimation(); +00172 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUserz33_0" doxytag="NL3D::CAnimationSetUser::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"> virtual <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSetUser::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, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get skeleton weight count. +<p> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1376_0">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05452.html#l00211">211</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05452.html#l00231">getSkeletonWeightName()</a>. +<p> +<div class="fragment"><pre>00212 { +00213 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00214 +00215 <span class="keywordflow">return</span> <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->getNumSkeletonWeight(); +00216 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUserz33_1" doxytag="NL3D::CAnimationSetUser::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"> virtual <a class="el" href="a04558.html#a15">uint</a> NL3D::CAnimationSetUser::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, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a SkeletonWeight ID by name. If no SkeletonWeight is found, method returns NotFound. +<p> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1376_1">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05452.html#l00221">221</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00222 { +00223 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00224 +00225 <span class="keywordflow">return</span> <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->getSkeletonWeightIdByName(name); +00226 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUserz33_2" doxytag="NL3D::CAnimationSetUser::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"> virtual const std::string& NL3D::CAnimationSetUser::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, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get skeleton template name. +<p> +Implements <a class="el" href="a02212.html#NL3D_1_1UAnimationSetz1376_2">NL3D::UAnimationSet</a>. +<p> +Definition at line <a class="el" href="a05452.html#l00231">231</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +References <a class="el" href="a05452.html#l00058">_AnimationSet</a>, <a class="el" href="a05452.html#l00211">getNumSkeletonWeight()</a>, <a class="el" href="a05452.html#l00039">NL3D_MEM_ANIMATION_SET</a>, <a class="el" href="a05622.html#l00154">nlerror</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00232 { +00233 <a class="code" href="a04029.html#a0">NL3D_MEM_ANIMATION_SET</a> +00234 +00235 <span class="keywordflow">if</span>(skeletonId>=<a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserz33_0">getNumSkeletonWeight</a>()) +00236 <a class="code" href="a04199.html#a3">nlerror</a>(<span class="stringliteral">"getSkeletonWeight*(): bad SkeletonWeight Id"</span>); +00237 <span class="keywordflow">return</span> <a class="code" href="a02211.html#NL3D_1_1CAnimationSetUserr0">_AnimationSet</a>->getSkeletonWeightName(skeletonId); +00238 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Friends And Related Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationSetUsern0" doxytag="NL3D::CAnimationSetUser::CPlayListManagerUser" ></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 class <a class="el" href="a03087.html">CPlayListManagerUser</a><code> [friend]</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="a05452.html#l00059">59</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationSetUsern1" doxytag="NL3D::CAnimationSetUser::CSceneUser" ></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 class <a class="el" href="a03350.html">CSceneUser</a><code> [friend]</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="a05452.html#l00060">60</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationSetUserr0" doxytag="NL3D::CAnimationSetUser::_AnimationSet" ></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="a03408.html">NLMISC::CSmartPtr</a><<a class="el" href="a02210.html">CAnimationSet</a>> <a class="el" href="a02211.html#NL3D_1_1CAnimationSetUserr0">NL3D::CAnimationSetUser::_AnimationSet</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="a05452.html#l00058">58</a> of file <a class="el" href="a05452.html">animation_set_user.h</a>. +<p> +Referenced by <a class="el" href="a05452.html#l00095">addAnimation()</a>, <a class="el" href="a05452.html#l00139">addSkeletonWeight()</a>, <a class="el" href="a05452.html#l00124">build()</a>, <a class="el" href="a05452.html#l00065">CAnimationSetUser()</a>, <a class="el" href="a05451.html#l00036">getAnimation()</a>, <a class="el" href="a05452.html#l00177">getAnimationIdByName()</a>, <a class="el" href="a05452.html#l00187">getAnimationName()</a>, <a class="el" href="a05451.html#l00045">getAnimationSet()</a>, <a class="el" href="a05452.html#l00246">getChannelIdByName()</a>, <a class="el" href="a05452.html#l00167">getNumAnimation()</a>, <a class="el" href="a05452.html#l00211">getNumSkeletonWeight()</a>, <a class="el" href="a05452.html#l00221">getSkeletonWeightIdByName()</a>, <a class="el" href="a05452.html#l00231">getSkeletonWeightName()</a>, and <a class="el" href="a06352.html#l00106">NL3D::CSceneUser::setAutomaticAnimationSet()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a05452.html">animation_set_user.h</a><li><a class="el" href="a05451.html">animation_set_user.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:44:29 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> |