aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02630.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02630.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/a02630.html574
1 files changed, 574 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02630.html b/docs/doxygen/nel/a02630.html
new file mode 100644
index 00000000..684334f1
--- /dev/null
+++ b/docs/doxygen/nel/a02630.html
@@ -0,0 +1,574 @@
+<!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::CHeightMap 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&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NL3D::CHeightMap Class Reference</h1><code>#include &lt;<a class="el" href="a05786.html">height_map.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+A HeightMap. The heightMap is oriented left-right(X+) / bottom-top(Y+). <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="a05786.html#l00046">46</a> of file <a class="el" href="a05786.html">height_map.h</a>.<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapa0">buildFromBitmap</a> (const <a class="el" href="a02268.html">NLMISC::CBitmap</a> &amp;bitmap)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapa1">CHeightMap</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#NL3D_1_1CHeightMapa1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapa2">getHeight</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapa3">getWidth</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapa4">getZ</a> (<a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a572">x</a>, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a573">y</a>) const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return the ZValue, interval is: 0-MaxZ. <a class="el" href="a04199.html#a6">nlassert(x,y)</a>. <a href="#NL3D_1_1CHeightMapa4"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapa5">resize</a> (<a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a575">w</a>, <a class="el" href="a04558.html#a15">uint</a> h)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">resize the heightmap. resize Heights too. <a href="#NL3D_1_1CHeightMapa5"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a04558.html#a7">uint8</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapo0">Heights</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapo1">MaxZ</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The range of heights: 0 to MaxZ. <a href="#NL3D_1_1CHeightMapo1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapo2">OriginX</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The origin of the bottom-left corner of this heightmap. <a href="#NL3D_1_1CHeightMapo2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapo3">OriginY</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The origin of the bottom-left corner of this heightmap. <a href="#NL3D_1_1CHeightMapo3"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapo4">SizeX</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The size of one Element ot this HeightMap (eg: 160x160 for a zone). <a href="#NL3D_1_1CHeightMapo4"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapo5">SizeY</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The size of one Element ot this HeightMap (eg: 160x160 for a zone). <a href="#NL3D_1_1CHeightMapo5"></a><br><br></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="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapr0">_Height</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The size of this array. <a class="el" href="a04115.html#a94">Heights.size</a>. <a href="#NL3D_1_1CHeightMapr0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02630.html#NL3D_1_1CHeightMapr1">_Width</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The size of this array. <a class="el" href="a04115.html#a94">Heights.size</a>. <a href="#NL3D_1_1CHeightMapr1"></a><br><br></td></tr>
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NL3D_1_1CHeightMapa1" doxytag="NL3D::CHeightMap::CHeightMap" ></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::CHeightMap::CHeightMap </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Constructor.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00060">60</a> of file <a class="el" href="a05786.html">height_map.h</a>.
+<p>
+References <a class="el" href="a05786.html#l00056">MaxZ</a>, and <a class="el" href="a05786.html#l00033">NL3D_MEM_HMAP</a>.
+<p>
+<div class="fragment"><pre>00061 {
+00062 <a class="code" href="a04363.html#a0">NL3D_MEM_HMAP</a>
+00063 <a class="code" href="a02630.html#NL3D_1_1CHeightMapo4">SizeX</a>= <a class="code" href="a02630.html#NL3D_1_1CHeightMapo5">SizeY</a>= 160;
+00064 <a class="code" href="a02630.html#NL3D_1_1CHeightMapo2">OriginX</a>= <a class="code" href="a02630.html#NL3D_1_1CHeightMapo3">OriginY</a>= 0;
+00065 <a class="code" href="a02630.html#NL3D_1_1CHeightMapo1">MaxZ</a>= 100;
+00066 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1CHeightMapa0" doxytag="NL3D::CHeightMap::buildFromBitmap" ></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::CHeightMap::buildFromBitmap </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a02268.html">NLMISC::CBitmap</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>bitmap</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+This tool method build a HeightMap, from a bitmap, <a class="el" href="a02630.html#NL3D_1_1CHeightMapa5">resize()</a>, and fill Heights. value are read from bitmap luminance value. NB: Lines are inverted, because bitmap definition is left-right / top-bottom.
+<p>
+Definition at line <a class="el" href="a05785.html#l00049">49</a> of file <a class="el" href="a05785.html">height_map.cpp</a>.
+<p>
+References <a class="el" href="a05486.html#l00926">NLMISC::CBitmap::convertToType()</a>, <a class="el" href="a05786.html#l00049">Heights</a>, <a class="el" href="a05786.html#l00033">NL3D_MEM_HMAP</a>, <a class="el" href="a05785.html#l00039">resize()</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a05646.html#l00237">v</a>, <a class="el" href="a05646.html#l00236">w</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>00050 {
+00051 <a class="code" href="a04363.html#a0">NL3D_MEM_HMAP</a>
+00052 <span class="comment">// copy bitmap.</span>
+00053 <a class="code" href="a02268.html">CBitmap</a> bitmap= bitmap0;
+00054 <span class="comment">// convert to luminance.</span>
+00055 bitmap.<a class="code" href="a02268.html#NL3D_1_1ITexturea6">convertToType</a>(CBitmap::Luminance);
+00056
+00057 <span class="comment">// resize array.</span>
+00058 <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a575">w</a>, h;
+00059 <a class="code" href="a04223.html#a575">w</a>= bitmap.getWidth();
+00060 h= bitmap.getHeight();
+00061 <a class="code" href="a02630.html#NL3D_1_1CHeightMapa5">resize</a>(w,h);
+00062
+00063 <span class="comment">// get luminance image.</span>
+00064 <a class="code" href="a03000.html">CObjectVector&lt;uint8&gt;</a> &amp;array= bitmap.getPixels();
+00065 <span class="comment">// invert the image in Y.</span>
+00066 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a573">y</a>=0;<a class="code" href="a04223.html#a573">y</a>&lt;h;<a class="code" href="a04223.html#a573">y</a>++)
+00067 {
+00068 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a572">x</a>=0;<a class="code" href="a04223.html#a572">x</a>&lt;<a class="code" href="a04223.html#a575">w</a>;<a class="code" href="a04223.html#a572">x</a>++)
+00069 {
+00070 <a class="code" href="a04558.html#a7">uint8</a> <a class="code" href="a04223.html#a576">v</a>= array[(h-1-<a class="code" href="a04223.html#a573">y</a>)*<a class="code" href="a04223.html#a575">w</a>+<a class="code" href="a04223.html#a572">x</a>];
+00071 <a class="code" href="a02630.html#NL3D_1_1CHeightMapo0">Heights</a>[<a class="code" href="a04223.html#a573">y</a>*<a class="code" href="a04223.html#a575">w</a>+<a class="code" href="a04223.html#a572">x</a>]= <a class="code" href="a04223.html#a576">v</a>;
+00072 }
+00073 }
+00074 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapa2" doxytag="NL3D::CHeightMap::getHeight" ></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::CHeightMap::getHeight </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00072">72</a> of file <a class="el" href="a05786.html">height_map.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a05862.html#l02784">NL3D::CLandscape::setHeightField()</a>.
+<p>
+<div class="fragment"><pre>00072 {<span class="keywordflow">return</span> <a class="code" href="a02630.html#NL3D_1_1CHeightMapr0">_Height</a>;}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapa3" doxytag="NL3D::CHeightMap::getWidth" ></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::CHeightMap::getWidth </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00071">71</a> of file <a class="el" href="a05786.html">height_map.h</a>.
+<p>
+References <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a05862.html#l02784">NL3D::CLandscape::setHeightField()</a>.
+<p>
+<div class="fragment"><pre>00071 {<span class="keywordflow">return</span> <a class="code" href="a02630.html#NL3D_1_1CHeightMapr1">_Width</a>;}
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapa4" doxytag="NL3D::CHeightMap::getZ" ></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::CHeightMap::getZ </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>x</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>y</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+return the ZValue, interval is: 0-MaxZ. <a class="el" href="a04199.html#a6">nlassert(x,y)</a>.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05785.html#l00078">78</a> of file <a class="el" href="a05785.html">height_map.cpp</a>.
+<p>
+References <a class="el" href="a05786.html#l00049">Heights</a>, <a class="el" href="a05786.html#l00056">MaxZ</a>, <a class="el" href="a05786.html#l00033">NL3D_MEM_HMAP</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
+<p>
+Referenced by <a class="el" href="a05862.html#l02784">NL3D::CLandscape::setHeightField()</a>.
+<p>
+<div class="fragment"><pre>00079 {
+00080 <a class="code" href="a04363.html#a0">NL3D_MEM_HMAP</a>
+00081 <a class="code" href="a04199.html#a6">nlassert</a>(x&lt;_Width &amp;&amp; y&lt;_Height);
+00082 <span class="keywordflow">return</span> <a class="code" href="a02630.html#NL3D_1_1CHeightMapo0">Heights</a>[<a class="code" href="a04223.html#a573">y</a>*<a class="code" href="a02630.html#NL3D_1_1CHeightMapr1">_Width</a>+<a class="code" href="a04223.html#a572">x</a>]*<a class="code" href="a02630.html#NL3D_1_1CHeightMapo1">MaxZ</a>/255;
+00083 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapa5" doxytag="NL3D::CHeightMap::resize" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CHeightMap::resize </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>w</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname" nowrap> <em>h</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+resize the heightmap. resize Heights too.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05785.html#l00039">39</a> of file <a class="el" href="a05785.html">height_map.cpp</a>.
+<p>
+References <a class="el" href="a05786.html#l00049">Heights</a>, <a class="el" href="a05786.html#l00033">NL3D_MEM_HMAP</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05646.html#l00236">w</a>.
+<p>
+Referenced by <a class="el" href="a05785.html#l00049">buildFromBitmap()</a>.
+<p>
+<div class="fragment"><pre>00040 {
+00041 <a class="code" href="a04363.html#a0">NL3D_MEM_HMAP</a>
+00042 <a class="code" href="a02630.html#NL3D_1_1CHeightMapr1">_Width</a>= <a class="code" href="a04223.html#a575">w</a>;
+00043 <a class="code" href="a02630.html#NL3D_1_1CHeightMapr0">_Height</a>= h;
+00044 <a class="code" href="a02630.html#NL3D_1_1CHeightMapo0">Heights</a>.resize(w*h);
+00045 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NL3D_1_1CHeightMapr0" doxytag="NL3D::CHeightMap::_Height" ></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> <a class="el" href="a02630.html#NL3D_1_1CHeightMapr0">NL3D::CHeightMap::_Height</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The size of this array. <a class="el" href="a04115.html#a94">Heights.size</a>.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00086">86</a> of file <a class="el" href="a05786.html">height_map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapr1" doxytag="NL3D::CHeightMap::_Width" ></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> <a class="el" href="a02630.html#NL3D_1_1CHeightMapr1">NL3D::CHeightMap::_Width</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The size of this array. <a class="el" href="a04115.html#a94">Heights.size</a>.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00086">86</a> of file <a class="el" href="a05786.html">height_map.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapo0" doxytag="NL3D::CHeightMap::Heights" ></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::vector&lt;<a class="el" href="a04558.html#a7">uint8</a>&gt; <a class="el" href="a02630.html#NL3D_1_1CHeightMapo0">NL3D::CHeightMap::Heights</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00049">49</a> of file <a class="el" href="a05786.html">height_map.h</a>.
+<p>
+Referenced by <a class="el" href="a05785.html#l00049">buildFromBitmap()</a>, <a class="el" href="a05785.html#l00078">getZ()</a>, and <a class="el" href="a05785.html#l00039">resize()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapo1" doxytag="NL3D::CHeightMap::MaxZ" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> float <a class="el" href="a02630.html#NL3D_1_1CHeightMapo1">NL3D::CHeightMap::MaxZ</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The range of heights: 0 to MaxZ.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00056">56</a> of file <a class="el" href="a05786.html">height_map.h</a>.
+<p>
+Referenced by <a class="el" href="a05786.html#l00060">CHeightMap()</a>, and <a class="el" href="a05785.html#l00078">getZ()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapo2" doxytag="NL3D::CHeightMap::OriginX" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> float <a class="el" href="a02630.html#NL3D_1_1CHeightMapo2">NL3D::CHeightMap::OriginX</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The origin of the bottom-left corner of this heightmap.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00052">52</a> of file <a class="el" href="a05786.html">height_map.h</a>.
+<p>
+Referenced by <a class="el" href="a05862.html#l02784">NL3D::CLandscape::setHeightField()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapo3" doxytag="NL3D::CHeightMap::OriginY" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> float <a class="el" href="a02630.html#NL3D_1_1CHeightMapo3">NL3D::CHeightMap::OriginY</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The origin of the bottom-left corner of this heightmap.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00052">52</a> of file <a class="el" href="a05786.html">height_map.h</a>.
+<p>
+Referenced by <a class="el" href="a05862.html#l02784">NL3D::CLandscape::setHeightField()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapo4" doxytag="NL3D::CHeightMap::SizeX" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> float <a class="el" href="a02630.html#NL3D_1_1CHeightMapo4">NL3D::CHeightMap::SizeX</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The size of one Element ot this HeightMap (eg: 160x160 for a zone).
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00054">54</a> of file <a class="el" href="a05786.html">height_map.h</a>.
+<p>
+Referenced by <a class="el" href="a05862.html#l02784">NL3D::CLandscape::setHeightField()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CHeightMapo5" doxytag="NL3D::CHeightMap::SizeY" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> float <a class="el" href="a02630.html#NL3D_1_1CHeightMapo5">NL3D::CHeightMap::SizeY</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+The size of one Element ot this HeightMap (eg: 160x160 for a zone).
+<p>
+
+<p>
+Definition at line <a class="el" href="a05786.html#l00054">54</a> of file <a class="el" href="a05786.html">height_map.h</a>.
+<p>
+Referenced by <a class="el" href="a05862.html#l02784">NL3D::CLandscape::setHeightField()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a05786.html">height_map.h</a><li><a class="el" href="a05785.html">height_map.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:47:05 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>