diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a03164.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a03164.html | 630 |
1 files changed, 630 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03164.html b/docs/doxygen/nel/a03164.html new file mode 100644 index 00000000..3a290768 --- /dev/null +++ b/docs/doxygen/nel/a03164.html @@ -0,0 +1,630 @@ +<!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::CPSSizedParticle 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::CPSSizedParticle Class Reference</h1><code>#include <<a class="el" href="a06258.html">ps_particle_basic.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CPSSizedParticle: +<p><center><img src="a03164.png" usemap="#NL3D::CPSSizedParticle_map" border="0" alt=""></center> +<map name="NL3D::CPSSizedParticle_map"> +<area href="a03161.html" alt="NL3D::CPSConstraintMesh" shape="rect" coords="235,56,460,80"> +<area href="a03192.html" alt="NL3D::CPSFaceLookAt::CSecondSize" shape="rect" coords="235,112,460,136"> +<area href="a03194.html" alt="NL3D::CPSFanLight" shape="rect" coords="235,168,460,192"> +<area href="a03218.html" alt="NL3D::CPSMesh" shape="rect" coords="235,224,460,248"> +<area href="a03187.html" alt="NL3D::CPSQuad" shape="rect" coords="235,280,460,304"> +<area href="a03226.html" alt="NL3D::CPSRibbon" shape="rect" coords="235,336,460,360"> +<area href="a03230.html" alt="NL3D::CPSRibbonLookAt" shape="rect" coords="235,392,460,416"> +<area href="a03233.html" alt="NL3D::CPSShockWave" shape="rect" coords="235,448,460,472"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +this class adds tunable size to a particle. Can be added using public multiple inheritance +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00252">252</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="a03164.html#NL3D_1_1CPSSizedParticlea0">CPSSizedParticle</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">ctor : default are 0.1f sized particles <a href="#NL3D_1_1CPSSizedParticlea0"></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="a03164.html#NL3D_1_1CPSSizedParticlea1">getSize</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the constant size <a href="#NL3D_1_1CPSSizedParticlea1"></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="a03164.html#NL3D_1_1CPSSizedParticlea2">getSizeScheme</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the size scheme (NULL if none) const version <a href="#NL3D_1_1CPSSizedParticlea2"></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="a03164.html#NL3D_1_1CPSSizedParticlea3">getSizeScheme</a> (void)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the size scheme (NULL if none) <a href="#NL3D_1_1CPSSizedParticlea3"></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="a03164.html#NL3D_1_1CPSSizedParticlea4">serialSizeScheme</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f) throw (NLMISC::EStream)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">serialization. We choose a different name because of multiple-inheritance <a href="#NL3D_1_1CPSSizedParticlea4"></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="a03164.html#NL3D_1_1CPSSizedParticlea5">setSize</a> (float <a class="el" href="a04223.html#a587">size</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set a constant size for the particles. <a href="#NL3D_1_1CPSSizedParticlea5"></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="a03164.html#NL3D_1_1CPSSizedParticlea6">setSizeScheme</a> (<a class="el" href="a03136.html">CPSAttribMaker</a>< float > *<a class="el" href="a04223.html#a587">size</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="a03164.html#NL3D_1_1CPSSizedParticlea7">~CPSSizedParticle</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">dtor <a href="#NL3D_1_1CPSSizedParticlea7"></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="a03164.html#NL3D_1_1CPSSizedParticleb0">deleteSizeElement</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="a03164.html#NL3D_1_1CPSSizedParticleb1">getSizeOwner</a> (void)=0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">deriver must return their owner there <a href="#NL3D_1_1CPSSizedParticleb1"></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="a03164.html#NL3D_1_1CPSSizedParticleb2">newSizeElement</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="a03164.html#NL3D_1_1CPSSizedParticleb3">resizeSize</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="a03164.html#NL3D_1_1CPSSizedParticlep0">_ParticleSize</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="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSSizedParticlea0" doxytag="NL3D::CPSSizedParticle::CPSSizedParticle" ></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::CPSSizedParticle::CPSSizedParticle </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> +ctor : default are 0.1f sized particles +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00200">200</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +<div class="fragment"><pre>00200 : <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep0">_ParticleSize</a>(0.3f), <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>(NULL) +00201 { +00202 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticlea7" doxytag="NL3D::CPSSizedParticle::~CPSSizedParticle" ></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::CPSSizedParticle::~<a class="el" href="a03164.html">CPSSizedParticle</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> +dtor +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00205">205</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00290">_SizeScheme</a>. +<p> +<div class="fragment"><pre>00206 { +00207 <span class="keyword">delete</span> <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>; +00208 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSSizedParticleb0" doxytag="NL3D::CPSSizedParticle::deleteSizeElement" ></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::CPSSizedParticle::deleteSizeElement </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#l00295">295</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00290">_SizeScheme</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="a06277.html#l00172">NL3D::CPSRibbonLookAt::deleteElement()</a>, <a class="el" href="a06273.html#l00322">NL3D::CPSRibbon::deleteElement()</a>, <a class="el" href="a06263.html#l00105">NL3D::CPSQuad::deleteElement()</a>, <a class="el" href="a06250.html#l01874">NL3D::CPSConstraintMesh::deleteElement()</a>, <a class="el" href="a06250.html#l00260">NL3D::CPSMesh::deleteElement()</a>, and <a class="el" href="a06235.html#l00272">NL3D::CPSFanLight::deleteElement()</a>. +<p> +<div class="fragment"><pre>00296 { +00297 <span class="keywordflow">if</span> (<a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a> && <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>->hasMemory()) <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>->deleteElement(index); +00298 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticlea1" doxytag="NL3D::CPSSizedParticle::getSize" ></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::CPSSizedParticle::getSize </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 size +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00274">274</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00289">_ParticleSize</a>. +<p> +Referenced by <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#l00299">resizeSize()</a>, and <a class="el" href="a06257.html#l00183">setSizeScheme()</a>. +<p> +<div class="fragment"><pre>00274 { <span class="keywordflow">return</span> <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep0">_ParticleSize</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticleb1" doxytag="NL3D::CPSSizedParticle::getSizeOwner" ></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::CPSSizedParticle::getSizeOwner </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="a03192.html#NL3D_1_1CPSFaceLookAt_1_1CSecondSizea1">NL3D::CPSFaceLookAt::CSecondSize</a>, <a class="el" href="a03194.html#NL3D_1_1CPSFanLightb9">NL3D::CPSFanLight</a>, <a class="el" href="a03218.html#NL3D_1_1CPSMeshb9">NL3D::CPSMesh</a>, <a class="el" href="a03161.html#NL3D_1_1CPSConstraintMeshb15">NL3D::CPSConstraintMesh</a>, <a class="el" href="a03187.html#NL3D_1_1CPSQuadb12">NL3D::CPSQuad</a>, <a class="el" href="a03226.html#NL3D_1_1CPSRibbonb10">NL3D::CPSRibbon</a>, <a class="el" href="a03230.html#NL3D_1_1CPSRibbonLookAtb10">NL3D::CPSRibbonLookAt</a>, and <a class="el" href="a03233.html#NL3D_1_1CPSShockWaveb12">NL3D::CPSShockWave</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00299">resizeSize()</a>, and <a class="el" href="a06257.html#l00183">setSizeScheme()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticlea2" doxytag="NL3D::CPSSizedParticle::getSizeScheme" ></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::CPSSizedParticle::getSizeScheme </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 size scheme (NULL if none) const version +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00268">268</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00290">_SizeScheme</a>. +<p> +<div class="fragment"><pre>00268 { <span class="keywordflow">return</span> <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticlea3" doxytag="NL3D::CPSSizedParticle::getSizeScheme" ></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::CPSSizedParticle::getSizeScheme </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 size scheme (NULL if none) +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00265">265</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00290">_SizeScheme</a>. +<p> +Referenced by <a class="el" href="a06233.html#l00379">NL3D::CPSFaceLookAtHelper::drawLookAt()</a>, and <a class="el" href="a06233.html#l00089">NL3D::CPSFaceLookAtHelper::drawLookAtAlignOnMotion()</a>. +<p> +<div class="fragment"><pre>00265 { <span class="keywordflow">return</span> <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticleb2" doxytag="NL3D::CPSSizedParticle::newSizeElement" ></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::CPSSizedParticle::newSizeElement </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#l00291">291</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00290">_SizeScheme</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="a06277.html#l00163">NL3D::CPSRibbonLookAt::newElement()</a>, <a class="el" href="a06273.html#l00313">NL3D::CPSRibbon::newElement()</a>, <a class="el" href="a06263.html#l00097">NL3D::CPSQuad::newElement()</a>, <a class="el" href="a06250.html#l01855">NL3D::CPSConstraintMesh::newElement()</a>, <a class="el" href="a06250.html#l00225">NL3D::CPSMesh::newElement()</a>, and <a class="el" href="a06235.html#l00264">NL3D::CPSFanLight::newElement()</a>. +<p> +<div class="fragment"><pre>00292 { +00293 <span class="keywordflow">if</span> (<a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a> && <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>->hasMemory()) <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>->newElement(emitterLocated, emitterIndex); +00294 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticleb3" doxytag="NL3D::CPSSizedParticle::resizeSize" ></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::CPSSizedParticle::resizeSize </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#l00299">299</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06258.html#l00290">_SizeScheme</a>, <a class="el" href="a06258.html#l00274">getSize()</a>, <a class="el" href="a03164.html#NL3D_1_1CPSSizedParticleb1">getSizeOwner()</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="a06277.html#l00181">NL3D::CPSRibbonLookAt::resize()</a>, <a class="el" href="a06273.html#l00331">NL3D::CPSRibbon::resize()</a>, <a class="el" href="a06262.html#l00276">NL3D::CPSQuad::resize()</a>, <a class="el" href="a06250.html#l01889">NL3D::CPSConstraintMesh::resize()</a>, <a class="el" href="a06250.html#l00423">NL3D::CPSMesh::resize()</a>, and <a class="el" href="a06235.html#l00432">NL3D::CPSFanLight::resize()</a>. +<p> +<div class="fragment"><pre>00300 { +00301 <a class="code" href="a04199.html#a6">nlassert</a>(size < (1 << 16)); +00302 <span class="keywordflow">if</span> (<a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a> && <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>->hasMemory()) <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>->resize(size, <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticleb1">getSizeOwner</a>()-><a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlea1">getSize</a>()); +00303 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticlea4" doxytag="NL3D::CPSSizedParticle::serialSizeScheme" ></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::CPSSizedParticle::serialSizeScheme </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> +serialization. We choose a different name because of multiple-inheritance +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00211">211</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +<div class="fragment"><pre>00212 { +00213 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a>(1); +00214 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00215 { +00216 <span class="keywordflow">if</span> (<a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>) +00217 { +00218 <span class="keyword">delete</span> <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>; +00219 <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a> = NULL; +00220 } +00221 } +00222 <span class="keywordtype">bool</span> useSizeScheme = <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a> != NULL; +00223 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(useSizeScheme); +00224 <span class="keywordflow">if</span> (useSizeScheme) +00225 { +00226 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_6">serialPolyPtr</a>(_SizeScheme); +00227 } +00228 <span class="keywordflow">else</span> +00229 { +00230 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(_ParticleSize); +00231 } +00232 }; +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticlea5" doxytag="NL3D::CPSSizedParticle::setSize" ></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::CPSSizedParticle::setSize </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>size</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set a constant size for the particles. +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00192">192</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00289">_ParticleSize</a>, <a class="el" href="a06258.html#l00290">_SizeScheme</a>, and <a class="el" href="a05646.html#l00645">size</a>. +<p> +<div class="fragment"><pre>00193 { +00194 <span class="keyword">delete</span> <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>; +00195 <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a> = NULL; +00196 <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep0">_ParticleSize</a> = <a class="code" href="a04223.html#a587">size</a>; +00197 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticlea6" doxytag="NL3D::CPSSizedParticle::setSizeScheme" ></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::CPSSizedParticle::setSizeScheme </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>size</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set an attribute maker that produce a size It must have been allocated by new It will be deleted by this object +<p> +Definition at line <a class="el" href="a06257.html#l00183">183</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a06258.html#l00290">_SizeScheme</a>, <a class="el" href="a06258.html#l00274">getSize()</a>, <a class="el" href="a03164.html#NL3D_1_1CPSSizedParticleb1">getSizeOwner()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05646.html#l00645">size</a>. +<p> +<div class="fragment"><pre>00184 { +00185 <a class="code" href="a04199.html#a6">nlassert</a>(size != NULL); +00186 <span class="keyword">delete</span> <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a>; +00187 <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlep1">_SizeScheme</a> = <a class="code" href="a04223.html#a587">size</a>; +00188 <span class="keywordflow">if</span> (<a class="code" href="a03164.html#NL3D_1_1CPSSizedParticleb1">getSizeOwner</a>() && <a class="code" href="a04223.html#a587">size</a>->hasMemory()) <a class="code" href="a04223.html#a587">size</a>->resize(<a class="code" href="a03164.html#NL3D_1_1CPSSizedParticleb1">getSizeOwner</a>()->getMaxSize(), <a class="code" href="a03164.html#NL3D_1_1CPSSizedParticleb1">getSizeOwner</a>()-><a class="code" href="a03164.html#NL3D_1_1CPSSizedParticlea1">getSize</a>()); +00189 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSSizedParticlep0" doxytag="NL3D::CPSSizedParticle::_ParticleSize" ></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="a03164.html#NL3D_1_1CPSSizedParticlep0">NL3D::CPSSizedParticle::_ParticleSize</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#l00289">289</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +Referenced by <a class="el" href="a06231.html#l00055">NL3D::CPSFaceHelper::drawFaces()</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="a06250.html#l00521">NL3D::CPSConstraintMeshHelper::drawMeshs()</a>, <a class="el" href="a06250.html#l00793">NL3D::CPSConstraintMeshHelper::drawPrerotatedMeshs()</a>, <a class="el" href="a06258.html#l00274">getSize()</a>, and <a class="el" href="a06257.html#l00192">setSize()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSSizedParticlep1" doxytag="NL3D::CPSSizedParticle::_SizeScheme" ></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="a03164.html#NL3D_1_1CPSSizedParticlep1">NL3D::CPSSizedParticle::_SizeScheme</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#l00290">290</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00295">deleteSizeElement()</a>, <a class="el" href="a06231.html#l00055">NL3D::CPSFaceHelper::drawFaces()</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="a06250.html#l00521">NL3D::CPSConstraintMeshHelper::drawMeshs()</a>, <a class="el" href="a06250.html#l00793">NL3D::CPSConstraintMeshHelper::drawPrerotatedMeshs()</a>, <a class="el" href="a06258.html#l00265">getSizeScheme()</a>, <a class="el" href="a06258.html#l00291">newSizeElement()</a>, <a class="el" href="a06258.html#l00299">resizeSize()</a>, <a class="el" href="a06257.html#l00192">setSize()</a>, <a class="el" href="a06257.html#l00183">setSizeScheme()</a>, and <a class="el" href="a06257.html#l00205">~CPSSizedParticle()</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:25:18 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> |