From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/class_NL3D__CHeightMap.html | 560 +++++++++++++++++++++++++++ 1 file changed, 560 insertions(+) create mode 100644 docs/doxygen/nel/class_NL3D__CHeightMap.html (limited to 'docs/doxygen/nel/class_NL3D__CHeightMap.html') diff --git a/docs/doxygen/nel/class_NL3D__CHeightMap.html b/docs/doxygen/nel/class_NL3D__CHeightMap.html new file mode 100644 index 00000000..9ccefb5d --- /dev/null +++ b/docs/doxygen/nel/class_NL3D__CHeightMap.html @@ -0,0 +1,560 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NL3D::CHeightMap Class Reference

A HeightMap. +More... +

+#include <height_map.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

 CHeightMap ()
 Constructor. More...

void resize (uint w, uint h)
 resize the heightmap. resize Heights too. More...

uint getWidth () const
uint getHeight () const
float getZ (uint x, uint y) const
 return the ZValue, interval is: 0-MaxZ. nlassert(x,y). More...

void buildFromBitmap (const NLMISC::CBitmap &bitmap)
 This tool method build a HeightMap, from a bitmap, resize(), and fill Heights. More...


Public Attributes

std::vector<uint8Heights
float OriginX
 The origin of the bottom-left corner of this heightmap. More...

float OriginY
float SizeX
 The size of one Element ot this HeightMap (eg: 160x160 for a zone). More...

float SizeY
float MaxZ
 The range of heights: 0 to MaxZ. More...


Private Attributes

uint _Width
 The size of this array. Heights.size. More...

uint _Height
+


Detailed Description

+A HeightMap. +

+The heightMap is oriented left-right(X+) / bottom-top(Y+).

+Author(s):
+ Lionel Berenguier , Nevrax France
+Date:
+ 2001
+

+ +

+Definition at line 45 of file height_map.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + +
+NL3D::CHeightMap::CHeightMap ( + +) [inline] +
+
+ + + + + +
+   + + +

+Constructor. +

+ +

+Definition at line 59 of file height_map.h.

+


Member Function Documentation

+

+ + + + +
+ + + + + + +
+void NL3D::CHeightMap::buildFromBitmap ( + +const NLMISC::CBitmap & bitmap0 ) +
+
+ + + + + +
+   + + +

+This tool method build a HeightMap, from a bitmap, resize(), and fill Heights. +

+value are read from bitmap luminance value. NB: Lines are inverted, because bitmap definition is left-right / top-bottom. +

+Definition at line 46 of file height_map.cpp.

+

+ + + + +
+ + + + + + +
+uint NL3D::CHeightMap::getHeight ( + +) const [inline] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 70 of file height_map.h.

+

+ + + + +
+ + + + + + +
+uint NL3D::CHeightMap::getWidth ( + +) const [inline] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 69 of file height_map.h.

+

+ + + + +
+ + + + + + + + + + +
+float NL3D::CHeightMap::getZ ( + +uint x, +
+uint y ) const +
+
+ + + + + +
+   + + +

+return the ZValue, interval is: 0-MaxZ. nlassert(x,y). +

+ +

+Definition at line 74 of file height_map.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CHeightMap::resize ( + +uint w, +
+uint h ) +
+
+ + + + + +
+   + + +

+resize the heightmap. resize Heights too. +

+ +

+Definition at line 37 of file height_map.cpp.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+std::vector< uint8 > NL3D::CHeightMap::Heights +
+
+ + + + + +
+   + + +

+ +

+Definition at line 48 of file height_map.h.

+

+ + + + +
+ + + + + +
+float NL3D::CHeightMap::MaxZ +
+
+ + + + + +
+   + + +

+The range of heights: 0 to MaxZ. +

+ +

+Definition at line 55 of file height_map.h.

+

+ + + + +
+ + + + + +
+float NL3D::CHeightMap::OriginX +
+
+ + + + + +
+   + + +

+The origin of the bottom-left corner of this heightmap. +

+ +

+Definition at line 51 of file height_map.h.

+

+ + + + +
+ + + + + +
+float NL3D::CHeightMap::OriginY +
+
+ + + + + +
+   + + +

+ +

+Definition at line 51 of file height_map.h.

+

+ + + + +
+ + + + + +
+float NL3D::CHeightMap::SizeX +
+
+ + + + + +
+   + + +

+The size of one Element ot this HeightMap (eg: 160x160 for a zone). +

+ +

+Definition at line 53 of file height_map.h.

+

+ + + + +
+ + + + + +
+float NL3D::CHeightMap::SizeY +
+
+ + + + + +
+   + + +

+ +

+Definition at line 53 of file height_map.h.

+

+ + + + +
+ + + + + +
+uint NL3D::CHeightMap::_Height [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 84 of file height_map.h.

+

+ + + + +
+ + + + + +
+uint NL3D::CHeightMap::_Width [private] +
+
+ + + + + +
+   + + +

+The size of this array. Heights.size. +

+ +

+Definition at line 84 of file height_map.h.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1