aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/ps__force_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/ps__force_8h-source.html')
-rw-r--r--docs/doxygen/nel/ps__force_8h-source.html729
1 files changed, 729 insertions, 0 deletions
diff --git a/docs/doxygen/nel/ps__force_8h-source.html b/docs/doxygen/nel/ps__force_8h-source.html
new file mode 100644
index 00000000..71ce27fe
--- /dev/null
+++ b/docs/doxygen/nel/ps__force_8h-source.html
@@ -0,0 +1,729 @@
+<!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>ps_force.h</h1><a href="ps__force_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_PS_FORCE_H</font>
+00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_PS_FORCE_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="ps__located_8h.html">3d/ps_located.h</a>"</font>
+00031 <font class="preprocessor">#include "<a class="code" href="ps__util_8h.html">3d/ps_util.h</a>"</font>
+00032 <font class="preprocessor">#include "<a class="code" href="ps__attrib__maker_8h.html">3d/ps_attrib_maker.h</a>"</font>
+00033 <font class="preprocessor">#include "<a class="code" href="ps__edit_8h.html">3d/ps_edit.h</a>"</font>
+00034 <font class="preprocessor">#include "<a class="code" href="ps__direction_8h.html">3d/ps_direction.h</a>"</font>
+00035 <font class="preprocessor">#include "<a class="code" href="particle__system_8h.html">3d/particle_system.h</a>"</font>
+00036
+00037
+00038 <font class="keyword">namespace </font>NL3D {
+00039
+00040
+00041
+<a name="l00051"></a><a class="code" href="classNL3D_1_1CPSForce.html">00051</a> <font class="keyword">class </font>CPSForce : <font class="keyword">public</font> CPSTargetLocatedBindable
+00052 {
+00053 <font class="keyword">public</font>:
+00054
+00056 <a class="code" href="classNL3D_1_1CPSForce.html#a0">CPSForce</a>();
+00057
+<a name="l00059"></a><a class="code" href="classNL3D_1_1CPSForce.html#a1">00059</a> uint32 <a class="code" href="classNL3D_1_1CPSForce.html#a1">getType</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="namespaceNL3D.html#a202">PSForce</a>; }
+00060
+00061
+00063
+<a name="l00064"></a><a class="code" href="classNL3D_1_1CPSForce.html#a2">00064</a> <font class="keyword">virtual</font> uint32 <a class="code" href="classNL3D_1_1CPSForce.html#a2">getPriority</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> 4000; }
+00065
+<a name="l00067"></a><a class="code" href="classNL3D_1_1CPSForce.html#a3">00067</a> <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPSForce.html#a3">doesProduceBBox</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <font class="keyword">false</font>; }
+00068
+00072 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#a4">step</a>(<a class="code" href="namespaceNL3D.html#a484">TPSProcessPass</a> pass, <a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime, <a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> realEllapsedTime);
+00073
+00074
+00076 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#a5">performDynamic</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime) = 0;
+00077
+00079 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#a6">show</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime) = 0;
+00080
+00082 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#a7">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream);
+00083
+<a name="l00085"></a><a class="code" href="classNL3D_1_1CPSForce.html#a8">00085</a> <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPSForce.html#a8">isIntegrable</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <font class="keyword">false</font>; }
+00086
+00088 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#a9">attachTarget</a>(<a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *ptr);
+00089
+00091 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#a10">releaseTargetRsc</a>(<a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *target);
+00092
+00093
+<a name="l00099"></a><a class="code" href="classNL3D_1_1CPSForce.html#a11">00099</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#a11">integrate</a>(<font class="keywordtype">float</font> date, <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, uint32 startIndex, uint32 numObjects, <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> *destPos = NULL, <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> *destSpeed = NULL,
+00100 <font class="keywordtype">bool</font> accumulate = <font class="keyword">false</font>,
+00101 uint posStride = <font class="keyword">sizeof</font>(<a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>), uint speedStride = <font class="keyword">sizeof</font>(<a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>)
+00102 )
+00103 {
+00104 <a class="code" href="debug_8h.html#a6">nlassert</a>(0); <font class="comment">// not an integrable force</font>
+00105 }
+00106
+00107
+<a name="l00112"></a><a class="code" href="classNL3D_1_1CPSForce.html#a12">00112</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#a12">integrateSingle</a>(<font class="keywordtype">float</font> startDate, <font class="keywordtype">float</font> deltaT, uint numStep,
+00113 <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, uint32 indexInLocated,
+00114 <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> *destPos,
+00115 <font class="keywordtype">bool</font> accumulate = <font class="keyword">false</font>,
+00116 uint posStride = <font class="keyword">sizeof</font>(<a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>))
+00117 {
+00118 <a class="code" href="debug_8h.html#a6">nlassert</a>(0); <font class="comment">// not an integrable force</font>
+00119 }
+00120
+00121
+00122
+00123
+00124
+00125
+00126 <font class="keyword">protected</font>:
+<a name="l00127"></a><a class="code" href="classNL3D_1_1CPSForce.html#l0">00127</a> <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a>;
+<a name="l00128"></a><a class="code" href="classNL3D_1_1CPSForce.html#l1">00128</a> <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNL3D_1_1CPSForce.html#l1">CPSForceIntensity</a>;
+00129
+00131 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#b0">registerToTargets</a>(<font class="keywordtype">void</font>);
+00132
+00134 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#b1">cancelIntegrable</a>(<font class="keywordtype">void</font>);
+00135
+00137 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#b2">renewIntegrable</a>(<font class="keywordtype">void</font>);
+00138
+00142 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#b3">basisChanged</a>(<font class="keywordtype">bool</font> systemBasis);
+00143
+00144 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#b4">newElement</a>(<a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *emitterLocated, uint32 emitterIndex) = 0;
+00145
+00150 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#b5">deleteElement</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) = 0;
+00151
+00155 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForce.html#b6">resize</a>(uint32 size) = 0;
+00156 };
+00157
+00158
+<a name="l00160"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html">00160</a> <font class="keyword">class </font>CPSForceIntensity
+00161 {
+00162 <font class="keyword">public</font>:
+00163
+00164 <font class="comment">// ctor</font>
+<a name="l00165"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html#a0">00165</a> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a0">CPSForceIntensity</a>() : <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>(NULL)
+00166 {
+00167 }
+00168
+00169 <font class="keyword">virtual</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a1">~CPSForceIntensity</a>();
+00170
+00171
+<a name="l00173"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html#a2">00173</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a2">getIntensity</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n0">_K</a>; }
+00174
+00176 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a3">setIntensity</a>(<font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>);
+00177
+00179 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a4">setIntensityScheme</a>(CPSAttribMaker&lt;float&gt; *scheme);
+00180
+00181 <font class="comment">// deriver have here the opportunity to setup the functor object. The default does nothing</font>
+<a name="l00182"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html#a5">00182</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a5">setupFunctor</a>(uint32 indexInLocated) { }
+00183
+<a name="l00185"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html#a6">00185</a> CPSAttribMaker&lt;float&gt; *<a class="code" href="classNL3D_1_1CPSForceIntensity.html#a6">getIntensityScheme</a>(<font class="keywordtype">void</font>) { <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>; }
+<a name="l00186"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html#a7">00186</a> <font class="keyword">const</font> CPSAttribMaker&lt;float&gt; *<a class="code" href="classNL3D_1_1CPSForceIntensity.html#a6">getIntensityScheme</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>; }
+00187 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a8">serialForceIntensity</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream);
+00188
+00189 <font class="keyword">protected</font>:
+00190
+00192 <font class="keyword">virtual</font> CPSLocated *<a class="code" href="classNL3D_1_1CPSForceIntensity.html#b0">getForceIntensityOwner</a>(<font class="keywordtype">void</font>) = 0;
+00193
+00194
+00195 <font class="comment">// the intensity ...</font>
+<a name="l00196"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html#n0">00196</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n0">_K</a>;
+<a name="l00197"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">00197</a> CPSAttribMaker&lt;float&gt; *<a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>;
+00198
+<a name="l00199"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html#b1">00199</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b1">newForceIntensityElement</a>(CPSLocated *emitterLocated, uint32 emitterIndex)
+00200 {
+00201 <font class="keywordflow">if</font> (<a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a> &amp;&amp; <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>-&gt;hasMemory()) <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>-&gt;newElement(emitterLocated, emitterIndex);
+00202 }
+<a name="l00203"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html#b2">00203</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b2">deleteForceIntensityElement</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>)
+00204 {
+00205 <font class="keywordflow">if</font> (<a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a> &amp;&amp; <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>-&gt;hasMemory()) <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>-&gt;deleteElement(<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>);
+00206 }
+<a name="l00207"></a><a class="code" href="classNL3D_1_1CPSForceIntensity.html#b3">00207</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b3">resizeForceIntensity</a>(uint32 size)
+00208 {
+00209 <font class="keywordflow">if</font> (<a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a> &amp;&amp; <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>-&gt;hasMemory()) <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>-&gt;resize(size, <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b0">getForceIntensityOwner</a>()-&gt;getSize());
+00210 }
+00211 };
+00212
+00213
+<a name="l00218"></a><a class="code" href="classNL3D_1_1CPSForceIntensityHelper.html">00218</a> <font class="keyword">class </font>CPSForceIntensityHelper : <font class="keyword">public</font> CPSForce, <font class="keyword">public</font> CPSForceIntensity
+00219 {
+00220 <font class="keyword">public</font>:
+00221 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensityHelper.html#a0">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream) ;
+00222
+00223 <font class="keyword">protected</font>:
+<a name="l00224"></a><a class="code" href="classNL3D_1_1CPSForceIntensityHelper.html#b0">00224</a> <font class="keyword">virtual</font> <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="classNL3D_1_1CPSForceIntensityHelper.html#b0">getForceIntensityOwner</a>(<font class="keywordtype">void</font>) { <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n0">_Owner</a>; }
+<a name="l00225"></a><a class="code" href="classNL3D_1_1CPSForceIntensityHelper.html#b1">00225</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensityHelper.html#b1">newElement</a>(<a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *emitterLocated, uint32 emitterIndex) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b1">newForceIntensityElement</a>(emitterLocated, emitterIndex); }
+<a name="l00226"></a><a class="code" href="classNL3D_1_1CPSForceIntensityHelper.html#b2">00226</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensityHelper.html#b2">deleteElement</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b2">deleteForceIntensityElement</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>); }
+<a name="l00227"></a><a class="code" href="classNL3D_1_1CPSForceIntensityHelper.html#b3">00227</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSForceIntensityHelper.html#b3">resize</a>(uint32 size) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b3">resizeForceIntensity</a>(size); }
+00228
+00229 };
+00230
+00231
+00232
+00233
+<a name="l00278"></a><a class="code" href="classNL3D_1_1CIsotropicForceT.html">00278</a> <font class="keyword">template</font> &lt;<font class="keyword">class</font> T&gt; <font class="keyword">class </font>CIsotropicForceT : <font class="keyword">public</font> CPSForce
+00279 {
+00280 <font class="keyword">public</font>:
+00281
+00283 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CIsotropicForceT.html#a0">performDynamic</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00284
+00285
+<a name="l00287"></a><a class="code" href="classNL3D_1_1CIsotropicForceT.html#a1">00287</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CIsotropicForceT.html#a1">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream)
+00288 {
+00289 f.serialVersion(1);
+00290 CPSForce::serial(f);
+00291 f.serial(<a class="code" href="classNL3D_1_1CIsotropicForceT.html#n0">_F</a>); <font class="comment">// serial the functor object 5does nothing most of the time ...)</font>
+00292 }
+00293
+00294
+<a name="l00299"></a><a class="code" href="classNL3D_1_1CIsotropicForceT.html#a2">00299</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CIsotropicForceT.html#a2">show</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime) {}
+00300
+00301
+00303
+<a name="l00304"></a><a class="code" href="classNL3D_1_1CIsotropicForceT.html#a3">00304</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CIsotropicForceT.html#a3">setupFunctor</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) {};
+00305
+00306 <font class="keyword">protected</font>:
+00307
+<a name="l00309"></a><a class="code" href="classNL3D_1_1CIsotropicForceT.html#n0">00309</a> T <a class="code" href="classNL3D_1_1CIsotropicForceT.html#n0">_F</a>;
+00310
+00311
+00312
+<a name="l00313"></a><a class="code" href="classNL3D_1_1CIsotropicForceT.html#b0">00313</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CIsotropicForceT.html#b0">newElement</a>(<a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *emitterLocated, uint32 emitterIndex) { };
+<a name="l00314"></a><a class="code" href="classNL3D_1_1CIsotropicForceT.html#b1">00314</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CIsotropicForceT.html#b1">deleteElement</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) {};
+<a name="l00315"></a><a class="code" href="classNL3D_1_1CIsotropicForceT.html#b2">00315</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CIsotropicForceT.html#b2">resize</a>(uint32 size) {};
+00316
+00317
+00318 };
+00319
+00321 <font class="comment">// implementation of method of the template class CHomogenousForceT //</font>
+00323 <font class="comment"></font>
+00324
+<a name="l00325"></a><a class="code" href="classNL3D_1_1CIsotropicForceT.html#a0">00325</a> <font class="keyword">template</font> &lt;<font class="keyword">class</font> T&gt; <font class="keywordtype">void</font> CIsotropicForceT&lt;T&gt;::performDynamic(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime)
+00326 {
+00327 <font class="keywordflow">for</font> (uint32 k = 0; k &lt; <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n0">_Owner</a>-&gt;getSize(); ++k)
+00328 {
+00329 <a class="code" href="classNL3D_1_1CIsotropicForceT.html#a3">setupFunctor</a>(k);
+00330 <font class="keywordflow">for</font> (TTargetCont::iterator it = <a class="code" href="classNL3D_1_1CPSTargetLocatedBindable.html#n0">_Targets</a>.begin(); it != <a class="code" href="classNL3D_1_1CPSTargetLocatedBindable.html#n0">_Targets</a>.end(); ++it)
+00331 {
+00332
+00333 TPSAttribVector::iterator speedIt = (*it)-&gt;getSpeed().begin(), endSpeedIt = (*it)-&gt;getSpeed().end();
+00334 TPSAttribVector::const_iterator posIt = (*it)-&gt;getPos().begin();
+00335 TPSAttribFloat::const_iterator invMassIt = (*it)-&gt;getInvMass().begin();
+00336
+00337 <font class="keywordflow">for</font> (; speedIt != endSpeedIt; ++speedIt, ++posIt, ++invMassIt)
+00338 {
+00339 <a class="code" href="classNL3D_1_1CIsotropicForceT.html#n0">_F</a>(*posIt, *speedIt, *invMassIt, ellapsedTime);
+00340 }
+00341 }
+00342 }
+00343 }
+00344
+00345
+<a name="l00350"></a><a class="code" href="classNL3D_1_1CPSDirectionnalForce.html">00350</a> <font class="keyword">class </font>CPSDirectionnalForce : <font class="keyword">public</font> CPSForceIntensityHelper, <font class="keyword">public</font> CPSDirection
+00351 {
+00352 <font class="keyword">public</font>:
+00354 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#a0">performDynamic</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00355
+00357 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#a1">show</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00358
+00359
+00360
+<a name="l00361"></a><a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#a2">00361</a> <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#a2">CPSDirectionnalForce</a>(<font class="keywordtype">float</font> i = 1.f)
+00362 {
+00363 <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n3">_Name</a> = std::string(<font class="stringliteral">"DirectionnalForce"</font>);
+00364 <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a3">setIntensity</a>(i);
+00365 <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#n0">_Dir</a> = <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>(0, 0, -1);
+00366 }
+00367
+00369 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#a3">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream);
+00370
+00371
+00372 <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#a4">NLMISC_DECLARE_CLASS</a>(<a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#a2">CPSDirectionnalForce</a>);
+00373
+00375
+00376
+<a name="l00377"></a><a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#z719_0">00377</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#z719_0">setDir</a>(<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;dir) { <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#n0">_Dir</a> = dir; }
+<a name="l00379"></a><a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#z719_1">00379</a> <font class="keyword">virtual</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#z719_1">getDir</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#n0">_Dir</a>; }
+00380 <font class="comment">// Tells that a global vector value of the system can be used as a direction</font>
+<a name="l00381"></a><a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#z719_2">00381</a> <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#z719_2">supportGlobalVectorValue</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <font class="keyword">true</font>; }
+00383 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#z719_3">enableGlobalVectorValue</a>(<font class="keyword">const</font> std::string &amp;name);
+00384 <font class="comment">// See if the direction is bound to a global variable. Return an empty string if not</font>
+00385 <font class="keyword">virtual</font> std::string <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#z719_4">getGlobalVectorValueName</a>() <font class="keyword">const</font>;
+00387 <font class="keyword">protected</font>:
+<a name="l00388"></a><a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#n0">00388</a> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#n0">_Dir</a>;
+<a name="l00389"></a><a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#n1">00389</a> CParticleSystem::CGlobalVectorValueHandle <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#n1">_GlobalValueHandle</a>; <font class="comment">// a global vector value may override the value of _Dir (example of use : global direction for wind)</font>
+00390 };
+00391
+00392
+<a name="l00394"></a><a class="code" href="classNL3D_1_1CPSGravity.html">00394</a> <font class="keyword">class </font>CPSGravity : <font class="keyword">public</font> CPSForceIntensityHelper
+00395 {
+00396 <font class="keyword">public</font>:
+00398 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSGravity.html#a0">performDynamic</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00399
+00401 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSGravity.html#a1">show</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00402
+00403
+00404
+<a name="l00405"></a><a class="code" href="classNL3D_1_1CPSGravity.html#a2">00405</a> <a class="code" href="classNL3D_1_1CPSGravity.html#a2">CPSGravity</a>(<font class="keywordtype">float</font> g = 9.8f)
+00406 {
+00407 <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n3">_Name</a> = std::string(<font class="stringliteral">"Gravity"</font>);
+00408 <a class="code" href="classNL3D_1_1CPSGravity.html#b0">setIntensity</a>(g);
+00409 }
+00410
+00412 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSGravity.html#a3">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream);
+00413
+00414 <a class="code" href="classNL3D_1_1CPSGravity.html#a4">NLMISC_DECLARE_CLASS</a>(<a class="code" href="classNL3D_1_1CPSGravity.html#a2">CPSGravity</a>);
+00415
+00416
+00417 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPSGravity.html#a5">isIntegrable</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
+00418
+00420 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSGravity.html#a6">integrate</a>(<font class="keywordtype">float</font> date, <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, uint32 startIndex, uint32 numObjects, <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> *destPos = NULL, <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> *destSpeed = NULL,
+00421 <font class="keywordtype">bool</font> accumulate = <font class="keyword">false</font>,
+00422 uint posStride = <font class="keyword">sizeof</font>(<a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>), uint speedStride = <font class="keyword">sizeof</font>(<a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>)
+00423 );
+00424
+00425 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSGravity.html#a7">integrateSingle</a>(<font class="keywordtype">float</font> startDate, <font class="keywordtype">float</font> deltaT, uint numStep,
+00426 <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, uint32 indexInLocated,
+00427 <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> *destPos,
+00428 <font class="keywordtype">bool</font> accumulate = <font class="keyword">false</font>,
+00429 uint posStride = <font class="keyword">sizeof</font>(<a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>));
+00430
+00431 <font class="keyword">protected</font>:
+00433 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSGravity.html#b0">setIntensity</a>(<font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>);
+00435 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSGravity.html#b1">setIntensityScheme</a>(CPSAttribMaker&lt;float&gt; *scheme);
+00436 };
+00437
+00438
+<a name="l00440"></a><a class="code" href="classNL3D_1_1CPSCentralGravity.html">00440</a> <font class="keyword">class </font>CPSCentralGravity : <font class="keyword">public</font> CPSForceIntensityHelper
+00441 {
+00442 <font class="keyword">public</font>:
+00444 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCentralGravity.html#a0">performDynamic</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00445
+00447 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCentralGravity.html#a1">show</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00448
+00449
+00450
+<a name="l00451"></a><a class="code" href="classNL3D_1_1CPSCentralGravity.html#a2">00451</a> <a class="code" href="classNL3D_1_1CPSCentralGravity.html#a2">CPSCentralGravity</a>(<font class="keywordtype">float</font> i = 1.f)
+00452 {
+00453 <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n3">_Name</a> = std::string(<font class="stringliteral">"CentralGravity"</font>);
+00454 <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a3">setIntensity</a>(i);
+00455 }
+00456
+00458 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCentralGravity.html#a3">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream);
+00459
+00460
+00461 <a class="code" href="classNL3D_1_1CPSCentralGravity.html#a4">NLMISC_DECLARE_CLASS</a>(<a class="code" href="classNL3D_1_1CPSCentralGravity.html#a2">CPSCentralGravity</a>);
+00462 };
+00463
+00464
+<a name="l00466"></a><a class="code" href="classNL3D_1_1CPSSpring.html">00466</a> <font class="keyword">class </font>CPSSpring : <font class="keyword">public</font> CPSForceIntensityHelper
+00467 {
+00468 <font class="keyword">public</font>:
+00469
+<a name="l00471"></a><a class="code" href="classNL3D_1_1CPSSpring.html#a0">00471</a> <a class="code" href="classNL3D_1_1CPSSpring.html#a0">CPSSpring</a>(<font class="keywordtype">float</font> k = 1.0f)
+00472 {
+00473 <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n3">_Name</a> = std::string(<font class="stringliteral">"Spring"</font>);
+00474 <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a3">setIntensity</a>(k);
+00475 }
+00476
+00477
+00479 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSSpring.html#a1">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream);
+00480
+00481
+00483 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSSpring.html#a2">performDynamic</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00484
+00486 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSSpring.html#a3">show</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00487
+00488
+00489 <a class="code" href="classNL3D_1_1CPSSpring.html#a4">NLMISC_DECLARE_CLASS</a>(<a class="code" href="classNL3D_1_1CPSSpring.html#a0">CPSSpring</a>);
+00490
+00491 };
+00492
+00493
+00494
+<a name="l00496"></a><a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html">00496</a> <font class="keyword">class </font>CPSFluidFrictionFunctor
+00497 {
+00498 <font class="keyword">public</font>:
+<a name="l00499"></a><a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#a0">00499</a> <a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#a0">CPSFluidFrictionFunctor</a>() : <a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#n0">_K</a>(1.f)
+00500 {
+00501 }
+00502
+00503 <font class="preprocessor"> #ifdef NL_OS_WINDOWS</font>
+00504 <font class="preprocessor"></font> __forceinline
+00505 <font class="preprocessor"> #endif</font>
+<a name="l00506"></a><a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#a1">00506</a> <font class="preprocessor"></font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#a1">operator() </a>(<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;pos, <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;speed, <font class="keywordtype">float</font> invMass , <a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime)
+00507 {
+00508 speed -= (ellapsedTime * <a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#n0">_K</a> * invMass * speed);
+00509 }
+00510
+<a name="l00511"></a><a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#a2">00511</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#a2">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream)
+00512 {
+00513 f.serialVersion(1);
+00514 <font class="comment">// we don't save intensity info : it is saved by the owning object (and set before each use of this functor)</font>
+00515 }
+00516
+00517 <font class="comment">// get the friction coefficient</font>
+<a name="l00518"></a><a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#a3">00518</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#a3">getK</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#n0">_K</a>; }
+00519
+00520 <font class="comment">// set the friction coefficient</font>
+<a name="l00521"></a><a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#a4">00521</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#a4">setK</a>(<font class="keywordtype">float</font> coeff) { <a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#n0">_K</a> = coeff; }
+00522 <font class="keyword">protected</font>:
+00523 <font class="comment">// the friction coeff</font>
+<a name="l00524"></a><a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#n0">00524</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSFluidFrictionFunctor.html#n0">_K</a>;
+00525 };
+00526
+00527
+<a name="l00533"></a><a class="code" href="classNL3D_1_1CPSFluidFriction.html">00533</a> <font class="keyword">class </font>CPSFluidFriction : <font class="keyword">public</font> CIsotropicForceT&lt;CPSFluidFrictionFunctor&gt;, <font class="keyword">public</font> CPSForceIntensity
+00534 {
+00535 <font class="keyword">public</font>:
+00536 <font class="comment">// create the force with a friction coefficient</font>
+<a name="l00537"></a><a class="code" href="classNL3D_1_1CPSFluidFriction.html#a0">00537</a> <a class="code" href="classNL3D_1_1CPSFluidFriction.html#a0">CPSFluidFriction</a>(<font class="keywordtype">float</font> frictionCoeff = 1.f)
+00538 {
+00539 <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a3">setIntensity</a>(frictionCoeff);
+00540 <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n3">_Name</a> = std::string(<font class="stringliteral">"FluidFriction"</font>);
+00541 }
+00542
+00543 <font class="comment">// inherited from CIsotropicForceT</font>
+<a name="l00544"></a><a class="code" href="classNL3D_1_1CPSFluidFriction.html#a1">00544</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSFluidFriction.html#a1">setupFunctor</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>)
+00545 {
+00546 <a class="code" href="classNL3D_1_1CIsotropicForceT.html#n0">_F</a>.setK(<a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a> ? <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>-&gt;get(<a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n0">_Owner</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) : <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n0">_K</a>);
+00547 }
+00548
+00549 <a class="code" href="class__registry_8h.html#a0">NLMISC_DECLARE_CLASS</a>(<a class="code" href="classNL3D_1_1CPSFluidFriction.html#a0">CPSFluidFriction</a>)
+00550
+00551
+<a name="l00552"></a><a class="code" href="classNL3D_1_1CPSFluidFriction.html#a2">00552</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSFluidFriction.html#a2">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream)
+00553 {
+00554 f.serialVersion(1);
+00555 CIsotropicForceT&lt;CPSFluidFrictionFunctor&gt;::serial(f);
+00556 <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a8">serialForceIntensity</a>(f);
+00557 <font class="keywordflow">if</font> (f.isReading())
+00558 {
+00559 <a class="code" href="classNL3D_1_1CPSForce.html#b0">registerToTargets</a>();
+00560 }
+00561 }
+00562
+00563
+00564 <font class="keyword">protected</font>:
+<a name="l00565"></a><a class="code" href="classNL3D_1_1CPSFluidFriction.html#b0">00565</a> <font class="keyword">virtual</font> <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="classNL3D_1_1CPSFluidFriction.html#b0">getForceIntensityOwner</a>(<font class="keywordtype">void</font>) { <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n0">_Owner</a>; }
+<a name="l00566"></a><a class="code" href="classNL3D_1_1CPSFluidFriction.html#b1">00566</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSFluidFriction.html#b1">newElement</a>(<a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *emitterLocated, uint32 emitterIndex) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b1">newForceIntensityElement</a>(emitterLocated, emitterIndex); }
+<a name="l00567"></a><a class="code" href="classNL3D_1_1CPSFluidFriction.html#b2">00567</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSFluidFriction.html#b2">deleteElement</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b2">deleteForceIntensityElement</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>); }
+<a name="l00568"></a><a class="code" href="classNL3D_1_1CPSFluidFriction.html#b3">00568</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSFluidFriction.html#b3">resize</a>(uint32 size) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b3">resizeForceIntensity</a>(size); }
+00569 };
+00570
+00571
+<a name="l00576"></a><a class="code" href="classNL3D_1_1CPSBrownianForce.html">00576</a> <font class="keyword">class </font>CPSBrownianForce : <font class="keyword">public</font> CPSForceIntensityHelper
+00577 {
+00578 <font class="keyword">public</font>:
+00579 <font class="comment">// create the force with a friction coefficient</font>
+00580 <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a0">CPSBrownianForce</a>(<font class="keywordtype">float</font> intensity = 1.f);
+00581
+00582 <a class="code" href="class__registry_8h.html#a0">NLMISC_DECLARE_CLASS</a>(<a class="code" href="classNL3D_1_1CPSBrownianForce.html#a0">CPSBrownianForce</a>)
+00583
+00584 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a1">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream);
+00585
+00587 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a2">isIntegrable</a>(<font class="keywordtype">void</font>) <font class="keyword">const</font>;
+00588
+00589 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a3">integrate</a>(<font class="keywordtype">float</font> date, <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, uint32 startIndex, uint32 numObjects, <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> *destPos = NULL, <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> *destSpeed = NULL,
+00590 <font class="keywordtype">bool</font> accumulate = <font class="keyword">false</font>,
+00591 uint posStride = <font class="keyword">sizeof</font>(<a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>), uint speedStride = <font class="keyword">sizeof</font>(<a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>)
+00592 );
+00593
+00594 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a4">integrateSingle</a>(<font class="keywordtype">float</font> startDate, <font class="keywordtype">float</font> deltaT, uint numStep,
+00595 <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, uint32 indexInLocated,
+00596 <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> *destPos,
+00597 <font class="keywordtype">bool</font> accumulate = <font class="keyword">false</font>,
+00598 uint posStride = <font class="keyword">sizeof</font>(<a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>));
+00599
+00601 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#d0">initPrecalc</a>();
+00602
+00603 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a5">setIntensity</a>(<font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>);
+00604 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a6">setIntensityScheme</a>(CPSAttribMaker&lt;float&gt; *scheme);
+00605
+00607 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a7">performDynamic</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00608
+<a name="l00609"></a><a class="code" href="classNL3D_1_1CPSBrownianForce.html#a8">00609</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a8">show</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime) {}
+00610
+00611
+<a name="l00615"></a><a class="code" href="classNL3D_1_1CPSBrownianForce.html#a9">00615</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a9">setParametricFactor</a>(<font class="keywordtype">float</font> factor) { <a class="code" href="classNL3D_1_1CPSBrownianForce.html#n0">_ParametricFactor</a> = factor; }
+<a name="l00616"></a><a class="code" href="classNL3D_1_1CPSBrownianForce.html#a10">00616</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#a10">getParametricFactor</a>()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#n0">_ParametricFactor</a>; }
+00617
+00618 <font class="keyword">protected</font>:
+<a name="l00619"></a><a class="code" href="classNL3D_1_1CPSBrownianForce.html#b0">00619</a> <font class="keyword">virtual</font> <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="classNL3D_1_1CPSBrownianForce.html#b0">getForceIntensityOwner</a>(<font class="keywordtype">void</font>) { <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n0">_Owner</a>; }
+<a name="l00620"></a><a class="code" href="classNL3D_1_1CPSBrownianForce.html#b1">00620</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#b1">newElement</a>(<a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *emitterLocated, uint32 emitterIndex) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b1">newForceIntensityElement</a>(emitterLocated, emitterIndex); }
+<a name="l00621"></a><a class="code" href="classNL3D_1_1CPSBrownianForce.html#b2">00621</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#b2">deleteElement</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b2">deleteForceIntensityElement</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>); }
+<a name="l00622"></a><a class="code" href="classNL3D_1_1CPSBrownianForce.html#b3">00622</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#b3">resize</a>(uint32 size) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b3">resizeForceIntensity</a>(size); }
+00623
+<a name="l00624"></a><a class="code" href="classNL3D_1_1CPSBrownianForce.html#n0">00624</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#n0">_ParametricFactor</a>; <font class="comment">// tells how fast this force act on a particle when parametric motion is used</font>
+00625 <font class="keyword">static</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#q0">PrecomputedPos</a>[]; <font class="comment">// after the sequence we must be back to the start position</font>
+00626 <font class="keyword">static</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#q1">PrecomputedSpeed</a>[];
+00627
+00629 <font class="keyword">static</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> <a class="code" href="classNL3D_1_1CPSBrownianForce.html#q2">PrecomputedImpulsions</a>[];
+00630
+00631 };
+00632
+00633
+00635
+<a name="l00636"></a><a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html">00636</a> <font class="keyword">struct </font>CPSTurbulForceFunc
+00637 {
+00638 <font class="preprocessor"> #ifdef NL_OS_WINDOWS</font>
+00639 <font class="preprocessor"></font> __forceinline
+00640 <font class="preprocessor"> #endif</font>
+<a name="l00641"></a><a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#a0">00641</a> <font class="preprocessor"></font> <font class="keywordtype">void</font> <a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#a0">operator() </a>(<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;pos, <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;speed, <font class="keywordtype">float</font> invMass , <a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime)
+00642 {
+00643 <a class="code" href="debug_8h.html#a6">nlassert</a>(0);
+00644
+00645 <font class="comment">// TODO : complete that</font>
+00646
+00647 <font class="comment">/* static const NLMISC::CVector v1(1.235f, - 45.32f, 157.5f);</font>
+00648 <font class="comment"> static const NLMISC::CVector v2(-0.35f, 7.77f, 220.77f);</font>
+00649 <font class="comment"></font>
+00650 <font class="comment"></font>
+00651 <font class="comment"> speed += ellapsedTime * _Intensity </font>
+00652 <font class="comment"> * NLMISC::CVector(2.f * (-0.5f + CPSUtil::buildPerlinNoise(_Scale * pos, _NumOctaves))</font>
+00653 <font class="comment"> , 2.f * (-0.5f + CPSUtil::buildPerlinNoise(_Scale * (pos + v1) , _NumOctaves))</font>
+00654 <font class="comment"> , 2.f * (-0.5f + CPSUtil::buildPerlinNoise(_Scale * (pos + v2) , _NumOctaves))</font>
+00655 <font class="comment"> );</font>
+00656 <font class="comment"> */</font>
+00657 }
+00658
+<a name="l00659"></a><a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#a1">00659</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#a1">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream)
+00660 {
+00661 f.serialVersion(1);
+00662 f.serial(<a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#m0">_Scale</a>, <a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#m2">_NumOctaves</a>);
+00663 }
+00664
+<a name="l00665"></a><a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#m0">00665</a> <font class="keywordtype">float</font> <a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#m0">_Scale</a>;
+<a name="l00666"></a><a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#m1">00666</a> <font class="keywordtype">float</font> <a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#m1">_Intensity</a>;
+<a name="l00667"></a><a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#m2">00667</a> uint32 <a class="code" href="structNL3D_1_1CPSTurbulForceFunc.html#m2">_NumOctaves</a>;
+00668 };
+00669
+00670
+00671
+00672 <font class="comment">// the turbulence force</font>
+00673
+<a name="l00674"></a><a class="code" href="classNL3D_1_1CPSTurbul.html">00674</a> <font class="keyword">class </font>CPSTurbul : <font class="keyword">public</font> CIsotropicForceT&lt;CPSTurbulForceFunc&gt;, <font class="keyword">public</font> CPSForceIntensity
+00675 {
+00676 <font class="keyword">public</font>:
+00677 <font class="comment">// create the force with a friction coefficient</font>
+<a name="l00678"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#a0">00678</a> <a class="code" href="classNL3D_1_1CPSTurbul.html#a0">CPSTurbul</a>(<font class="keywordtype">float</font> scale = 1.f , uint numOctaves = 4)
+00679 {
+00680 <a class="code" href="debug_8h.html#a6">nlassert</a>(numOctaves &gt; 0);
+00681 <a class="code" href="classNL3D_1_1CPSTurbul.html#a2">setScale</a>(scale);
+00682 <a class="code" href="classNL3D_1_1CPSTurbul.html#a4">setNumOctaves</a>(numOctaves);
+00683 <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n3">_Name</a> = std::string(<font class="stringliteral">"Turbulence"</font>);
+00684 }
+00685
+00686
+<a name="l00687"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#a1">00687</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSTurbul.html#a1">getScale</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CIsotropicForceT.html#n0">_F</a>._Scale; }
+<a name="l00688"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#a2">00688</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSTurbul.html#a2">setScale</a>(<font class="keywordtype">float</font> scale) { <a class="code" href="classNL3D_1_1CIsotropicForceT.html#n0">_F</a>._Scale = scale; }
+00689
+00690
+<a name="l00691"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#a3">00691</a> uint <a class="code" href="classNL3D_1_1CPSTurbul.html#a3">getNumOctaves</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CIsotropicForceT.html#n0">_F</a>._NumOctaves; }
+<a name="l00692"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#a4">00692</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSTurbul.html#a4">setNumOctaves</a>(uint numOctaves) { <a class="code" href="classNL3D_1_1CIsotropicForceT.html#n0">_F</a>._NumOctaves = numOctaves; }
+00693
+00694
+00695 <a class="code" href="class__registry_8h.html#a0">NLMISC_DECLARE_CLASS</a>(<a class="code" href="classNL3D_1_1CPSTurbul.html#a0">CPSTurbul</a>)
+00696
+<a name="l00697"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#a5">00697</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSTurbul.html#a5">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream)
+00698 {
+00699 f.serialVersion(1);
+00700 CIsotropicForceT&lt;CPSTurbulForceFunc&gt;::serial(f);
+00701 <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a8">serialForceIntensity</a>(f);
+00702 <font class="keywordflow">if</font> (f.isReading())
+00703 {
+00704 <a class="code" href="classNL3D_1_1CPSForce.html#b0">registerToTargets</a>();
+00705 }
+00706 }
+00707
+00708 <font class="comment">// inherited from CIsotropicForceT</font>
+<a name="l00709"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#a6">00709</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSTurbul.html#a6">setupFunctor</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>)
+00710 {
+00711 <a class="code" href="classNL3D_1_1CIsotropicForceT.html#n0">_F</a>._Intensity = (<a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a> ? <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n1">_IntensityScheme</a>-&gt;get(<a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n0">_Owner</a>, <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) : <a class="code" href="classNL3D_1_1CPSForceIntensity.html#n0">_K</a>);
+00712 }
+00713
+00714 <font class="keyword">protected</font>:
+<a name="l00715"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#b0">00715</a> <font class="keyword">virtual</font> <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="classNL3D_1_1CPSTurbul.html#b0">getForceIntensityOwner</a>(<font class="keywordtype">void</font>) { <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n0">_Owner</a>; }
+<a name="l00716"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#b1">00716</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSTurbul.html#b1">newElement</a>(<a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *emitterLocated, uint32 emitterIndex) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b1">newForceIntensityElement</a>(emitterLocated, emitterIndex); }
+<a name="l00717"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#b2">00717</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSTurbul.html#b2">deleteElement</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b2">deleteForceIntensityElement</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>); }
+<a name="l00718"></a><a class="code" href="classNL3D_1_1CPSTurbul.html#b3">00718</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSTurbul.html#b3">resize</a>(uint32 size) { <a class="code" href="classNL3D_1_1CPSForceIntensity.html#b3">resizeForceIntensity</a>(size); }
+00719 };
+00720
+00721
+00722
+00723
+<a name="l00729"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html">00729</a> <font class="keyword">class </font>CPSCylindricVortex : <font class="keyword">public</font> CPSForceIntensityHelper, <font class="keyword">public</font> IPSMover
+00730 {
+00731 <font class="keyword">public</font>:
+00733 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a0">performDynamic</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00734
+00736 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a1">show</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00737
+00738
+<a name="l00739"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a2">00739</a> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a2">CPSCylindricVortex</a>(<font class="keywordtype">float</font> intensity = 1.f) : <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n2">_RadialViscosity</a>(.1f), <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n3">_TangentialViscosity</a>(.1f)
+00740 {
+00741 <a class="code" href="classNL3D_1_1CPSForceIntensity.html#a3">setIntensity</a>(intensity);
+00742 <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n3">_Name</a> = std::string(<font class="stringliteral">"Cylindric Vortex"</font>);
+00743 }
+00744
+00745 <font class="comment">// inherited from IPSMover</font>
+<a name="l00746"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a3">00746</a> <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a3">supportUniformScaling</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <font class="keyword">true</font>; }
+<a name="l00747"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a4">00747</a> <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a4">supportNonUniformScaling</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <font class="keyword">false</font>; }
+<a name="l00748"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a5">00748</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a5">setScale</a>(uint32 k, <font class="keywordtype">float</font> scale) { <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n1">_Radius</a>[k] = scale; }
+<a name="l00749"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a6">00749</a> <font class="keyword">virtual</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a6">getScale</a>(uint32 k)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a>(<a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n1">_Radius</a>[k], <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n1">_Radius</a>[k], <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n1">_Radius</a>[k]); }
+<a name="l00750"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a7">00750</a> <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a7">onlyStoreNormal</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <font class="keyword">true</font>; }
+<a name="l00751"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a8">00751</a> <font class="keyword">virtual</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a8">getNormal</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) { <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n0">_Normal</a>[<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>]; }
+<a name="l00752"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a9">00752</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a9">setNormal</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>, <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> n) { <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n0">_Normal</a>[<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>] = n; }
+00753
+00754 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a10">setMatrix</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>, <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> &amp;m);
+00755 <font class="keyword">virtual</font> <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a11">getMatrix</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>) <font class="keyword">const</font>;
+00756
+00757
+<a name="l00758"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a12">00758</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a12">setRadialViscosity</a>(<font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>) { <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n2">_RadialViscosity</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>; }
+<a name="l00759"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a13">00759</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a13">getRadialViscosity</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n2">_RadialViscosity</a>; }
+00760
+<a name="l00761"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a14">00761</a> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a14">setTangentialViscosity</a>(<font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>) { <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n3">_TangentialViscosity</a> = <a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>; }
+<a name="l00762"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a15">00762</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a15">getTangentialViscosity</a>(<font class="keywordtype">void</font>)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n3">_TangentialViscosity</a>; }
+00763
+00764 <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a16">NLMISC_DECLARE_CLASS</a>(<a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a2">CPSCylindricVortex</a>);
+00765
+00766
+00767
+00768 <font class="comment">// serialization</font>
+00769 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#a17">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream);
+00770
+00771
+00772
+00773
+00774
+00775 <font class="keyword">protected</font>:
+00776
+<a name="l00778"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#b0">00778</a> <font class="keyword">virtual</font> <a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *<a class="code" href="classNL3D_1_1CPSCylindricVortex.html#b0">getForceIntensityOwner</a>(<font class="keywordtype">void</font>) { <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n0">_Owner</a>; }
+00779
+00780 <font class="comment">// the normal of the vortex</font>
+<a name="l00781"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n0">00781</a> CPSAttrib&lt;NLMISC::CVector&gt; <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n0">_Normal</a>;
+00782 <font class="comment">// radius of the vortex</font>
+<a name="l00783"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n1">00783</a> <a class="code" href="namespaceNL3D.html#a182">TPSAttribFloat</a> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n1">_Radius</a>;
+00784
+00785 <font class="comment">// radial viscosity : when it is near of 1, if tends to set the radial componenent of speed to 0</font>
+<a name="l00786"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n2">00786</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n2">_RadialViscosity</a>;
+00787
+00788 <font class="comment">// tangential viscosity : when set to 1, the tangential speed immediatly reach what it would be in a real vortex (w = 1 / r2)</font>
+<a name="l00789"></a><a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n3">00789</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#n3">_TangentialViscosity</a>;
+00790
+00791 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#b1">newElement</a>(<a class="code" href="classNL3D_1_1CPSForce.html#l0">CPSLocated</a> *emitterLocated, uint32 emitterIndex);
+00792 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#b2">deleteElement</a>(uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>);
+00793 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSCylindricVortex.html#b3">resize</a>(uint32 size);
+00794
+00795 };
+00796
+00797
+00798
+00799
+<a name="l00803"></a><a class="code" href="classNL3D_1_1CPSMagneticForce.html">00803</a> <font class="keyword">class </font>CPSMagneticForce : <font class="keyword">public</font> CPSDirectionnalForce
+00804 {
+00805 <font class="keyword">public</font>:
+<a name="l00806"></a><a class="code" href="classNL3D_1_1CPSMagneticForce.html#a0">00806</a> <a class="code" href="classNL3D_1_1CPSMagneticForce.html#a0">CPSMagneticForce</a>(<font class="keywordtype">float</font> i = 1.f) : <a class="code" href="classNL3D_1_1CPSDirectionnalForce.html#a2">CPSDirectionnalForce</a>(i)
+00807 {
+00808 <a class="code" href="classNL3D_1_1CPSLocatedBindable.html#n3">_Name</a> = std::string(<font class="stringliteral">"MagneticForce"</font>);
+00809 }
+00810 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSMagneticForce.html#a1">performDynamic</a>(<a class="code" href="namespaceNL3D.html#a1">TAnimationTime</a> ellapsedTime);
+00812 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CPSMagneticForce.html#a2">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &amp;f) <font class="keywordflow">throw</font>(NLMISC::EStream);
+00813 <a class="code" href="classNL3D_1_1CPSMagneticForce.html#a3">NLMISC_DECLARE_CLASS</a>(<a class="code" href="classNL3D_1_1CPSMagneticForce.html#a0">CPSMagneticForce</a>);
+00814 };
+00815
+00816
+00817
+00818
+00819
+00820 } <font class="comment">// NL3D</font>
+00821
+00822
+00823 <font class="preprocessor">#endif // NL_PS_FORCE_H</font>
+00824 <font class="preprocessor"></font>
+00825 <font class="comment">/* End of ps_force.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>