diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a03157.html | 656 |
1 files changed, 656 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03157.html b/docs/doxygen/nel/a03157.html new file mode 100644 index 00000000..188945ff --- /dev/null +++ b/docs/doxygen/nel/a03157.html @@ -0,0 +1,656 @@ +<!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::CPSColoredParticle 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::CPSColoredParticle Class Reference</h1><code>#include <<a class="el" href="a06258.html">ps_particle_basic.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CPSColoredParticle: +<p><center><img src="a03157.png" usemap="#NL3D::CPSColoredParticle_map" border="0" alt=""></center> +<map name="NL3D::CPSColoredParticle_map"> +<area href="a03161.html" alt="NL3D::CPSConstraintMesh" shape="rect" coords="173,56,336,80"> +<area href="a03177.html" alt="NL3D::CPSDot" shape="rect" coords="173,112,336,136"> +<area href="a03194.html" alt="NL3D::CPSFanLight" shape="rect" coords="173,168,336,192"> +<area href="a03187.html" alt="NL3D::CPSQuad" shape="rect" coords="173,224,336,248"> +<area href="a03226.html" alt="NL3D::CPSRibbon" shape="rect" coords="173,280,336,304"> +<area href="a03230.html" alt="NL3D::CPSRibbonLookAt" shape="rect" coords="173,336,336,360"> +<area href="a03233.html" alt="NL3D::CPSShockWave" shape="rect" coords="173,392,336,416"> +<area href="a03240.html" alt="NL3D::CPSTailDot" shape="rect" coords="173,448,336,472"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +this class adds tunable color to a particle. Can be added using public multiple inheritance +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00191">191</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="a03157.html#NL3D_1_1CPSColoredParticlea0">CPSColoredParticle</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">ctor : default are white particles (constant color) <a href="#NL3D_1_1CPSColoredParticlea0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03337.html">NLMISC::CRGBA</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03157.html#NL3D_1_1CPSTailDota15">getColor</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the color. <a href="#NL3D_1_1CPSTailDota15"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a03136.html">CPSAttribMaker</a>< <a class="el" href="a03337.html">CRGBA</a> > * </td><td class="memItemRight" valign=bottom><a class="el" href="a03157.html#NL3D_1_1CPSTailDota16">getColorScheme</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the color scheme (NULL if none) const version <a href="#NL3D_1_1CPSTailDota16"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03136.html">CPSAttribMaker</a>< <a class="el" href="a03337.html">CRGBA</a> > * </td><td class="memItemRight" valign=bottom><a class="el" href="a03157.html#NL3D_1_1CPSTailDota17">getColorScheme</a> (void)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the color scheme (NULL if none) <a href="#NL3D_1_1CPSTailDota17"></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="a03157.html#NL3D_1_1CPSTailDota49">serialColorScheme</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. <a href="#NL3D_1_1CPSTailDota49"></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="a03157.html#NL3D_1_1CPSTailDota53">setColor</a> (<a class="el" href="a03337.html">NLMISC::CRGBA</a> col)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set a constant color for the particles. remove any previous scheme. <a href="#NL3D_1_1CPSTailDota53"></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="a03157.html#NL3D_1_1CPSTailDota54">setColorScheme</a> (<a class="el" href="a03136.html">CPSAttribMaker</a>< <a class="el" href="a03337.html">CRGBA</a> > *col)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="a03157.html#NL3D_1_1CPSColoredParticlea7">~CPSColoredParticle</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">dtor <a href="#NL3D_1_1CPSColoredParticlea7"></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="a03157.html#NL3D_1_1CPSTailDotb3">deleteColorElement</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="a03157.html#NL3D_1_1CPSColoredParticleb1">getColorOwner</a> (void)=0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">deriver must return their owner there <a href="#NL3D_1_1CPSColoredParticleb1"></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="a03157.html#NL3D_1_1CPSTailDotb12">newColorElement</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="a03157.html#NL3D_1_1CPSTailDotb17">resizeColor</a> (<a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a587">size</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03157.html#NL3D_1_1CPSColoredParticleb4">updateMatAndVbForColor</a> (void)=0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Update the material and the vb and the like so that they match the color scheme. <a href="#NL3D_1_1CPSColoredParticleb4"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03337.html">CRGBA</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03157.html#NL3D_1_1CPSTailDotp1">_Color</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03136.html">CPSAttribMaker</a>< <a class="el" href="a03337.html">CRGBA</a> > * </td><td class="memItemRight" valign=bottom><a class="el" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSColoredParticlea0" doxytag="NL3D::CPSColoredParticle::CPSColoredParticle" ></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::CPSColoredParticle::CPSColoredParticle </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 white particles (constant color) +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00144">144</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +<div class="fragment"><pre>00144 : <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp1">_Color</a>(<a class="code" href="a03337.html">CRGBA</a>(255, 255, 255)), <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>(NULL) +00145 { +00146 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColoredParticlea7" doxytag="NL3D::CPSColoredParticle::~CPSColoredParticle" ></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::CPSColoredParticle::~<a class="el" href="a03157.html">CPSColoredParticle</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#l00149">149</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +<div class="fragment"><pre>00150 { +00151 <span class="keyword">delete</span> <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>; +00152 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSTailDotb3" doxytag="NL3D::CPSColoredParticle::deleteColorElement" ></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::CPSColoredParticle::deleteColorElement </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#l00237">237</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06214.html#l00285">NL3D::CPSAttribMaker< CRGBA >::deleteElement()</a>, <a class="el" href="a06214.html#l00282">NL3D::CPSAttribMaker< CRGBA >::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="a06283.html#l00220">NL3D::CPSTailDot::deleteElement()</a>, <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="a06235.html#l00272">NL3D::CPSFanLight::deleteElement()</a>, and <a class="el" href="a06226.html#l00239">NL3D::CPSDot::deleteElement()</a>. +<p> +<div class="fragment"><pre>00238 { +00239 <span class="keywordflow">if</span> (<a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a> && <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>->hasMemory()) <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>->deleteElement(index); +00240 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTailDota15" doxytag="NL3D::CPSColoredParticle::getColor" ></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="a03337.html">NLMISC::CRGBA</a> NL3D::CPSColoredParticle::getColor </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 color. +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00211">211</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +<div class="fragment"><pre>00211 { <span class="keywordflow">return</span> <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp1">_Color</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColoredParticleb1" doxytag="NL3D::CPSColoredParticle::getColorOwner" ></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::CPSColoredParticle::getColorOwner </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="a03177.html#NL3D_1_1CPSDotb6">NL3D::CPSDot</a>, <a class="el" href="a03194.html#NL3D_1_1CPSFanLightb8">NL3D::CPSFanLight</a>, <a class="el" href="a03161.html#NL3D_1_1CPSConstraintMeshb13">NL3D::CPSConstraintMesh</a>, <a class="el" href="a03187.html#NL3D_1_1CPSQuadb10">NL3D::CPSQuad</a>, <a class="el" href="a03226.html#NL3D_1_1CPSRibbonb7">NL3D::CPSRibbon</a>, <a class="el" href="a03230.html#NL3D_1_1CPSRibbonLookAtb7">NL3D::CPSRibbonLookAt</a>, <a class="el" href="a03233.html#NL3D_1_1CPSShockWaveb10">NL3D::CPSShockWave</a>, and <a class="el" href="a03240.html#NL3D_1_1CPSTailDotb6">NL3D::CPSTailDot</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00241">resizeColor()</a>, and <a class="el" href="a06257.html#l00125">setColorScheme()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTailDota16" doxytag="NL3D::CPSColoredParticle::getColorScheme" ></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><<a class="el" href="a03337.html">CRGBA</a>>* NL3D::CPSColoredParticle::getColorScheme </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 color scheme (NULL if none) const version +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00205">205</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +<div class="fragment"><pre>00205 { <span class="keywordflow">return</span> <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTailDota17" doxytag="NL3D::CPSColoredParticle::getColorScheme" ></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><<a class="el" href="a03337.html">CRGBA</a>>* NL3D::CPSColoredParticle::getColorScheme </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 color scheme (NULL if none) +<p> + +<p> +Definition at line <a class="el" href="a06258.html#l00202">202</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +<div class="fragment"><pre>00202 { <span class="keywordflow">return</span> <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTailDotb12" doxytag="NL3D::CPSColoredParticle::newColorElement" ></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::CPSColoredParticle::newColorElement </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#l00233">233</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a06214.html#l00282">NL3D::CPSAttribMaker< CRGBA >::hasMemory()</a>, <a class="el" href="a06214.html#l00290">NL3D::CPSAttribMaker< CRGBA >::newElement()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06283.html#l00212">NL3D::CPSTailDot::newElement()</a>, <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="a06235.html#l00264">NL3D::CPSFanLight::newElement()</a>, and <a class="el" href="a06226.html#l00233">NL3D::CPSDot::newElement()</a>. +<p> +<div class="fragment"><pre>00234 { +00235 <span class="keywordflow">if</span> (<a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a> && <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>->hasMemory()) <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>->newElement(emitterLocated, emitterIndex); +00236 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTailDotb17" doxytag="NL3D::CPSColoredParticle::resizeColor" ></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::CPSColoredParticle::resizeColor </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#l00241">241</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. +<p> +References <a class="el" href="a03157.html#NL3D_1_1CPSColoredParticleb1">getColorOwner()</a>, <a class="el" href="a06214.html#l00282">NL3D::CPSAttribMaker< CRGBA >::hasMemory()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06214.html#l00296">NL3D::CPSAttribMaker< CRGBA >::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="a06283.html#l00228">NL3D::CPSTailDot::resize()</a>, <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="a06235.html#l00432">NL3D::CPSFanLight::resize()</a>, and <a class="el" href="a06226.html#l00262">NL3D::CPSDot::resize()</a>. +<p> +<div class="fragment"><pre>00242 { +00243 <a class="code" href="a04199.html#a6">nlassert</a>(size < (1 << 16)); +00244 <span class="keywordflow">if</span> (<a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a> && <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>->hasMemory()) <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>->resize(size, <a class="code" href="a03157.html#NL3D_1_1CPSColoredParticleb1">getColorOwner</a>()->getSize()); +00245 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTailDota49" doxytag="NL3D::CPSColoredParticle::serialColorScheme" ></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::CPSColoredParticle::serialColorScheme </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. +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00155">155</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +<div class="fragment"><pre>00156 { +00157 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a>(1); +00158 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00159 { +00160 <span class="keywordflow">if</span> (<a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>) +00161 { +00162 <span class="keyword">delete</span> <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>; +00163 <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a> = NULL; +00164 } +00165 } +00166 <span class="keywordtype">bool</span> useColorScheme = <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a> != NULL; +00167 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(useColorScheme); +00168 <span class="keywordflow">if</span> (useColorScheme) +00169 { +00170 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_6">serialPolyPtr</a>(_ColorScheme); +00171 } +00172 <span class="keywordflow">else</span> +00173 { +00174 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(_Color); +00175 } +00176 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTailDota53" doxytag="NL3D::CPSColoredParticle::setColor" ></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::CPSColoredParticle::setColor </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03337.html">NLMISC::CRGBA</a> </td> + <td class="mdname1" valign="top" nowrap> <em>col</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 color for the particles. remove any previous scheme. +<p> + +<p> +Definition at line <a class="el" href="a06257.html#l00135">135</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a03157.html#NL3D_1_1CPSColoredParticleb4">updateMatAndVbForColor()</a>. +<p> +<div class="fragment"><pre>00136 { +00137 <span class="keyword">delete</span> <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>; +00138 <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a> = NULL; +00139 <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp1">_Color</a> = col; +00140 <a class="code" href="a03157.html#NL3D_1_1CPSColoredParticleb4">updateMatAndVbForColor</a>(); +00141 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTailDota54" doxytag="NL3D::CPSColoredParticle::setColorScheme" ></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::CPSColoredParticle::setColorScheme </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03136.html">CPSAttribMaker</a>< <a class="el" href="a03337.html">CRGBA</a> > * </td> + <td class="mdname1" valign="top" nowrap> <em>col</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 color It must have been allocated by new It will be deleted by this object +<p> +Definition at line <a class="el" href="a06257.html#l00125">125</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>. +<p> +References <a class="el" href="a03157.html#NL3D_1_1CPSColoredParticleb1">getColorOwner()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06214.html#l00296">NL3D::CPSAttribMaker< T >::resize()</a>, and <a class="el" href="a03157.html#NL3D_1_1CPSColoredParticleb4">updateMatAndVbForColor()</a>. +<p> +<div class="fragment"><pre>00126 { +00127 <a class="code" href="a04199.html#a6">nlassert</a>(col); +00128 <span class="keyword">delete</span> <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a>; +00129 <a class="code" href="a03157.html#NL3D_1_1CPSTailDotp2">_ColorScheme</a> = col; +00130 <span class="keywordflow">if</span> (<a class="code" href="a03157.html#NL3D_1_1CPSColoredParticleb1">getColorOwner</a>() && col->hasMemory()) col->resize(<a class="code" href="a03157.html#NL3D_1_1CPSColoredParticleb1">getColorOwner</a>()->getMaxSize(), <a class="code" href="a03157.html#NL3D_1_1CPSColoredParticleb1">getColorOwner</a>()->getSize()); +00131 <a class="code" href="a03157.html#NL3D_1_1CPSColoredParticleb4">updateMatAndVbForColor</a>(); +00132 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColoredParticleb4" doxytag="NL3D::CPSColoredParticle::updateMatAndVbForColor" ></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 void NL3D::CPSColoredParticle::updateMatAndVbForColor </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> +Update the material and the vb and the like so that they match the color scheme. +<p> + +<p> +Implemented in <a class="el" href="a03177.html#NL3D_1_1CPSDotb14">NL3D::CPSDot</a>, <a class="el" href="a03194.html#NL3D_1_1CPSFanLighta87">NL3D::CPSFanLight</a>, <a class="el" href="a03161.html#NL3D_1_1CPSConstraintMeshb33">NL3D::CPSConstraintMesh</a>, <a class="el" href="a03187.html#NL3D_1_1CPSQuadb32">NL3D::CPSQuad</a>, <a class="el" href="a03226.html#NL3D_1_1CPSRibbond7">NL3D::CPSRibbon</a>, <a class="el" href="a03230.html#NL3D_1_1CPSRibbonLookAtd1">NL3D::CPSRibbonLookAt</a>, <a class="el" href="a03233.html#NL3D_1_1CPSShockWaveb28">NL3D::CPSShockWave</a>, and <a class="el" href="a03240.html#NL3D_1_1CPSTailDotd3">NL3D::CPSTailDot</a>. +<p> +Referenced by <a class="el" href="a06257.html#l00135">setColor()</a>, and <a class="el" href="a06257.html#l00125">setColorScheme()</a>. </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSTailDotp1" doxytag="NL3D::CPSColoredParticle::_Color" ></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="a03337.html">CRGBA</a> <a class="el" href="a03157.html#NL3D_1_1CPSTailDotp1">NL3D::CPSColoredParticle::_Color</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#l00226">226</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSTailDotp2" doxytag="NL3D::CPSColoredParticle::_ColorScheme" ></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><<a class="el" href="a03337.html">CRGBA</a>>* <a class="el" href="a03157.html#NL3D_1_1CPSTailDotp2">NL3D::CPSColoredParticle::_ColorScheme</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#l00228">228</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="a06250.html#l00521">NL3D::CPSConstraintMeshHelper::drawMeshs()</a>, and <a class="el" href="a06250.html#l00793">NL3D::CPSConstraintMeshHelper::drawPrerotatedMeshs()</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:05:22 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> |