diff options
Diffstat (limited to 'docs/doxygen/nel/a03248.html')
-rw-r--r-- | docs/doxygen/nel/a03248.html | 1732 |
1 files changed, 1732 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03248.html b/docs/doxygen/nel/a03248.html new file mode 100644 index 00000000..cf56798f --- /dev/null +++ b/docs/doxygen/nel/a03248.html @@ -0,0 +1,1732 @@ +<!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::CPSUIntMemory 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::CPSUIntMemory Class Reference</h1><code>#include <<a class="el" href="a06242.html">ps_int.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CPSUIntMemory: +<p><center><img src="a03248.png" usemap="#NL3D::CPSUIntMemory_map" border="0" alt=""></center> +<map name="NL3D::CPSUIntMemory_map"> +<area href="a03143.html" alt="NL3D::CPSAttribMakerMemory< uint32 >" shape="rect" coords="0,280,273,304"> +<area href="a03140.html" alt="NL3D::CPSAttribMakerMemoryBase< uint32 >" shape="rect" coords="0,224,273,248"> +<area href="a03136.html" alt="NL3D::CPSAttribMaker< uint32 >" shape="rect" coords="0,168,273,192"> +<area href="a03137.html" alt="NL3D::CPSAttribMakerBase" shape="rect" coords="0,112,273,136"> +<area href="a02867.html" alt="NLMISC::IStreamable" shape="rect" coords="0,56,273,80"> +<area href="a02540.html" alt="NLMISC::IClassable" shape="rect" coords="0,0,273,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +this memorize value 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="a06242.html#l00119">119</a> of file <a class="el" href="a06242.html">ps_int.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="a03248.html#NL3D_1_1CPSUIntMemorya0">clone</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03143.html#NL3D_1_1CPSUIntMemorya1">CPSAttribMakerMemory</a> (const <a class="el" href="a03139.html">CPSAttribMakerMemory</a>< <a class="el" href="a04558.html#a11">uint32</a> > &other)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03143.html#NL3D_1_1CPSUIntMemorya2">CPSAttribMakerMemory</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03248.html#NL3D_1_1CPSUIntMemorya3">CPSUIntMemory</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 <a class="el" href="a04558.html#a11">uint32</a> </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 <a class="el" href="a04558.html#a11">uint32</a> </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><a class="el" href="a04558.html#a11">uint32</a> </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 <a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03143.html#NL3D_1_1CPSUIntMemorya11">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_1CPSUIntMemorya11"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03143.html#NL3D_1_1CPSUIntMemorya12">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_1CPSUIntMemorya12"></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>< <a class="el" href="a04558.html#a11">uint32</a> > * </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>< <a class="el" href="a04558.html#a11">uint32</a> > * </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="a03143.html#NL3D_1_1CPSUIntMemorya23">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_1CPSUIntMemorya23"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03248.html#NL3D_1_1CPSUIntMemorya24">NLMISC_DECLARE_CLASS</a> (<a class="el" href="a03248.html">CPSUIntMemory</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="a03143.html#NL3D_1_1CPSUIntMemorya26">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_1CPSUIntMemorya26"></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> (uint32defaultValue)</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>< <a class="el" href="a04558.html#a11">uint32</a> > *scheme)</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="a04558.html#a11">uint32</a> </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>< <a class="el" href="a04558.html#a11">uint32</a> > * </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>< <a class="el" href="a04558.html#a11">uint32</a> > </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_1CPSUIntMemorya3" doxytag="NL3D::CPSUIntMemory::CPSUIntMemory" ></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::CPSUIntMemory::CPSUIntMemory </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="a06242.html#l00122">122</a> of file <a class="el" href="a06242.html">ps_int.h</a>. +<p> +<div class="fragment"><pre>00122 { <a class="code" href="a03140.html#NL3D_1_1CPSColorMemorya17">setDefaultValue</a>(0); } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CPSUIntMemorya0" doxytag="NL3D::CPSUIntMemory::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::CPSUIntMemory::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="a06242.html#l00124">124</a> of file <a class="el" href="a06242.html">ps_int.h</a>. +<p> +<div class="fragment"><pre>00124 { <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="a03248.html#NL3D_1_1CPSUIntMemorya3">CPSUIntMemory</a>(*<span class="keyword">this</span>); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSUIntMemorya1" doxytag="NL3D::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::<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>< <a class="el" href="a04558.html#a11">uint32</a> > & </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#l01657">1657</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +References <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>01657 : CPSAttribMakerMemoryBase<uint32>(other) +01658 { +01659 _MinValue = other._MinValue; +01660 _MaxValue = other._MaxValue; +01661 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSUIntMemorya2" doxytag="NL3D::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::<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#l01655">1655</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +References <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>01655 : CPSAttribMakerMemoryBase<uint32>() {} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemorya2" doxytag="NL3D::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32 ></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::CPSUIntMemory::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 <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a03136.html">NL3D::CPSAttribMaker</a>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32, CPSValueGradientFunc< uint32 > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a2">NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > ></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::CPSUIntMemory::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 <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32 ></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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32, CPSValueGradientFunc< uint32 > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a4">NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > ></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::CPSUIntMemory::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::CPSUIntMemory::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"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< <a class="el" href="a04558.html#a11">uint32</a> >::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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32, CPSValueGradientFunc< uint32 > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a6">NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > ></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_1CPSUIntMemorya11" doxytag="NL3D::CPSUIntMemory::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 <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a03139.html">NL3D::CPSAttribMakerMemory</a>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32 ></a>. +<p> +Definition at line <a class="el" href="a06219.html#l01665">1665</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +References <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>01665 { <span class="keywordflow">return</span> _MaxValue; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSUIntMemorya12" doxytag="NL3D::CPSUIntMemory::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 <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a03139.html">NL3D::CPSAttribMakerMemory</a>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32 ></a>. +<p> +Definition at line <a class="el" href="a06219.html#l01664">1664</a> of file <a class="el" href="a06219.html">ps_attrib_maker_helper.h</a>. +<p> +References <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>01664 { <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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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::CPSUIntMemory::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><<a class="el" href="a04558.html#a11">uint32</a> >* <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< <a class="el" href="a04558.html#a11">uint32</a> >::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::CPSUIntMemory::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><<a class="el" href="a04558.html#a11">uint32</a> >* <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< <a class="el" href="a04558.html#a11">uint32</a> >::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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32, CPSValueGradientFunc< uint32 > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a9">NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > ></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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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="a06229.html#l01873">NL3D::CPSEmitter::deleteElement()</a>, <a class="el" href="a06229.html#l01858">NL3D::CPSEmitter::newElement()</a>, and <a class="el" href="a06229.html#l01895">NL3D::CPSEmitter::resize()</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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32, CPSValueGradientFunc< uint32 > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a10">NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > ></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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32 ></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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32 ></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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32 ></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_1CPSUIntMemorya23" doxytag="NL3D::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32 ></a>. +<p> +Definition at line <a class="el" href="a06218.html#l00051">51</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>00052 { +00053 CPSAttribMakerMemoryBase<uint32>::newElement(emitterLocated, emitterIndex); +00054 <span class="keywordflow">if</span> (<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize() > 1) +00055 { +00056 _MinValue = <a class="code" href="a04061.html#a0">std::min</a>(_MinValue, <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.back()); +00057 _MaxValue = std::max(_MaxValue, <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.back()); +00058 } +00059 <span class="keywordflow">else</span> +00060 { +00061 _MinValue = _MaxValue = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>[0]; +00062 } +00063 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSUIntMemorya24" doxytag="NL3D::CPSUIntMemory::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::CPSUIntMemory::NLMISC_DECLARE_CLASS </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03248.html">CPSUIntMemory</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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32 ></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_1CPSUIntMemorya26" doxytag="NL3D::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32 ></a>. +<p> +Definition at line <a class="el" href="a06218.html#l00033">33</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>00034 { +00035 CPSAttribMakerMemoryBase<uint32>::serial(f); +00036 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00037 { +00038 <span class="keywordflow">if</span> (<a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>.getSize() != 0) +00039 { +00040 _MinValue = _MaxValue = <a class="code" href="a03140.html#NL3D_1_1CPSColorMemoryp4">_T</a>[0]; +00041 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> k = 1; k < _T.getSize(); ++k) +00042 { +00043 _MinValue = <a class="code" href="a04061.html#a0">std::min</a>(_MinValue, _T[k]); +00044 _MaxValue = std::max(_MaxValue, _T[k]); +00045 } +00046 } +00047 } +00048 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CPSColorMemoryz716_5" doxytag="NL3D::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32, CPSValueGradientFunc< uint32 > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a12">NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > ></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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::setDefaultValue </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>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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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< uint32, CPSValueGradientFunc< uint32 > ></a>, and <a class="el" href="a03144.html#NL3D_1_1CPSValueGradient_3_01NLMISC_1_1CRGBA_01_4a13">NL3D::CPSAttribMakerT< uint32, CPSValueBlendFunc< uint32 > ></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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::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::CPSUIntMemory::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>< <a class="el" href="a04558.html#a11">uint32</a> >::setScheme </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="a04558.html#a11">uint32</a> > * </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::CPSUIntMemory::_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"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< <a class="el" href="a04558.html#a11">uint32</a> >::<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::CPSUIntMemory::_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>< <a class="el" href="a04558.html#a11">uint32</a> >::<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::CPSUIntMemory::_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>< <a class="el" href="a04558.html#a11">uint32</a> >::<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::CPSUIntMemory::_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><<a class="el" href="a04558.html#a11">uint32</a> >* <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< <a class="el" href="a04558.html#a11">uint32</a> >::<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::CPSUIntMemory::_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><<a class="el" href="a04558.html#a11">uint32</a> > <a class="el" href="a03140.html">NL3D::CPSAttribMakerMemoryBase</a>< <a class="el" href="a04558.html#a11">uint32</a> >::<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="a06242.html">ps_int.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 07:29:44 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> |