diff options
Diffstat (limited to 'docs/doxygen/nel/a03722.html')
-rw-r--r-- | docs/doxygen/nel/a03722.html | 952 |
1 files changed, 952 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03722.html b/docs/doxygen/nel/a03722.html new file mode 100644 index 00000000..558dfa2b --- /dev/null +++ b/docs/doxygen/nel/a03722.html @@ -0,0 +1,952 @@ +<!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::CWaterPoolManager 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::CWaterPoolManager Class Reference</h1><code>#include <<a class="el" href="a06740.html">water_pool_manager.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +This class helps managing various waters pools <dl compact><dt><b>Author:</b></dt><dd>Nicolas Vizerie <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a06740.html#l00048">48</a> of file <a class="el" href="a06740.html">water_pool_manager.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="a03719.html">CWaterHeightMap</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera0">createWaterPool</a> (const <a class="el" href="a03723.html">CWaterHeightMapBuild</a> &<a class="el" href="a04223.html#a565">params</a>=<a class="el" href="a03723.html">CWaterHeightMapBuild</a>())</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">create a water pool with the given id and the given parameters. If the pool existed before, its parameter are reset <a href="#NL3D_1_1CWaterPoolManagera0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera1">getNumPools</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of pools. <a href="#NL3D_1_1CWaterPoolManagera1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03719.html">CWaterHeightMap</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera2">getPoolByID</a> (<a class="el" href="a04558.html#a11">uint32</a> ID)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a water pool by its ID. If the ID doesn't exist, a new pool is created with default parameters. <a href="#NL3D_1_1CWaterPoolManagera2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera3">getPoolID</a> (<a class="el" href="a04558.html#a15">uint</a> i) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">get the id of the i-th pool (O(n) lookup) <a href="#NL3D_1_1CWaterPoolManagera3"></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="a03722.html#NL3D_1_1CWaterPoolManagera4">hasPool</a> (<a class="el" href="a04558.html#a11">uint32</a> ID) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">test wether a pool of the given ID exists <a href="#NL3D_1_1CWaterPoolManagera4"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera5">releaseBlendTextures</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera6">removePool</a> (<a class="el" href="a04558.html#a11">uint32</a> ID)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">remove the pool of the given ID <a href="#NL3D_1_1CWaterPoolManagera6"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera7">reset</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">delete all heightmaps <a href="#NL3D_1_1CWaterPoolManagera7"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera8">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">serial the pools data's <a href="#NL3D_1_1CWaterPoolManagera8"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera9">setBlendFactor</a> (<a class="el" href="a02434.html">IDriver</a> *drv, float factor)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera10">~CWaterPoolManager</a> ()</td></tr> + +<tr><td colspan=2><br><h2>Private Types</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::map< <a class="el" href="a04558.html#a11">uint32</a>,<br> + <a class="el" href="a03719.html">CWaterHeightMap</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery0">TPoolMap</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::vector< <a class="el" href="a03724.html">CWaterShape</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery1">TWaterShapeVect</a></td></tr> + +<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerd0">CWaterPoolManager</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerd1">isWaterShapeObserver</a> (const <a class="el" href="a03724.html">CWaterShape</a> *shape) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerd2">registerWaterShape</a> (<a class="el" href="a03724.html">CWaterShape</a> *shape)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">register a water height map. The water height map will be notified when a setBlend is applied <a href="#NL3D_1_1CWaterPoolManagerd2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerd3">unRegisterWaterShape</a> (<a class="el" href="a03724.html">CWaterShape</a> *shape)</td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery0">TPoolMap</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery1">TWaterShapeVect</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a></td></tr> + +<tr><td colspan=2><br><h2>Friends</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagern0">CWaterShape</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03722.html">CWaterPoolManager</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagern1">GetWaterPoolManager</a> ()</td></tr> + +</table> +<hr><h2>Member Typedef Documentation</h2> +<a class="anchor" name="NL3D_1_1CWaterPoolManagery0" doxytag="NL3D::CWaterPoolManager::TPoolMap" ></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"> typedef std::map<<a class="el" href="a04558.html#a11">uint32</a>, <a class="el" href="a03719.html">CWaterHeightMap</a> *> <a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery0">NL3D::CWaterPoolManager::TPoolMap</a><code> [private]</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="a06740.html#l00113">113</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagery1" doxytag="NL3D::CWaterPoolManager::TWaterShapeVect" ></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"> typedef std::vector<<a class="el" href="a03724.html">CWaterShape</a> *> <a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery1">NL3D::CWaterPoolManager::TWaterShapeVect</a><code> [private]</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="a06740.html#l00120">120</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>. </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera10" doxytag="NL3D::CWaterPoolManager::~CWaterPoolManager" ></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::CWaterPoolManager::~<a class="el" href="a03722.html">CWaterPoolManager</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]</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="a06740.html#l00092">92</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>. +<p> +References <a class="el" href="a06739.html#l00123">reset()</a>. +<p> +<div class="fragment"><pre>00092 { <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagera7">reset</a>(); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagerd0" doxytag="NL3D::CWaterPoolManager::CWaterPoolManager" ></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::CWaterPoolManager::CWaterPoolManager </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, private]</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="a06740.html#l00112">112</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>. +<p> +<div class="fragment"><pre>00112 {} <span class="comment">// private ctor needed to use the singleton pattern</span> +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera0" doxytag="NL3D::CWaterPoolManager::createWaterPool" ></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="a03719.html">CWaterHeightMap</a> * NL3D::CWaterPoolManager::createWaterPool </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03723.html">CWaterHeightMapBuild</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>params</em> = <a class="el" href="a03723.html">CWaterHeightMapBuild</a>() </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> +create a water pool with the given id and the given parameters. If the pool existed before, its parameter are reset +<p> + +<p> +Definition at line <a class="el" href="a06739.html#l00093">93</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00114">_PoolMap</a>, <a class="el" href="a06736.html#l00135">NL3D::CWaterHeightMap::enableWaves()</a>, <a class="el" href="a05646.html#l00223">params</a>, <a class="el" href="a06736.html#l00162">NL3D::CWaterHeightMap::setDamping()</a>, <a class="el" href="a06736.html#l00166">NL3D::CWaterHeightMap::setFilterWeight()</a>, <a class="el" href="a06736.html#l00180">NL3D::CWaterHeightMap::setName()</a>, <a class="el" href="a06735.html#l00269">NL3D::CWaterHeightMap::setSize()</a>, <a class="el" href="a06736.html#l00170">NL3D::CWaterHeightMap::setUnitSize()</a>, and <a class="el" href="a06735.html#l00667">NL3D::CWaterHeightMap::setWaves()</a>. +<p> +Referenced by <a class="el" href="a06739.html#l00109">getPoolByID()</a>. +<p> +<div class="fragment"><pre>00094 { +00095 CWaterHeightMap *whm = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.count(<a class="code" href="a04223.html#a565">params</a>.ID) == 0 ? <span class="keyword">new</span> CWaterHeightMap : <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>[<a class="code" href="a04223.html#a565">params</a>.ID]; +00096 whm->setDamping(<a class="code" href="a04223.html#a565">params</a>.Damping); +00097 whm->setFilterWeight(<a class="code" href="a04223.html#a565">params</a>.FilterWeight); +00098 whm->setSize(<a class="code" href="a04223.html#a565">params</a>.Size); +00099 whm->setUnitSize(<a class="code" href="a04223.html#a565">params</a>.UnitSize); +00100 whm->setWaves(<a class="code" href="a04223.html#a565">params</a>.WaveIntensity, <a class="code" href="a04223.html#a565">params</a>.WavePeriod, <a class="code" href="a04223.html#a565">params</a>.WaveRadius, <a class="code" href="a04223.html#a565">params</a>.BorderWaves); +00101 whm->enableWaves(<a class="code" href="a04223.html#a565">params</a>.WavesEnabled); +00102 whm->setName(<a class="code" href="a04223.html#a565">params</a>.Name); +00103 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>[<a class="code" href="a04223.html#a565">params</a>.ID] = whm; <span class="comment">// in case it was just created</span> +00104 <span class="keywordflow">return</span> whm; +00105 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera1" doxytag="NL3D::CWaterPoolManager::getNumPools" ></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#a15">uint</a> NL3D::CWaterPoolManager::getNumPools </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</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the number of pools. +<p> + +<p> +Definition at line <a class="el" href="a06739.html#l00197">197</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00114">_PoolMap</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a06739.html#l00204">getPoolID()</a>. +<p> +<div class="fragment"><pre>00198 { +00199 <span class="keywordflow">return</span> <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.size(); +00200 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera2" doxytag="NL3D::CWaterPoolManager::getPoolByID" ></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="a03719.html">CWaterHeightMap</a> & NL3D::CWaterPoolManager::getPoolByID </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>ID</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get a water pool by its ID. If the ID doesn't exist, a new pool is created with default parameters. +<p> + +<p> +Definition at line <a class="el" href="a06739.html#l00109">109</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00114">_PoolMap</a>, <a class="el" href="a06739.html#l00093">createWaterPool()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06741.html#l00695">NL3D::CWaveMakerShape::clip()</a>, <a class="el" href="a06737.html#l00127">NL3D::CWaterModel::getAttenuatedHeight()</a>, <a class="el" href="a06737.html#l00117">NL3D::CWaterModel::getHeight()</a>, <a class="el" href="a06743.html#l00040">NL3D::UWaterHeightMapManager::getWaterHeightMapFromID()</a>, <a class="el" href="a06737.html#l00998">NL3D::CWaveMakerModel::traverseAnimDetail()</a>, and <a class="el" href="a06737.html#l00437">NL3D::CWaterModel::traverseRender()</a>. +<p> +<div class="fragment"><pre>00110 { +00111 <span class="keywordflow">if</span>(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.count(ID)) +00112 { +00113 <span class="keywordflow">return</span> *<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>[ID]; +00114 } +00115 <span class="keywordflow">else</span> +00116 { +00117 <span class="keywordflow">return</span> *<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagera0">createWaterPool</a>(); +00118 } +00119 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera3" doxytag="NL3D::CWaterPoolManager::getPoolID" ></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#a15">uint</a> NL3D::CWaterPoolManager::getPoolID </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a> </td> + <td class="mdname1" valign="top" nowrap> <em>i</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the id of the i-th pool (O(n) lookup) +<p> + +<p> +Definition at line <a class="el" href="a06739.html#l00204">204</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00114">_PoolMap</a>, <a class="el" href="a06739.html#l00197">getNumPools()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00205 { +00206 <a class="code" href="a04199.html#a6">nlassert</a>(i < <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagera1">getNumPools</a>()); +00207 TPoolMap::const_iterator it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.begin(); +00208 <span class="keywordflow">while</span> (i--) ++it; +00209 <span class="keywordflow">return</span> it->first; +00210 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera4" doxytag="NL3D::CWaterPoolManager::hasPool" ></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 NL3D::CWaterPoolManager::hasPool </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>ID</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +test wether a pool of the given ID exists +<p> + +<p> +Definition at line <a class="el" href="a06739.html#l00086">86</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00114">_PoolMap</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06739.html#l00214">removePool()</a>. +<p> +<div class="fragment"><pre>00087 { +00088 <span class="keywordflow">return</span> <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.count(ID) != 0; +00089 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagerd1" doxytag="NL3D::CWaterPoolManager::isWaterShapeObserver" ></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 NL3D::CWaterPoolManager::isWaterShapeObserver </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03724.html">CWaterShape</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>shape</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [private]</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="a06739.html#l00190">190</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00121">_WaterShapes</a>. +<p> +Referenced by <a class="el" href="a06741.html#l00568">NL3D::CWaterShape::envMapUpdate()</a>. +<p> +<div class="fragment"><pre>00191 { +00192 <span class="keywordflow">return</span> std::find(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.begin(), <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(), shape) != <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(); +00193 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagerd2" doxytag="NL3D::CWaterPoolManager::registerWaterShape" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CWaterPoolManager::registerWaterShape </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03724.html">CWaterShape</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>shape</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +register a water height map. The water height map will be notified when a setBlend is applied +<p> + +<p> +Definition at line <a class="el" href="a06739.html#l00135">135</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00121">_WaterShapes</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>. +<p> +Referenced by <a class="el" href="a06741.html#l00568">NL3D::CWaterShape::envMapUpdate()</a>. +<p> +<div class="fragment"><pre>00136 { +00137 <a class="code" href="a04199.html#a6">nlassert</a>(std::find(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.begin(), <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(), shape) == <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end()); <span class="comment">// Shape registered twice!</span> +00138 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.push_back(shape); +00139 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera5" doxytag="NL3D::CWaterPoolManager::releaseBlendTextures" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CWaterPoolManager::releaseBlendTextures </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +release blend textures from memory <dl compact><dt><b>See also:</b></dt><dd>setblendFactor</dd></dl> + +<p> +Definition at line <a class="el" href="a06739.html#l00171">171</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00121">_WaterShapes</a>, <a class="el" href="a06509.html#l00068">NL3D::CTextureBlend::release()</a>, <a class="el" href="a06506.html#l00278">NL3D::ITexture::setReleasable()</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a06743.html#l00057">NL3D::UWaterHeightMapManager::releaseBlendTextures()</a>. +<p> +<div class="fragment"><pre>00172 { +00173 <span class="keywordflow">for</span> (TWaterShapeVect::iterator it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.begin(); it != <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(); ++it) +00174 { +00175 CTextureBlend *tb; +00176 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> k = 0; k < 2; ++k) +00177 { +00178 tb = dynamic_cast<CTextureBlend *>((*it)->getEnvMap(k)); +00179 <span class="keywordflow">if</span> (tb) +00180 { +00181 tb->setReleasable(<span class="keyword">true</span>); +00182 tb->release(); +00183 } +00184 } +00185 } +00186 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera6" doxytag="NL3D::CWaterPoolManager::removePool" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CWaterPoolManager::removePool </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>ID</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +remove the pool of the given ID +<p> + +<p> +Definition at line <a class="el" href="a06739.html#l00214">214</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00114">_PoolMap</a>, <a class="el" href="a06739.html#l00086">hasPool()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00215 { +00216 <a class="code" href="a04199.html#a6">nlassert</a>(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagera4">hasPool</a>(ID)); +00217 TPoolMap::iterator it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.find(ID); +00218 <span class="keyword">delete</span> it->second; +00219 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.erase(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.find(ID)); +00220 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera7" doxytag="NL3D::CWaterPoolManager::reset" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CWaterPoolManager::reset </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +delete all heightmaps +<p> + +<p> +Definition at line <a class="el" href="a06739.html#l00123">123</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00114">_PoolMap</a>. +<p> +Referenced by <a class="el" href="a05657.html#l00106">NL3D::UDriver::purgeMemory()</a>, and <a class="el" href="a06740.html#l00092">~CWaterPoolManager()</a>. +<p> +<div class="fragment"><pre>00124 { +00125 <span class="keywordflow">for</span> (TPoolMap::iterator it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.begin(); it != <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.end(); ++it) +00126 { +00127 <span class="keyword">delete</span> it->second; +00128 } +00129 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.clear (); +00130 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera8" doxytag="NL3D::CWaterPoolManager::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 NL3D::CWaterPoolManager::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>)</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +serial the pools data's +<p> + +<p> +Definition at line <a class="el" href="a06739.html#l00223">223</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a05646.html#l00645">size</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00224 { +00225 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a>(<span class="stringliteral">"WaterPoolManager"</span>); +00226 (<span class="keywordtype">void</span>)f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a>(0); +00227 <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a587">size</a>; +00228 TPoolMap::iterator it; +00229 <span class="keywordflow">if</span> (!f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00230 { +00231 <a class="code" href="a04223.html#a587">size</a> = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.size(); +00232 it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.begin(); +00233 } +00234 <span class="keywordflow">else</span> +00235 { +00236 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagera7">reset</a>(); +00237 } +00238 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2037_3">xmlSerial</a>(size, <span class="stringliteral">"NUM_POOLS"</span>); +00239 <span class="keywordflow">while</span> (<a class="code" href="a04223.html#a587">size</a> --) +00240 { +00241 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a>(<span class="stringliteral">"PoolDesc"</span>); +00242 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) +00243 { +00244 CWaterHeightMap *whm; +00245 <a class="code" href="a04558.html#a11">uint32</a> <span class="keywordtype">id</span>; +00246 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2037_3">xmlSerial</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"POOL_ID"</span>); +00247 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_7">serialPtr</a>(whm); +00248 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>[<span class="keywordtype">id</span>] = whm; +00249 } +00250 <span class="keywordflow">else</span> +00251 { +00252 <a class="code" href="a04558.html#a11">uint32</a> <span class="keywordtype">id</span> = it->first; +00253 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2037_3">xmlSerial</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"POOL_ID"</span>); +00254 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_7">serialPtr</a>(it->second); +00255 ++it; +00256 } +00257 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a>(); +00258 } +00259 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a>(); +00260 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagera9" doxytag="NL3D::CWaterPoolManager::setBlendFactor" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CWaterPoolManager::setBlendFactor </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02434.html">IDriver</a> * </td> + <td class="mdname" nowrap> <em>drv</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>factor</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set a blend factor for all pool (more precisely, all models based on a water shape) that have a blend texture for their envmap (to have cycle between night and day for example) NB : once this is called, textures are not released from memory because subsequent blends are expected to happend when transition has finished, one should call releaseBlendTexture to eventually release textures from system memory <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>factor</em> </td><td>The blend factor which range from 0 to 1</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06739.html#l00152">152</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00121">_WaterShapes</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06509.html#l00076">NL3D::CTextureBlend::setBlendFactor()</a>, <a class="el" href="a06506.html#l00278">NL3D::ITexture::setReleasable()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera70">NL3D::IDriver::setupTexture()</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00098">uint16</a>. +<p> +Referenced by <a class="el" href="a06743.html#l00049">NL3D::UWaterHeightMapManager::setBlendFactor()</a>. +<p> +<div class="fragment"><pre>00153 { +00154 <a class="code" href="a04199.html#a6">nlassert</a>(factor >= 0 && factor <= 1); +00155 <span class="keywordflow">for</span> (TWaterShapeVect::iterator it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.begin(); it != <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(); ++it) +00156 { +00157 CTextureBlend *tb; +00158 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> k = 0; k < 2; ++k) +00159 { +00160 tb = dynamic_cast<CTextureBlend *>((*it)->getEnvMap(k)); +00161 <span class="keywordflow">if</span> (tb && tb->setBlendFactor((<a class="code" href="a04558.html#a9">uint16</a>) (256.f * factor))) +00162 { +00163 tb->setReleasable(<span class="keyword">false</span>); +00164 drv->setupTexture(*tb); +00165 } +00166 } +00167 } +00168 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagerd3" doxytag="NL3D::CWaterPoolManager::unRegisterWaterShape" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CWaterPoolManager::unRegisterWaterShape </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03724.html">CWaterShape</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>shape</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [private]</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="a06739.html#l00143">143</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +References <a class="el" href="a06740.html#l00121">_WaterShapes</a>. +<p> +Referenced by <a class="el" href="a06741.html#l00568">NL3D::CWaterShape::envMapUpdate()</a>, and <a class="el" href="a06741.html#l00240">NL3D::CWaterShape::~CWaterShape()</a>. +<p> +<div class="fragment"><pre>00144 { +00145 TWaterShapeVect::iterator it = std::find(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.begin(), <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(), shape); +00146 <span class="comment">// nlassert(it != _WaterShapes.end()); // shape not registered!</span> +00147 <span class="keywordflow">if</span> (it != <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end()) +00148 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.erase(it); +00149 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Friends And Related Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CWaterPoolManagern0" doxytag="NL3D::CWaterPoolManager::CWaterShape" ></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"> friend class <a class="el" href="a03724.html">CWaterShape</a><code> [friend]</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="a06740.html#l00110">110</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagern1" doxytag="NL3D::CWaterPoolManager::GetWaterPoolManager" ></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="a03722.html">CWaterPoolManager</a>& GetWaterPoolManager </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> [friend]</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="a06739.html#l00078">78</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>. +<p> +<div class="fragment"><pre>00079 { +00080 <span class="keyword">static</span> <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerd0">CWaterPoolManager</a> singleton; +00081 <span class="keywordflow">return</span> singleton; +00082 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CWaterPoolManagerr0" doxytag="NL3D::CWaterPoolManager::_PoolMap" ></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="a03722.html#NL3D_1_1CWaterPoolManagery0">TPoolMap</a> <a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">NL3D::CWaterPoolManager::_PoolMap</a><code> [private]</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="a06740.html#l00114">114</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>. +<p> +Referenced by <a class="el" href="a06739.html#l00093">createWaterPool()</a>, <a class="el" href="a06739.html#l00197">getNumPools()</a>, <a class="el" href="a06739.html#l00109">getPoolByID()</a>, <a class="el" href="a06739.html#l00204">getPoolID()</a>, <a class="el" href="a06739.html#l00086">hasPool()</a>, <a class="el" href="a06739.html#l00214">removePool()</a>, and <a class="el" href="a06739.html#l00123">reset()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CWaterPoolManagerr1" doxytag="NL3D::CWaterPoolManager::_WaterShapes" ></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="a03722.html#NL3D_1_1CWaterPoolManagery1">TWaterShapeVect</a> <a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">NL3D::CWaterPoolManager::_WaterShapes</a><code> [private]</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="a06740.html#l00121">121</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>. +<p> +Referenced by <a class="el" href="a06739.html#l00190">isWaterShapeObserver()</a>, <a class="el" href="a06739.html#l00135">registerWaterShape()</a>, <a class="el" href="a06739.html#l00171">releaseBlendTextures()</a>, <a class="el" href="a06739.html#l00152">setBlendFactor()</a>, and <a class="el" href="a06739.html#l00143">unRegisterWaterShape()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a06740.html">water_pool_manager.h</a><li><a class="el" href="a06739.html">water_pool_manager.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:30:35 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> |