diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/classNL3D_1_1CAnimationOptimizer.html | 1197 |
1 files changed, 1197 insertions, 0 deletions
diff --git a/docs/doxygen/nel/classNL3D_1_1CAnimationOptimizer.html b/docs/doxygen/nel/classNL3D_1_1CAnimationOptimizer.html new file mode 100644 index 00000000..a34dd132 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CAnimationOptimizer.html @@ -0,0 +1,1197 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.14 --> +<center> +<a class="qindex" href="index.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">Compound List</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">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>NL3D::CAnimationOptimizer Class Reference</h1>Purpose of this class is to optimize for memory and speed a <a class="el" href="classNL3D_1_1CAnimation.html">CAnimation</a>. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>></code> +<p> +<a href="classNL3D_1_1CAnimationOptimizer-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> +<tr><td colspan=2><br><h2>Public Methods</h2></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a0">CAnimationOptimizer</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Constructor.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a1">setQuaternionThreshold</a> (double lowPrecThre, double highPrecThre)</td></tr> +<tr><td> </td><td><font size=-1><em>Set the Quaternion Error Thresholds.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a2">setVectorThreshold</a> (double lowPrecThre, double highPrecThre)</td></tr> +<tr><td> </td><td><font size=-1><em>Same principle as for <a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a1">setQuaternionThreshold</a>(), but for vector tracks (positions/scale).</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a3">addLowPrecisionTrack</a> (const std::string &name)</td></tr> +<tr><td> </td><td><font size=-1><em>see <a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a1">setQuaternionThreshold</a>().</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a4">clearLowPrecisionTracks</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>see addLowPrecisionTrack. This clear the array.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a5">setSampleFrameRate</a> (float frameRate)</td></tr> +<tr><td> </td><td><font size=-1><em>Set the Sample Frame Rate (>0) Default is 30 fps.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a6">optimize</a> (const <a class="el" href="classNL3D_1_1CAnimation.html">CAnimation</a> &animIn, <a class="el" href="classNL3D_1_1CAnimation.html">CAnimation</a> &animOut)</td></tr> +<tr><td> </td><td><font size=-1><em>optimize an animation animOut is the same as animIn, but optimized.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Methods</h2></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> * </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#c0">cloneTrack</a> (const <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> *trackIn)</td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#c1">isTrackOptimisable</a> (const <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> *trackIn)</td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> * </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#c2">optimizeTrack</a> (const <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> *trackIn)</td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#c3">isLowPrecisionTrack</a> (const std::string &trackName)</td></tr> +<tr><td colspan="2"><div class="groupHeader"></div></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#z379_0">sampleQuatTrack</a> (const <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> *trackIn, float beginTime, float endTime, <a class="el" href="memory__common_8h.html#a15">uint</a> numSamples)</td></tr> +<tr><td> </td><td><font size=-1><em>sample the track from beginTime to endTime, sample to numSamples, such that key[0].Time==beginTime and key[numSamples-1].Time==endTime.</em> <a href="#z379_0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#z379_1">testConstantQuatTrack</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Test if the current track is constant (ie always same quaternion value) NB: test if q==qRef or q==-qRef of course.</em> <a href="#z379_1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#z379_2">optimizeQuatTrack</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>optimze the current track.</em> <a href="#z379_2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#z379_3">nearlySameQuaternion</a> (const CQuatD &quat0, const CQuatD &quat1)</td></tr> +<tr><td> </td><td><font size=-1><em>return true if suppose same quaternion.</em> <a href="#z379_3">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader"></div></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#z380_0">sampleVectorTrack</a> (const <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> *trackIn, float beginTime, float endTime, <a class="el" href="memory__common_8h.html#a15">uint</a> numSamples)</td></tr> +<tr><td> </td><td><font size=-1><em>sample the track from beginTime to endTime, sample to numSamples, such that key[0].Time==beginTime and key[numSamples-1].Time==endTime.</em> <a href="#z380_0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#z380_1">testConstantVectorTrack</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Test if the current track is constant (ie always same Vector value).</em> <a href="#z380_1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#z380_2">optimizeVectorTrack</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>optimze the current track.</em> <a href="#z380_2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#z380_3">nearlySameVector</a> (const CVectorD &v0, const CVectorD &v1)</td></tr> +<tr><td> </td><td><font size=-1><em>return true if suppose same vector.</em> <a href="#z380_3">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o0">_SampleFrameRate</a></td></tr> +<tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o1">_QuaternionThresholdLowPrec</a></td></tr> +<tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o2">_QuaternionThresholdHighPrec</a></td></tr> +<tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o3">_QuaternionThreshold</a></td></tr> +<tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o4">_VectorThresholdLowPrec</a></td></tr> +<tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o5">_VectorThresholdHighPrec</a></td></tr> +<tr><td nowrap align=right valign=top>double </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o6">_VectorThreshold</a></td></tr> +<tr><td nowrap align=right valign=top>std::vector< std::string > </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o7">_LowPrecTrackKeyName</a></td></tr> +<tr><td nowrap align=right valign=top>std::vector< <a class="el" href="memory__common_8h.html#a9">uint16</a> > </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o8">_TimeList</a></td></tr> +<tr><td nowrap align=right valign=top>std::vector< CQuat > </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o9">_QuatKeyList</a></td></tr> +<tr><td nowrap align=right valign=top>std::vector< CVector > </td><td valign=bottom><a class="el" href="classNL3D_1_1CAnimationOptimizer.html#o10">_VectorKeyList</a></td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +Purpose of this class is to optimize for memory and speed a <a class="el" href="classNL3D_1_1CAnimation.html">CAnimation</a>. +<p> +Quaternion tracks are optimized. They are transformed to <a class="el" href="classNL3D_1_1CTrackSampledQuat.html">CTrackSampledQuat</a> or <a class="el" href="classNL3D_1_1CTrackDefaultQuat.html">CTrackDefaultQuat</a>. Vector tracks are optimized. They are transformed to <a class="el" href="classNL3D_1_1CTrackSampledVector.html">CTrackSampledVector</a> or <a class="el" href="classNL3D_1_1CTrackDefaultVector.html">CTrackDefaultVector</a>. <dl compact><dt><b> +Author: </b><dd> +Lionel Berenguier , Nevrax France </dl><dl compact><dt><b> +Date: </b><dd> +2002 </dl> +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8h-source.html#l00054">54</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +<a name="a0" doxytag="NL3D::CAnimationOptimizer::CAnimationOptimizer"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NL3D::CAnimationOptimizer::CAnimationOptimizer </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> +Constructor. +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00047">47</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00108">_QuaternionThresholdHighPrec</a>, <a class="el" href="animation__optimizer_8h-source.html#l00107">_QuaternionThresholdLowPrec</a>, <a class="el" href="animation__optimizer_8h-source.html#l00106">_SampleFrameRate</a>, <a class="el" href="animation__optimizer_8h-source.html#l00111">_VectorThresholdHighPrec</a>, and <a class="el" href="animation__optimizer_8h-source.html#l00110">_VectorThresholdLowPrec</a>. </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a name="a3" doxytag="NL3D::CAnimationOptimizer::addLowPrecisionTrack"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationOptimizer::addLowPrecisionTrack </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></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +see <a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a1">setQuaternionThreshold</a>(). +<p> +Any track which contains this name will be considered as a Low precision track. Default setup is empty, so all track are "high precision" track. A good setup is for example addLowPrecisionTrack("Finger") and addLowPrecisionTrack("Ponytail") Warning: case sensitive +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00599">599</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00116">_LowPrecTrackKeyName</a>. </td> + </tr> +</table> +<a name="a4" doxytag="NL3D::CAnimationOptimizer::clearLowPrecisionTracks"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationOptimizer::clearLowPrecisionTracks </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> +see addLowPrecisionTrack. This clear the array. +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00605">605</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00116">_LowPrecTrackKeyName</a>. </td> + </tr> +</table> +<a name="c0" doxytag="NL3D::CAnimationOptimizer::cloneTrack"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> * NL3D::CAnimationOptimizer::cloneTrack </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>trackIn</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00138">138</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00086">optimize</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>. </td> + </tr> +</table> +<a name="c3" doxytag="NL3D::CAnimationOptimizer::isLowPrecisionTrack"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NL3D::CAnimationOptimizer::isLowPrecisionTrack </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>trackName</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00611">611</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00116">_LowPrecTrackKeyName</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00086">optimize</a>. </td> + </tr> +</table> +<a name="c1" doxytag="NL3D::CAnimationOptimizer::isTrackOptimisable"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NL3D::CAnimationOptimizer::isTrackOptimisable </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>trackIn</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00156">156</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00086">optimize</a>. </td> + </tr> +</table> +<a name="z379_3" doxytag="NL3D::CAnimationOptimizer::nearlySameQuaternion"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NL3D::CAnimationOptimizer::nearlySameQuaternion </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const CQuatD & </td> + <td class="mdname" nowrap> <em>quat0</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const CQuatD & </td> + <td class="mdname" nowrap> <em>quat1</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +return true if suppose same quaternion. +<p> +NB: quaternion must be normalized. NB: test if quat1==quat0 or quat1==-quat0 of course. +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00423">423</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00109">_QuaternionThreshold</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00341">optimizeQuatTrack</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00321">testConstantQuatTrack</a>. </td> + </tr> +</table> +<a name="z380_3" doxytag="NL3D::CAnimationOptimizer::nearlySameVector"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NL3D::CAnimationOptimizer::nearlySameVector </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const CVectorD & </td> + <td class="mdname" nowrap> <em>v0</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const CVectorD & </td> + <td class="mdname" nowrap> <em>v1</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +return true if suppose same vector. +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00576">576</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00112">_VectorThreshold</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00499">optimizeVectorTrack</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00479">testConstantVectorTrack</a>. </td> + </tr> +</table> +<a name="a6" doxytag="NL3D::CAnimationOptimizer::optimize"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationOptimizer::optimize </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="classNL3D_1_1CAnimation.html">CAnimation</a> & </td> + <td class="mdname" nowrap> <em>animIn</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNL3D_1_1CAnimation.html">CAnimation</a> & </td> + <td class="mdname" nowrap> <em>animOut</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> +optimize an animation animOut is the same as animIn, but optimized. +<p> +If a track can't be optimized, it is just duplicated in animOut. +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00086">86</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00109">_QuaternionThreshold</a>, <a class="el" href="animation__optimizer_8h-source.html#l00108">_QuaternionThresholdHighPrec</a>, <a class="el" href="animation__optimizer_8h-source.html#l00107">_QuaternionThresholdLowPrec</a>, <a class="el" href="animation__optimizer_8h-source.html#l00112">_VectorThreshold</a>, <a class="el" href="animation__optimizer_8h-source.html#l00111">_VectorThresholdHighPrec</a>, <a class="el" href="animation__optimizer_8h-source.html#l00110">_VectorThresholdLowPrec</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00138">cloneTrack</a>, <a class="el" href="common_8h-source.html#l00177">NLMISC::contReset</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00611">isLowPrecisionTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00156">isTrackOptimisable</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>. </td> + </tr> +</table> +<a name="z379_2" doxytag="NL3D::CAnimationOptimizer::optimizeQuatTrack"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationOptimizer::optimizeQuatTrack </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> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +optimze the current track. +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00341">341</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00120">_QuatKeyList</a>, <a class="el" href="animation__optimizer_8h-source.html#l00119">_TimeList</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00423">nearlySameQuaternion</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00681">t</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>. </td> + </tr> +</table> +<a name="c2" doxytag="NL3D::CAnimationOptimizer::optimizeTrack"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> * NL3D::CAnimationOptimizer::optimizeTrack </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>trackIn</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00177">177</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00120">_QuatKeyList</a>, <a class="el" href="animation__optimizer_8h-source.html#l00106">_SampleFrameRate</a>, <a class="el" href="animation__optimizer_8h-source.html#l00119">_TimeList</a>, <a class="el" href="animation__optimizer_8h-source.html#l00123">_VectorKeyList</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00138">cloneTrack</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, <a class="el" href="debug_8h-source.html#l00374">nlstop</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00341">optimizeQuatTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00499">optimizeVectorTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00282">sampleQuatTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00449">sampleVectorTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00321">testConstantQuatTrack</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00479">testConstantVectorTrack</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00086">optimize</a>. </td> + </tr> +</table> +<a name="z380_2" doxytag="NL3D::CAnimationOptimizer::optimizeVectorTrack"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationOptimizer::optimizeVectorTrack </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> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +optimze the current track. +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00499">499</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00119">_TimeList</a>, <a class="el" href="animation__optimizer_8h-source.html#l00123">_VectorKeyList</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00576">nearlySameVector</a>, <a class="el" href="debug_8h-source.html#l00254">nlassert</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00681">t</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>. </td> + </tr> +</table> +<a name="z379_0" doxytag="NL3D::CAnimationOptimizer::sampleQuatTrack"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationOptimizer::sampleQuatTrack </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> * </td> + <td class="mdname" nowrap> <em>trackIn</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>beginTime</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>endTime</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>numSamples</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +sample the track from beginTime to endTime, sample to numSamples, such that key[0].Time==beginTime and key[numSamples-1].Time==endTime. +<p> +NB: quaternion are normalized, and are makeClosest()-ed from sample to the next. +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00282">282</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00120">_QuatKeyList</a>, <a class="el" href="animation__optimizer_8h-source.html#l00119">_TimeList</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00681">t</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>. </td> + </tr> +</table> +<a name="z380_0" doxytag="NL3D::CAnimationOptimizer::sampleVectorTrack"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationOptimizer::sampleVectorTrack </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="classNL3D_1_1ITrack.html">ITrack</a> * </td> + <td class="mdname" nowrap> <em>trackIn</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>beginTime</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>endTime</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a15">uint</a> </td> + <td class="mdname" nowrap> <em>numSamples</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +sample the track from beginTime to endTime, sample to numSamples, such that key[0].Time==beginTime and key[numSamples-1].Time==endTime. +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00449">449</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00119">_TimeList</a>, <a class="el" href="animation__optimizer_8h-source.html#l00123">_VectorKeyList</a>, and <a class="el" href="driver__opengl__extension__def_8h-source.html#l00681">t</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>. </td> + </tr> +</table> +<a name="a1" doxytag="NL3D::CAnimationOptimizer::setQuaternionThreshold"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationOptimizer::setQuaternionThreshold </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">double </td> + <td class="mdname" nowrap> <em>lowPrecThre</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>double </td> + <td class="mdname" nowrap> <em>highPrecThre</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> +Set the Quaternion Error Thresholds. +<p> +must be>=0. Default is 0.0001 and 0.000001. Above this value, 2 quaternions are said different. NB: comparing 2 quaternions is made by multiplying the one with the inverse of the other. the W component is then tested and must be >1-threshold (modulo sign) to conclude to equality. Since quat.W= cos(angle/2), you can deduce the angle threshold with angleThre= acos(1-thre)*2 +<p> +Give 2 value, one For Low precision and High precision. Default setup use high precision. Use <a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a3">addLowPrecisionTrack</a>() to drive low precision tracks. +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00058">58</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00108">_QuaternionThresholdHighPrec</a>, <a class="el" href="animation__optimizer_8h-source.html#l00107">_QuaternionThresholdLowPrec</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td> + </tr> +</table> +<a name="a5" doxytag="NL3D::CAnimationOptimizer::setSampleFrameRate"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationOptimizer::setSampleFrameRate </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>frameRate</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 the Sample Frame Rate (>0) Default is 30 fps. +<p> +NB: final numSamples must be <65535, else assert at <a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a6">optimize</a>() time. +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00078">78</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00106">_SampleFrameRate</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td> + </tr> +</table> +<a name="a2" doxytag="NL3D::CAnimationOptimizer::setVectorThreshold"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CAnimationOptimizer::setVectorThreshold </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">double </td> + <td class="mdname" nowrap> <em>lowPrecThre</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>double </td> + <td class="mdname" nowrap> <em>highPrecThre</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> +Same principle as for <a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a1">setQuaternionThreshold</a>(), but for vector tracks (positions/scale). +<p> +Default is 0.001 and 0.0001. Above this value, 2 vectors are said different. NB: comparing 2 vectors is made by geting the norm of the difference +<p> +Give 2 value, one For Low precision and High precision. Default setup use high precision. Use <a class="el" href="classNL3D_1_1CAnimationOptimizer.html#a3">addLowPrecisionTrack</a>() to drive low precision tracks. +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00068">68</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00111">_VectorThresholdHighPrec</a>, <a class="el" href="animation__optimizer_8h-source.html#l00110">_VectorThresholdLowPrec</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td> + </tr> +</table> +<a name="z379_1" doxytag="NL3D::CAnimationOptimizer::testConstantQuatTrack"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NL3D::CAnimationOptimizer::testConstantQuatTrack </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> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Test if the current track is constant (ie always same quaternion value) NB: test if q==qRef or q==-qRef of course. +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00321">321</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00120">_QuatKeyList</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00423">nearlySameQuaternion</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>. </td> + </tr> +</table> +<a name="z380_1" doxytag="NL3D::CAnimationOptimizer::testConstantVectorTrack"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NL3D::CAnimationOptimizer::testConstantVectorTrack </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> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Test if the current track is constant (ie always same Vector value). +<p> + +<p> +Definition at line <a class="el" href="animation__optimizer_8cpp-source.html#l00479">479</a> of file <a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a>. +<p> +References <a class="el" href="animation__optimizer_8h-source.html#l00123">_VectorKeyList</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00576">nearlySameVector</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>. </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="o7" doxytag="NL3D::CAnimationOptimizer::_LowPrecTrackKeyName"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<std::string> NL3D::CAnimationOptimizer::_LowPrecTrackKeyName<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="animation__optimizer_8h-source.html#l00116">116</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00599">addLowPrecisionTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00605">clearLowPrecisionTracks</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00611">isLowPrecisionTrack</a>. </td> + </tr> +</table> +<a name="o3" doxytag="NL3D::CAnimationOptimizer::_QuaternionThreshold"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> double NL3D::CAnimationOptimizer::_QuaternionThreshold<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="animation__optimizer_8h-source.html#l00109">109</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00423">nearlySameQuaternion</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00086">optimize</a>. </td> + </tr> +</table> +<a name="o2" doxytag="NL3D::CAnimationOptimizer::_QuaternionThresholdHighPrec"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> double NL3D::CAnimationOptimizer::_QuaternionThresholdHighPrec<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="animation__optimizer_8h-source.html#l00108">108</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00047">CAnimationOptimizer</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00086">optimize</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00058">setQuaternionThreshold</a>. </td> + </tr> +</table> +<a name="o1" doxytag="NL3D::CAnimationOptimizer::_QuaternionThresholdLowPrec"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> double NL3D::CAnimationOptimizer::_QuaternionThresholdLowPrec<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="animation__optimizer_8h-source.html#l00107">107</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00047">CAnimationOptimizer</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00086">optimize</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00058">setQuaternionThreshold</a>. </td> + </tr> +</table> +<a name="o9" doxytag="NL3D::CAnimationOptimizer::_QuatKeyList"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<CQuat> NL3D::CAnimationOptimizer::_QuatKeyList<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="animation__optimizer_8h-source.html#l00120">120</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00341">optimizeQuatTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00282">sampleQuatTrack</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00321">testConstantQuatTrack</a>. </td> + </tr> +</table> +<a name="o0" doxytag="NL3D::CAnimationOptimizer::_SampleFrameRate"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CAnimationOptimizer::_SampleFrameRate<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="animation__optimizer_8h-source.html#l00106">106</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00047">CAnimationOptimizer</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00078">setSampleFrameRate</a>. </td> + </tr> +</table> +<a name="o8" doxytag="NL3D::CAnimationOptimizer::_TimeList"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="memory__common_8h.html#a9">uint16</a>> NL3D::CAnimationOptimizer::_TimeList<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="animation__optimizer_8h-source.html#l00119">119</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00341">optimizeQuatTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00499">optimizeVectorTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00282">sampleQuatTrack</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00449">sampleVectorTrack</a>. </td> + </tr> +</table> +<a name="o10" doxytag="NL3D::CAnimationOptimizer::_VectorKeyList"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<CVector> NL3D::CAnimationOptimizer::_VectorKeyList<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="animation__optimizer_8h-source.html#l00123">123</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00177">optimizeTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00499">optimizeVectorTrack</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00449">sampleVectorTrack</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00479">testConstantVectorTrack</a>. </td> + </tr> +</table> +<a name="o6" doxytag="NL3D::CAnimationOptimizer::_VectorThreshold"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> double NL3D::CAnimationOptimizer::_VectorThreshold<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="animation__optimizer_8h-source.html#l00112">112</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00576">nearlySameVector</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00086">optimize</a>. </td> + </tr> +</table> +<a name="o5" doxytag="NL3D::CAnimationOptimizer::_VectorThresholdHighPrec"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> double NL3D::CAnimationOptimizer::_VectorThresholdHighPrec<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="animation__optimizer_8h-source.html#l00111">111</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00047">CAnimationOptimizer</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00086">optimize</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00068">setVectorThreshold</a>. </td> + </tr> +</table> +<a name="o4" doxytag="NL3D::CAnimationOptimizer::_VectorThresholdLowPrec"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> double NL3D::CAnimationOptimizer::_VectorThresholdLowPrec<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="animation__optimizer_8h-source.html#l00110">110</a> of file <a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a>. +<p> +Referenced by <a class="el" href="animation__optimizer_8cpp-source.html#l00047">CAnimationOptimizer</a>, <a class="el" href="animation__optimizer_8cpp-source.html#l00086">optimize</a>, and <a class="el" href="animation__optimizer_8cpp-source.html#l00068">setVectorThreshold</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="animation__optimizer_8h-source.html">animation_optimizer.h</a><li><a class="el" href="animation__optimizer_8cpp-source.html">animation_optimizer.cpp</a></ul> + + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |