diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a03202.html | 1724 |
1 files changed, 1724 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03202.html b/docs/doxygen/nel/a03202.html new file mode 100644 index 00000000..be3255a6 --- /dev/null +++ b/docs/doxygen/nel/a03202.html @@ -0,0 +1,1724 @@ +<!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::CPSFloatMemory 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::CPSFloatMemory Class Reference</h1><code>#include <<a class="el" href="a06238.html">ps_float.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CPSFloatMemory: +<p><center><img src="a03202.png" usemap="#NL3D::CPSFloatMemory_map" border="0" alt=""></center> +<map name="NL3D::CPSFloatMemory_map"> +<area href="a03141.html" alt="NL3D::CPSAttribMakerMemory< float >" shape="rect" coords="0,280,263,304"> +<area href="a03140.html" alt="NL3D::CPSAttribMakerMemoryBase< float >" shape="rect" coords="0,224,263,248"> +<area href="a03136.html" alt="NL3D::CPSAttribMaker< float >" shape="rect" coords="0,168,263,192"> +<area href="a03137.html" alt="NL3D::CPSAttribMakerBase" shape="rect" coords="0,112,263,136"> +<area href="a02867.html" alt="NLMISC::IStreamable" shape="rect" coords="0,56,263,80"> +<area href="a02540.html" alt="NLMISC::IClassable" shape="rect" coords="0,0,263,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +this memorize float by applying some function on the emitter. For a particle's attribute, each particle has its own value memorized You MUST called setScheme (from <a class="el" href="a03139.html">CPSAttribMakerMemory</a>) to tell how the value will be generted +<p> + +<p> +Definition at line <a class="el" href="a06238.html#l00085">85</a> of file <a class="el" href="a06238.html">ps_float.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><a class="el" href="a03137.html">CPSAttribMakerBase</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a03202.html#NL3D_1_1CPSFloatMemorya0">clone</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03141.html#NL3D_1_1CPSFloatMemorya1">CPSAttribMakerMemory</a> (const <a class="el" href="a03139.html">CPSAttribMakerMemory</a>< float > &other)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03141.html#NL3D_1_1CPSFloatMemorya2">CPSAttribMakerMemory</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03202.html#NL3D_1_1CPSFloatMemorya3">CPSFloatMemory</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya2">deleteElement</a> (<a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a566">index</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> <a href="#NL3D_1_1CPSColorMemorya2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz714_0">get</a> (float input)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya3">get</a> (<a class="el" href="a03214.html">CPSLocated</a> *loc, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a566">index</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> <a href="#NL3D_1_1CPSColorMemorya3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz716_0">getClamping</a> (void) const</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02540.html#NL3D_1_1ITrackKeyFramer_3_01CKeyVector_01_4a6">getClassName</a> ()=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya5">getDefaultValue</a> (void) const</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the default value : <a href="#NL3D_1_1CPSColorMemorya5"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03207.html">CPSInputType</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz716_1">getInput</a> (void) const</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a03141.html#NL3D_1_1CPSFloatMemorya11">getMaxValue</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the min value, or an evalution that is guaranteed to be < to it (meaningful for ordered set only) <a href="#NL3D_1_1CPSFloatMemorya11"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a03141.html#NL3D_1_1CPSFloatMemorya12">getMinValue</a> (void) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the max value, or an evalution that is guaranteed to be > to it (meaningful for ordered set only) <a href="#NL3D_1_1CPSFloatMemorya12"></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="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z716_0">getNbCycles</a> (void) const</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="a03140.html#NL3D_1_1CPSColorMemorya8">getScheme</a> (void) const</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the scheme used (const version) <a href="#NL3D_1_1CPSColorMemorya8"></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="a03140.html#NL3D_1_1CPSColorMemorya9">getScheme</a> (void)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the scheme used <a href="#NL3D_1_1CPSColorMemorya9"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual const char * </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z712_0">getType</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">inherited from <a class="el" href="a03137.html">CPSAttribMakerBase</a>. Template specialization will do the job <a href="#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z712_0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz716_3">hasCustomInput</a> (void)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">tells wether one may choose one attribute from a <a class="el" href="a03214.html">CPSLocated</a> to use as an input. If false, the input(s) is fixed <a href="#NL3D_1_1CPSColorMemoryz716_3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z718_1">hasMemory</a> (void) const</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz716_4">isClampingSupported</a> (void) const</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void * </td><td class="memItemRight" valign=bottom><a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya10">make</a> (<a class="el" href="a03214.html">CPSLocated</a> *loc, <a class="el" href="a04558.html#a11">uint32</a> startIndex, void *output, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a582">stride</a>, <a class="el" href="a04558.html#a11">uint32</a> numAttrib, bool allowNoCopy=false, <a class="el" href="a04558.html#a11">uint32</a> srcStep=(1<< 16)) const</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> <a href="#NL3D_1_1CPSColorMemorya10"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya11">make4</a> (<a class="el" href="a03214.html">CPSLocated</a> *loc, <a class="el" href="a04558.html#a11">uint32</a> startIndex, void *tab, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a582">stride</a>, <a class="el" href="a04558.html#a11">uint32</a> numAttrib, <a class="el" href="a04558.html#a11">uint32</a> srcStep=(1<< 16)) const</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> <a href="#NL3D_1_1CPSColorMemorya11"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya12">makeN</a> (<a class="el" href="a03214.html">CPSLocated</a> *loc, <a class="el" href="a04558.html#a11">uint32</a> startIndex, void *tab, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a582">stride</a>, <a class="el" href="a04558.html#a11">uint32</a> numAttrib, <a class="el" href="a04558.html#a11">uint32</a> nbReplicate, <a class="el" href="a04558.html#a11">uint32</a> srcStep=(1<< 16)) const</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> <a href="#NL3D_1_1CPSColorMemorya12"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03141.html#NL3D_1_1CPSFloatMemorya23">newElement</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="mdescLeft"> </td><td class="mdescRight">inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> <a href="#NL3D_1_1CPSFloatMemorya23"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03202.html#NL3D_1_1CPSFloatMemorya24">NLMISC_DECLARE_CLASS</a> (<a class="el" href="a03202.html">CPSFloatMemory</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya15">resize</a> (<a class="el" href="a04558.html#a11">uint32</a> capacity, <a class="el" href="a04558.html#a11">uint32</a> nbPresentElements)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03141.html#NL3D_1_1CPSFloatMemorya26">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f) throw (NLMISC::EStream)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">serialisation of the object. Derivers MUST call this, (if they use the attribute of this class at least) <a href="#NL3D_1_1CPSFloatMemorya26"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz716_5">setClamping</a> (bool enable=true)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya17">setDefaultValue</a> (floatdefaultValue)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz716_6">setInput</a> (const <a class="el" href="a03207.html">CPSInputType</a> &input)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z716_1">setNbCycles</a> (float nbCycles)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya18">setScheme</a> (<a class="el" href="a03136.html">CPSAttribMaker</a>< float > *scheme)</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="a03140.html#NL3D_1_1CPSColorMemoryp0">_DefaultValue</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4p0">_HasMemory</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4p1">_NbCycles</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="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03135.html">CPSAttrib</a>< float > </td><td class="memItemRight" valign=bottom><a class="el" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSFloatMemorya3" doxytag="NL3D::CPSFloatMemory::CPSFloatMemory" ></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::CPSFloatMemory::CPSFloatMemory </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> [inline]</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="a06238.html#l00088">88</a> of file <a class="el" href="a06238.html">ps_float.h</a>. +<p> +<div class="fragment"><pre>00088 { <a class="code" href="a03140.html#NL3D_1_1CPSColorMemorya17">setDefaultValue</a>(0.f); } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSFloatMemorya0" doxytag="NL3D::CPSFloatMemory::clone" ></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="a03137.html">CPSAttribMakerBase</a>* NL3D::CPSFloatMemory::clone </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Implements <a class="el" href="a03137.html#NL3D_1_1CPSValueGradient_3_01uint32_01_4a0">NL3D::CPSAttribMakerBase</a>. +<p> +Definition at line <a class="el" href="a06238.html#l00090">90</a> of file <a class="el" href="a06238.html">ps_float.h</a>. +<p> +<div class="fragment"><pre>00090 { <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="a03202.html#NL3D_1_1CPSFloatMemorya3">CPSFloatMemory</a>(*<span class="keyword">this</span>); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSFloatMemorya1" doxytag="NL3D::CPSFloatMemory::CPSAttribMakerMemory" ></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="a03139.html">NL3D::CPSAttribMakerMemory</a>< float >::<a class="el" href="a03139.html">CPSAttribMakerMemory</a> </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03139.html">CPSAttribMakerMemory</a>< float > & </td> + <td class="mdname1" valign="top" nowrap> <em>other</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</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="a06219.html#l01703">1703</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01703 : CPSAttribMakerMemoryBase<float>(other) +01704 { +01705 _MinValue = other._MinValue; +01706 _MaxValue = other._MaxValue; +01707 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSFloatMemorya2" doxytag="NL3D::CPSFloatMemory::CPSAttribMakerMemory" ></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="a03139.html">NL3D::CPSAttribMakerMemory</a>< float >::<a class="el" href="a03139.html">CPSAttribMakerMemory</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> [inline, inherited]</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="a06219.html#l01701">1701</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01701 : CPSAttribMakerMemoryBase<float>() {} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya2" doxytag="NL3D::CPSFloatMemory::deleteElement" ></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 <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::deleteElement </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, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> +<p> + +<p> +Reimplemented from <a class="el" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z718_0">NL3D::CPSAttribMaker< float ></a>. +<p> +Definition at line <a class="el" href="a06219.html#l01558">1558</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01559 { +01560 <a class="code" href="a04199.html#a6">nlassert</a>(_Scheme); <span class="comment">// you should have called setScheme !</span> +01561 <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.remove(index); +01562 <span class="keywordflow">if</span> (<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a>->hasMemory()) +01563 { +01564 <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a>->deleteElement(index); +01565 } +01566 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemoryz714_0" doxytag="NL3D::CPSFloatMemory::get" ></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 float <a class="el" href="a03136.html">NL3D::CPSAttribMaker</a>< float >::get </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>input</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Direct lookup of the result value from a float input (if it makes sense). This bypass what was set with setInput The input must be in [0, 1[ +<p> +Reimplemented in <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a2">NL3D::CPSAttribMakerT< float, CPSFloatCurveFunctor ></a>, <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a2">NL3D::CPSAttribMakerT< float, CPSValueGradientFunc< float > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a2">NL3D::CPSAttribMakerT< float, CPSValueBlendFunc< float > ></a>. +<p> +Definition at line <a class="el" href="a06214.html#l00161">161</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +<div class="fragment"><pre>00161 { <a class="code" href="a04199.html#a6">nlassert</a>(0); <span class="keywordflow">return</span> T(); <span class="comment">/* not supported by default */</span> } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya3" doxytag="NL3D::CPSFloatMemory::get" ></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 float <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::get </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>loc</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>index</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> +<p> + +<p> +Implements <a class="el" href="a03136.html#NL3D_1_1CPSAttribMakerz714_1">NL3D::CPSAttribMaker< float ></a>. +<p> +Definition at line <a class="el" href="a06219.html#l01399">1399</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01400 { +01401 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a566">index</a> < <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize()) <span class="keywordflow">return</span> <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>[<a class="code" href="a04223.html#a566">index</a>]; +01402 <span class="keywordflow">else</span> <span class="keywordflow">return</span> <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp0">_DefaultValue</a>; +01403 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemoryz716_0" doxytag="NL3D::CPSFloatMemory::getClamping" ></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 bool <a class="el" href="a03136.html">NL3D::CPSAttribMaker</a>< float >::getClamping </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, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Test if the clamping is enabled. The default is false (clamping unsupported) <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz716_4">isClampingSupported()</a></dd></dl> + +<p> +Reimplemented in <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a4">NL3D::CPSAttribMakerT< float, CPSFloatCurveFunctor ></a>, <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a4">NL3D::CPSAttribMakerT< float, CPSValueGradientFunc< float > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a4">NL3D::CPSAttribMakerT< float, CPSValueBlendFunc< float > ></a>. +<p> +Definition at line <a class="el" href="a06214.html#l00272">272</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +<div class="fragment"><pre>00272 { <span class="keywordflow">return</span> <span class="keyword">false</span> ; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ITrackKeyFramer_3_01CKeyVector_01_4a6" doxytag="NL3D::CPSFloatMemory::getClassName" ></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 std::string NLMISC::IClassable::getClassName </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> [pure virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Implemented in <a class="el" href="a02995.html#NLAIAGENT_1_1CNumericIndexz1699_0">NLAIAGENT::CNumericIndex</a>, <a class="el" href="a02145.html#NLAIAGENT_1_1VectorTypez1764_0">NLAIC::IPointerGestion</a>, <a class="el" href="a02650.html#NLAIC_1_1CIdentTypez1766_0">NLAIC::CIdentType</a>, and <a class="el" href="a02241.html#CAutomataDescz1896_0">CAutomataDesc</a>. +<p> +Referenced by <a class="el" href="a05549.html#l00091">NLMISC::CClassRegistry::checkObject()</a>, and <a class="el" href="a06525.html#l00039">NL3D::GetTextureSize()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya5" doxytag="NL3D::CPSFloatMemory::getDefaultValue" ></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="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::getDefaultValue </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, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the default value : +<p> + +<p> +Definition at line <a class="el" href="a06219.html#l01356">1356</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01356 { <span class="keywordflow">return</span> <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp0">_DefaultValue</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemoryz716_1" doxytag="NL3D::CPSFloatMemory::getInput" ></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="a03207.html">CPSInputType</a> <a class="el" href="a03136.html">NL3D::CPSAttribMaker</a>< float >::getInput </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, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the type of input (if supported). The default return attrDate <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz716_3">hasCustomInput()</a></dd></dl> + +<p> +Reimplemented in <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a6">NL3D::CPSAttribMakerT< float, CPSFloatCurveFunctor ></a>, <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a6">NL3D::CPSAttribMakerT< float, CPSValueGradientFunc< float > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a6">NL3D::CPSAttribMakerT< float, CPSValueBlendFunc< float > ></a>. +<p> +Definition at line <a class="el" href="a06214.html#l00251">251</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +<div class="fragment"><pre>00251 { <span class="keywordflow">return</span> CPSInputType() ; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSFloatMemorya11" doxytag="NL3D::CPSFloatMemory::getMaxValue" ></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 float <a class="el" href="a03139.html">NL3D::CPSAttribMakerMemory</a>< float >::getMaxValue </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, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the min value, or an evalution that is guaranteed to be < to it (meaningful for ordered set only) +<p> + +<p> +Reimplemented from <a class="el" href="a03136.html#NL3D_1_1CPSColorMemorya6">NL3D::CPSAttribMaker< float ></a>. +<p> +Definition at line <a class="el" href="a06219.html#l01711">1711</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01711 { <span class="keywordflow">return</span> _MaxValue; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSFloatMemorya12" doxytag="NL3D::CPSFloatMemory::getMinValue" ></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 float <a class="el" href="a03139.html">NL3D::CPSAttribMakerMemory</a>< float >::getMinValue </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, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the max value, or an evalution that is guaranteed to be > to it (meaningful for ordered set only) +<p> + +<p> +Reimplemented from <a class="el" href="a03136.html#NL3D_1_1CPSColorMemorya7">NL3D::CPSAttribMaker< float ></a>. +<p> +Definition at line <a class="el" href="a06219.html#l01710">1710</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01710 { <span class="keywordflow">return</span> _MinValue; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z716_0" doxytag="NL3D::CPSFloatMemory::getNbCycles" ></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="a03136.html">NL3D::CPSAttribMaker</a>< float >::getNbCycles </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, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Retrieve the number of cycles <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z716_1">setNbCycles()</a></dd></dl> + +<p> +Definition at line <a class="el" href="a06214.html#l00236">236</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +<div class="fragment"><pre>00236 { <span class="keywordflow">return</span> <a class="code" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4p1">_NbCycles</a> ; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya8" doxytag="NL3D::CPSFloatMemory::getScheme" ></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 >* <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::getScheme </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, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the scheme used (const version) +<p> + +<p> +Definition at line <a class="el" href="a06219.html#l01377">1377</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01377 { <span class="keywordflow">return</span> <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya9" doxytag="NL3D::CPSFloatMemory::getScheme" ></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="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::getScheme </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, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the scheme used +<p> + +<p> +Definition at line <a class="el" href="a06219.html#l01375">1375</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01375 { <span class="keywordflow">return</span> <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z712_0" doxytag="NL3D::CPSFloatMemory::getType" ></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 char * <a class="el" href="a03136.html">NL3D::CPSAttribMaker</a>< float >::getType </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, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +inherited from <a class="el" href="a03137.html">CPSAttribMakerBase</a>. Template specialization will do the job +<p> + +<p> +Implements <a class="el" href="a03137.html#NL3D_1_1CPSAttribMakerBasea2">NL3D::CPSAttribMakerBase</a>. +<p> +Definition at line <a class="el" href="a06214.html#l00147">147</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +<div class="fragment"><pre>00147 { <span class="keywordflow">return</span> <span class="stringliteral">"UNKNOWN"</span>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemoryz716_3" doxytag="NL3D::CPSFloatMemory::hasCustomInput" ></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 bool <a class="el" href="a03136.html">NL3D::CPSAttribMaker</a>< float >::hasCustomInput </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, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +tells wether one may choose one attribute from a <a class="el" href="a03214.html">CPSLocated</a> to use as an input. If false, the input(s) is fixed +<p> + +<p> +Reimplemented in <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a9">NL3D::CPSAttribMakerT< float, CPSFloatCurveFunctor ></a>, <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a9">NL3D::CPSAttribMakerT< float, CPSValueGradientFunc< float > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a9">NL3D::CPSAttribMakerT< float, CPSValueBlendFunc< float > ></a>. +<p> +Definition at line <a class="el" href="a06214.html#l00239">239</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +<div class="fragment"><pre>00239 { <span class="keywordflow">return</span> <span class="keyword">false</span> ; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z718_1" doxytag="NL3D::CPSFloatMemory::hasMemory" ></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="a03136.html">NL3D::CPSAttribMaker</a>< float >::hasMemory </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, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Some attribute makers may hold memory. this return true when this is the case. This also mean that you must call newElement, deleteElement, and resize, when it is called for the owning object (which is likely to be a <a class="el" href="a02691.html">CPSLocatedBindable</a>) +<p> +Definition at line <a class="el" href="a06214.html#l00282">282</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +Referenced by <a class="el" href="a06258.html#l00380">NL3D::CPSRotated2DParticle::deleteAngle2DElement()</a>, <a class="el" href="a06281.html#l00402">NL3D::CPSSound::deleteElement()</a>, <a class="el" href="a06250.html#l01874">NL3D::CPSConstraintMesh::deleteElement()</a>, <a class="el" href="a06244.html#l00323">NL3D::CPSLight::deleteElement()</a>, <a class="el" href="a06229.html#l01873">NL3D::CPSEmitter::deleteElement()</a>, <a class="el" href="a06230.html#l00429">NL3D::CPSModulatedEmitter::deleteEmitteeSpeedElement()</a>, <a class="el" href="a06240.html#l00203">NL3D::CPSForceIntensity::deleteForceIntensityElement()</a>, <a class="el" href="a06258.html#l00295">NL3D::CPSSizedParticle::deleteSizeElement()</a>, <a class="el" href="a06258.html#l00376">NL3D::CPSRotated2DParticle::newAngle2DElement()</a>, <a class="el" href="a06281.html#l00355">NL3D::CPSSound::newElement()</a>, <a class="el" href="a06250.html#l01855">NL3D::CPSConstraintMesh::newElement()</a>, <a class="el" href="a06244.html#l00314">NL3D::CPSLight::newElement()</a>, <a class="el" href="a06229.html#l01858">NL3D::CPSEmitter::newElement()</a>, <a class="el" href="a06230.html#l00424">NL3D::CPSModulatedEmitter::newEmitteeSpeedElement()</a>, <a class="el" href="a06240.html#l00199">NL3D::CPSForceIntensity::newForceIntensityElement()</a>, <a class="el" href="a06258.html#l00291">NL3D::CPSSizedParticle::newSizeElement()</a>, <a class="el" href="a06281.html#l00415">NL3D::CPSSound::resize()</a>, <a class="el" href="a06250.html#l01889">NL3D::CPSConstraintMesh::resize()</a>, <a class="el" href="a06244.html#l00337">NL3D::CPSLight::resize()</a>, <a class="el" href="a06229.html#l01895">NL3D::CPSEmitter::resize()</a>, <a class="el" href="a06258.html#l00384">NL3D::CPSRotated2DParticle::resizeAngle2D()</a>, <a class="el" href="a06230.html#l00434">NL3D::CPSModulatedEmitter::resizeEmitteeSpeed()</a>, <a class="el" href="a06240.html#l00207">NL3D::CPSForceIntensity::resizeForceIntensity()</a>, <a class="el" href="a06258.html#l00299">NL3D::CPSSizedParticle::resizeSize()</a>, <a class="el" href="a06244.html#l00303">NL3D::CPSLight::setAttenEndScheme()</a>, <a class="el" href="a06244.html#l00284">NL3D::CPSLight::setAttenStartScheme()</a>, <a class="el" href="a06281.html#l00216">NL3D::CPSSound::setGainScheme()</a>, <a class="el" href="a06250.html#l01089">NL3D::CPSConstraintMesh::setMorphScheme()</a>, and <a class="el" href="a06281.html#l00235">NL3D::CPSSound::setPitchScheme()</a>. +<p> +<div class="fragment"><pre>00282 { <span class="keywordflow">return</span> <a class="code" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4p0">_HasMemory</a> ; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemoryz716_4" doxytag="NL3D::CPSFloatMemory::isClampingSupported" ></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 bool <a class="el" href="a03136.html">NL3D::CPSAttribMaker</a>< float >::isClampingSupported </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, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +tells wether clamping is supported for the input (value can't go above MaxInputValue) The default is false +<p> +Reimplemented in <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a10">NL3D::CPSAttribMakerT< float, CPSFloatCurveFunctor ></a>, <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a10">NL3D::CPSAttribMakerT< float, CPSValueGradientFunc< float > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a10">NL3D::CPSAttribMakerT< float, CPSValueBlendFunc< float > ></a>. +<p> +Definition at line <a class="el" href="a06214.html#l00258">258</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +<div class="fragment"><pre>00258 { <span class="keywordflow">return</span> <span class="keyword">false</span> ; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya10" doxytag="NL3D::CPSFloatMemory::make" ></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* <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::make </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>loc</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>startIndex</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>void * </td> + <td class="mdname" nowrap> <em>output</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>stride</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>numAttrib</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>allowNoCopy</em> = false, </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>srcStep</em> = (1 << 16)</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"> const<code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> +<p> + +<p> +Implements <a class="el" href="a03136.html#NL3D_1_1CPSAttribMakerz714_2">NL3D::CPSAttribMaker< float ></a>. +<p> +Definition at line <a class="el" href="a06219.html#l01406">1406</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01414 { +01415 <span class="keywordflow">if</span> (!numAttrib) <span class="keywordflow">return</span> output; +01416 <span class="keywordtype">void</span> *tab = output; +01417 <span class="keywordflow">if</span> (!allowNoCopy || srcStep != (1 << 16) || <span class="keyword">sizeof</span>(T) != <a class="code" href="a04223.html#a582">stride</a>) +01418 { +01419 <span class="comment">// we just copy what we have memorized</span> +01420 <span class="keywordflow">if</span> (srcStep == (1 << 16)) +01421 { +01422 <span class="keyword">typename</span> CPSAttrib<T>::const_iterator it = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.begin() + startIndex, endIt = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.begin() + startIndex + numAttrib; +01423 <span class="keywordflow">do</span> +01424 { +01425 *(T *) tab = *it; +01426 ++it; +01427 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01428 } +01429 <span class="keywordflow">while</span> (it != endIt); +01430 } +01431 <span class="keywordflow">else</span> <span class="comment">// no constant step</span> +01432 { +01433 <a class="code" href="a04558.html#a11">uint32</a> fpIndex = startIndex * srcStep; +01434 <span class="keyword">typename</span> CPSAttrib<T>::const_iterator startIt = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.begin(); +01435 <span class="keywordflow">while</span> (numAttrib --) +01436 { +01437 *(T *) tab = *(startIt + (fpIndex >> 16)); +01438 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01439 fpIndex += srcStep; +01440 } +01441 } +01442 <span class="keywordflow">return</span> output; +01443 } +01444 <span class="keywordflow">else</span> +01445 { +01446 <span class="comment">// the caller will read data directly in the vector ...</span> +01447 <span class="keywordflow">return</span> (<span class="keywordtype">void</span> *) &(*(<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.begin() + startIndex)); +01448 } +01449 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya11" doxytag="NL3D::CPSFloatMemory::make4" ></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 <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::make4 </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>loc</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>startIndex</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>void * </td> + <td class="mdname" nowrap> <em>tab</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>stride</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>numAttrib</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>srcStep</em> = (1 << 16)</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"> const<code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> +<p> + +<p> +Implements <a class="el" href="a03136.html#NL3D_1_1CPSAttribMakerz714_3">NL3D::CPSAttribMaker< float ></a>. +<p> +Definition at line <a class="el" href="a06219.html#l01452">1452</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01459 { +01460 <span class="comment">// we just copy what we have memorized</span> +01461 <span class="keywordflow">if</span> (srcStep == (1 << 16)) +01462 { +01463 <span class="keyword">typename</span> CPSAttrib<T>::const_iterator it = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.begin() + startIndex, endIt = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.begin() + startIndex + numAttrib; +01464 <span class="keywordflow">while</span> (it != endIt) +01465 { +01466 *(T *) tab = *it; +01467 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01468 *(T *) tab = *it; +01469 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01470 *(T *) tab = *it; +01471 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01472 *(T *) tab = *it; +01473 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01474 ++it; +01475 } +01476 } +01477 <span class="keywordflow">else</span> +01478 { +01479 <a class="code" href="a04558.html#a11">uint32</a> fpIndex = startIndex * srcStep; +01480 <span class="keyword">typename</span> CPSAttrib<T>::const_iterator startIt = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.begin(); +01481 <span class="keywordflow">while</span> (numAttrib --) +01482 { +01483 *(T *) tab = *(startIt + (fpIndex >> 16)); +01484 *(T *) ((<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>) = *(T *) tab; +01485 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01486 *(T *) ((<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>) = *(T *) tab; +01487 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01488 *(T *) ((<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>) = *(T *) tab; +01489 +01490 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a> + <a class="code" href="a04223.html#a582">stride</a>; +01491 fpIndex += srcStep; +01492 } +01493 } +01494 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya12" doxytag="NL3D::CPSFloatMemory::makeN" ></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 <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::makeN </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>loc</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>startIndex</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>void * </td> + <td class="mdname" nowrap> <em>tab</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>stride</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>numAttrib</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>nbReplicate</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>srcStep</em> = (1 << 16)</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"> const<code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> +<p> + +<p> +Implements <a class="el" href="a03136.html#NL3D_1_1CPSAttribMakerz714_4">NL3D::CPSAttribMaker< float ></a>. +<p> +Definition at line <a class="el" href="a06219.html#l01497">1497</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01505 { +01506 <span class="comment">// we just copy what we have memorized</span> +01507 <a class="code" href="a04558.html#a15">uint</a> k; +01508 <span class="keyword">typename</span> CPSAttrib<T>::const_iterator it = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.begin() + startIndex, endIt = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.begin() + startIndex + numAttrib; +01509 <span class="keywordflow">if</span> (srcStep == (1 << 16)) +01510 { +01511 <span class="keywordflow">while</span> (it != endIt) +01512 { +01513 +01514 <span class="keywordflow">for</span> (k = 0; k < nbReplicate; ++k) +01515 { +01516 *(T *) tab = *it; +01517 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01518 } +01519 ++it; +01520 } +01521 } +01522 <span class="keywordflow">else</span> +01523 { +01524 <a class="code" href="a04558.html#a11">uint32</a> fpIndex = startIndex * srcStep; +01525 <span class="keyword">typename</span> CPSAttrib<T>::const_iterator startIt = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.begin(); +01526 +01527 <span class="keywordflow">while</span> (numAttrib --) +01528 { +01529 *(T *) tab = *(startIt + (fpIndex >> 16)); +01530 <span class="keywordflow">for</span> (k = 1; k < nbReplicate; ++k) +01531 { +01532 *(T *) ((<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>) = *(T *) tab; +01533 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01534 } +01535 tab = (<a class="code" href="a04558.html#a7">uint8</a> *) tab + <a class="code" href="a04223.html#a582">stride</a>; +01536 fpIndex += srcStep; +01537 } +01538 +01539 } +01540 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSFloatMemorya23" doxytag="NL3D::CPSFloatMemory::newElement" ></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 <a class="el" href="a03139.html">NL3D::CPSAttribMakerMemory</a>< float >::newElement </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> [virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +inherited from <a class="el" href="a03136.html">CPSAttribMaker</a> +<p> + +<p> +well a value may be returned without having to know the emitter (random, user param ...) but this case is really useless anyway ... +<p> +Reimplemented from <a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya13">NL3D::CPSAttribMakerMemoryBase< float ></a>. +<p> +Definition at line <a class="el" href="a06218.html#l00117">117</a> of file <a class="el" href="a06218.html">ps_attrib_maker_helper.cpp</a>. +<p> +References <a class="el" href="a05484.html#l00038">min</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00118 { +00119 CPSAttribMakerMemoryBase<float>::newElement(emitterLocated, emitterIndex); +00120 <span class="keywordflow">if</span> (<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize() > 1) +00121 { +00122 _MinValue = <a class="code" href="a04061.html#a0">std::min</a>(_MinValue, <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.back()); +00123 _MaxValue = std::max(_MaxValue, <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.back()); +00124 } +00125 <span class="keywordflow">else</span> +00126 { +00127 _MinValue = _MaxValue = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>[0]; +00128 } +00129 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSFloatMemorya24" doxytag="NL3D::CPSFloatMemory::NLMISC_DECLARE_CLASS" ></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::CPSFloatMemory::NLMISC_DECLARE_CLASS </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03202.html">CPSFloatMemory</a> </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> + </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya15" doxytag="NL3D::CPSFloatMemory::resize" ></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 <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::resize </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="mdname" nowrap> <em>capacity</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>nbPresentElements</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +set a new capacity for the memorized attribute, and a number of used element. This usually is 0 , but during edition, this may not be ... so new element are created. this must be called only if this attribute maker has its own memory +<p> +Reimplemented from <a class="el" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z718_3">NL3D::CPSAttribMaker< float ></a>. +<p> +Definition at line <a class="el" href="a06219.html#l01591">1591</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01592 { +01593 <a class="code" href="a04199.html#a6">nlassert</a>(capacity < (1 << 16)); +01594 <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.resize(capacity); +01595 <span class="keywordflow">if</span> (nbPresentElements > <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize()) +01596 { +01597 <span class="keywordflow">while</span> (<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize() != nbPresentElements) +01598 { +01599 <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.insert(_DefaultValue); +01600 } +01601 } +01602 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (nbPresentElements < <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize()) +01603 { +01604 <span class="keywordflow">while</span> (<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize() != nbPresentElements) +01605 { +01606 <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.remove(<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize() - 1); +01607 } +01608 } +01609 +01610 +01611 <span class="keywordflow">if</span> (<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a> && <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a>->hasMemory()) +01612 { +01613 <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a>->resize(capacity, nbPresentElements); +01614 } +01615 +01616 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSFloatMemorya26" doxytag="NL3D::CPSFloatMemory::serial" ></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 <a class="el" href="a03139.html">NL3D::CPSAttribMakerMemory</a>< float >::serial </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>)<code> [virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +serialisation of the object. Derivers MUST call this, (if they use the attribute of this class at least) +<p> + +<p> +Reimplemented from <a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya16">NL3D::CPSAttribMakerMemoryBase< float ></a>. +<p> +Definition at line <a class="el" href="a06218.html#l00099">99</a> of file <a class="el" href="a06218.html">ps_attrib_maker_helper.cpp</a>. +<p> +References <a class="el" href="a05484.html#l00038">min</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00100 { +00101 CPSAttribMakerMemoryBase<float>::serial(f); +00102 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00103 { +00104 <span class="keywordflow">if</span> (<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize() != 0) +00105 { +00106 _MinValue = _MaxValue = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>[0]; +00107 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> k = 1; k < _T.getSize(); ++k) +00108 { +00109 _MinValue = <a class="code" href="a04061.html#a0">std::min</a>(_MinValue, _T[k]); +00110 _MaxValue = std::max(_MaxValue, _T[k]); +00111 } +00112 } +00113 } +00114 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemoryz716_5" doxytag="NL3D::CPSFloatMemory::setClamping" ></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 <a class="el" href="a03136.html">NL3D::CPSAttribMaker</a>< float >::setClamping </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>enable</em> = true </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Enable, disable the clamping of input values. The default does nothing (clamping unsupported) <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz716_4">isClampingSupported()</a></dd></dl> + +<p> +Reimplemented in <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a12">NL3D::CPSAttribMakerT< float, CPSFloatCurveFunctor ></a>, <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a12">NL3D::CPSAttribMakerT< float, CPSValueGradientFunc< float > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a12">NL3D::CPSAttribMakerT< float, CPSValueBlendFunc< float > ></a>. +<p> +Definition at line <a class="el" href="a06214.html#l00265">265</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +<div class="fragment"><pre>00265 {} ; +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya17" doxytag="NL3D::CPSFloatMemory::setDefaultValue" ></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 <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::setDefaultValue </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>defaultValue</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +set a default value for initialisation, otherwise it will be garbage. This is needed when new element are generated, but not from an emitter for example, when you set this scheme to a LocatedBindable that does have a least one instance in it<p> +example : <a class="el" href="a03177.html">CPSDot</a> *d = new <a class="el" href="a03177.html">CPSDot</a>; CPSAttribMakerMemory<RGBA> *genAttribMaker = new CPSAttribMakerMemory<RGBA>; genAttribMaker->setScheme(CPSColorBlender(CRGBA::White, CRGBA::Black) Now, if an emitter emit these particle, it'll start to emit white ones, and then black ones d->setColorScheme( genAttribMaker); now, suppose that there were several dot instanciated before the setScheme is performed : d-><a class="el" href="a03140.html#NL3D_1_1CPSColorMemorya13">newElement()</a>; no color has been memorized for this element, so when setScheme is performed, it has to generate one There are no emitter that provides it, so its taken from the default value Note : this should only be useful in an editor, that allow the user to change the scheme with a running system ... +<p> +Definition at line <a class="el" href="a06219.html#l01353">1353</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01353 { <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp0">_DefaultValue</a> = defaultValue;} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemoryz716_6" doxytag="NL3D::CPSFloatMemory::setInput" ></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 <a class="el" href="a03136.html">NL3D::CPSAttribMaker</a>< float >::setInput </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03207.html">CPSInputType</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>input</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +set a new input type (if supported). The default does nothing <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03136.html#NL3D_1_1CPSColorMemoryz716_3">hasCustomInput()</a></dd></dl> + +<p> +Reimplemented in <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a13">NL3D::CPSAttribMakerT< float, CPSFloatCurveFunctor ></a>, <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a13">NL3D::CPSAttribMakerT< float, CPSValueGradientFunc< float > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a13">NL3D::CPSAttribMakerT< float, CPSValueBlendFunc< float > ></a>. +<p> +Definition at line <a class="el" href="a06214.html#l00245">245</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +<div class="fragment"><pre>00245 {} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4z716_1" doxytag="NL3D::CPSFloatMemory::setNbCycles" ></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 <a class="el" href="a03136.html">NL3D::CPSAttribMaker</a>< float >::setNbCycles </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>nbCycles</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the number of cycles that must be done during the life of a particle, or the number of cycle per second for a particle that has no life limit. It is used to multiply the input used by this attribute maker It must be >= 0 +<p> +Definition at line <a class="el" href="a06214.html#l00227">227</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. +<p> +<div class="fragment"><pre>00228 { +00229 <a class="code" href="a04199.html#a6">nlassert</a>(nbCycles >= 0) ; +00230 <a class="code" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4p1">_NbCycles</a> = nbCycles ; +00231 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya18" doxytag="NL3D::CPSFloatMemory::setScheme" ></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 <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::setScheme </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><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +set the scheme used to store attribute. this MUST be called, otherwise an assertion will be thrown later It must have been allocated by new, and it will be deleted by this object +<p> +Definition at line <a class="el" href="a06219.html#l01363">1363</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +<div class="fragment"><pre>01364 { +01365 <a class="code" href="a04199.html#a6">nlassert</a>(scheme); +01366 <span class="keywordflow">if</span> (<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a>) <span class="keyword">delete</span> <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a>; +01367 <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a> = scheme; +01368 <span class="keywordflow">if</span> (<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a>->hasMemory()) +01369 { +01370 <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a>->resize(<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getMaxSize(), <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize()); +01371 } +01372 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSColorMemoryp0" doxytag="NL3D::CPSFloatMemory::_DefaultValue" ></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="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::<a class="el" href="a03140.html#NL3D_1_1CPSColorMemoryp0">_DefaultValue</a><code> [protected, inherited]</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="a06219.html#l01624">1624</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4p0" doxytag="NL3D::CPSFloatMemory::_HasMemory" ></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="a03136.html">NL3D::CPSAttribMaker</a>< float >::<a class="el" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4p0">_HasMemory</a><code> [protected, inherited]</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="a06214.html#l00304">304</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4p1" doxytag="NL3D::CPSFloatMemory::_NbCycles" ></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="a03136.html">NL3D::CPSAttribMaker</a>< float >::<a class="el" href="a03136.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4p1">_NbCycles</a><code> [protected, inherited]</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="a06214.html#l00301">301</a> of file <a class="el" href="a06214.html">ps_attrib_maker.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemoryp3" doxytag="NL3D::CPSFloatMemory::_Scheme" ></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="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::<a class="el" href="a03140.html#NL3D_1_1CPSColorMemoryp3">_Scheme</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +this attribute maker tells us how to produce arguments from an emitter. as an example, we may want to have a gradient of color : the emitter emit green then blue particles, following a gradient. the color is produced by _Scheme and _T stores it +<p> +Definition at line <a class="el" href="a06219.html#l01630">1630</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemoryp4" doxytag="NL3D::CPSFloatMemory::_T" ></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="a03135.html">CPSAttrib</a><float > <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< float >::<a class="el" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a><code> [protected, inherited]</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="a06219.html#l01621">1621</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following file:<ul> +<li><a class="el" href="a06238.html">ps_float.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 07:13:50 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> |