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/a02205.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/a02205.html | 1322 |
1 files changed, 1322 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02205.html b/docs/doxygen/nel/a02205.html new file mode 100644 index 00000000..18e5d7ee --- /dev/null +++ b/docs/doxygen/nel/a02205.html @@ -0,0 +1,1322 @@ +<!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::CAnimation 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::CAnimation Class Reference</h1><code>#include <<a class="el" href="a05444.html">animation.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CAnimation: +<p><center><img src="a02205.png" usemap="#NL3D::CAnimation_map" border="0" alt=""></center> +<map name="NL3D::CAnimation_map"> +<area href="a02206.html" alt="NL3D::UAnimation" shape="rect" coords="0,0,114,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +This class describes animations for several tracks. Each track works with a <a class="el" href="a03835.html">IAnimatedValue</a> for the <a class="el" href="a02197.html">IAnimatable</a> objects.<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="a05444.html#l00060">60</a> of file <a class="el" href="a05444.html">animation.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public interface.</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom>{ <a class="el" href="a02205.html#NL3D_1_1CAnimationz22_0NL3D_1_1CAnimationw0">NotFound</a> = 0xffffffff + }</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz22_1">addTrack</a> (const std::string &name, <a class="el" href="a03542.html">ITrack</a> *pChannel)</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="a02205.html#NL3D_1_1CAnimationz22_2">getIdTrackByName</a> (const std::string &name) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03542.html">ITrack</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz22_3">getTrack</a> (<a class="el" href="a04558.html#a15">uint</a> trackId)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a03542.html">ITrack</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz22_4">getTrack</a> (<a class="el" href="a04558.html#a15">uint</a> trackId) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz22_5">getTrackNames</a> (std::set< std::string > &setString) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz22_6">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_1CAnimationz22_6"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz22_7">setMinEndTime</a> (<a class="el" href="a05363.html#a366">TAnimationTime</a> minEndTime)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set animation min end time. <a href="#NL3D_1_1CAnimationz22_7"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Members</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::map< std::string,<br> + <a class="el" href="a04558.html#a11">uint32</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz25_0">TMapStringUInt</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::vector< <a class="el" href="a03542.html">ITrack</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz25_1">TVectAPtrTrack</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02205.html#NL3D_1_1CAnimationz25_0">TMapStringUInt</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz25_2">_IdByName</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05363.html#a366">TAnimationTime</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz25_3">_MinEndTime</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz25_4">_Name</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02205.html#NL3D_1_1CAnimationz25_1">TVectAPtrTrack</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a></td></tr> + +<tr><td colspan=2><br><h2>Public Types</h2></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationa0">CAnimation</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">ctor <a href="#NL3D_1_1CAnimationa0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationa1">~CAnimation</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#NL3D_1_1CAnimationa1"></a><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">From UAnimation</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz24_0">allTrackLoop</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a05363.html#a366">TAnimationTime</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz24_1">getBeginTime</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a05363.html#a366">TAnimationTime</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz24_2">getEndTime</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03881.html">UTrack</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz24_3">getTrackByName</a> (const char *name)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz24_4">releaseTrack</a> (<a class="el" href="a03881.html">UTrack</a> *track)</td></tr> + +<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr> +<tr><td colspan="2"><div class="groupHeader">Create / delete animations</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02206.html">UAnimation</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02206.html#NL3D_1_1UAnimationz1370_0">createAnimation</a> (const char *sPath)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02206.html#NL3D_1_1UAnimationz1370_1">releaseAnimation</a> (<a class="el" href="a02206.html">UAnimation</a> *animation)</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Create / delete animations</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02206.html">UAnimation</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02206.html#NL3D_1_1UAnimationz1370_0">createAnimation</a> (const char *sPath)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02206.html#NL3D_1_1UAnimationz1370_1">releaseAnimation</a> (<a class="el" href="a02206.html">UAnimation</a> *animation)</td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td colspan="2"><div class="groupHeader">Anim time caching</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz27_0">_AnimLoop</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz27_1">_AnimLoopTouched</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05363.html#a366">TAnimationTime</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz27_2">_BeginTime</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz27_3">_BeginTimeTouched</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05363.html#a366">TAnimationTime</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz27_4">_EndTime</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02205.html#NL3D_1_1CAnimationz27_5">_EndTimeTouched</a></td></tr> + +</table> +<hr><h2>Member Typedef Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationz25_0" doxytag="NL3D::CAnimation::TMapStringUInt" ></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"> typedef std::map<std::string, <a class="el" href="a04558.html#a11">uint32</a>> <a class="el" href="a02205.html#NL3D_1_1CAnimationz25_0">NL3D::CAnimation::TMapStringUInt</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="a05444.html#l00149">149</a> of file <a class="el" href="a05444.html">animation.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz25_1" doxytag="NL3D::CAnimation::TVectAPtrTrack" ></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"> typedef std::vector<<a class="el" href="a03542.html">ITrack</a>* > <a class="el" href="a02205.html#NL3D_1_1CAnimationz25_1">NL3D::CAnimation::TVectAPtrTrack</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="a05444.html#l00150">150</a> of file <a class="el" href="a05444.html">animation.h</a>. </td> + </tr> +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationz22_0" doxytag="NL3D::CAnimation::@4" ></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_1CAnimationz22_0NL3D_1_1CAnimationw0" doxytag="NotFound" ></a>NotFound</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a05444.html#l00070">70</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +<div class="fragment"><pre>00070 { <a class="code" href="a02205.html#NL3D_1_1CAnimationz22_0NL3D_1_1CAnimationw0">NotFound</a>=0xffffffff }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationa0" doxytag="NL3D::CAnimation::CAnimation" ></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::CAnimation::CAnimation </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> +ctor +<p> + </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationa1" doxytag="NL3D::CAnimation::~CAnimation" ></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::CAnimation::~<a class="el" href="a02205.html">CAnimation</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><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Destructor. +<p> + +<p> +Definition at line <a class="el" href="a05443.html#l00053">53</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a05444.html#l00159">_TrackVector</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00054 { +00055 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00056 <span class="comment">// Delete all the pointers in the array</span> +00057 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> i=0; i<<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>.size(); i++) +00058 <span class="comment">// Delete</span> +00059 <span class="keyword">delete</span> <a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>[i]; +00060 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationz22_1" doxytag="NL3D::CAnimation::addTrack" ></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::CAnimation::addTrack </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </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="a03542.html">ITrack</a> * </td> + <td class="mdname" nowrap> <em>pChannel</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 track at the end of the track list.<p> +This method is used to insert tracks in the animation. Tracks must be allocated with new. The pointer is then handeled by the <a class="el" href="a02205.html">CAnimation</a>. +<p> +Definition at line <a class="el" href="a05443.html#l00064">64</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a05444.html#l00171">_AnimLoopTouched</a>, <a class="el" href="a05444.html#l00169">_BeginTimeTouched</a>, <a class="el" href="a05444.html#l00170">_EndTimeTouched</a>, <a class="el" href="a05444.html#l00156">_IdByName</a>, <a class="el" href="a05444.html#l00159">_TrackVector</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a05445.html#l00086">NL3D::CAnimationOptimizer::optimize()</a>. +<p> +<div class="fragment"><pre>00065 { +00066 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00067 <span class="comment">// Add an entry in the map</span> +00068 <a class="code" href="a02205.html#NL3D_1_1CAnimationz25_2">_IdByName</a>.insert (TMapStringUInt::value_type (name, (<a class="code" href="a04558.html#a11">uint32</a>)<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>.size())); +00069 +00070 <span class="comment">// Add an entry in the array</span> +00071 <a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>.push_back (pChannel); +00072 +00073 <span class="comment">// </span> +00074 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_3">_BeginTimeTouched</a> = <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_5">_EndTimeTouched</a> = <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_1">_AnimLoopTouched</a>= <span class="keyword">true</span>; +00075 +00076 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz24_0" doxytag="NL3D::CAnimation::allTrackLoop" ></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::CAnimation::allTrackLoop </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> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Say if all track of this animation loop. NB: If no tracks in the animation, return true +<p> +Implements <a class="el" href="a02206.html#NL3D_1_1UAnimationa0">NL3D::UAnimation</a>. +<p> +Definition at line <a class="el" href="a05443.html#l00192">192</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a05444.html#l00168">_AnimLoop</a>, <a class="el" href="a05444.html#l00171">_AnimLoopTouched</a>, <a class="el" href="a05444.html#l00159">_TrackVector</a>, <a class="el" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, <a class="el" href="a05646.html#l00985">t</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00193 { +00194 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00195 <a class="code" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>; +00196 +00197 <span class="keywordflow">if</span>(<a class="code" href="a02205.html#NL3D_1_1CAnimationz27_1">_AnimLoopTouched</a>) +00198 { +00199 <span class="comment">// Track count</span> +00200 <a class="code" href="a04558.html#a15">uint</a> trackCount=<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>.size(); +00201 +00202 <span class="comment">// Default is true</span> +00203 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_0">_AnimLoop</a>= <span class="keyword">true</span>; +00204 +00205 <span class="comment">// Scan tracks keys</span> +00206 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a627">t</a>=0; <a class="code" href="a04223.html#a627">t</a><trackCount; <a class="code" href="a04223.html#a627">t</a>++) +00207 { +00208 <span class="keywordflow">if</span> (!<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>[<a class="code" href="a04223.html#a627">t</a>]->getLoopMode()) +00209 { +00210 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_0">_AnimLoop</a>= <span class="keyword">false</span>; +00211 <span class="keywordflow">break</span>; +00212 } +00213 } +00214 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_1">_AnimLoopTouched</a> = <span class="keyword">false</span>; +00215 } +00216 +00217 <span class="keywordflow">return</span> <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_0">_AnimLoop</a>; +00218 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1UAnimationz1370_0" doxytag="NL3D::CAnimation::createAnimation" ></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::UAnimation::createAnimation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>sPath</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [static, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Load an animation. This method will use CPath to find the good animation file. (*.anim). You should call releaseAnimation to delete the animation.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>sPath</em> </td><td>is the animation file path. </td></tr> + </table> +</dl> +<dl compact><dt><b>Returns:</b></dt><dd>NULL if the file is not found. Else return the pointer on the animation interface.</dd></dl> + +<p> +Definition at line <a class="el" href="a05443.html#l00259">259</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a05538.html#l02654">file</a>, <a class="el" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>, and <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>. +<p> +<div class="fragment"><pre>00260 { +00261 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00262 <a class="code" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>; +00263 +00264 <span class="comment">// Allocate an animation</span> +00265 std::auto_ptr<CAnimation> anim (<span class="keyword">new</span> CAnimation); +00266 +00267 <span class="comment">// Read it</span> +00268 <a class="code" href="a02653.html">NLMISC::CIFile</a> <a class="code" href="a04115.html#a95">file</a>; +00269 <span class="keywordflow">if</span> (<a class="code" href="a04115.html#a95">file</a>.open ( NLMISC::CPath::lookup( sPath ) ) ) +00270 { +00271 <span class="comment">// Serial the animation</span> +00272 <a class="code" href="a04115.html#a95">file</a>.serial (*anim); +00273 +00274 <span class="comment">// Return pointer</span> +00275 <a class="code" href="a02205.html#NL3D_1_1CAnimationa0">CAnimation</a> *ret=anim.release (); +00276 +00277 <span class="comment">// Return the animation interface</span> +00278 <span class="keywordflow">return</span> ret; +00279 } +00280 <span class="keywordflow">else</span> +00281 <span class="keywordflow">return</span> NULL; +00282 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz24_1" doxytag="NL3D::CAnimation::getBeginTime" ></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="a05363.html#a366">TAnimationTime</a> NL3D::CAnimation::getBeginTime </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> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get begin time of the animation.<p> +<dl compact><dt><b>Returns:</b></dt><dd>the begin time.</dd></dl> + +<p> +Implements <a class="el" href="a02206.html#NL3D_1_1UAnimationa1">NL3D::UAnimation</a>. +<p> +Definition at line <a class="el" href="a05443.html#l00125">125</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a05444.html#l00166">_BeginTime</a>, <a class="el" href="a05444.html#l00169">_BeginTimeTouched</a>, <a class="el" href="a05444.html#l00159">_TrackVector</a>, <a class="el" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, <a class="el" href="a05646.html#l00985">t</a>, <a class="el" href="a05454.html#l00044">NL3D::TAnimationTime</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05447.html#l00316">NL3D::CAnimationPlaylist::getLocalTime()</a>, <a class="el" href="a05447.html#l00176">NL3D::CAnimationPlaylist::setupMixer()</a>, and <a class="el" href="a05993.html#l00164">NL3D::CMeshBaseInstance::traverseHrc()</a>. +<p> +<div class="fragment"><pre>00126 { +00127 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00128 <a class="code" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>; +00129 +00130 <span class="keywordflow">if</span> (<a class="code" href="a02205.html#NL3D_1_1CAnimationz27_3">_BeginTimeTouched</a>) +00131 { +00132 <span class="comment">// Track count</span> +00133 <a class="code" href="a04558.html#a15">uint</a> trackCount=<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>.size(); +00134 +00135 <span class="comment">// Track count empty ?</span> +00136 <span class="keywordflow">if</span> (trackCount==0) +00137 <span class="keywordflow">return</span> 0.f; +00138 +00139 <span class="comment">// Look for the lowest</span> +00140 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_2">_BeginTime</a>=<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>[0]->getBeginTime (); +00141 +00142 <span class="comment">// Scan all keys</span> +00143 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a627">t</a>=1; <a class="code" href="a04223.html#a627">t</a><trackCount; <a class="code" href="a04223.html#a627">t</a>++) +00144 { +00145 <span class="keywordflow">if</span> (_TrackVector[<a class="code" href="a04223.html#a627">t</a>]->getBeginTime ()<<a class="code" href="a02205.html#NL3D_1_1CAnimationz27_2">_BeginTime</a>) +00146 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_2">_BeginTime</a>=_TrackVector[<a class="code" href="a04223.html#a627">t</a>]->getBeginTime (); +00147 } +00148 +00149 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_3">_BeginTimeTouched</a> = <span class="keyword">false</span>; +00150 } +00151 +00152 <span class="keywordflow">return</span> <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_2">_BeginTime</a>; +00153 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz24_2" doxytag="NL3D::CAnimation::getEndTime" ></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="a05363.html#a366">TAnimationTime</a> NL3D::CAnimation::getEndTime </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> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get end time of the animation.<p> +<dl compact><dt><b>Returns:</b></dt><dd>the end time.</dd></dl> + +<p> +Implements <a class="el" href="a02206.html#NL3D_1_1UAnimationa2">NL3D::UAnimation</a>. +<p> +Definition at line <a class="el" href="a05443.html#l00157">157</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a05444.html#l00167">_EndTime</a>, <a class="el" href="a05444.html#l00170">_EndTimeTouched</a>, <a class="el" href="a05444.html#l00162">_MinEndTime</a>, <a class="el" href="a05444.html#l00159">_TrackVector</a>, <a class="el" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, <a class="el" href="a05646.html#l00985">t</a>, <a class="el" href="a05454.html#l00044">NL3D::TAnimationTime</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>, <a class="el" href="a05447.html#l00316">NL3D::CAnimationPlaylist::getLocalTime()</a>, <a class="el" href="a05445.html#l00086">NL3D::CAnimationOptimizer::optimize()</a>, <a class="el" href="a05447.html#l00176">NL3D::CAnimationPlaylist::setupMixer()</a>, and <a class="el" href="a05993.html#l00164">NL3D::CMeshBaseInstance::traverseHrc()</a>. +<p> +<div class="fragment"><pre>00158 { +00159 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00160 <a class="code" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>; +00161 +00162 <span class="keywordflow">if</span> (<a class="code" href="a02205.html#NL3D_1_1CAnimationz27_5">_EndTimeTouched</a>) +00163 { +00164 <span class="comment">// Track count</span> +00165 <a class="code" href="a04558.html#a15">uint</a> trackCount=<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>.size(); +00166 +00167 <span class="comment">// Track count empty ?</span> +00168 <span class="keywordflow">if</span> (trackCount==0) +00169 <span class="keywordflow">return</span> 0.f; +00170 +00171 <span class="comment">// Look for the highest</span> +00172 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_4">_EndTime</a>=<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>[0]->getEndTime (); +00173 +00174 <span class="comment">// Scan tracks keys</span> +00175 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a627">t</a>=1; <a class="code" href="a04223.html#a627">t</a><trackCount; <a class="code" href="a04223.html#a627">t</a>++) +00176 { +00177 <span class="keywordflow">if</span> (_TrackVector[<a class="code" href="a04223.html#a627">t</a>]->getEndTime ()><a class="code" href="a02205.html#NL3D_1_1CAnimationz27_4">_EndTime</a>) +00178 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_4">_EndTime</a>=_TrackVector[<a class="code" href="a04223.html#a627">t</a>]->getEndTime (); +00179 } +00180 +00181 <span class="comment">// Check min end time</span> +00182 <span class="keywordflow">if</span> (<a class="code" href="a02205.html#NL3D_1_1CAnimationz27_4">_EndTime</a> < <a class="code" href="a02205.html#NL3D_1_1CAnimationz25_3">_MinEndTime</a>) +00183 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_4">_EndTime</a> = <a class="code" href="a02205.html#NL3D_1_1CAnimationz25_3">_MinEndTime</a>; +00184 +00185 <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_5">_EndTimeTouched</a> = <span class="keyword">false</span>; +00186 } +00187 +00188 <span class="keywordflow">return</span> <a class="code" href="a02205.html#NL3D_1_1CAnimationz27_4">_EndTime</a>; +00189 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz22_2" doxytag="NL3D::CAnimation::getIdTrackByName" ></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::CAnimation::getIdTrackByName </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 track with its name.<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 desired track. </td></tr> + </table> +</dl> +<dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="a02205.html#NL3D_1_1CAnimationz22_0NL3D_1_1CAnimationw0">CAnimation::NotFound</a> if the track doesn't exist else the the id of the track.</dd></dl> + +<p> +Definition at line <a class="el" href="a05444.html#l00077">77</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +References <a class="el" href="a05444.html#l00156">_IdByName</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, <a class="el" href="a02205.html#NL3D_1_1CAnimationz22_0NL3D_1_1CAnimationw0">NotFound</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00222">getTrackByName()</a>, <a class="el" href="a05445.html#l00086">NL3D::CAnimationOptimizer::optimize()</a>, and <a class="el" href="a05543.html#l00621">NL3D::CChannelMixer::refreshList()</a>. +<p> +<div class="fragment"><pre>00078 { +00079 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00080 <span class="comment">// Find an entry in the name/id map</span> +00081 TMapStringUInt::const_iterator ite=<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_2">_IdByName</a>.find (name); +00082 +00083 <span class="comment">// Not found ?</span> +00084 <span class="keywordflow">if</span> (ite==<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_2">_IdByName</a>.end ()) +00085 <span class="comment">// yes, error</span> +00086 <span class="keywordflow">return</span> <a class="code" href="a02205.html#NL3D_1_1CAnimationz22_0NL3D_1_1CAnimationw0">NotFound</a>; +00087 <span class="keywordflow">else</span> +00088 <span class="comment">// no, return track ID</span> +00089 <span class="keywordflow">return</span> (<a class="code" href="a04558.html#a15">uint</a>)ite->second; +00090 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz22_3" doxytag="NL3D::CAnimation::getTrack" ></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="a03542.html">ITrack</a>* NL3D::CAnimation::getTrack </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>trackId</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 track pointer<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>channelId</em> </td><td>is the id of the desired channel.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a05444.html#l00114">114</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +References <a class="el" href="a05444.html#l00159">_TrackVector</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00115 { +00116 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00117 <span class="comment">// Get the trackId-th track pointer</span> +00118 <span class="keywordflow">return</span> <a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>[trackId]; +00119 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz22_4" doxytag="NL3D::CAnimation::getTrack" ></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="a03542.html">ITrack</a>* NL3D::CAnimation::getTrack </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>trackId</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 const track pointer<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>channelId</em> </td><td>is the id of the desired channel.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a05444.html#l00103">103</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +References <a class="el" href="a05444.html#l00159">_TrackVector</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00222">getTrackByName()</a>, and <a class="el" href="a05445.html#l00086">NL3D::CAnimationOptimizer::optimize()</a>. +<p> +<div class="fragment"><pre>00104 { +00105 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00106 <span class="comment">// Get the trackId-th track pointer</span> +00107 <span class="keywordflow">return</span> <a class="code" href="a02205.html#NL3D_1_1CAnimationz25_5">_TrackVector</a>[trackId]; +00108 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz24_3" doxytag="NL3D::CAnimation::getTrackByName" ></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="a03881.html">UTrack</a> * NL3D::CAnimation::getTrackByName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>name</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 an animation track with its name. The track interface should be released with releaseTrack.<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 track to get. </td></tr> + </table> +</dl> +<dl compact><dt><b>Returns:</b></dt><dd>NULL if the track is not found, else a pointer on the track interface.</dd></dl> + +<p> +Implements <a class="el" href="a02206.html#NL3D_1_1UAnimationa3">NL3D::UAnimation</a>. +<p> +Definition at line <a class="el" href="a05443.html#l00222">222</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a05444.html#l00077">getIdTrackByName()</a>, <a class="el" href="a05444.html#l00103">getTrack()</a>, <a class="el" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00223 { +00224 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00225 <a class="code" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>; +00226 +00227 <span class="comment">// Get track id</span> +00228 <a class="code" href="a04558.html#a15">uint</a> <span class="keywordtype">id</span>=<a class="code" href="a02205.html#NL3D_1_1CAnimationz22_2">getIdTrackByName</a> (name); +00229 +00230 <span class="comment">// Not found ?</span> +00231 <span class="keywordflow">if</span> (<span class="keywordtype">id</span>==CAnimation::NotFound) +00232 <span class="comment">// Error, return NULL</span> +00233 <span class="keywordflow">return</span> NULL; +00234 <span class="keywordflow">else</span> +00235 <span class="comment">// No error, return the track</span> +00236 <span class="keywordflow">return</span> <a class="code" href="a02205.html#NL3D_1_1CAnimationz22_4">getTrack</a> (<span class="keywordtype">id</span>); +00237 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz22_5" doxytag="NL3D::CAnimation::getTrackNames" ></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::CAnimation::getTrackNames </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::set< std::string > & </td> + <td class="mdname1" valign="top" nowrap> <em>setString</em> </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> +Fill the set of string with the name of the channels.<p> +<dl compact><dt><b>Returns:</b></dt><dd>the count of track in this animation</dd></dl> + +<p> +Definition at line <a class="el" href="a05443.html#l00108">108</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a05444.html#l00156">_IdByName</a>, and <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>. +<p> +Referenced by <a class="el" href="a05449.html#l00104">NL3D::CAnimationSet::build()</a>, <a class="el" href="a05445.html#l00086">NL3D::CAnimationOptimizer::optimize()</a>, and <a class="el" href="a06348.html#l01112">NL3D::CScene::setAutomaticAnimationSet()</a>. +<p> +<div class="fragment"><pre>00109 { +00110 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00111 <span class="comment">// For each track name</span> +00112 TMapStringUInt::const_iterator ite=<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_2">_IdByName</a>.begin(); +00113 <span class="keywordflow">while</span> (ite!=<a class="code" href="a02205.html#NL3D_1_1CAnimationz25_2">_IdByName</a>.end()) +00114 { +00115 <span class="comment">// Add the name in the map</span> +00116 setString.insert (ite->first); +00117 +00118 <span class="comment">// Next track</span> +00119 ite++; +00120 } +00121 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1UAnimationz1370_1" doxytag="NL3D::CAnimation::releaseAnimation" ></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::UAnimation::releaseAnimation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02206.html">UAnimation</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>animation</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [static, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Release an animation. This animation must have been created will <a class="el" href="a02206.html#NL3D_1_1UAnimationz1370_0">createAnimation()</a>.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>animation</em> </td><td>is the animation to release.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a05443.html#l00286">286</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>, and <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>. +<p> +<div class="fragment"><pre>00287 { +00288 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00289 <a class="code" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>; +00290 +00291 <span class="comment">// Cast the pointer</span> +00292 <a class="code" href="a02205.html#NL3D_1_1CAnimationa0">CAnimation</a>* release=(<a class="code" href="a02205.html#NL3D_1_1CAnimationa0">CAnimation</a>*)animation; +00293 +00294 <span class="comment">// Delete it</span> +00295 <span class="keyword">delete</span> release; +00296 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz24_4" doxytag="NL3D::CAnimation::releaseTrack" ></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::CAnimation::releaseTrack </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03881.html">UTrack</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>track</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> +Relase a track interface.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>track</em> </td><td>is a pointer on the track interface to release.</td></tr> + </table> +</dl> + +<p> +Implements <a class="el" href="a02206.html#NL3D_1_1UAnimationa4">NL3D::UAnimation</a>. +<p> +Definition at line <a class="el" href="a05443.html#l00241">241</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>, and <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>. +<p> +<div class="fragment"><pre>00242 { +00243 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00244 <a class="code" href="a04020.html#a0">NL3D_HAUTO_UI_ANIMATION</a>; +00245 +00246 <span class="comment">// Nothing to do</span> +00247 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz22_6" doxytag="NL3D::CAnimation::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::CAnimation::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="a05443.html#l00080">80</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a05444.html#l00156">_IdByName</a>, <a class="el" href="a05444.html#l00162">_MinEndTime</a>, <a class="el" href="a05444.html#l00159">_TrackVector</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</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#l00371">NLMISC::IStream::serialContPolyPtr()</a>, <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00081 { +00082 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00083 <span class="comment">// Serial a header</span> +00084 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_0">serialCheck</a> ((<a class="code" href="a04558.html#a11">uint32</a>)'_LEN'); +00085 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_0">serialCheck</a> ((<a class="code" href="a04558.html#a11">uint32</a>)'MINA'); +00086 +00087 <span class="comment">// Serial a version</span> +00088 <a class="code" href="a04558.html#a14">sint</a> version=f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a> (1); +00089 +00090 <span class="comment">// Serial the name</span> +00091 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (_Name); +00092 +00093 <span class="comment">// Serial the name/id map</span> +00094 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_IdByName); +00095 +00096 <span class="comment">// Serial the vector</span> +00097 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_5">serialContPolyPtr</a> (_TrackVector); +00098 +00099 <span class="comment">// Serial the min end time</span> +00100 <span class="keywordflow">if</span> (version>=1) +00101 { +00102 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (_MinEndTime); +00103 } +00104 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz22_7" doxytag="NL3D::CAnimation::setMinEndTime" ></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::CAnimation::setMinEndTime </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a05363.html#a366">TAnimationTime</a> </td> + <td class="mdname1" valign="top" nowrap> <em>minEndTime</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> +Set animation min end time. +<p> + +<p> +Definition at line <a class="el" href="a05443.html#l00251">251</a> of file <a class="el" href="a05443.html">animation.cpp</a>. +<p> +References <a class="el" href="a05444.html#l00162">_MinEndTime</a>, <a class="el" href="a05444.html#l00045">NL3D_MEM_ANIMATION</a>, and <a class="el" href="a05454.html#l00044">NL3D::TAnimationTime</a>. +<p> +Referenced by <a class="el" href="a05445.html#l00086">NL3D::CAnimationOptimizer::optimize()</a>. +<p> +<div class="fragment"><pre>00252 { +00253 <a class="code" href="a04021.html#a0">NL3D_MEM_ANIMATION</a> +00254 <a class="code" href="a02205.html#NL3D_1_1CAnimationz25_3">_MinEndTime</a> = minEndTime; +00255 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CAnimationz27_0" doxytag="NL3D::CAnimation::_AnimLoop" ></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 <a class="el" href="a02205.html#NL3D_1_1CAnimationz27_0">NL3D::CAnimation::_AnimLoop</a><code> [mutable, 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="a05444.html#l00168">168</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00192">allTrackLoop()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz27_1" doxytag="NL3D::CAnimation::_AnimLoopTouched" ></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 <a class="el" href="a02205.html#NL3D_1_1CAnimationz27_1">NL3D::CAnimation::_AnimLoopTouched</a><code> [mutable, 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="a05444.html#l00171">171</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00064">addTrack()</a>, and <a class="el" href="a05443.html#l00192">allTrackLoop()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz27_2" doxytag="NL3D::CAnimation::_BeginTime" ></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="a05363.html#a366">TAnimationTime</a> <a class="el" href="a02205.html#NL3D_1_1CAnimationz27_2">NL3D::CAnimation::_BeginTime</a><code> [mutable, 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="a05444.html#l00166">166</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00125">getBeginTime()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz27_3" doxytag="NL3D::CAnimation::_BeginTimeTouched" ></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 <a class="el" href="a02205.html#NL3D_1_1CAnimationz27_3">NL3D::CAnimation::_BeginTimeTouched</a><code> [mutable, 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="a05444.html#l00169">169</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00064">addTrack()</a>, and <a class="el" href="a05443.html#l00125">getBeginTime()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz27_4" doxytag="NL3D::CAnimation::_EndTime" ></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="a05363.html#a366">TAnimationTime</a> <a class="el" href="a02205.html#NL3D_1_1CAnimationz27_4">NL3D::CAnimation::_EndTime</a><code> [mutable, 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="a05444.html#l00167">167</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00157">getEndTime()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz27_5" doxytag="NL3D::CAnimation::_EndTimeTouched" ></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 <a class="el" href="a02205.html#NL3D_1_1CAnimationz27_5">NL3D::CAnimation::_EndTimeTouched</a><code> [mutable, 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="a05444.html#l00170">170</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00064">addTrack()</a>, and <a class="el" href="a05443.html#l00157">getEndTime()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz25_2" doxytag="NL3D::CAnimation::_IdByName" ></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#NL3D_1_1CAnimationz25_0">TMapStringUInt</a> <a class="el" href="a02205.html#NL3D_1_1CAnimationz25_2">NL3D::CAnimation::_IdByName</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="a05444.html#l00156">156</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00064">addTrack()</a>, <a class="el" href="a05444.html#l00077">getIdTrackByName()</a>, <a class="el" href="a05443.html#l00108">getTrackNames()</a>, and <a class="el" href="a05443.html#l00080">serial()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz25_3" doxytag="NL3D::CAnimation::_MinEndTime" ></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="a05363.html#a366">TAnimationTime</a> <a class="el" href="a02205.html#NL3D_1_1CAnimationz25_3">NL3D::CAnimation::_MinEndTime</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="a05444.html#l00162">162</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00157">getEndTime()</a>, <a class="el" href="a05443.html#l00080">serial()</a>, and <a class="el" href="a05443.html#l00251">setMinEndTime()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz25_4" doxytag="NL3D::CAnimation::_Name" ></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::string <a class="el" href="a02205.html#NL3D_1_1CAnimationz25_4">NL3D::CAnimation::_Name</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="a05444.html#l00153">153</a> of file <a class="el" href="a05444.html">animation.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CAnimationz25_5" doxytag="NL3D::CAnimation::_TrackVector" ></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#NL3D_1_1CAnimationz25_1">TVectAPtrTrack</a> <a class="el" href="a02205.html#NL3D_1_1CAnimationz25_5">NL3D::CAnimation::_TrackVector</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="a05444.html#l00159">159</a> of file <a class="el" href="a05444.html">animation.h</a>. +<p> +Referenced by <a class="el" href="a05443.html#l00064">addTrack()</a>, <a class="el" href="a05443.html#l00192">allTrackLoop()</a>, <a class="el" href="a05443.html#l00125">getBeginTime()</a>, <a class="el" href="a05443.html#l00157">getEndTime()</a>, <a class="el" href="a05444.html#l00103">getTrack()</a>, <a class="el" href="a05443.html#l00080">serial()</a>, and <a class="el" href="a05443.html#l00053">~CAnimation()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a05444.html">animation.h</a><li><a class="el" href="a05443.html">animation.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:44:25 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> |