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/classNL3D_1_1CHeightMap.html | 570 ++++++++++++++++++++++++++ 1 file changed, 570 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CHeightMap.html (limited to 'docs/doxygen/nel/classNL3D_1_1CHeightMap.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CHeightMap.html b/docs/doxygen/nel/classNL3D_1_1CHeightMap.html new file mode 100644 index 00000000..9345cc15 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CHeightMap.html @@ -0,0 +1,570 @@ + + + + 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
 The origin of the bottom-left corner of this heightmap. More...

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

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

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


Private Attributes

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

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

+


Detailed Description

+A HeightMap. +

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

+Author:
+Lionel Berenguier , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 46 of file height_map.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NL3D::CHeightMap::CHeightMap   [inline]
+
+ + + + + +
+   + + +

+Constructor. +

+ +

+Definition at line 60 of file height_map.h. +

+References MaxZ, NL3D_MEM_HMAP, OriginX, OriginY, SizeX, and SizeY.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CHeightMap::buildFromBitmap const NLMISC::CBitmap  bitmap
+
+ + + + + +
+   + + +

+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 49 of file height_map.cpp. +

+References NLMISC::CBitmap::convertToType, Heights, NL3D_MEM_HMAP, resize, v, w, x, and y.

+

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

+ +

+Definition at line 72 of file height_map.h. +

+References _Height.

+

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

+ +

+Definition at line 71 of file height_map.h. +

+References _Width.

+

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

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

+ +

+Definition at line 78 of file height_map.cpp. +

+References _Height, _Width, Heights, MaxZ, NL3D_MEM_HMAP, nlassert, x, and y.

+

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

+resize the heightmap. resize Heights too. +

+ +

+Definition at line 39 of file height_map.cpp. +

+References _Height, _Width, Heights, NL3D_MEM_HMAP, and w. +

+Referenced by buildFromBitmap.

+


Member Data Documentation

+

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

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

+ +

+Definition at line 86 of file height_map.h. +

+Referenced by getHeight, getZ, and resize.

+

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

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

+ +

+Definition at line 86 of file height_map.h. +

+Referenced by getWidth, getZ, and resize.

+

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

+ +

+Definition at line 49 of file height_map.h. +

+Referenced by buildFromBitmap, getZ, and resize.

+

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

+The range of heights: 0 to MaxZ. +

+ +

+Definition at line 56 of file height_map.h. +

+Referenced by CHeightMap, and getZ.

+

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

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

+ +

+Definition at line 52 of file height_map.h. +

+Referenced by CHeightMap.

+

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

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

+ +

+Definition at line 52 of file height_map.h. +

+Referenced by CHeightMap.

+

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

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

+ +

+Definition at line 54 of file height_map.h. +

+Referenced by CHeightMap.

+

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

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

+ +

+Definition at line 54 of file height_map.h. +

+Referenced by CHeightMap.

+


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