|
|
|
|
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(s):
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 45 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 46 of file height_map.cpp. |
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 )
|
|
|
resize the heightmap. resize Heights too.
Definition at line 37 of file height_map.cpp. |
Member Data Documentation
std::vector< uint8 > NL3D::CHeightMap::Heights
|
|
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
|
|
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
|
|
uint NL3D::CHeightMap::_Height [private]
|
|
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:
|
|