aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/transformable_8h-source.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/transformable_8h-source.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/transformable_8h-source.html358
1 files changed, 358 insertions, 0 deletions
diff --git a/docs/doxygen/nel/transformable_8h-source.html b/docs/doxygen/nel/transformable_8h-source.html
new file mode 100644
index 00000000..c43c53de
--- /dev/null
+++ b/docs/doxygen/nel/transformable_8h-source.html
@@ -0,0 +1,358 @@
+<!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>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</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>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</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>
+&nbsp;
+
+<!-- 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>&nbsp;</td>
+</tr></table>
+<!-- Generated by Doxygen 1.2.14 -->
+<center>
+<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <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> &nbsp; </center>
+<hr><h1>transformable.h</h1><a href="transformable_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
+00007 <font class="comment">/* Copyright, 2001 Nevrax Ltd.</font>
+00008 <font class="comment"> *</font>
+00009 <font class="comment"> * This file is part of NEVRAX NEL.</font>
+00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font>
+00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
+00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font>
+00013 <font class="comment"> * any later version.</font>
+00014 <font class="comment"></font>
+00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font>
+00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
+00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>
+00018 <font class="comment"> * General Public License for more details.</font>
+00019 <font class="comment"></font>
+00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
+00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font>
+00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font>
+00023 <font class="comment"> * MA 02111-1307, USA.</font>
+00024 <font class="comment"> */</font>
+00025
+00026 <font class="preprocessor">#ifndef NL_TRANSFORMABLE_H</font>
+00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_TRANSFORMABLE_H</font>
+00028 <font class="preprocessor"></font>
+00029 <font class="preprocessor">#include "<a class="code" href="types__nl_8h.html">nel/misc/types_nl.h</a>"</font>
+00030 <font class="preprocessor">#include "<a class="code" href="matrix_8h.html">nel/misc/matrix.h</a>"</font>
+00031 <font class="preprocessor">#include "<a class="code" href="quat_8h.html">nel/misc/quat.h</a>"</font>
+00032 <font class="preprocessor">#include "<a class="code" href="animatable_8h.html">3d/animatable.h</a>"</font>
+00033 <font class="preprocessor">#include "<a class="code" href="animated__value_8h.html">3d/animated_value.h</a>"</font>
+00034 <font class="preprocessor">#include "<a class="code" href="track_8h.html">3d/track.h</a>"</font>
+00035
+00036
+00037 <font class="keyword">namespace </font>NL3D
+00038 {
+00039
+00040 <font class="keyword">class </font>CChannelMixer;
+00041
+00042 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a>;
+00043 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>;
+00044 <font class="keyword">using</font> <a class="code" href="classNLMISC_1_1CQuat.html">NLMISC::CQuat</a>;
+00045
+00046
+<a name="l00054"></a><a class="code" href="classNL3D_1_1ITransformable.html">00054</a> <font class="keyword">class </font>ITransformable : <font class="keyword">public</font> IAnimatable
+00055 {
+00056 <font class="keyword">public</font>:
+00057
+<a name="l00058"></a><a class="code" href="classNL3D_1_1ITransformable.html#s11">00058</a> <font class="keyword">enum</font> <a class="code" href="classNL3D_1_1ITransformable.html#s11">TTransformMode</a>
+00059 {
+00060 <a class="code" href="classNL3D_1_1ITransformable.html#s11s0">DirectMatrix</a>=0, <font class="comment">// DirectMatrixMode.</font>
+00061 <a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a>, <font class="comment">// Matrix is computed from sperated composantes, with euler rotation.</font>
+00062 <a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>, <font class="comment">// Matrix is computed from sperated composantes, with quat rotation (default).</font>
+00063
+00064 <a class="code" href="classNL3D_1_1ITransformable.html#s11s3">TransformModeCount</a>
+00065 };
+00066
+00067
+00068 <font class="keyword">public</font>:
+00069
+00071 <a class="code" href="classNL3D_1_1ITransformable.html#a0">ITransformable</a>();
+<a name="l00072"></a><a class="code" href="classNL3D_1_1ITransformable.html#a1">00072</a> <font class="keyword">virtual</font> <a class="code" href="classNL3D_1_1ITransformable.html#a1">~ITransformable</a>() {}
+00073
+00074
+<a name="l00076"></a><a class="code" href="classNL3D_1_1ITransformable.html#a2">00076</a> <font class="keyword">const</font> CMatrix &amp;<a class="code" href="classNL3D_1_1ITransformable.html#a2">getMatrix</a>()<font class="keyword"> const </font>{<a class="code" href="classNL3D_1_1ITransformable.html#c1">updateMatrix</a>(); <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1ITransformable.html#o0">_LocalMatrix</a>;}
+00077
+00078
+<a name="l00082"></a><a class="code" href="classNL3D_1_1ITransformable.html#a3">00082</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1ITransformable.html#a3">compareMatrixDate</a>(uint64 callerDate)<font class="keyword"> const</font>
+00083 <font class="keyword"> </font>{
+00084 <font class="keywordflow">return</font> callerDate&lt;<a class="code" href="classNL3D_1_1ITransformable.html#o3">_LocalMatrixDate</a> || <a class="code" href="classNL3D_1_1ITransformable.html#c2">needCompute</a>();
+00085 }
+00086
+00087
+<a name="l00090"></a><a class="code" href="classNL3D_1_1ITransformable.html#a4">00090</a> uint64 <a class="code" href="classNL3D_1_1ITransformable.html#a4">getMatrixDate</a>()<font class="keyword"> const</font>
+00091 <font class="keyword"> </font>{
+00092 <a class="code" href="classNL3D_1_1ITransformable.html#c1">updateMatrix</a>();
+00093 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1ITransformable.html#o3">_LocalMatrixDate</a>;
+00094 }
+00095
+00096
+00098
+00099
+<a name="l00100"></a><a class="code" href="classNL3D_1_1ITransformable.html#z868_0">00100</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z868_0">setTransformMode</a>(<a class="code" href="classNL3D_1_1ITransformable.html#s11">TTransformMode</a> mode, CMatrix::TRotOrder ro= CMatrix::ZXY)
+00101 {
+00102 <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>= mode;
+00103 <a class="code" href="classNL3D_1_1ITransformable.html#o2">_RotOrder</a>= ro;
+00104 <font class="comment">// just for information.</font>
+00105 <a class="code" href="classNL3D_1_1IAnimatable.html#z368_1">touch</a>(<a class="code" href="classNL3D_1_1ITransformable.html#z872_0s5">PosValue</a>, <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s4">OwnerBit</a>);
+00106 }
+00108
+00109
+00111
+00112
+<a name="l00114"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_0">00114</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_0">setPos</a>(<font class="keyword">const</font> CVector &amp;pos)
+00115 {
+00116 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a> || <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00117 <a class="code" href="classNL3D_1_1ITransformable.html#o4">_Pos</a>.Value= pos;
+00118 <a class="code" href="classNL3D_1_1IAnimatable.html#z368_1">touch</a>(<a class="code" href="classNL3D_1_1ITransformable.html#z872_0s5">PosValue</a>, <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s4">OwnerBit</a>);
+00119 }
+<a name="l00121"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_1">00121</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_0">setPos</a>(<font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>)
+00122 {
+00123 <a class="code" href="classNL3D_1_1ITransformable.html#z869_0">setPos</a>(CVector(<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>,<a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>,<a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>));
+00124 }
+<a name="l00126"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_2">00126</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_2">setRotEuler</a>(<font class="keyword">const</font> CVector &amp;rot)
+00127 {
+00128 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a>);
+00129 <a class="code" href="classNL3D_1_1ITransformable.html#o5">_RotEuler</a>.Value= rot;
+00130 <a class="code" href="classNL3D_1_1IAnimatable.html#z368_1">touch</a>(<a class="code" href="classNL3D_1_1ITransformable.html#z872_0s6">RotEulerValue</a>, <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s4">OwnerBit</a>);
+00131 }
+<a name="l00133"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_3">00133</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_2">setRotEuler</a>(<font class="keywordtype">float</font> rotX, <font class="keywordtype">float</font> rotY, <font class="keywordtype">float</font> rotZ)
+00134 {
+00135 <a class="code" href="classNL3D_1_1ITransformable.html#z869_2">setRotEuler</a>(CVector(rotX, rotY, rotZ));
+00136 }
+<a name="l00138"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_4">00138</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_4">setRotQuat</a>(<font class="keyword">const</font> CQuat &amp;quat)
+00139 {
+00140 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00141 <a class="code" href="classNL3D_1_1ITransformable.html#o6">_RotQuat</a>.Value= quat;
+00142 <a class="code" href="classNL3D_1_1IAnimatable.html#z368_1">touch</a>(<a class="code" href="classNL3D_1_1ITransformable.html#z872_0s7">RotQuatValue</a>, <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s4">OwnerBit</a>);
+00143 }
+<a name="l00145"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_5">00145</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_5">setScale</a>(<font class="keyword">const</font> CVector &amp;scale)
+00146 {
+00147 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a> || <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00148 <a class="code" href="classNL3D_1_1ITransformable.html#o7">_Scale</a>.Value= scale;
+00149 <a class="code" href="classNL3D_1_1IAnimatable.html#z368_1">touch</a>(<a class="code" href="classNL3D_1_1ITransformable.html#z872_0s8">ScaleValue</a>, <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s4">OwnerBit</a>);
+00150 }
+<a name="l00152"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_6">00152</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_5">setScale</a>(<font class="keywordtype">float</font> scaleX, <font class="keywordtype">float</font> scaleY, <font class="keywordtype">float</font> scaleZ)
+00153 {
+00154 <a class="code" href="classNL3D_1_1ITransformable.html#z869_5">setScale</a>(CVector(scaleX, scaleY, scaleZ));
+00155 }
+<a name="l00157"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_7">00157</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_5">setScale</a>(<font class="keywordtype">float</font> scale)
+00158 {
+00159 <a class="code" href="classNL3D_1_1ITransformable.html#z869_5">setScale</a>(CVector(scale, scale, scale));
+00160 }
+<a name="l00162"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_8">00162</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_8">setPivot</a>(<font class="keyword">const</font> CVector &amp;pivot)
+00163 {
+00164 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a> || <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00165 <a class="code" href="classNL3D_1_1ITransformable.html#o8">_Pivot</a>.Value= pivot;
+00166 <a class="code" href="classNL3D_1_1IAnimatable.html#z368_1">touch</a>(<a class="code" href="classNL3D_1_1ITransformable.html#z872_0s9">PivotValue</a>, <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s4">OwnerBit</a>);
+00167 }
+<a name="l00169"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_9">00169</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_8">setPivot</a>(<font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>)
+00170 {
+00171 <a class="code" href="classNL3D_1_1ITransformable.html#z869_8">setPivot</a>(CVector(<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a365">y</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a366">z</a>));
+00172 }
+<a name="l00174"></a><a class="code" href="classNL3D_1_1ITransformable.html#z869_10">00174</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z869_10">setMatrix</a>(<font class="keyword">const</font> CMatrix &amp;mat)
+00175 {
+00176 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s0">DirectMatrix</a>);
+00177 <a class="code" href="classNL3D_1_1ITransformable.html#o0">_LocalMatrix</a>= mat;
+00178 <font class="comment">// The matrix has changed.</font>
+00179 <a class="code" href="classNL3D_1_1ITransformable.html#o3">_LocalMatrixDate</a>++;
+00180 }
+00181
+00183
+00184
+00186
+00187
+<a name="l00189"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_0">00189</a> <a class="code" href="classNL3D_1_1ITransformable.html#s11">TTransformMode</a> <a class="code" href="classNL3D_1_1ITransformable.html#z870_0">getTransformMode</a>()
+00190 {
+00191 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>;
+00192 }
+<a name="l00194"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_1">00194</a> CMatrix::TRotOrder <a class="code" href="classNL3D_1_1ITransformable.html#z870_1">getRotOrder</a>()
+00195 {
+00196 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1ITransformable.html#o2">_RotOrder</a>;
+00197 }
+00198
+<a name="l00200"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_2">00200</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z870_7">getPos</a>(CVector &amp;pos)
+00201 {
+00202 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a> || <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00203 pos= <a class="code" href="classNL3D_1_1ITransformable.html#o4">_Pos</a>.Value;
+00204 }
+<a name="l00206"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_3">00206</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z870_8">getRotEuler</a>(CVector &amp;rot)
+00207 {
+00208 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a>);
+00209 rot= <a class="code" href="classNL3D_1_1ITransformable.html#o5">_RotEuler</a>.Value;
+00210 }
+<a name="l00212"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_4">00212</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z870_9">getRotQuat</a>(CQuat &amp;quat)
+00213 {
+00214 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00215 quat= <a class="code" href="classNL3D_1_1ITransformable.html#o6">_RotQuat</a>.Value;
+00216 }
+<a name="l00218"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_5">00218</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z870_10">getScale</a>(CVector &amp;scale)
+00219 {
+00220 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a> || <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00221 scale= <a class="code" href="classNL3D_1_1ITransformable.html#o7">_Scale</a>.Value;
+00222 }
+<a name="l00224"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_6">00224</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z870_11">getPivot</a>(CVector &amp;pivot)
+00225 {
+00226 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a> || <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00227 pivot= <a class="code" href="classNL3D_1_1ITransformable.html#o8">_Pivot</a>.Value;
+00228 }
+00229
+<a name="l00231"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_7">00231</a> CVector <a class="code" href="classNL3D_1_1ITransformable.html#z870_7">getPos</a>()
+00232 {
+00233 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a> || <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00234 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1ITransformable.html#o4">_Pos</a>.Value;
+00235 }
+<a name="l00237"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_8">00237</a> CVector <a class="code" href="classNL3D_1_1ITransformable.html#z870_8">getRotEuler</a>()
+00238 {
+00239 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a>);
+00240 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1ITransformable.html#o5">_RotEuler</a>.Value;
+00241 }
+<a name="l00243"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_9">00243</a> CQuat <a class="code" href="classNL3D_1_1ITransformable.html#z870_9">getRotQuat</a>()
+00244 {
+00245 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00246 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1ITransformable.html#o6">_RotQuat</a>.Value;
+00247 }
+<a name="l00249"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_10">00249</a> CVector <a class="code" href="classNL3D_1_1ITransformable.html#z870_10">getScale</a>()
+00250 {
+00251 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a> || <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00252 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1ITransformable.html#o7">_Scale</a>.Value;
+00253 }
+<a name="l00255"></a><a class="code" href="classNL3D_1_1ITransformable.html#z870_11">00255</a> CVector <a class="code" href="classNL3D_1_1ITransformable.html#z870_11">getPivot</a>()
+00256 {
+00257 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s1">RotEuler</a> || <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>==<a class="code" href="classNL3D_1_1ITransformable.html#s11s2">RotQuat</a>);
+00258 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1ITransformable.html#o8">_Pivot</a>.Value;
+00259 }
+00261
+00262
+00264 <font class="comment">// @{</font>
+00272 <font class="comment"></font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z871_0">lookAt</a> (<font class="keyword">const</font> CVector&amp; eye, <font class="keyword">const</font> CVector&amp; target, <font class="keywordtype">float</font> roll=0.f);
+00273 <font class="comment">// @}</font>
+00274
+00275
+00276
+00278 <font class="comment">// @{</font>
+<a name="l00280"></a><a class="code" href="classNL3D_1_1ITransformable.html#z872_0">00280</a> <font class="comment"> enum TAnimValues</font>
+00281 {
+00282 <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s4">OwnerBit</a>= IAnimatable::AnimValueLast,
+00283 <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s5">PosValue</a>,
+00284 <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s6">RotEulerValue</a>,
+00285 <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s7">RotQuatValue</a>,
+00286 <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s8">ScaleValue</a>,
+00287 <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s9">PivotValue</a>,
+00288 <a class="code" href="classNL3D_1_1ITransformable.html#z872_0s10">AnimValueLast</a>
+00289 };
+00290
+00292 <font class="keyword">virtual</font> IAnimatedValue* <a class="code" href="classNL3D_1_1ITransformable.html#z872_1">getValue</a> (uint valueId);
+00293
+00295 <font class="keyword">virtual</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1ITransformable.html#z872_2">getValueName</a> (uint valueId) <font class="keyword">const</font>;
+00296
+00298 <font class="keyword">virtual</font> ITrack* <a class="code" href="classNL3D_1_1ITransformable.html#z872_3">getDefaultTrack</a> (uint valueId) =0;
+00299
+00301 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#z872_4">registerToChannelMixer</a>(CChannelMixer *chanMixer, <font class="keyword">const</font> std::string &amp;prefix) =0;
+00302
+00303 <font class="comment">// @}</font>
+00304
+00305
+00306 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1ITransformable.html#d0">getPosValueName</a> ();
+00307 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1ITransformable.html#d1">getRotEulerValueName</a>();
+00308 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1ITransformable.html#d2">getRotQuatValueName</a>();
+00309 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1ITransformable.html#d3">getScaleValueName</a>();
+00310 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1ITransformable.html#d4">getPivotValueName</a>();
+00311
+00312
+00313 <font class="keyword">private</font>:
+00314 <font class="comment">// The computed matrix.</font>
+<a name="l00315"></a><a class="code" href="classNL3D_1_1ITransformable.html#o0">00315</a> <font class="keyword">mutable</font> CMatrix <a class="code" href="classNL3D_1_1ITransformable.html#o0">_LocalMatrix</a>;
+<a name="l00316"></a><a class="code" href="classNL3D_1_1ITransformable.html#o1">00316</a> <a class="code" href="classNL3D_1_1ITransformable.html#s11">TTransformMode</a> <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>;
+<a name="l00317"></a><a class="code" href="classNL3D_1_1ITransformable.html#o2">00317</a> CMatrix::TRotOrder <a class="code" href="classNL3D_1_1ITransformable.html#o2">_RotOrder</a>;
+<a name="l00318"></a><a class="code" href="classNL3D_1_1ITransformable.html#o3">00318</a> <font class="keyword">mutable</font> uint64 <a class="code" href="classNL3D_1_1ITransformable.html#o3">_LocalMatrixDate</a>;
+00319
+00320 <font class="comment">// For animation, Pos, rot scale pivot animated values</font>
+<a name="l00321"></a><a class="code" href="classNL3D_1_1ITransformable.html#o4">00321</a> <a class="code" href="namespaceNL3D.html#a14">CAnimatedValueVector</a> <a class="code" href="classNL3D_1_1ITransformable.html#o4">_Pos</a>;
+<a name="l00322"></a><a class="code" href="classNL3D_1_1ITransformable.html#o5">00322</a> <a class="code" href="namespaceNL3D.html#a14">CAnimatedValueVector</a> <a class="code" href="classNL3D_1_1ITransformable.html#o5">_RotEuler</a>;
+<a name="l00323"></a><a class="code" href="classNL3D_1_1ITransformable.html#o6">00323</a> <a class="code" href="namespaceNL3D.html#a16">CAnimatedValueQuat</a> <a class="code" href="classNL3D_1_1ITransformable.html#o6">_RotQuat</a>;
+<a name="l00324"></a><a class="code" href="classNL3D_1_1ITransformable.html#o7">00324</a> <a class="code" href="namespaceNL3D.html#a14">CAnimatedValueVector</a> <a class="code" href="classNL3D_1_1ITransformable.html#o7">_Scale</a>;
+<a name="l00325"></a><a class="code" href="classNL3D_1_1ITransformable.html#o8">00325</a> <a class="code" href="namespaceNL3D.html#a14">CAnimatedValueVector</a> <a class="code" href="classNL3D_1_1ITransformable.html#o8">_Pivot</a>;
+00326
+00327 <font class="comment">// clear transform flags.</font>
+00328 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#c0">clearTransformFlags</a>() <font class="keyword">const</font>;
+00329
+00330 <font class="comment">// compute the matrix.</font>
+00331 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1ITransformable.html#c1">updateMatrix</a>() <font class="keyword">const</font>;
+00332
+<a name="l00334"></a><a class="code" href="classNL3D_1_1ITransformable.html#c2">00334</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1ITransformable.html#c2">needCompute</a>()<font class="keyword"> const</font>
+00335 <font class="keyword"> </font>{
+00336 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1ITransformable.html#o1">_Mode</a>!=<a class="code" href="classNL3D_1_1ITransformable.html#s11s0">DirectMatrix</a> &amp;&amp; <a class="code" href="classNL3D_1_1IAnimatable.html#z368_2">isTouched</a>(<a class="code" href="classNL3D_1_1ITransformable.html#z872_0s4">OwnerBit</a>);
+00337 }
+00338
+00339 };
+00340
+00341
+00342 } <font class="comment">// NL3D</font>
+00343
+00344
+00345 <font class="preprocessor">#endif // NL_TRANSFORMABLE_H</font>
+00346 <font class="preprocessor"></font>
+00347 <font class="comment">/* End of transformable.h */</font>
+</pre></div>
+
+<!-- footer -->
+<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </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>