diff options
Diffstat (limited to 'docs/doxygen/nel/a02442.html')
-rw-r--r-- | docs/doxygen/nel/a02442.html | 786 |
1 files changed, 786 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02442.html b/docs/doxygen/nel/a02442.html new file mode 100644 index 00000000..9df3ebec --- /dev/null +++ b/docs/doxygen/nel/a02442.html @@ -0,0 +1,786 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: NL3D::CPSRotated2DParticle class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::CPSRotated2DParticle Class Reference</h1><code>#include <<a class="el" href="a06258.html">ps_particle_basic.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CPSRotated2DParticle: +<p><center><img src="a02442.png" usemap="#NL3D::CPSRotated2DParticle_map" border="0" alt=""></center> +<map name="NL3D::CPSRotated2DParticle_map"> +<area href="a02441.html" alt="NL3D::CDummy2DAngle" shape="rect" coords="0,56,176,80"> +<area href="a03191.html" alt="NL3D::CPSFaceLookAt" shape="rect" coords="186,56,362,80"> +<area href="a03194.html" alt="NL3D::CPSFanLight" shape="rect" coords="372,56,548,80"> +<area href="a03218.html" alt="NL3D::CPSMesh" shape="rect" coords="558,56,734,80"> +<area href="a03233.html" alt="NL3D::CPSShockWave" shape="rect" coords="744,56,920,80"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +this class adds tunable 2D rotation to a particle, it can be used by public multiple inheritance +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00311">311</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSRotated2DParticlea0">CPSRotated2DParticle</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSRotated2DParticlea0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavea14">getAngle2D</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the constant <a href="#NL3D_1_1CPSShockWavea14"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a03136.html">CPSAttribMaker</a>< float > * </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavea15">getAngle2DScheme</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the angle 2D scheme (NULL if none) const version <a href="#NL3D_1_1CPSShockWavea15"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03136.html">CPSAttribMaker</a>< float > * </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavea16">getAngle2DScheme</a> (void)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the angle 2D scheme (NULL if none) <a href="#NL3D_1_1CPSShockWavea16"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavea71">serialAngle2DScheme</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f) throw (NLMISC::EStream)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSShockWavea71"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavea78">setAngle2D</a> (float angle)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSShockWavea78"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavea79">setAngle2DScheme</a> (<a class="el" href="a03136.html">CPSAttribMaker</a>< float > *scheme)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSShockWavea79"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSRotated2DParticlea7">~CPSRotated2DParticle</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSRotated2DParticlea7"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const float * </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavee0">getRotTable</a> (void)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavee1">initRotTable</a> (void)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSShockWavee1"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWaveb2">deleteAngle2DElement</a> (<a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a566">index</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03214.html">CPSLocated</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSRotated2DParticleb1">getAngle2DOwner</a> (void)=0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">deriver must return their owner there <a href="#NL3D_1_1CPSRotated2DParticleb1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWaveb14">newAngle2DElement</a> (<a class="el" href="a03214.html">CPSLocated</a> *emitterLocated, <a class="el" href="a04558.html#a11">uint32</a> emitterIndex)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWaveb22">resizeAngle2D</a> (<a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a587">size</a>)</td></tr> + +<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavep1">_Angle2D</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03136.html">CPSAttribMaker</a>< float > * </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a></td></tr> + +<tr><td colspan=2><br><h2>Static Protected Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavet0">_InitializedRotTab</a> = false</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">it is true if the table has been initialized, for debug purposes <a href="#NL3D_1_1CPSShockWavet0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a02442.html#NL3D_1_1CPSShockWavet1">_RotTable</a> [4 *256]</td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSRotated2DParticlea0" doxytag="NL3D::CPSRotated2DParticle::CPSRotated2DParticle" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NL3D::CPSRotated2DParticle::CPSRotated2DParticle </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00259">259</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +<div class="fragment"><pre>00259 : <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep1">_Angle2D</a>(0), <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>(NULL) +00260 { +00261 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSRotated2DParticlea7" doxytag="NL3D::CPSRotated2DParticle::~CPSRotated2DParticle" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NL3D::CPSRotated2DParticle::~<a class="el" href="a02442.html">CPSRotated2DParticle</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00264">264</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00368">_Angle2DScheme</a>. +<p> +<div class="fragment"><pre>00265 { +00266 <span class="keyword">delete</span> <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>; +00267 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSShockWaveb2" doxytag="NL3D::CPSRotated2DParticle::deleteAngle2DElement" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSRotated2DParticle::deleteAngle2DElement </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>index</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00380">380</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00368">_Angle2DScheme</a>, <a class="el" href="a06214.html#l00285">NL3D::CPSAttribMaker< float >::deleteElement()</a>, <a class="el" href="a06214.html#l00282">NL3D::CPSAttribMaker< float >::hasMemory()</a>, <a class="el" href="a05646.html#l00225">index</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06279.html#l00460">NL3D::CPSShockWave::deleteElement()</a>, <a class="el" href="a06250.html#l00260">NL3D::CPSMesh::deleteElement()</a>, <a class="el" href="a06235.html#l00272">NL3D::CPSFanLight::deleteElement()</a>, and <a class="el" href="a06233.html#l00911">NL3D::CPSFaceLookAt::deleteElement()</a>. +<p> +<div class="fragment"><pre>00381 { +00382 <span class="keywordflow">if</span> (<a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a> && <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>->hasMemory()) <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>->deleteElement(index); +00383 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavea14" doxytag="NL3D::CPSRotated2DParticle::getAngle2D" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CPSRotated2DParticle::getAngle2D </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the constant +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00336">336</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00367">_Angle2D</a>. +<p> +<div class="fragment"><pre>00336 { <span class="keywordflow">return</span> <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep1">_Angle2D</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSRotated2DParticleb1" doxytag="NL3D::CPSRotated2DParticle::getAngle2DOwner" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual <a class="el" href="a03214.html">CPSLocated</a>* NL3D::CPSRotated2DParticle::getAngle2DOwner </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [protected, pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +deriver must return their owner there +<p> + +<p> +Implemented in <a class="el" href="a03191.html#NL3D_1_1CPSFaceLookAtb12">NL3D::CPSFaceLookAt</a>, <a class="el" href="a03194.html#NL3D_1_1CPSFanLightb7">NL3D::CPSFanLight</a>, <a class="el" href="a03218.html#NL3D_1_1CPSMeshb7">NL3D::CPSMesh</a>, <a class="el" href="a02441.html#NL3D_1_1CDummy2DAnglea1">NL3D::CDummy2DAngle</a>, and <a class="el" href="a03233.html#NL3D_1_1CPSShockWaveb9">NL3D::CPSShockWave</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00384">resizeAngle2D()</a>, and <a class="el" href="a06257.html#l00242">setAngle2DScheme()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavea15" doxytag="NL3D::CPSRotated2DParticle::getAngle2DScheme" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a03136.html">CPSAttribMaker</a><float>* NL3D::CPSRotated2DParticle::getAngle2DScheme </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the angle 2D scheme (NULL if none) const version +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00326">326</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00368">_Angle2DScheme</a>. +<p> +<div class="fragment"><pre>00326 { <span class="keywordflow">return</span> <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavea16" doxytag="NL3D::CPSRotated2DParticle::getAngle2DScheme" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03136.html">CPSAttribMaker</a><float>* NL3D::CPSRotated2DParticle::getAngle2DScheme </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the angle 2D scheme (NULL if none) +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00323">323</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00368">_Angle2DScheme</a>. +<p> +<div class="fragment"><pre>00323 { <span class="keywordflow">return</span> <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavee0" doxytag="NL3D::CPSRotated2DParticle::getRotTable" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const float* NL3D::CPSRotated2DParticle::getRotTable </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +this return a float table used to speed up rotations of face look at and the like for each angle, there are 4 float : 2 couple of float : a1, b1, a2, b2 a1 * I + b1 * K = up left corner, a2 * I + b2 * K = up right corner, This table must have been initialized with initRotTable +<p> +Definition at line <a class="el" href="a06258.html#l00354">354</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06257.html#l00239">_InitializedRotTab</a>, <a class="el" href="a06257.html#l00238">_RotTable</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>. +<p> +<div class="fragment"><pre>00355 { +00356 <a class="code" href="a04199.html#a6">nlassert</a>(_InitializedRotTab); <span class="comment">// must have called initRotTable at the start of the apply</span> +00357 <span class="keywordflow">return</span> <a class="code" href="a02442.html#NL3D_1_1CPSShockWavet1">_RotTable</a>; +00358 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavee1" doxytag="NL3D::CPSRotated2DParticle::initRotTable" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSRotated2DParticle::initRotTable </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00294">294</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06257.html#l00239">_InitializedRotTab</a>, <a class="el" href="a06257.html#l00238">_RotTable</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00295 { +00296 <span class="keywordtype">float</span> *ptFloat = <a class="code" href="a02442.html#NL3D_1_1CPSShockWavet1">_RotTable</a>; +00297 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a11">uint32</a> k = 0; k < 256; ++k) +00298 { +00299 <span class="keyword">const</span> <span class="keywordtype">float</span> ca = (<span class="keywordtype">float</span>) cos(k * (1.0f / 256.0f) * 2.0f * NLMISC::Pi); +00300 <span class="keyword">const</span> <span class="keywordtype">float</span> sa = (<span class="keywordtype">float</span>) sin(k * (1.0f / 256.0f) * 2.0f * NLMISC::Pi); +00301 +00302 *ptFloat++ = -ca - sa; +00303 *ptFloat++ = -sa + ca; +00304 +00305 *ptFloat++ = ca - sa; +00306 *ptFloat++ = sa + ca; +00307 } +00308 <a class="code" href="a02442.html#NL3D_1_1CPSShockWavet0">_InitializedRotTab</a> = <span class="keyword">true</span>; +00309 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWaveb14" doxytag="NL3D::CPSRotated2DParticle::newAngle2DElement" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSRotated2DParticle::newAngle2DElement </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03214.html">CPSLocated</a> * </td> + <td class="mdname" nowrap> <em>emitterLocated</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>emitterIndex</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, protected]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00376">376</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00368">_Angle2DScheme</a>, <a class="el" href="a06214.html#l00282">NL3D::CPSAttribMaker< float >::hasMemory()</a>, <a class="el" href="a06214.html#l00290">NL3D::CPSAttribMaker< float >::newElement()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06279.html#l00451">NL3D::CPSShockWave::newElement()</a>, <a class="el" href="a06250.html#l00225">NL3D::CPSMesh::newElement()</a>, <a class="el" href="a06235.html#l00264">NL3D::CPSFanLight::newElement()</a>, and <a class="el" href="a06233.html#l00904">NL3D::CPSFaceLookAt::newElement()</a>. +<p> +<div class="fragment"><pre>00377 { +00378 <span class="keywordflow">if</span> (<a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a> && <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>->hasMemory()) <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>->newElement(emitterLocated, emitterIndex); +00379 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWaveb22" doxytag="NL3D::CPSRotated2DParticle::resizeAngle2D" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSRotated2DParticle::resizeAngle2D </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>size</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00384">384</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00368">_Angle2DScheme</a>, <a class="el" href="a02442.html#NL3D_1_1CPSRotated2DParticleb1">getAngle2DOwner()</a>, <a class="el" href="a06214.html#l00282">NL3D::CPSAttribMaker< float >::hasMemory()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06214.html#l00296">NL3D::CPSAttribMaker< float >::resize()</a>, <a class="el" href="a05646.html#l00645">size</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06279.html#l00469">NL3D::CPSShockWave::resize()</a>, <a class="el" href="a06250.html#l00423">NL3D::CPSMesh::resize()</a>, <a class="el" href="a06235.html#l00432">NL3D::CPSFanLight::resize()</a>, and <a class="el" href="a06233.html#l00918">NL3D::CPSFaceLookAt::resize()</a>. +<p> +<div class="fragment"><pre>00385 { +00386 <a class="code" href="a04199.html#a6">nlassert</a>(size < (1 << 16)); +00387 <span class="keywordflow">if</span> (<a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a> && <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>->hasMemory()) <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>->resize(size, <a class="code" href="a02442.html#NL3D_1_1CPSRotated2DParticleb1">getAngle2DOwner</a>()->getSize()); +00388 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavea71" doxytag="NL3D::CPSRotated2DParticle::serialAngle2DScheme" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSRotated2DParticle::serialAngle2DScheme </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> throw (<a class="el" href="a03781.html">NLMISC::EStream</a>)</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00270">270</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +Referenced by <a class="el" href="a06273.html#l00121">NL3D::CPSRibbon::serial()</a>. +<p> +<div class="fragment"><pre>00271 { +00272 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a>(1); +00273 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00274 { +00275 <span class="keywordflow">if</span> (<a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>) +00276 { +00277 <span class="keyword">delete</span> <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>; +00278 <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a> = NULL; +00279 } +00280 } +00281 <span class="keywordtype">bool</span> useAngle2DScheme = <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a> != NULL; +00282 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(useAngle2DScheme); +00283 <span class="keywordflow">if</span> (useAngle2DScheme) +00284 { +00285 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_6">serialPolyPtr</a>(_Angle2DScheme); +00286 } +00287 <span class="keywordflow">else</span> +00288 { +00289 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(_Angle2D); +00290 } +00291 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavea78" doxytag="NL3D::CPSRotated2DParticle::setAngle2D" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSRotated2DParticle::setAngle2D </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>angle</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> +Set a constant angle for the particle. Angles range from 0.0f to 256.0f (2 pi) This discrad any previous scheme <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02442.html#NL3D_1_1CPSShockWavea79">setAngle2DScheme()</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06257.html#l00251">251</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00367">_Angle2D</a>, and <a class="el" href="a06258.html#l00368">_Angle2DScheme</a>. +<p> +<div class="fragment"><pre>00252 { +00253 <span class="keyword">delete</span> <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>; +00254 <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a> = NULL; +00255 <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep1">_Angle2D</a> = angle2DScheme; +00256 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavea79" doxytag="NL3D::CPSRotated2DParticle::setAngle2DScheme" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CPSRotated2DParticle::setAngle2DScheme </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03136.html">CPSAttribMaker</a>< float > * </td> + <td class="mdname1" valign="top" nowrap> <em>scheme</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +=================================================================================== +<p> +Set an attribute maker that produce a float It must have been allocated by new It will be deleted by this object Output angles must range from 0.0f to 256.0f +<p> +Definition at line <a class="el" href="a06257.html#l00242">242</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00368">_Angle2DScheme</a>, <a class="el" href="a02442.html#NL3D_1_1CPSRotated2DParticleb1">getAngle2DOwner()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a06214.html#l00296">NL3D::CPSAttribMaker< T >::resize()</a>. +<p> +<div class="fragment"><pre>00243 { +00244 <a class="code" href="a04199.html#a6">nlassert</a>(angle2DScheme); +00245 <span class="keyword">delete</span> <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a>; +00246 <a class="code" href="a02442.html#NL3D_1_1CPSShockWavep2">_Angle2DScheme</a> = angle2DScheme; +00247 <span class="keywordflow">if</span> (<a class="code" href="a02442.html#NL3D_1_1CPSRotated2DParticleb1">getAngle2DOwner</a>() && angle2DScheme->hasMemory()) angle2DScheme->resize(<a class="code" href="a02442.html#NL3D_1_1CPSRotated2DParticleb1">getAngle2DOwner</a>()->getMaxSize(), <a class="code" href="a02442.html#NL3D_1_1CPSRotated2DParticleb1">getAngle2DOwner</a>()->getSize()); +00248 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSShockWavep1" doxytag="NL3D::CPSRotated2DParticle::_Angle2D" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float <a class="el" href="a02442.html#NL3D_1_1CPSShockWavep1">NL3D::CPSRotated2DParticle::_Angle2D</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00367">367</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +Referenced by <a class="el" href="a06235.html#l00072">NL3D::CPSFanLightHelper::drawFanLight()</a>, <a class="el" href="a06233.html#l00379">NL3D::CPSFaceLookAtHelper::drawLookAt()</a>, <a class="el" href="a06233.html#l00089">NL3D::CPSFaceLookAtHelper::drawLookAtAlignOnMotion()</a>, <a class="el" href="a06258.html#l00336">getAngle2D()</a>, and <a class="el" href="a06257.html#l00251">setAngle2D()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavep2" doxytag="NL3D::CPSRotated2DParticle::_Angle2DScheme" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03136.html">CPSAttribMaker</a><float>* <a class="el" href="a02442.html#NL3D_1_1CPSShockWavep2">NL3D::CPSRotated2DParticle::_Angle2DScheme</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00368">368</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00380">deleteAngle2DElement()</a>, <a class="el" href="a06235.html#l00072">NL3D::CPSFanLightHelper::drawFanLight()</a>, <a class="el" href="a06233.html#l00379">NL3D::CPSFaceLookAtHelper::drawLookAt()</a>, <a class="el" href="a06233.html#l00089">NL3D::CPSFaceLookAtHelper::drawLookAtAlignOnMotion()</a>, <a class="el" href="a06258.html#l00323">getAngle2DScheme()</a>, <a class="el" href="a06258.html#l00376">newAngle2DElement()</a>, <a class="el" href="a06258.html#l00384">resizeAngle2D()</a>, <a class="el" href="a06257.html#l00251">setAngle2D()</a>, <a class="el" href="a06257.html#l00242">setAngle2DScheme()</a>, and <a class="el" href="a06257.html#l00264">~CPSRotated2DParticle()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavet0" doxytag="NL3D::CPSRotated2DParticle::_InitializedRotTab" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool <a class="el" href="a02442.html#NL3D_1_1CPSShockWavet0">NL3D::CPSRotated2DParticle::_InitializedRotTab</a> = false<code> [static, protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +it is true if the table has been initialized, for debug purposes +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00239">239</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00354">getRotTable()</a>, and <a class="el" href="a06257.html#l00294">initRotTable()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSShockWavet1" doxytag="NL3D::CPSRotated2DParticle::_RotTable" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float <a class="el" href="a02442.html#NL3D_1_1CPSShockWavet1">NL3D::CPSRotated2DParticle::_RotTable</a><code> [static, protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00238">238</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00354">getRotTable()</a>, and <a class="el" href="a06257.html#l00294">initRotTable()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a06258.html">ps_particle_basic.h</a><li><a class="el" href="a06257.html">ps_particle_basic.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 07:24:15 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |