diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02714.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a02714.html')
-rw-r--r-- | docs/doxygen/nel/a02714.html | 2752 |
1 files changed, 2752 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02714.html b/docs/doxygen/nel/a02714.html new file mode 100644 index 00000000..bc069df9 --- /dev/null +++ b/docs/doxygen/nel/a02714.html @@ -0,0 +1,2752 @@ +<!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::CLandscapeUser 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::CLandscapeUser Class Reference</h1><code>#include <<a class="el" href="a05875.html">landscape_user.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CLandscapeUser: +<p><center><img src="a02714.png" usemap="#NL3D::CLandscapeUser_map" border="0" alt=""></center> +<map name="NL3D::CLandscapeUser_map"> +<area href="a03931.html" alt="NL3D::ULandscape" shape="rect" coords="0,0,147,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +<a class="el" href="a03931.html">ULandscape</a> Implementation <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <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="a05875.html#l00048">48</a> of file <a class="el" href="a05875.html">landscape_user.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 colspan="2"><div class="groupHeader">ShadowMapping</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz299_0">canReceiveShadowMap</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">true if the instance receive shadow. By default false <a href="#NL3D_1_1CLandscapeUserz299_0"></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="a02714.html#NL3D_1_1CLandscapeUserz299_1">enableReceiveShadowMap</a> (bool state)</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Object</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz284_0">CLandscapeUser</a> (<a class="el" href="a03348.html">CScene</a> *scene)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz284_1">~CLandscapeUser</a> ()</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Misc</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz292_0">enableAdditive</a> (bool enable)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz292_1">getRefineCenterAuto</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual const <a class="el" href="a03128.html">CVector</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz292_2">getRefineCenterUser</a> () 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="a02714.html#NL3D_1_1CLandscapeUserz292_3">getZoneName</a> (const <a class="el" href="a03128.html">CVector</a> &pos)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the name of the zone around a particular position (in <a class="el" href="a05363.html">NL3D</a> basis!). <a href="#NL3D_1_1CLandscapeUserz292_3"></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="a02714.html#NL3D_1_1CLandscapeUserz292_4">hide</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">hide the landscape. It is nor refined, nor rendered (=> take 0 CPU time). <a href="#NL3D_1_1CLandscapeUserz292_4"></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="a02714.html#NL3D_1_1CLandscapeUserz292_5">isAdditiveEnabled</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz292_6">setRefineCenterAuto</a> (bool mode)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz292_7">setRefineCenterUser</a> (const <a class="el" href="a03128.html">CVector</a> &refineCenter)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">setRefineCenterAuto <a href="#NL3D_1_1CLandscapeUserz292_7"></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="a02714.html#NL3D_1_1CLandscapeUserz292_8">show</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">show the landscape. visible by default. <a href="#NL3D_1_1CLandscapeUserz292_8"></a><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader"></div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz295_0">enableVegetable</a> (bool enable)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz295_1">loadVegetableTexture</a> (const std::string &textureFileName)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz295_2">setupVegetableLighting</a> (const <a class="el" href="a03337.html">CRGBA</a> &ambient, const <a class="el" href="a03337.html">CRGBA</a> &diffuse, const <a class="el" href="a03128.html">CVector</a> &directionalLight)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz295_3">setVegetableUpdateLightingFrequency</a> (float freq)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz295_4">setVegetableWind</a> (const <a class="el" href="a03128.html">CVector</a> &windDir, float windFreq, float windPower, float windBendMin)</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Load</div></td></tr> +<tr><td colspan="2"><div class="groupText">All those load methods use CPath to search files. <br><br></div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz286_0">flushTiles</a> (<a class="el" href="a03873.html">NLMISC::IProgressCallback</a> &progress)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Flush the tiles. <a href="#NL3D_1_1CLandscapeUserz286_0"></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="a02714.html#NL3D_1_1CLandscapeUserz286_1">getAllZoneLoaded</a> (std::vector< std::string > &zoneLoaded) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Flush the tiles. <a href="#NL3D_1_1CLandscapeUserz286_1"></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="a02714.html#NL3D_1_1CLandscapeUserz286_2">invalidateAllTiles</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Flush the tiles. <a href="#NL3D_1_1CLandscapeUserz286_2"></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="a02714.html#NL3D_1_1CLandscapeUserz286_3">loadAllZonesAround</a> (const <a class="el" href="a03128.html">CVector</a> &pos, float radius, std::vector< std::string > &zonesAdded)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Flush the tiles. <a href="#NL3D_1_1CLandscapeUserz286_3"></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="a02714.html#NL3D_1_1CLandscapeUserz286_4">loadAllZonesAround</a> (const <a class="el" href="a03128.html">CVector</a> &pos, float radius)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Load all Zones around a position. Call at init only!! (no zone must exist before). This is a blocking call. <a href="#NL3D_1_1CLandscapeUserz286_4"></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="a02714.html#NL3D_1_1CLandscapeUserz286_5">loadBankFiles</a> (const std::string &tileBankFile, const std::string &farBankFile)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Load the tile banks: the ".bank" and the ".farbank". <a href="#NL3D_1_1CLandscapeUserz286_5"></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="a02714.html#NL3D_1_1CLandscapeUserz286_6">postfixTileFilename</a> (const char *postfix)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Postfix tile filename. <a href="#NL3D_1_1CLandscapeUserz286_6"></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="a02714.html#NL3D_1_1CLandscapeUserz286_7">postfixTileVegetableDesc</a> (const char *postfix)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Postfix vegetable filename. <a href="#NL3D_1_1CLandscapeUserz286_7"></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="a02714.html#NL3D_1_1CLandscapeUserz286_8">refreshAllZonesAround</a> (const <a class="el" href="a03128.html">CVector</a> &pos, float radius, std::vector< std::string > &zonesAdded, std::vector< std::string > &zonesRemoved, <a class="el" href="a03873.html">NLMISC::IProgressCallback</a> &progress)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Delete old zones, or load new zones, around a position, until it is finished. This is a blocking call. <a href="#NL3D_1_1CLandscapeUserz286_8"></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="a02714.html#NL3D_1_1CLandscapeUserz286_9">refreshZonesAround</a> (const <a class="el" href="a03128.html">CVector</a> &pos, float radius, std::string &zoneAdded, std::string &zoneRemoved)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Flush the tiles. <a href="#NL3D_1_1CLandscapeUserz286_9"></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="a02714.html#NL3D_1_1CLandscapeUserz286_10">refreshZonesAround</a> (const <a class="el" href="a03128.html">CVector</a> &pos, float radius)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Delete old zones, or load new zones, around a position. new Zones are loaded async. <a href="#NL3D_1_1CLandscapeUserz286_10"></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="a02714.html#NL3D_1_1CLandscapeUserz286_11">removeAllZones</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Flush the tiles. <a href="#NL3D_1_1CLandscapeUserz286_11"></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="a02714.html#NL3D_1_1CLandscapeUserz286_12">setZonePath</a> (const std::string &zonePath)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the zonePath from where zones are loaded. <a href="#NL3D_1_1CLandscapeUserz286_12"></a><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">Dynamic Lighting management</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03337.html">CRGBA</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz297_0">getDLMGlobalVegetableColor</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz297_1">setDLMGlobalVegetableColor</a> (<a class="el" href="a03337.html">CRGBA</a> gvc)</td></tr> + +<tr><td colspan="2"><div class="groupHeader">HeightField DeltaZ.</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03128.html">CVector</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz294_0">getHeightFieldDeltaZ</a> (float <a class="el" href="a04223.html#a572">x</a>, float <a class="el" href="a04223.html#a573">y</a>) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">return the HeightField DeltaZ for the 2D position. (0,0,dZ) is returned. <a href="#NL3D_1_1CLandscapeUserz294_0"></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="a02714.html#NL3D_1_1CLandscapeUserz294_1">setHeightField</a> (const <a class="el" href="a02630.html">CHeightMap</a> &hf)</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Accessor for CLandscapeUser.</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02713.html">CLandscapeModel</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz303_0">getLandscape</a> ()</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Lighting</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03337.html">CRGBA</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz288_0">getPointLightDiffuseMaterial</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz288_1">setPointLightDiffuseMaterial</a> (<a class="el" href="a03337.html">CRGBA</a> diffuse)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz288_2">setUpdateLightingFrequency</a> (float freq)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz288_3">setupStaticLight</a> (const <a class="el" href="a03337.html">CRGBA</a> &diffuse, const <a class="el" href="a03337.html">CRGBA</a> &ambiant, float multiply)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz288_4">updateLightingAll</a> ()</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Parameters</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz290_0">getThreshold</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get threshold. <a href="#NL3D_1_1CLandscapeUserz290_0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz290_1">getTileMaxSubdivision</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get Maximum Tile subdivision. <a href="#NL3D_1_1CLandscapeUserz290_1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz290_2">getTileNear</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get tile near distance. <a href="#NL3D_1_1CLandscapeUserz290_2"></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="a02714.html#NL3D_1_1CLandscapeUserz290_3">setThreshold</a> (float thre)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set threshold for subdivsion quality. The lower is threshold, the more the landscape is subdivided. Default: 0.001. <a href="#NL3D_1_1CLandscapeUserz290_3"></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="a02714.html#NL3D_1_1CLandscapeUserz290_4">setTileColor</a> (bool monochrome, float factor)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set all zones monochromatic or colored. <a href="#NL3D_1_1CLandscapeUserz290_4"></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="a02714.html#NL3D_1_1CLandscapeUserz290_5">setTileMaxSubdivision</a> (<a class="el" href="a04558.html#a15">uint</a> tileDiv)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set Maximum Tile subdivision. Valid values must be in [0..4] (assert). Default is 0 (for now :) ). <a href="#NL3D_1_1CLandscapeUserz290_5"></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="a02714.html#NL3D_1_1CLandscapeUserz290_6">setTileNear</a> (float tileNear)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set tile near distance. Default 50.f. maximized to length of Far alpha transition). <a href="#NL3D_1_1CLandscapeUserz290_6"></a><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">TileCallback</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03932.html">ULandscapeTileCallback</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz301_0">getTileCallback</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz301_1">setTileCallback</a> (<a class="el" href="a03932.html">ULandscapeTileCallback</a> *cb)</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="a02713.html">CLandscapeModel</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03348.html">CScene</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserr1">_Scene</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03753.html">CZoneManager</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CLandscapeUserz284_0" doxytag="NL3D::CLandscapeUser::CLandscapeUser" ></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::CLandscapeUser::CLandscapeUser </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03348.html">CScene</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>scene</em> </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="a05875.html#l00062">62</a> of file <a class="el" href="a05875.html">landscape_user.h</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a06348.html#l01004">NL3D::CScene::createModel()</a>, <a class="el" href="a05871.html#l00041">NL3D::LandscapeModelId</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>. +<p> +<div class="fragment"><pre>00063 { +00064 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00065 <a class="code" href="a04199.html#a6">nlassert</a>(scene); +00066 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr1">_Scene</a>= scene; +00067 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>= (CLandscapeModel*)<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr1">_Scene</a>->createModel(LandscapeModelId); +00068 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz284_1" doxytag="NL3D::CLandscapeUser::~CLandscapeUser" ></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 NL3D::CLandscapeUser::~<a class="el" href="a02714.html">CLandscapeUser</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, virtual]</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="a05875.html#l00069">69</a> of file <a class="el" href="a05875.html">landscape_user.h</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a06348.html#l01053">NL3D::CScene::deleteModel()</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00070 { +00071 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00072 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr1">_Scene</a>->deleteModel(_Landscape); +00073 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>= NULL; +00074 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CLandscapeUserz299_0" doxytag="NL3D::CLandscapeUser::canReceiveShadowMap" ></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::CLandscapeUser::canReceiveShadowMap </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> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +true if the instance receive shadow. By default false +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1470_0">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00554">554</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, and <a class="el" href="a06569.html#l00477">NL3D::CTransform::canReceiveShadowMap()</a>. +<p> +<div class="fragment"><pre>00555 { +00556 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->canReceiveShadowMap(); +00557 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz292_0" doxytag="NL3D::CLandscapeUser::enableAdditive" ></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::CLandscapeUser::enableAdditive </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>enable</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set additive Lighting. Disabled by default. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>enable</em> </td><td>is true to activbe additive, false to disactive it.</td></tr> + </table> +</dl> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1459_0">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00482">482</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00082">NL3D::CLandscapeModel::enableAdditive()</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00483 { +00484 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00485 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00486 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->enableAdditive(enable); +00487 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz299_1" doxytag="NL3D::CLandscapeUser::enableReceiveShadowMap" ></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::CLandscapeUser::enableReceiveShadowMap </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>state</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +By default, map shadow receiving is disabled. This enabled shadow for this model. Fails if the model don't support dynamic Map Shadow Receiving (eg Particle system) +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1470_1">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00548">548</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, and <a class="el" href="a06569.html#l00475">NL3D::CTransform::enableReceiveShadowMap()</a>. +<p> +<div class="fragment"><pre>00549 { +00550 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->enableReceiveShadowMap(state); +00551 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz295_0" doxytag="NL3D::CLandscapeUser::enableVegetable" ></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::CLandscapeUser::enableVegetable </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>enable</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +enable the vegetable management in landscape. Valid only if Hardware support VertexShader. +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1466_0">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00432">432</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05862.html#l03120">NL3D::CLandscape::enableVegetable()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00433 { +00434 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00435 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00436 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.enableVegetable(enable); +00437 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_0" doxytag="NL3D::CLandscapeUser::flushTiles" ></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::CLandscapeUser::flushTiles </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03873.html">NLMISC::IProgressCallback</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>progress</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Flush the tiles. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_0">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00091">91</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05862.html#l01884">NL3D::CLandscape::flushTiles()</a>, <a class="el" href="a06348.html#l00579">NL3D::CScene::getDriver()</a>, <a class="el" href="a06537.html#l00337">NL3D::CTileSet::getNumTile128()</a>, <a class="el" href="a06537.html#l00341">NL3D::CTileSet::getNumTile256()</a>, <a class="el" href="a06537.html#l00207">NL3D::CTileSetTransition::getTile()</a>, <a class="el" href="a06537.html#l00345">NL3D::CTileSet::getTile128()</a>, <a class="el" href="a06537.html#l00349">NL3D::CTileSet::getTile256()</a>, <a class="el" href="a06537.html#l00520">NL3D::CTileBank::getTileSet()</a>, <a class="el" href="a06537.html#l00516">NL3D::CTileBank::getTileSetCount()</a>, <a class="el" href="a06537.html#l00353">NL3D::CTileSet::getTransition()</a>, <a class="el" href="a05862.html#l03629">NL3D::CLandscape::initTileBank()</a>, <a class="el" href="a05862.html#l02592">NL3D::CLandscape::initTileBanks()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a06536.html#l00671">NL3D::CTileBank::loadTileVegetableDescs()</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a06209.html#l00058">NLMISC::IProgressCallback::progress()</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05863.html#l00145">NL3D::CLandscape::TileBank</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00098">uint16</a>. +<p> +<div class="fragment"><pre>00092 { +00093 <span class="comment">// After loading the TileBank, and before initTileBanks(), must load the vegetables descritpor</span> +00094 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.loadTileVegetableDescs(); +00095 +00096 <span class="keywordflow">if</span> ( ! <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.initTileBanks() ) +00097 { +00098 <a class="code" href="a04199.html#a2">nlwarning</a>( <span class="stringliteral">"You need to recompute bank.farbank for the far textures"</span> ); +00099 } +00100 +00101 <span class="comment">// Count tiles</span> +00102 <a class="code" href="a04558.html#a15">uint</a> tileCount = 0; +00103 <a class="code" href="a04558.html#a14">sint</a> ts; +00104 <span class="keywordflow">for</span> (ts=0; ts<<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.getTileSetCount (); ts++) +00105 { +00106 CTileSet *tileSet=<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.getTileSet (ts); +00107 tileCount += tileSet->getNumTile128(); +00108 tileCount += tileSet->getNumTile256(); +00109 tileCount += CTileSet::count; +00110 } +00111 +00112 <span class="comment">// Second, temporary, flushTiles.</span> +00113 <span class="comment">//===============================</span> +00114 <a class="code" href="a04558.html#a15">uint</a> tile = 0; +00115 <span class="keywordflow">for</span> (ts=0; ts<<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.getTileSetCount (); ts++) +00116 { +00117 CTileSet *tileSet=<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.getTileSet (ts); +00118 <a class="code" href="a04558.html#a14">sint</a> tl; +00119 <span class="keywordflow">for</span> (tl=0; tl<tileSet->getNumTile128(); tl++) +00120 { +00121 <span class="comment">// Progress bar</span> +00122 progress.<a class="code" href="a03873.html#NLMISC_1_1IProgressCallbacka3">progress</a> ((<span class="keywordtype">float</span>)tile/(<span class="keywordtype">float</span>)tileCount); +00123 tile++; +00124 +00125 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.flushTiles (<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr1">_Scene</a>->getDriver(), (<a class="code" href="a04558.html#a9">uint16</a>)tileSet->getTile128(tl), 1); +00126 } +00127 <span class="keywordflow">for</span> (tl=0; tl<tileSet->getNumTile256(); tl++) +00128 { +00129 <span class="comment">// Progress bar</span> +00130 progress.<a class="code" href="a03873.html#NLMISC_1_1IProgressCallbacka3">progress</a> ((<span class="keywordtype">float</span>)tile/(<span class="keywordtype">float</span>)tileCount); +00131 tile++; +00132 +00133 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.flushTiles (<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr1">_Scene</a>->getDriver(), (<a class="code" href="a04558.html#a9">uint16</a>)tileSet->getTile256(tl), 1); +00134 } +00135 <span class="keywordflow">for</span> (tl=0; tl<CTileSet::count; tl++) +00136 { +00137 <span class="comment">// Progress bar</span> +00138 progress.<a class="code" href="a03873.html#NLMISC_1_1IProgressCallbacka3">progress</a> ((<span class="keywordtype">float</span>)tile/(<span class="keywordtype">float</span>)tileCount); +00139 tile++; +00140 +00141 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.flushTiles (<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr1">_Scene</a>->getDriver(), (<a class="code" href="a04558.html#a9">uint16</a>)tileSet->getTransition(tl)->getTile (), 1); +00142 } +00143 } +00144 +00145 <span class="comment">// Init tiles</span> +00146 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.initTileBank(); +00147 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_1" doxytag="NL3D::CLandscapeUser::getAllZoneLoaded" ></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::CLandscapeUser::getAllZoneLoaded </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::vector< std::string > & </td> + <td class="mdname1" valign="top" nowrap> <em>zoneLoaded</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Flush the tiles. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_1">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00230">230</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05862.html#l00502">NL3D::CLandscape::getZoneList()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00231 { +00232 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00233 <span class="comment">// Build the list of zoneId.</span> +00234 std::vector<uint16> zoneIds; +00235 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.getZoneList(zoneIds); +00236 +00237 <span class="comment">// transcript</span> +00238 zoneLoaded.clear(); +00239 zoneLoaded.resize(zoneIds.size()); +00240 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0;i<zoneLoaded.size();i++) +00241 { +00242 CLandscape::buildZoneName(zoneIds[i], zoneLoaded[i]); +00243 } +00244 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz297_0" doxytag="NL3D::CLandscapeUser::getDLMGlobalVegetableColor" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03337.html">CRGBA</a> NL3D::CLandscapeUser::getDLMGlobalVegetableColor </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> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +see <a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz297_1">setDLMGlobalVegetableColor()</a> +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1468_0">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00519">519</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05863.html#l00606">NL3D::CLandscape::getDLMGlobalVegetableColor()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00520 { +00521 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00522 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00523 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.getDLMGlobalVegetableColor(); +00524 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz294_0" doxytag="NL3D::CLandscapeUser::getHeightFieldDeltaZ" ></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="a03128.html">CVector</a> NL3D::CLandscapeUser::getHeightFieldDeltaZ </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname" nowrap> <em>x</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>y</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"> const<code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +return the HeightField DeltaZ for the 2D position. (0,0,dZ) is returned. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1465_0">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00415">415</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05862.html#l02698">NL3D::CLandscape::getHeightFieldDeltaZ()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>. +<p> +<div class="fragment"><pre>00416 { +00417 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00418 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00419 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.getHeightFieldDeltaZ(x,y); +00420 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz303_0" doxytag="NL3D::CLandscapeUser::getLandscape" ></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="a02713.html">CLandscapeModel</a>* NL3D::CLandscapeUser::getLandscape </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="a05875.html#l00212">212</a> of file <a class="el" href="a05875.html">landscape_user.h</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00213 { +00214 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00215 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>; +00216 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz288_0" doxytag="NL3D::CLandscapeUser::getPointLightDiffuseMaterial" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03337.html">CRGBA</a> NL3D::CLandscapeUser::getPointLightDiffuseMaterial </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> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz288_1">setPointLightDiffuseMaterial</a></dd></dl> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1459_1">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00504">504</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05863.html#l00394">NL3D::CLandscape::getPointLightDiffuseMaterial()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00505 { +00506 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00507 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00508 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.getPointLightDiffuseMaterial(); +00509 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz292_1" doxytag="NL3D::CLandscapeUser::getRefineCenterAuto" ></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::CLandscapeUser::getRefineCenterAuto </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> [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="a03931.html#NL3D_1_1ULandscapez1463_0">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00572">572</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, and <a class="el" href="a05871.html#l00101">NL3D::CLandscapeModel::getRefineCenterAuto()</a>. +<p> +<div class="fragment"><pre>00573 { +00574 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->getRefineCenterAuto(); +00575 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz292_2" doxytag="NL3D::CLandscapeUser::getRefineCenterUser" ></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="a03128.html">CVector</a> & NL3D::CLandscapeUser::getRefineCenterUser </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> [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="a03931.html#NL3D_1_1ULandscapez1463_1">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00578">578</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, and <a class="el" href="a05871.html#l00103">NL3D::CLandscapeModel::getRefineCenterUser()</a>. +<p> +<div class="fragment"><pre>00579 { +00580 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->getRefineCenterUser(); +00581 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz290_0" doxytag="NL3D::CLandscapeUser::getThreshold" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CLandscapeUser::getThreshold </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> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get threshold. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1461_0">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00369">369</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05863.html#l00205">NL3D::CLandscape::getThreshold()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00370 { +00371 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00372 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00373 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.getThreshold(); +00374 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz301_0" doxytag="NL3D::CLandscapeUser::getTileCallback" ></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="a03932.html">ULandscapeTileCallback</a> * NL3D::CLandscapeUser::getTileCallback </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> [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="a03931.html#NL3D_1_1ULandscapez1472_0">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00590">590</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05863.html#l00622">NL3D::CLandscape::getTileCallback()</a>, and <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>. +<p> +<div class="fragment"><pre>00591 { +00592 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.getTileCallback(); +00593 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz290_1" doxytag="NL3D::CLandscapeUser::getTileMaxSubdivision" ></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::CLandscapeUser::getTileMaxSubdivision </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get Maximum Tile subdivision. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1461_1">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00397">397</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05862.html#l00356">NL3D::CLandscape::getTileMaxSubdivision()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00398 { +00399 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00400 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00401 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.getTileMaxSubdivision(); +00402 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz290_2" doxytag="NL3D::CLandscapeUser::getTileNear" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float NL3D::CLandscapeUser::getTileNear </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> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get tile near distance. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1461_2">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00383">383</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05863.html#l00201">NL3D::CLandscape::getTileNear()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00384 { +00385 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00386 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00387 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.getTileNear(); +00388 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz292_3" doxytag="NL3D::CLandscapeUser::getZoneName" ></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"> std::string NL3D::CLandscapeUser::getZoneName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>pos</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Return the name of the zone around a particular position (in <a class="el" href="a05363.html">NL3D</a> basis!). +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1463_2">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00406">406</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00056">_ZoneManager</a>, <a class="el" href="a06774.html#l00067">NL3D::CZoneSearch::getZoneName()</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a06673.html#l00051">NLMISC::CVector::x</a>, and <a class="el" href="a06673.html#l00051">NLMISC::CVector::y</a>. +<p> +<div class="fragment"><pre>00407 { +00408 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00409 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00410 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.getZoneName((<a class="code" href="a04558.html#a15">uint</a>)pos.x, (<a class="code" href="a04558.html#a15">uint</a>)(-pos.y), 0, 0).first; +00411 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz292_4" doxytag="NL3D::CLandscapeUser::hide" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NL3D::CLandscapeUser::hide </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, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +hide the landscape. It is nor refined, nor rendered (=> take 0 CPU time). +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1463_3">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05875.html#l00158">158</a> of file <a class="el" href="a05875.html">landscape_user.h</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a06568.html#l00223">NL3D::CTransform::hide()</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00159 { +00160 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00161 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->hide(); +00162 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_2" doxytag="NL3D::CLandscapeUser::invalidateAllTiles" ></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::CLandscapeUser::invalidateAllTiles </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Flush the tiles. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_2">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00057">57</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05862.html#l03694">NL3D::CLandscape::invalidateAllTiles()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00058 { +00059 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00060 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.invalidateAllTiles(); +00061 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz292_5" doxytag="NL3D::CLandscapeUser::isAdditiveEnabled" ></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::CLandscapeUser::isAdditiveEnabled </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> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get additive Lighting <dl compact><dt><b>Returns:</b></dt><dd>true to if additive is actived, else false.</dd></dl> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1459_2">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00489">489</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00091">NL3D::CLandscapeModel::isAdditive()</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00490 { +00491 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00492 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00493 <span class="keywordflow">return</span> <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->isAdditive (); +00494 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_3" doxytag="NL3D::CLandscapeUser::loadAllZonesAround" ></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::CLandscapeUser::loadAllZonesAround </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>pos</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>radius</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>std::vector< std::string > & </td> + <td class="mdname" nowrap> <em>zonesAdded</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Flush the tiles. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_3">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00151">151</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05875.html#l00056">_ZoneManager</a>, <a class="el" href="a05862.html#l00385">NL3D::CLandscape::addZone()</a>, <a class="el" href="a05862.html#l02261">NL3D::CLandscape::checkBinds()</a>, <a class="el" href="a06770.html#l00080">NL3D::CZoneManager::checkZonesAround()</a>, <a class="el" href="a06771.html#l00093">NL3D::CZoneManager::isLoading()</a>, <a class="el" href="a06770.html#l00168">NL3D::CZoneManager::isWorkComplete()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a06771.html#l00074">NL3D::CZoneManager::SZoneManagerWork::NameZoneAdded</a>, <a class="el" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05586.html#l00073">NLMISC::nlSleep()</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a06673.html#l00051">NLMISC::CVector::x</a>, <a class="el" href="a06673.html#l00051">NLMISC::CVector::y</a>, <a class="el" href="a06771.html#l00072">NL3D::CZoneManager::SZoneManagerWork::Zone</a>, <a class="el" href="a06771.html#l00070">NL3D::CZoneManager::SZoneManagerWork::ZoneAdded</a>, and <a class="el" href="a06771.html#l00063">NL3D::CZoneManager::SZoneManagerWork::ZoneRemoved</a>. +<p> +<div class="fragment"><pre>00152 { +00153 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00154 <a class="code" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>; +00155 +00156 zonesAdded.clear(); +00157 +00158 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.checkZonesAround ((<a class="code" href="a04558.html#a15">uint</a>)pos.x, (<a class="code" href="a04558.html#a15">uint</a>)(-pos.y), (<a class="code" href="a04558.html#a15">uint</a>)radius); +00159 <span class="keywordflow">while</span> (<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.isLoading()) +00160 { +00161 CZoneManager::SZoneManagerWork Work; +00162 <span class="keywordflow">if</span> (<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.isWorkComplete(Work)) +00163 { +00164 <a class="code" href="a04199.html#a6">nlassert</a>(!Work.ZoneRemoved); +00165 <span class="keywordflow">if</span> (Work.ZoneAdded) +00166 { +00167 <span class="keywordflow">if</span> (Work.Zone == (CZone*)-1) +00168 { +00169 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"Can't load zone %s"</span>, Work.NameZoneAdded.c_str ()); +00170 } +00171 <span class="keywordflow">else</span> +00172 { +00173 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.addZone (*Work.Zone); +00174 +00175 <span class="keyword">delete</span> Work.Zone; +00176 std::string zoneadd = Work.NameZoneAdded; +00177 zoneadd = zoneadd.substr(0, zoneadd.find(<span class="charliteral">'.'</span>)); +00178 zonesAdded.push_back(zoneadd); +00179 } +00180 } +00181 } +00182 <span class="keywordflow">else</span> +00183 { +00184 <a class="code" href="a05378.html#a256">nlSleep</a> (1); +00185 } +00186 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.checkZonesAround ((<a class="code" href="a04558.html#a15">uint</a>)pos.x, (<a class="code" href="a04558.html#a15">uint</a>)(-pos.y), (<a class="code" href="a04558.html#a15">uint</a>)radius); +00187 } +00188 <span class="comment">// Yoyo: must check the binds of the zones.</span> +00189 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.checkBinds(); +00190 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_4" doxytag="NL3D::CLandscapeUser::loadAllZonesAround" ></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::CLandscapeUser::loadAllZonesAround </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>pos</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>radius</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Load all Zones around a position. Call at init only!! (no zone must exist before). This is a blocking call. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_4">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00247">247</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00248 { +00249 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00250 std::vector<std::string> dummy; +00251 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserz286_4">loadAllZonesAround</a>(pos, radius, dummy); +00252 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_5" doxytag="NL3D::CLandscapeUser::loadBankFiles" ></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::CLandscapeUser::loadBankFiles </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname" nowrap> <em>tileBankFile</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const std::string & </td> + <td class="mdname" nowrap> <em>farBankFile</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Load the tile banks: the ".bank" and the ".farbank". +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_5">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00064">64</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a06536.html#l00216">NL3D::CTileBank::clear()</a>, <a class="el" href="a05708.html#l00255">NLMISC::CIFile::close()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a06536.html#l00390">NL3D::CTileBank::makeAllExtensionDDS()</a>, <a class="el" href="a06536.html#l00355">NL3D::CTileBank::makeAllPathRelative()</a>, <a class="el" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, <a class="el" href="a06542.html#l00113">NL3D::CTileFarBank::serial()</a>, <a class="el" href="a06536.html#l00099">NL3D::CTileBank::serial()</a>, <a class="el" href="a06537.html#l00615">NL3D::CTileBank::setAbsPath()</a>, <a class="el" href="a05863.html#l00145">NL3D::CLandscape::TileBank</a>, and <a class="el" href="a05863.html#l00146">NL3D::CLandscape::TileFarBank</a>. +<p> +<div class="fragment"><pre>00065 { +00066 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00067 <a class="code" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>; +00068 +00069 <span class="comment">// Clear the bank</span> +00070 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.clear (); +00071 +00072 <span class="comment">// First, load the banks.</span> +00073 <span class="comment">//=======================</span> +00074 <a class="code" href="a02653.html">CIFile</a> bankFile(CPath::lookup(tileBankFile)); +00075 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.serial(bankFile); +00076 <span class="comment">// All textures path are relative!</span> +00077 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.makeAllPathRelative(); +00078 <span class="comment">// Use DDS!!!</span> +00079 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.makeAllExtensionDDS(); +00080 <span class="comment">// No absolute path</span> +00081 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.setAbsPath (<span class="stringliteral">""</span>); +00082 +00083 <a class="code" href="a02653.html">CIFile</a> farbankFile(CPath::lookup(farBankFile)); +00084 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileFarBank.serial(farbankFile); +00085 bankFile.<a class="code" href="a02653.html#NLMISC_1_1CIFilea3">close</a>(); +00086 farbankFile.<a class="code" href="a02653.html#NLMISC_1_1CIFilea3">close</a>(); +00087 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz295_1" doxytag="NL3D::CLandscapeUser::loadVegetableTexture" ></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::CLandscapeUser::loadVegetableTexture </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>textureFileName</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +load a texture for the vegetable, lookup in CPath +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1466_1">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00440">440</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a05862.html#l03174">NL3D::CLandscape::loadVegetableTexture()</a>, <a class="el" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +<div class="fragment"><pre>00441 { +00442 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00443 <a class="code" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>; +00444 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.loadVegetableTexture(textureFileName); +00445 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_6" doxytag="NL3D::CLandscapeUser::postfixTileFilename" ></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::CLandscapeUser::postfixTileFilename </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>postfix</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Postfix tile filename. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_6">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00533">533</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a1">NL3D_HAUTO_LANDSCAPE_UPDATE_LIGHTING_ALL</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, <a class="el" href="a06536.html#l00699">NL3D::CTileBank::postfixTileFilename()</a>, and <a class="el" href="a05863.html#l00145">NL3D::CLandscape::TileBank</a>. +<p> +<div class="fragment"><pre>00534 { +00535 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00536 <a class="code" href="a04451.html#a1">NL3D_HAUTO_LANDSCAPE_UPDATE_LIGHTING_ALL</a>; +00537 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.postfixTileFilename (postfix); +00538 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_7" doxytag="NL3D::CLandscapeUser::postfixTileVegetableDesc" ></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::CLandscapeUser::postfixTileVegetableDesc </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>postfix</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Postfix vegetable filename. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_7">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00540">540</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a1">NL3D_HAUTO_LANDSCAPE_UPDATE_LIGHTING_ALL</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, <a class="el" href="a06536.html#l00726">NL3D::CTileBank::postfixTileVegetableDesc()</a>, and <a class="el" href="a05863.html#l00145">NL3D::CLandscape::TileBank</a>. +<p> +<div class="fragment"><pre>00541 { +00542 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00543 <a class="code" href="a04451.html#a1">NL3D_HAUTO_LANDSCAPE_UPDATE_LIGHTING_ALL</a>; +00544 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.TileBank.postfixTileVegetableDesc (postfix); +00545 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_8" doxytag="NL3D::CLandscapeUser::refreshAllZonesAround" ></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::CLandscapeUser::refreshAllZonesAround </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>pos</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>radius</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>std::vector< std::string > & </td> + <td class="mdname" nowrap> <em>zonesAdded</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>std::vector< std::string > & </td> + <td class="mdname" nowrap> <em>zonesRemoved</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a03873.html">NLMISC::IProgressCallback</a> & </td> + <td class="mdname" nowrap> <em>progress</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Delete old zones, or load new zones, around a position, until it is finished. This is a blocking call. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_8">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00193">193</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00056">_ZoneManager</a>, <a class="el" href="a06770.html#l00080">NL3D::CZoneManager::checkZonesAround()</a>, <a class="el" href="a06770.html#l00059">NL3D::CZoneManager::getNumZoneLeftToLoad()</a>, <a class="el" href="a06771.html#l00093">NL3D::CZoneManager::isLoading()</a>, <a class="el" href="a06771.html#l00096">NL3D::CZoneManager::isRemoving()</a>, <a class="el" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, <a class="el" href="a05586.html#l00073">NLMISC::nlSleep()</a>, <a class="el" href="a06209.html#l00058">NLMISC::IProgressCallback::progress()</a>, <a class="el" href="a05874.html#l00256">refreshZonesAround()</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a06673.html#l00051">NLMISC::CVector::x</a>, and <a class="el" href="a06673.html#l00051">NLMISC::CVector::y</a>. +<p> +<div class="fragment"><pre>00195 { +00196 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00197 <a class="code" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>; +00198 +00199 zonesAdded.clear(); +00200 zonesRemoved.clear(); +00201 std::string za, zr; +00202 +00203 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.checkZonesAround ((<a class="code" href="a04558.html#a15">uint</a>)pos.x, (<a class="code" href="a04558.html#a15">uint</a>)(-pos.y), (<a class="code" href="a04558.html#a15">uint</a>)radius); +00204 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserz286_10">refreshZonesAround</a> (pos, radius, za, zr); +00205 +00206 <span class="comment">// Zone to load</span> +00207 <a class="code" href="a04558.html#a15">uint</a> zoneToLoad = <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.getNumZoneLeftToLoad (); +00208 <span class="keywordflow">while</span> (<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.isLoading() || <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.isRemoving()) +00209 { +00210 <span class="comment">// Progress bar</span> +00211 <span class="keywordflow">if</span> (zoneToLoad != 0) +00212 progress.<a class="code" href="a03873.html#NLMISC_1_1IProgressCallbacka3">progress</a> ((<span class="keywordtype">float</span>)(zoneToLoad-<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.getNumZoneLeftToLoad ())/(<span class="keywordtype">float</span>)zoneToLoad); +00213 +00214 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserz286_10">refreshZonesAround</a> (pos, radius, za, zr); +00215 +00216 <span class="comment">// some zone added or removed??</span> +00217 <span class="keywordflow">if</span>(za != <span class="stringliteral">""</span>) +00218 zonesAdded.push_back(za); +00219 <span class="keywordflow">if</span>(zr != <span class="stringliteral">""</span>) +00220 zonesRemoved.push_back(zr); +00221 +00222 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.checkZonesAround ((<a class="code" href="a04558.html#a15">uint</a>)pos.x, (<a class="code" href="a04558.html#a15">uint</a>)(-pos.y), (<a class="code" href="a04558.html#a15">uint</a>)radius); +00223 +00224 <span class="keywordflow">if</span> (<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.isLoading()) +00225 <a class="code" href="a05378.html#a256">nlSleep</a> (0); +00226 } +00227 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_9" doxytag="NL3D::CLandscapeUser::refreshZonesAround" ></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::CLandscapeUser::refreshZonesAround </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>pos</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>radius</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>std::string & </td> + <td class="mdname" nowrap> <em>zoneAdded</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>std::string & </td> + <td class="mdname" nowrap> <em>zoneRemoved</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Flush the tiles. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_9">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00265">265</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05875.html#l00056">_ZoneManager</a>, <a class="el" href="a05862.html#l00385">NL3D::CLandscape::addZone()</a>, <a class="el" href="a05862.html#l02261">NL3D::CLandscape::checkBinds()</a>, <a class="el" href="a06770.html#l00080">NL3D::CZoneManager::checkZonesAround()</a>, <a class="el" href="a06760.html#l00488">NL3D::CZone::getZoneId()</a>, <a class="el" href="a06771.html#l00065">NL3D::CZoneManager::SZoneManagerWork::IdZoneToRemove</a>, <a class="el" href="a06770.html#l00168">NL3D::CZoneManager::isWorkComplete()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a06771.html#l00074">NL3D::CZoneManager::SZoneManagerWork::NameZoneAdded</a>, <a class="el" href="a06771.html#l00067">NL3D::CZoneManager::SZoneManagerWork::NameZoneRemoved</a>, <a class="el" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05862.html#l00447">NL3D::CLandscape::removeZone()</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a06673.html#l00051">NLMISC::CVector::x</a>, <a class="el" href="a06673.html#l00051">NLMISC::CVector::y</a>, <a class="el" href="a06771.html#l00072">NL3D::CZoneManager::SZoneManagerWork::Zone</a>, <a class="el" href="a06771.html#l00070">NL3D::CZoneManager::SZoneManagerWork::ZoneAdded</a>, and <a class="el" href="a06771.html#l00063">NL3D::CZoneManager::SZoneManagerWork::ZoneRemoved</a>. +<p> +<div class="fragment"><pre>00266 { +00267 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00268 <a class="code" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>; +00269 +00270 zoneRemoved= <span class="stringliteral">""</span>; +00271 zoneAdded= <span class="stringliteral">""</span>; +00272 CZoneManager::SZoneManagerWork Work; +00273 <span class="comment">// Check if new zone must be added to landscape</span> +00274 <span class="keywordflow">if</span> (<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.isWorkComplete(Work)) +00275 { +00276 <span class="keywordflow">if</span> (Work.ZoneAdded) +00277 { +00278 <span class="keywordflow">if</span> (Work.Zone == (CZone*)-1) +00279 { +00280 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"Can't load zone %s"</span>, Work.NameZoneAdded.c_str ()); +00281 } +00282 <span class="keywordflow">else</span> +00283 { +00284 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.addZone(*Work.Zone); +00285 +00286 <span class="comment">// Yoyo: must check the binds of the new inserted zone.</span> +00287 <span class="keywordflow">try</span> +00288 { +00289 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.checkBinds(Work.Zone->getZoneId()); +00290 } +00291 <span class="keywordflow">catch</span> (EBadBind &e) +00292 { +00293 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"Bind error : %s"</span>, e.what()); +00294 } +00295 +00296 <span class="keyword">delete</span> Work.Zone; +00297 zoneAdded = Work.NameZoneAdded; +00298 zoneAdded = zoneAdded.substr(0, zoneAdded.find(<span class="charliteral">'.'</span>)); +00299 } +00300 } +00301 +00302 <span class="comment">// Check if a zone must be removed from landscape</span> +00303 <span class="keywordflow">if</span> (Work.ZoneRemoved) +00304 { +00305 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.removeZone (Work.IdZoneToRemove); +00306 zoneRemoved = Work.NameZoneRemoved; +00307 zoneRemoved = zoneRemoved.substr(0, zoneRemoved.find(<span class="charliteral">'.'</span>)); +00308 } +00309 } +00310 +00311 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.checkZonesAround((<a class="code" href="a04558.html#a15">uint</a>)pos.x, (<a class="code" href="a04558.html#a15">uint</a>)(-pos.y), (<a class="code" href="a04558.html#a15">uint</a>)radius); +00312 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_10" doxytag="NL3D::CLandscapeUser::refreshZonesAround" ></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::CLandscapeUser::refreshZonesAround </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>pos</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>radius</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Delete old zones, or load new zones, around a position. new Zones are loaded async. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_10">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00256">256</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>, and <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>. +<p> +Referenced by <a class="el" href="a05874.html#l00193">refreshAllZonesAround()</a>. +<p> +<div class="fragment"><pre>00257 { +00258 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00259 <a class="code" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>; +00260 +00261 std::string dummy1, dummy2; +00262 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserz286_10">refreshZonesAround</a>(pos, radius, dummy1, dummy2); +00263 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_11" doxytag="NL3D::CLandscapeUser::removeAllZones" ></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::CLandscapeUser::removeAllZones </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Flush the tiles. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_11">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00315">315</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05875.html#l00056">_ZoneManager</a>, <a class="el" href="a06770.html#l00220">NL3D::CZoneManager::clear()</a>, <a class="el" href="a05862.html#l00522">NL3D::CLandscape::clear()</a>, <a class="el" href="a06771.html#l00065">NL3D::CZoneManager::SZoneManagerWork::IdZoneToRemove</a>, <a class="el" href="a06771.html#l00093">NL3D::CZoneManager::isLoading()</a>, <a class="el" href="a06770.html#l00168">NL3D::CZoneManager::isWorkComplete()</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a06771.html#l00074">NL3D::CZoneManager::SZoneManagerWork::NameZoneAdded</a>, <a class="el" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05862.html#l00447">NL3D::CLandscape::removeZone()</a>, <a class="el" href="a06771.html#l00072">NL3D::CZoneManager::SZoneManagerWork::Zone</a>, <a class="el" href="a06771.html#l00070">NL3D::CZoneManager::SZoneManagerWork::ZoneAdded</a>, and <a class="el" href="a06771.html#l00063">NL3D::CZoneManager::SZoneManagerWork::ZoneRemoved</a>. +<p> +<div class="fragment"><pre>00316 { +00317 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00318 <a class="code" href="a04451.html#a2">NL3D_HAUTO_LOAD_LANDSCAPE</a>; +00319 +00320 CZoneManager::SZoneManagerWork Work; +00321 <span class="comment">// Check if new zone must be added to landscape</span> +00322 <span class="keywordflow">while</span> (<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.isLoading()) +00323 { +00324 <span class="keywordflow">if</span> (<a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.isWorkComplete(Work)) +00325 { +00326 <span class="keywordflow">if</span> (Work.ZoneAdded) +00327 { +00328 <span class="keywordflow">if</span> (Work.Zone == (CZone*)-1) +00329 { +00330 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"Can't load zone %s"</span>, Work.NameZoneAdded.c_str ()); +00331 } +00332 <span class="keywordflow">else</span> +00333 { +00334 <span class="keyword">delete</span> Work.Zone; +00335 } +00336 } +00337 +00338 <span class="comment">// Check if a zone must be removed from landscape</span> +00339 <span class="keywordflow">if</span> (Work.ZoneRemoved) +00340 { +00341 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.removeZone (Work.IdZoneToRemove); +00342 } +00343 } +00344 } +00345 +00346 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.clear(); +00347 +00348 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.clear(); +00349 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz297_1" doxytag="NL3D::CLandscapeUser::setDLMGlobalVegetableColor" ></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::CLandscapeUser::setDLMGlobalVegetableColor </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03337.html">CRGBA</a> </td> + <td class="mdname1" valign="top" nowrap> <em>gvc</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +For Vegetable Dynamic ligthing only: this is an approximate color of all vegetables. Default is (180, 180, 180). +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1468_1">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00512">512</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l03605">NL3D::CLandscape::setDLMGlobalVegetableColor()</a>. +<p> +<div class="fragment"><pre>00513 { +00514 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00515 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00516 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setDLMGlobalVegetableColor(gvc); +00517 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz294_1" doxytag="NL3D::CLandscapeUser::setHeightField" ></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::CLandscapeUser::setHeightField </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02630.html">CHeightMap</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>hf</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +set the HeightField data. NB: take lot of place in memory. only one is possible. You should setup this heightfield around the zones which will be loaded. It is applied only when a zone is loaded, so you should setup it 2km around the user, each time you move too far from a previous place (eg 160m from last setup). +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1465_1">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00423">423</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l02784">NL3D::CLandscape::setHeightField()</a>. +<p> +<div class="fragment"><pre>00424 { +00425 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00426 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00427 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setHeightField(hf); +00428 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz288_1" doxytag="NL3D::CLandscapeUser::setPointLightDiffuseMaterial" ></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::CLandscapeUser::setPointLightDiffuseMaterial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03337.html">CRGBA</a> </td> + <td class="mdname1" valign="top" nowrap> <em>diffuse</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Setup the equivalent material diffuse component used for both Static and Dynamic PointLights. Default is White. +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1459_3">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00497">497</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l03612">NL3D::CLandscape::setPointLightDiffuseMaterial()</a>. +<p> +<div class="fragment"><pre>00498 { +00499 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00500 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00501 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setPointLightDiffuseMaterial(diffuse); +00502 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz292_6" doxytag="NL3D::CLandscapeUser::setRefineCenterAuto" ></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::CLandscapeUser::setRefineCenterAuto </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>mode</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +if true, the refine Center is auto computed each frame from Camera Position. Else must be given by <a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz292_7">setRefineCenterUser()</a> Default to true. +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1463_4">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00560">560</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, and <a class="el" href="a05871.html#l00100">NL3D::CLandscapeModel::setRefineCenterAuto()</a>. +<p> +<div class="fragment"><pre>00561 { +00562 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->setRefineCenterAuto(mode); +00563 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz292_7" doxytag="NL3D::CLandscapeUser::setRefineCenterUser" ></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::CLandscapeUser::setRefineCenterUser </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>refineCenter</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +setRefineCenterAuto +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1463_5">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00566">566</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, and <a class="el" href="a05871.html#l00102">NL3D::CLandscapeModel::setRefineCenterUser()</a>. +<p> +<div class="fragment"><pre>00567 { +00568 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->setRefineCenterUser(refineCenter); +00569 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz290_3" doxytag="NL3D::CLandscapeUser::setThreshold" ></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::CLandscapeUser::setThreshold </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>thre</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set threshold for subdivsion quality. The lower is threshold, the more the landscape is subdivided. Default: 0.001. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1461_3">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00362">362</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l00318">NL3D::CLandscape::setThreshold()</a>. +<p> +<div class="fragment"><pre>00363 { +00364 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00365 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00366 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setThreshold(thre); +00367 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz301_1" doxytag="NL3D::CLandscapeUser::setTileCallback" ></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::CLandscapeUser::setTileCallback </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03932.html">ULandscapeTileCallback</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>cb</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1472_1">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00584">584</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, and <a class="el" href="a05863.html#l00620">NL3D::CLandscape::setTileCallback()</a>. +<p> +<div class="fragment"><pre>00585 { +00586 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setTileCallback(cb); +00587 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz290_4" doxytag="NL3D::CLandscapeUser::setTileColor" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NL3D::CLandscapeUser::setTileColor </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname" nowrap> <em>monochrome</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"><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set all zones monochromatic or colored. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1461_4">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05875.html#l00144">144</a> of file <a class="el" href="a05875.html">landscape_user.h</a>. +<p> +References <a class="el" href="a05875.html#l00056">_ZoneManager</a>, and <a class="el" href="a06771.html#l00115">NL3D::CZoneManager::setZoneTileColor()</a>. +<p> +<div class="fragment"><pre>00144 { <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr2">_ZoneManager</a>.setZoneTileColor(monochrome, factor); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz290_5" doxytag="NL3D::CLandscapeUser::setTileMaxSubdivision" ></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::CLandscapeUser::setTileMaxSubdivision </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>tileDiv</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set Maximum Tile subdivision. Valid values must be in [0..4] (assert). Default is 0 (for now :) ). +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1461_5">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00390">390</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, <a class="el" href="a05862.html#l00344">NL3D::CLandscape::setTileMaxSubdivision()</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +<div class="fragment"><pre>00391 { +00392 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00393 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00394 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setTileMaxSubdivision(tileDiv); +00395 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz290_6" doxytag="NL3D::CLandscapeUser::setTileNear" ></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::CLandscapeUser::setTileNear </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>tileNear</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set tile near distance. Default 50.f. maximized to length of Far alpha transition). +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1461_6">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00376">376</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l00330">NL3D::CLandscape::setTileNear()</a>. +<p> +<div class="fragment"><pre>00377 { +00378 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00379 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00380 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setTileNear(tileNear); +00381 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz288_2" doxytag="NL3D::CLandscapeUser::setUpdateLightingFrequency" ></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::CLandscapeUser::setUpdateLightingFrequency </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>freq</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the frequency of lighting update. If freq==1, ALL patchs are updated each second. e.g: if 1/20, then every 20 seconds, all patchs are updated. If you set 0, no update will be done at all (this is the default setup!!). +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1459_4">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00473">473</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l03386">NL3D::CLandscape::setUpdateLightingFrequency()</a>. +<p> +<div class="fragment"><pre>00474 { +00475 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00476 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00477 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setUpdateLightingFrequency(freq); +00478 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz288_3" doxytag="NL3D::CLandscapeUser::setupStaticLight" ></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::CLandscapeUser::setupStaticLight </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">CRGBA</a> & </td> + <td class="mdname" nowrap> <em>diffuse</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> & </td> + <td class="mdname" nowrap> <em>ambiant</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>multiply</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Setup the light color use for static illumination. NB: This setup will be visible only for new texture far/near computed (when player move or see dynamic lighting).<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>diffuse</em> </td><td>is the color of the diffuse componante of the lighting. </td></tr> + <tr><td valign=top><em>ambiant</em> </td><td>is the color of the ambiante componante of the lighting. </td></tr> + <tr><td valign=top><em>multiply</em> </td><td>is the multiply factor. Final color is (diffuse*multiply*shading+ambiant*(1.0-shading))</td></tr> + </table> +</dl> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1459_5">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00352">352</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l02650">NL3D::CLandscape::setupStaticLight()</a>. +<p> +<div class="fragment"><pre>00353 { +00354 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00355 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00356 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setupStaticLight(diffuse, ambiant, multiply); +00357 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz295_2" doxytag="NL3D::CLandscapeUser::setupVegetableLighting" ></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::CLandscapeUser::setupVegetableLighting </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">CRGBA</a> & </td> + <td class="mdname" nowrap> <em>ambient</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> & </td> + <td class="mdname" nowrap> <em>diffuse</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>directionalLight</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +setup lighting ambient and diffuse for vegetable. +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1466_2">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00448">448</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l03181">NL3D::CLandscape::setupVegetableLighting()</a>. +<p> +<div class="fragment"><pre>00449 { +00450 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00451 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00452 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setupVegetableLighting(ambient, diffuse, directionalLight); +00453 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz295_3" doxytag="NL3D::CLandscapeUser::setVegetableUpdateLightingFrequency" ></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::CLandscapeUser::setVegetableUpdateLightingFrequency </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>freq</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +set the frequency of Vegetable lighting update. If freq==1, ALL lighted igs are updated each second. e.g: if 1/20, then every 20 seconds, all Igs are updated. If you set 0, no update will be done at all (this is the default setup!!). +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1466_3">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00464">464</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l03232">NL3D::CLandscape::setVegetableUpdateLightingFrequency()</a>. +<p> +<div class="fragment"><pre>00465 { +00466 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00467 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00468 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setVegetableUpdateLightingFrequency(freq); +00469 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz295_4" doxytag="NL3D::CLandscapeUser::setVegetableWind" ></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::CLandscapeUser::setVegetableWind </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>windDir</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>windFreq</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>windPower</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>windBendMin</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +set the vegetable Wind for animation. All thoses variables may be modified each frame without penalty.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>windDir</em> </td><td>is the direction of the wind. NB: only XY direction is kept. </td></tr> + <tr><td valign=top><em>windFreq</em> </td><td>is the frequency for the animation (speed) </td></tr> + <tr><td valign=top><em>windPower</em> </td><td>is the power of the wind, and is a factor (0..1) of Bend </td></tr> + <tr><td valign=top><em>windBendMin</em> </td><td>is a value in (0..1) which indicate how much the vegetables are bended at minimum (for very powerfull wind)</td></tr> + </table> +</dl> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1466_4">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00456">456</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l03188">NL3D::CLandscape::setVegetableWind()</a>. +<p> +<div class="fragment"><pre>00457 { +00458 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00459 <a class="code" href="a04451.html#a0">NL3D_HAUTO_UI_LANDSCAPE</a>; +00460 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.setVegetableWind(windDir, windFreq, windPower, windBendMin); +00461 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz286_12" doxytag="NL3D::CLandscapeUser::setZonePath" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NL3D::CLandscapeUser::setZonePath </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>zonePath</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the zonePath from where zones are loaded. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1457_12">NL3D::ULandscape</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz292_8" doxytag="NL3D::CLandscapeUser::show" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NL3D::CLandscapeUser::show </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, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +show the landscape. visible by default. +<p> + +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1463_6">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05875.html#l00153">153</a> of file <a class="el" href="a05875.html">landscape_user.h</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a06568.html#l00271">NL3D::CTransform::show()</a>. +<p> +<div class="fragment"><pre>00154 { +00155 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00156 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->show(); +00157 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserz288_4" doxytag="NL3D::CLandscapeUser::updateLightingAll" ></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::CLandscapeUser::updateLightingAll </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +update the lighting of ALL patch (slow method). NB: work even if UpdateLightingFrequency==0 Additionaly, vegetables are also ALL updated. WARNING!! If Scene Lighting is enabled (usual case), vegetable lighting setup take last Sun setup at <a class="el" href="a03351.html#NL3D_1_1UScenez1520_1">UScene::render()</a>. Hence, you should force the new lighting setup with <a class="el" href="a03931.html#NL3D_1_1ULandscapez1466_2">ULandscape::setupVegetableLighting()</a>, before calling <a class="el" href="a02714.html#NL3D_1_1CLandscapeUserz288_4">updateLightingAll()</a>. +<p> +Implements <a class="el" href="a03931.html#NL3D_1_1ULandscapez1459_6">NL3D::ULandscape</a>. +<p> +Definition at line <a class="el" href="a05874.html#l00526">526</a> of file <a class="el" href="a05874.html">landscape_user.cpp</a>. +<p> +References <a class="el" href="a05875.html#l00054">_Landscape</a>, <a class="el" href="a05871.html#l00058">NL3D::CLandscapeModel::Landscape</a>, <a class="el" href="a04451.html#a1">NL3D_HAUTO_LANDSCAPE_UPDATE_LIGHTING_ALL</a>, <a class="el" href="a05870.html#l00038">NL3D_MEM_LANDSCAPE</a>, and <a class="el" href="a05862.html#l03357">NL3D::CLandscape::updateLightingAll()</a>. +<p> +<div class="fragment"><pre>00527 { +00528 <a class="code" href="a04447.html#a0">NL3D_MEM_LANDSCAPE</a> +00529 <a class="code" href="a04451.html#a1">NL3D_HAUTO_LANDSCAPE_UPDATE_LIGHTING_ALL</a>; +00530 <a class="code" href="a02714.html#NL3D_1_1CLandscapeUserr0">_Landscape</a>->Landscape.updateLightingAll(); +00531 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CLandscapeUserr0" doxytag="NL3D::CLandscapeUser::_Landscape" ></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="a02713.html">CLandscapeModel</a>* <a class="el" href="a02714.html#NL3D_1_1CLandscapeUserr0">NL3D::CLandscapeUser::_Landscape</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="a05875.html#l00054">54</a> of file <a class="el" href="a05875.html">landscape_user.h</a>. +<p> +Referenced by <a class="el" href="a05874.html#l00554">canReceiveShadowMap()</a>, <a class="el" href="a05875.html#l00062">CLandscapeUser()</a>, <a class="el" href="a05874.html#l00482">enableAdditive()</a>, <a class="el" href="a05874.html#l00548">enableReceiveShadowMap()</a>, <a class="el" href="a05874.html#l00432">enableVegetable()</a>, <a class="el" href="a05874.html#l00091">flushTiles()</a>, <a class="el" href="a05874.html#l00230">getAllZoneLoaded()</a>, <a class="el" href="a05874.html#l00519">getDLMGlobalVegetableColor()</a>, <a class="el" href="a05874.html#l00415">getHeightFieldDeltaZ()</a>, <a class="el" href="a05875.html#l00212">getLandscape()</a>, <a class="el" href="a05874.html#l00504">getPointLightDiffuseMaterial()</a>, <a class="el" href="a05874.html#l00572">getRefineCenterAuto()</a>, <a class="el" href="a05874.html#l00578">getRefineCenterUser()</a>, <a class="el" href="a05874.html#l00369">getThreshold()</a>, <a class="el" href="a05874.html#l00590">getTileCallback()</a>, <a class="el" href="a05874.html#l00397">getTileMaxSubdivision()</a>, <a class="el" href="a05874.html#l00383">getTileNear()</a>, <a class="el" href="a05875.html#l00158">hide()</a>, <a class="el" href="a05874.html#l00057">invalidateAllTiles()</a>, <a class="el" href="a05874.html#l00489">isAdditiveEnabled()</a>, <a class="el" href="a05874.html#l00151">loadAllZonesAround()</a>, <a class="el" href="a05874.html#l00064">loadBankFiles()</a>, <a class="el" href="a05874.html#l00440">loadVegetableTexture()</a>, <a class="el" href="a05874.html#l00533">postfixTileFilename()</a>, <a class="el" href="a05874.html#l00540">postfixTileVegetableDesc()</a>, <a class="el" href="a05874.html#l00265">refreshZonesAround()</a>, <a class="el" href="a05874.html#l00315">removeAllZones()</a>, <a class="el" href="a05874.html#l00512">setDLMGlobalVegetableColor()</a>, <a class="el" href="a05874.html#l00423">setHeightField()</a>, <a class="el" href="a05874.html#l00497">setPointLightDiffuseMaterial()</a>, <a class="el" href="a05874.html#l00560">setRefineCenterAuto()</a>, <a class="el" href="a05874.html#l00566">setRefineCenterUser()</a>, <a class="el" href="a05874.html#l00362">setThreshold()</a>, <a class="el" href="a05874.html#l00584">setTileCallback()</a>, <a class="el" href="a05874.html#l00390">setTileMaxSubdivision()</a>, <a class="el" href="a05874.html#l00376">setTileNear()</a>, <a class="el" href="a05874.html#l00473">setUpdateLightingFrequency()</a>, <a class="el" href="a05874.html#l00352">setupStaticLight()</a>, <a class="el" href="a05874.html#l00448">setupVegetableLighting()</a>, <a class="el" href="a05874.html#l00464">setVegetableUpdateLightingFrequency()</a>, <a class="el" href="a05874.html#l00456">setVegetableWind()</a>, <a class="el" href="a05875.html#l00153">show()</a>, <a class="el" href="a05874.html#l00526">updateLightingAll()</a>, and <a class="el" href="a05875.html#l00069">~CLandscapeUser()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserr1" doxytag="NL3D::CLandscapeUser::_Scene" ></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="a03348.html">CScene</a>* <a class="el" href="a02714.html#NL3D_1_1CLandscapeUserr1">NL3D::CLandscapeUser::_Scene</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="a05875.html#l00052">52</a> of file <a class="el" href="a05875.html">landscape_user.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CLandscapeUserr2" doxytag="NL3D::CLandscapeUser::_ZoneManager" ></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="a03753.html">CZoneManager</a> <a class="el" href="a02714.html#NL3D_1_1CLandscapeUserr2">NL3D::CLandscapeUser::_ZoneManager</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="a05875.html#l00056">56</a> of file <a class="el" href="a05875.html">landscape_user.h</a>. +<p> +Referenced by <a class="el" href="a05874.html#l00406">getZoneName()</a>, <a class="el" href="a05874.html#l00151">loadAllZonesAround()</a>, <a class="el" href="a05874.html#l00193">refreshAllZonesAround()</a>, <a class="el" href="a05874.html#l00265">refreshZonesAround()</a>, <a class="el" href="a05874.html#l00315">removeAllZones()</a>, and <a class="el" href="a05875.html#l00144">setTileColor()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a05875.html">landscape_user.h</a><li><a class="el" href="a05874.html">landscape_user.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:49:11 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> |