|
|
|
|
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 ReferenceA HeightMap.
More...
#include <height_map.h>
List of all members.
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] |
|
Member Function Documentation
|
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] |
|
uint NL3D::CHeightMap::getWidth |
( |
|
) |
const [inline] |
|
float NL3D::CHeightMap::getZ |
( |
uint |
x, |
|
|
uint |
y |
|
) |
const |
|
void NL3D::CHeightMap::resize |
( |
uint |
w, |
|
|
uint |
h |
|
) |
|
|
Member Data Documentation
uint NL3D::CHeightMap::_Height [private]
|
|
uint NL3D::CHeightMap::_Width [private]
|
|
std::vector<uint8> NL3D::CHeightMap::Heights
|
|
float NL3D::CHeightMap::MaxZ
|
|
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:
|
|