aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03581.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a03581.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/a03581.html1053
1 files changed, 1053 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03581.html b/docs/doxygen/nel/a03581.html
new file mode 100644
index 00000000..d5cd2b28
--- /dev/null
+++ b/docs/doxygen/nel/a03581.html
@@ -0,0 +1,1053 @@
+<!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: TemplateCTrackKeyFramerTCB&lt; CKeyT, T &gt; 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&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>CTrackKeyFramerTCB&lt; CKeyT, T &gt; Class Template Reference</h1><code>#include &lt;<a class="el" href="a06566.html">track_tcb.h</a>&gt;</code>
+<p>
+<p>Inheritance diagram for CTrackKeyFramerTCB&lt; CKeyT, T &gt;:
+<p><center><img src="a03581.png" usemap="#CTrackKeyFramerTCB< CKeyT, T >_map" border="0" alt=""></center>
+<map name="CTrackKeyFramerTCB< CKeyT, T >_map">
+<area href="a03471.html" alt="CTCBTools< CKeyT, T, TMapTimeCKey >" shape="rect" coords="0,0,251,24">
+</map>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+<h3>template&lt;class CKeyT, class T&gt;<br>
+ class CTrackKeyFramerTCB&lt; CKeyT, T &gt;</h3>
+
+ITrack implementation for TCB keyframer.<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="a06566.html#l00202">202</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual const IAnimatedValue &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03581.html#CTrackKeyFramerTCBa0">getValue</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">From ITrack. <a href="#CTrackKeyFramerTCBa0"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Protected Types</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>typedef CKeyT::TValueType&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03581.html#CTrackKeyFramerTCBx0">TKeyValueType</a></td></tr>
+
+<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
+<tr><td colspan="2"><div class="groupHeader">From ITrackKeyFramer</div></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03581.html#CTrackKeyFramerTCBz1013_0">compile</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">compile (precalc). <a href="#CTrackKeyFramerTCBz1013_0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03581.html#CTrackKeyFramerTCBz1013_1">evalKey</a> (const CKeyT *previous, const CKeyT *next, TAnimationTime datePrevious, TAnimationTime dateNext, TAnimationTime date)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">evalKey (runtime). <a href="#CTrackKeyFramerTCBz1013_1"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Private Types</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>typedef TMapTimeCKey::iterator&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4y0">TMapTimeCKeyIterator</a></td></tr>
+
+<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d0">compileTCBEase</a> (TMapTimeCKey &amp;mapKey, bool loopMode)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">compute TCB ease information. <a href="#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03581.html#CTrackKeyFramerTCBd1">computeFirstKey</a> (CKeyT &amp;keyFirst, CKeyT &amp;keyAfter)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d1">computeHermiteBasis</a> (float d, float hb[4])</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03581.html#CTrackKeyFramerTCBd3">computeLastKey</a> (CKeyT &amp;keyLast, CKeyT &amp;keyBefore)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d2">computeTCBFactors</a> (const CKeyT &amp;key, float timeBefore, float time, float timeAfter, float rangeDelta, bool firstKey, bool endKey, bool isLoop, float &amp;ksm, float &amp;ksp, float &amp;kdm, float &amp;kdp)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03581.html#CTrackKeyFramerTCBd5">computeTCBKey</a> (CKeyT &amp;keyBefore, CKeyT &amp;key, CKeyT &amp;keyAfter, float timeBefore, float time, float timeAfter, float rangeDelta, bool firstKey, bool endKey, bool isLoop)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03581.html#CTrackKeyFramerTCBd6">computeTCBKeyLinear</a> (CKeyT &amp;key0, CKeyT &amp;key1)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d4">ease</a> (const CKeyT *key, float d)</td></tr>
+
+<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>CAnimatedValueBlendable&lt; T &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03581.html#CTrackKeyFramerTCBr0">_Value</a></td></tr>
+
+</table>
+<hr><h2>Member Typedef Documentation</h2>
+<a class="anchor" name="CTrackKeyFramerTCBx0" doxytag="CTrackKeyFramerTCB::TKeyValueType" ></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" colspan="4">
+template&lt;class CKeyT, class T&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> typedef CKeyT::TValueType <a class="el" href="a03581.html">CTrackKeyFramerTCB</a>&lt; CKeyT, T &gt;::<a class="el" href="a03581.html#CTrackKeyFramerTCBx0">TKeyValueType</a><code> [protected]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00215">215</a> of file <a class="el" href="a06566.html">track_tcb.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4y0" doxytag="CTrackKeyFramerTCB::TMapTimeCKeyIterator" ></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" colspan="4">
+template&lt;class CKeyT, class T, class TMapTimeCKey&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> typedef TMapTimeCKey::iterator <a class="el" href="a03471.html">CTCBTools</a>&lt; CKeyT, T, TMapTimeCKey &gt;::<a class="el" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4y0">TMapTimeCKeyIterator</a><code> [protected, inherited]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00051">51</a> of file <a class="el" href="a06566.html">track_tcb.h</a>. </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="CTrackKeyFramerTCBz1013_0" doxytag="CTrackKeyFramerTCB::compile" ></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" colspan="4">
+template&lt;class CKeyT, class T&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> virtual void <a class="el" href="a03581.html">CTrackKeyFramerTCB</a>&lt; CKeyT, T &gt;::compile </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, protected, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+compile (precalc).
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00253">253</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+References <a class="el" href="a06566.html#l00056">CTCBTools&lt; CKeyT, T, TMapTimeCKey &gt;::compileTCBEase()</a>, <a class="el" href="a06566.html#l00359">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::computeFirstKey()</a>, <a class="el" href="a06566.html#l00367">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::computeLastKey()</a>, <a class="el" href="a06566.html#l00326">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::computeTCBKey()</a>, <a class="el" href="a06566.html#l00346">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::computeTCBKeyLinear()</a>, and <a class="el" href="a05981.html#l00104">sint</a>.
+<p>
+<div class="fragment"><pre>00254 {
+00255 ITrackKeyFramer&lt;CKeyT&gt;::compile();
+00256
+00257 <span class="comment">// Ease Precompute.</span>
+00258 <a class="code" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d0">compileTCBEase</a>(_MapKey, getLoopMode());
+00259
+00260
+00261 <span class="comment">// Tangents Precompute.</span>
+00262 <a class="code" href="a04558.html#a14">sint</a> nKeys= _MapKey.size();
+00263 <span class="keywordflow">if</span>(nKeys&lt;=1)
+00264 <span class="keywordflow">return</span>;
+00265
+00266 <span class="keyword">typename</span> std::map&lt;TAnimationTime, CKeyT&gt;::iterator it= _MapKey.begin(); <span class="comment">// first key.</span>
+00267 <span class="keyword">typename</span> std::map&lt;TAnimationTime, CKeyT&gt;::iterator itNext= it; itNext++; <span class="comment">// second key.</span>
+00268 <span class="keyword">typename</span> std::map&lt;TAnimationTime, CKeyT&gt;::iterator itPrev= _MapKey.end(); itPrev--; <span class="comment">// last key.</span>
+00269
+00270 <span class="keywordflow">if</span>(nKeys==2 &amp;&amp; !getLoopMode())
+00271 {
+00272 <a class="code" href="a03581.html#CTrackKeyFramerTCBd6">computeTCBKeyLinear</a>( it-&gt;second, itNext-&gt;second );
+00273 }
+00274 <span class="keywordflow">else</span>
+00275 {
+00276 <span class="comment">// rangeDelta is the length of effective Range - length of LastKey-FirstKey.</span>
+00277 <span class="comment">// NB: if RangeLock, rangeDelta==0.</span>
+00278 <span class="keywordtype">float</span> rangeDelta;
+00279 <span class="comment">// NB: _RangeDelta has just been compiled in ITrackKeyFramer&lt;CKeyT&gt;::compile().</span>
+00280 rangeDelta= getCompiledRangeDelta();
+00281
+00282 <span class="comment">// Compute all middle keys.</span>
+00283 <span class="keywordflow">for</span>(;it!=_MapKey.end();)
+00284 {
+00285 <span class="comment">// Do the first key and the last key only in LoopMode.</span>
+00286 <span class="comment">// NB: we are the last if itNext==_MapKey.begin().</span>
+00287 <span class="keywordflow">if</span>(getLoopMode() || (it!=_MapKey.begin() &amp;&amp; itNext!=_MapKey.begin()) )
+00288 {
+00289 <a class="code" href="a03581.html#CTrackKeyFramerTCBd5">computeTCBKey</a>(itPrev-&gt;second, it-&gt;second, itNext-&gt;second,
+00290 itPrev-&gt;first, it-&gt;first, itNext-&gt;first, rangeDelta,
+00291 it==_MapKey.begin(), itNext==_MapKey.begin(), getLoopMode());
+00292 }
+00293
+00294 <span class="comment">// Next key!!</span>
+00295 itPrev= it;
+00296 it++;
+00297 itNext++;
+00298 <span class="comment">// loop.</span>
+00299 <span class="keywordflow">if</span>(itNext==_MapKey.end())
+00300 itNext= _MapKey.begin();
+00301 }
+00302
+00303 <span class="comment">// In not loop mode, compute first and last key, AFTER middle keys computed.</span>
+00304 <span class="keywordflow">if</span>(!getLoopMode())
+00305 {
+00306 <span class="keyword">typename</span> std::map&lt;TAnimationTime, CKeyT&gt;::iterator it0= _MapKey.begin(); <span class="comment">// first key.</span>
+00307 <span class="keyword">typename</span> std::map&lt;TAnimationTime, CKeyT&gt;::iterator it1= it0; it1++; <span class="comment">// second key.</span>
+00308 <span class="keyword">typename</span> std::map&lt;TAnimationTime, CKeyT&gt;::iterator itLast= _MapKey.end();itLast--; <span class="comment">// last key.</span>
+00309 <span class="keyword">typename</span> std::map&lt;TAnimationTime, CKeyT&gt;::iterator itLastPrev= itLast;itLastPrev--; <span class="comment">// prev of last key.</span>
+00310
+00311 <a class="code" href="a03581.html#CTrackKeyFramerTCBd1">computeFirstKey</a>(it0-&gt;second, it1-&gt;second);
+00312 <a class="code" href="a03581.html#CTrackKeyFramerTCBd3">computeLastKey</a>(itLast-&gt;second, itLastPrev-&gt;second);
+00313 }
+00314 }
+00315 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d0" doxytag="CTrackKeyFramerTCB::compileTCBEase" ></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" colspan="4">
+template&lt;class CKeyT, class T, class TMapTimeCKey&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> void <a class="el" href="a03471.html">CTCBTools</a>&lt; CKeyT, T, TMapTimeCKey &gt;::compileTCBEase </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">TMapTimeCKey &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>mapKey</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>loopMode</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, protected, inherited]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+compute TCB ease information.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00056">56</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+Referenced by <a class="el" href="a06566.html#l00430">CTrackKeyFramerTCB&lt; CKeyTCBQuat, NLMISC::CAngleAxis &gt;::compile()</a>, and <a class="el" href="a06566.html#l00253">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::compile()</a>.
+<p>
+<div class="fragment"><pre>00057 {
+00058 <a class="code" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4y0">TMapTimeCKeyIterator</a> it= mapKey.begin();
+00059 <span class="keywordflow">for</span>(;it!=mapKey.end();it++)
+00060 {
+00061 <a class="code" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4y0">TMapTimeCKeyIterator</a> next= it;
+00062 next++;
+00063
+00064 <span class="comment">// loop mgt. must compute ease from last to first (usefull if _RangeLock is false).</span>
+00065 <span class="keywordflow">if</span>(next==mapKey.end() &amp;&amp; loopMode &amp;&amp; mapKey.size()&gt;1)
+00066 next= mapKey.begin();
+00067
+00068 <span class="comment">// Ease Precompute.</span>
+00069 <span class="comment">//=================</span>
+00070 CKeyT &amp;key= it-&gt;second;
+00071 <span class="keywordflow">if</span>(next!=mapKey.end())
+00072 {
+00073 <span class="keywordtype">float</span> e0= it-&gt;second.EaseFrom;
+00074 <span class="keywordtype">float</span> e1= next-&gt;second.EaseTo;
+00075 <span class="keywordtype">float</span> <a class="code" href="a04223.html#a626">s</a> = e0 + e1;
+00076
+00077 <span class="comment">// "normalize".</span>
+00078 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a626">s</a> &gt; 1.0f)
+00079 {
+00080 e0 = e0/<a class="code" href="a04223.html#a626">s</a>;
+00081 e1 = e1/<a class="code" href="a04223.html#a626">s</a>;
+00082 }
+00083
+00084 <span class="comment">// precalc ease factors.</span>
+00085 key.Ease0= e0;
+00086 key.Ease1= e1;
+00087 key.EaseK= 1/(2.0f - e0 - e1);
+00088 <span class="keywordflow">if</span>(e0)
+00089 key.EaseKOverEase0= key.EaseK / e0;
+00090 <span class="keywordflow">if</span>(e1)
+00091 key.EaseKOverEase1= key.EaseK / e1;
+00092 }
+00093 <span class="keywordflow">else</span>
+00094 {
+00095 <span class="comment">// force ease() to just return d (see ease()).</span>
+00096 key.EaseK = 0.5f;
+00097 }
+00098
+00099 }
+00100 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCBd1" doxytag="CTrackKeyFramerTCB::computeFirstKey" ></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" colspan="4">
+template&lt;class CKeyT, class T&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> void <a class="el" href="a03581.html">CTrackKeyFramerTCB</a>&lt; CKeyT, T &gt;::computeFirstKey </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">CKeyT &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>keyFirst</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>CKeyT &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>keyAfter</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00359">359</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+Referenced by <a class="el" href="a06566.html#l00253">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::compile()</a>.
+<p>
+<div class="fragment"><pre>00360 {
+00361 <span class="keywordtype">float</span> tm;
+00362 tm = 0.5f * (1.0f - keyFirst.Tension);
+00363 keyFirst.TanFrom= tm * ((keyAfter.Value - keyFirst.Value) * 3.0f - keyAfter.TanTo);
+00364 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d1" doxytag="CTrackKeyFramerTCB::computeHermiteBasis" ></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" colspan="4">
+template&lt;class CKeyT, class T, class TMapTimeCKey&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> void <a class="el" href="a03471.html">CTCBTools</a>&lt; CKeyT, T, TMapTimeCKey &gt;::computeHermiteBasis </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname" nowrap> <em>d</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>hb</em>[4]</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, protected, inherited]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00121">121</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+Referenced by <a class="el" href="a06566.html#l00223">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::evalKey()</a>.
+<p>
+<div class="fragment"><pre>00122 {
+00123 <span class="keywordtype">float</span> d2,d3,a;
+00124
+00125 d2 = d*d;
+00126 d3 = d2*d;
+00127 a = 3.0f*d2 - 2.0f*d3;
+00128 hb[0] = 1.0f - a;
+00129 hb[1] = a;
+00130 hb[2] = d3 - 2.0f*d2 + d;
+00131 hb[3] = d3 - d2;
+00132 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCBd3" doxytag="CTrackKeyFramerTCB::computeLastKey" ></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" colspan="4">
+template&lt;class CKeyT, class T&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> void <a class="el" href="a03581.html">CTrackKeyFramerTCB</a>&lt; CKeyT, T &gt;::computeLastKey </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">CKeyT &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>keyLast</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>CKeyT &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>keyBefore</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00367">367</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+Referenced by <a class="el" href="a06566.html#l00253">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::compile()</a>.
+<p>
+<div class="fragment"><pre>00368 {
+00369 <span class="keywordtype">float</span> tm;
+00370 tm = 0.5f * (1.0f - keyLast.Tension);
+00371 keyLast.TanTo= tm * ((keyLast.Value - keyBefore.Value) * 3.0f - keyBefore.TanFrom);
+00372 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d2" doxytag="CTrackKeyFramerTCB::computeTCBFactors" ></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" colspan="4">
+template&lt;class CKeyT, class T, class TMapTimeCKey&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> void <a class="el" href="a03471.html">CTCBTools</a>&lt; CKeyT, T, TMapTimeCKey &gt;::computeTCBFactors </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const CKeyT &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>key</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>timeBefore</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>time</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>timeAfter</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>rangeDelta</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>firstKey</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>endKey</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>isLoop</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>ksm</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>ksp</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>kdm</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>kdp</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, protected, inherited]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00136">136</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+Referenced by <a class="el" href="a06566.html#l00520">CTrackKeyFramerTCB&lt; CKeyTCBQuat, NLMISC::CAngleAxis &gt;::computeTCBKey()</a>, and <a class="el" href="a06566.html#l00326">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::computeTCBKey()</a>.
+<p>
+<div class="fragment"><pre>00138 {
+00139 <span class="keywordtype">float</span> fp,fn;
+00140
+00141 <span class="keywordflow">if</span>(isLoop || (!firstKey &amp;&amp; !endKey))
+00142 {
+00143 <span class="keywordtype">float</span> dtm;
+00144 <span class="comment">// Compute Time deltas.</span>
+00145 <span class="keywordflow">if</span> (firstKey)
+00146 {
+00147 dtm = 0.5f * (rangeDelta + timeAfter - time);
+00148 fp = rangeDelta / dtm;
+00149 fn = (timeAfter - time) / dtm;
+00150 }
+00151 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (endKey)
+00152 {
+00153 dtm = 0.5f * (rangeDelta + time - timeBefore);
+00154 fp = rangeDelta / dtm;
+00155 fn = (time - timeBefore) / dtm;
+00156 }
+00157 <span class="keywordflow">else</span>
+00158 {
+00159 dtm = 0.5f * (timeAfter - timeBefore);
+00160 fp = (time - timeBefore) / dtm;
+00161 fn = (timeAfter - time) / dtm;
+00162 }
+00163 <span class="keywordtype">float</span> c= (<span class="keywordtype">float</span>)fabs( key.Continuity );
+00164 fp = fp + c - c * fp;
+00165 fn = fn + c - c * fn;
+00166 }
+00167 <span class="keywordflow">else</span>
+00168 {
+00169 <span class="comment">// firstkey and lastkey of not loop track.</span>
+00170 fp = 1.0f;
+00171 fn = 1.0f;
+00172 }
+00173
+00174 <span class="comment">// Compute tangents factors.</span>
+00175 <span class="keywordtype">float</span> tm,cm,cp,bm,bp,tmcm,tmcp;
+00176
+00177 cm = 1.0f - key.Continuity;
+00178 tm = 0.5f * ( 1.0f - key.Tension );
+00179 cp = 2.0f - cm;
+00180 bm = 1.0f - key.Bias;
+00181 bp = 2.0f - bm;
+00182 tmcm = tm*cm; tmcp = tm*cp;
+00183
+00184 <span class="comment">// tgts factors.</span>
+00185 ksm = tmcm*bp*fp; ksp = tmcp*bm*fp;
+00186 kdm = tmcp*bp*fn; kdp = tmcm*bm*fn;
+00187
+00188 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCBd5" doxytag="CTrackKeyFramerTCB::computeTCBKey" ></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" colspan="4">
+template&lt;class CKeyT, class T&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> void <a class="el" href="a03581.html">CTrackKeyFramerTCB</a>&lt; CKeyT, T &gt;::computeTCBKey </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">CKeyT &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>keyBefore</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>CKeyT &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>key</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>CKeyT &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>keyAfter</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>timeBefore</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>time</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>timeAfter</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>rangeDelta</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>firstKey</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>endKey</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>isLoop</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00326">326</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+References <a class="el" href="a06566.html#l00136">CTCBTools&lt; CKeyT, T, TMapTimeCKey &gt;::computeTCBFactors()</a>.
+<p>
+Referenced by <a class="el" href="a06566.html#l00430">CTrackKeyFramerTCB&lt; CKeyTCBQuat, NLMISC::CAngleAxis &gt;::compile()</a>, and <a class="el" href="a06566.html#l00253">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::compile()</a>.
+<p>
+<div class="fragment"><pre>00328 {
+00329 <span class="keywordtype">float</span> ksm,ksp,kdm,kdp;
+00330
+00331 <span class="comment">// compute tangents factors.</span>
+00332 <a class="code" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d2">computeTCBFactors</a>(key, timeBefore, time, timeAfter, rangeDelta, firstKey, endKey, isLoop, ksm,ksp,kdm,kdp);
+00333
+00334 <span class="comment">// Delta.</span>
+00335 <a class="code" href="a03581.html#CTrackKeyFramerTCBx0">TKeyValueType</a> delm, delp;
+00336 delm = key.Value - keyBefore.Value;
+00337 delp = keyAfter.Value - key.Value;
+00338
+00339 <span class="comment">// Tangents.</span>
+00340 key.TanTo = delm*ksm + delp*ksp;
+00341 key.TanFrom= delm*kdm + delp*kdp;
+00342
+00343 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCBd6" doxytag="CTrackKeyFramerTCB::computeTCBKeyLinear" ></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" colspan="4">
+template&lt;class CKeyT, class T&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> void <a class="el" href="a03581.html">CTrackKeyFramerTCB</a>&lt; CKeyT, T &gt;::computeTCBKeyLinear </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">CKeyT &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>key0</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>CKeyT &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>key1</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00346">346</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+Referenced by <a class="el" href="a06566.html#l00253">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::compile()</a>.
+<p>
+<div class="fragment"><pre>00347 {
+00348 <span class="keywordtype">float</span> f0, f1;
+00349 <a class="code" href="a03581.html#CTrackKeyFramerTCBx0">TKeyValueType</a> dv;
+00350
+00351 f0 = 1.0f - key0.Tension;
+00352 f1 = 1.0f - key1.Tension;
+00353 dv = key1.Value - key0.Value;
+00354 key0.TanFrom= dv * f0;
+00355 key1.TanTo= dv * f1;
+00356 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d4" doxytag="CTrackKeyFramerTCB::ease" ></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" colspan="4">
+template&lt;class CKeyT, class T, class TMapTimeCKey&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> float <a class="el" href="a03471.html">CTCBTools</a>&lt; CKeyT, T, TMapTimeCKey &gt;::ease </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const CKeyT *&nbsp;</td>
+ <td class="mdname" nowrap> <em>key</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>d</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, protected, inherited]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00103">103</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+Referenced by <a class="el" href="a06566.html#l00401">CTrackKeyFramerTCB&lt; CKeyTCBQuat, NLMISC::CAngleAxis &gt;::evalKey()</a>, and <a class="el" href="a06566.html#l00223">CTrackKeyFramerTCB&lt; CKeyT, T &gt;::evalKey()</a>.
+<p>
+<div class="fragment"><pre>00104 {
+00105 <span class="keywordflow">if</span> (d==0.0f || d==1.0f) <span class="keywordflow">return</span> d;
+00106 <span class="comment">// k==0.5f &lt;=&gt; e0+e1 == 0.</span>
+00107 <span class="keywordflow">if</span> (key-&gt;EaseK == 0.5f) <span class="keywordflow">return</span> d;
+00108
+00109 <span class="keywordflow">if</span> (d &lt; key-&gt;Ease0)
+00110 <span class="keywordflow">return</span> key-&gt;EaseKOverEase0 * d*d;
+00111 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (d &lt; 1.0f - key-&gt;Ease1)
+00112 <span class="keywordflow">return</span> key-&gt;EaseK * (2.0f*d - key-&gt;Ease0);
+00113 <span class="keywordflow">else</span>
+00114 {
+00115 d = 1.0f - d;
+00116 <span class="keywordflow">return</span> 1.0f - key-&gt;EaseKOverEase1 * d*d;
+00117 }
+00118 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCBz1013_1" doxytag="CTrackKeyFramerTCB::evalKey" ></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" colspan="4">
+template&lt;class CKeyT, class T&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> virtual void <a class="el" href="a03581.html">CTrackKeyFramerTCB</a>&lt; CKeyT, T &gt;::evalKey </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const CKeyT *&nbsp;</td>
+ <td class="mdname" nowrap> <em>previous</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const CKeyT *&nbsp;</td>
+ <td class="mdname" nowrap> <em>next</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>TAnimationTime&nbsp;</td>
+ <td class="mdname" nowrap> <em>datePrevious</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>TAnimationTime&nbsp;</td>
+ <td class="mdname" nowrap> <em>dateNext</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>TAnimationTime&nbsp;</td>
+ <td class="mdname" nowrap> <em>date</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, protected, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+evalKey (runtime).
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00223">223</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+References <a class="el" href="a05587.html#l00115">NLMISC::clamp()</a>, <a class="el" href="a06566.html#l00121">CTCBTools&lt; CKeyT, T, TMapTimeCKey &gt;::computeHermiteBasis()</a>, and <a class="el" href="a06566.html#l00103">CTCBTools&lt; CKeyT, T, TMapTimeCKey &gt;::ease()</a>.
+<p>
+<div class="fragment"><pre>00226 {
+00227 <span class="keywordflow">if</span>(previous &amp;&amp; next)
+00228 {
+00229 <span class="comment">// lerp from previous to cur.</span>
+00230 date-= datePrevious;
+00231 date*= previous-&gt;OODeltaTime;
+00232 <a class="code" href="a05378.html#a374">NLMISC::clamp</a>(date, 0,1);
+00233
+00234 date = <a class="code" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d4">ease</a>(previous, date);
+00235
+00236 <span class="keywordtype">float</span> hb[4];
+00237 <a class="code" href="a03471.html#CTrackKeyFramerTCB_3_01CKeyTCBQuat_00_01NLMISC_1_1CAngleAxis_01_4d1">computeHermiteBasis</a>(date, hb);
+00238 <a class="code" href="a05363.html#a540">copyToValue</a>(<a class="code" href="a03581.html#CTrackKeyFramerTCBr0">_Value</a>.Value,
+00239 previous-&gt;Value*hb[0] + next-&gt;Value*hb[1] +
+00240 previous-&gt;TanFrom*hb[2] + next-&gt;TanTo*hb[3]);
+00241 }
+00242 <span class="keywordflow">else</span>
+00243 {
+00244 <span class="keywordflow">if</span> (previous)
+00245 <a class="code" href="a05363.html#a540">copyToValue</a>(<a class="code" href="a03581.html#CTrackKeyFramerTCBr0">_Value</a>.Value, previous-&gt;Value);
+00246 <span class="keywordflow">else</span>
+00247 <span class="keywordflow">if</span> (next)
+00248 <a class="code" href="a05363.html#a540">copyToValue</a>(<a class="code" href="a03581.html#CTrackKeyFramerTCBr0">_Value</a>.Value, next-&gt;Value);
+00249 }
+00250 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="CTrackKeyFramerTCBa0" doxytag="CTrackKeyFramerTCB::getValue" ></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" colspan="4">
+template&lt;class CKeyT, class T&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> virtual const IAnimatedValue&amp; <a class="el" href="a03581.html">CTrackKeyFramerTCB</a>&lt; CKeyT, T &gt;::getValue </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</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>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+From ITrack.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00207">207</a> of file <a class="el" href="a06566.html">track_tcb.h</a>.
+<p>
+<div class="fragment"><pre>00208 {
+00209 <span class="keywordflow">return</span> <a class="code" href="a03581.html#CTrackKeyFramerTCBr0">_Value</a>;
+00210 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="CTrackKeyFramerTCBr0" doxytag="CTrackKeyFramerTCB::_Value" ></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" colspan="4">
+template&lt;class CKeyT, class T&gt; </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap valign="top"> CAnimatedValueBlendable&lt;T&gt; <a class="el" href="a03581.html">CTrackKeyFramerTCB</a>&lt; CKeyT, T &gt;::<a class="el" href="a03581.html#CTrackKeyFramerTCBr0">_Value</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06566.html#l00322">322</a> of file <a class="el" href="a06566.html">track_tcb.h</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following file:<ul>
+<li><a class="el" href="a06566.html">track_tcb.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:43:54 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>