ImageHeightmap.hh
Go to the documentation of this file.
Encapsulates a generic heightmap data file.
Definition: HeightmapData.hh:30
Encapsulates an image that will be interpreted as a heightmap.
Definition: ImageHeightmap.hh:35
void FillHeightMap(int _subSampling, unsigned int _vertSize, const ignition::math::Vector3d &_size, const ignition::math::Vector3d &_scale, bool _flipY, std::vector< float > &_heights)
Create a lookup table of the terrain's height.
float MaxElevation() const
Get the maximum terrain's elevation.
int Load(const std::string &_filename="")
Load an image file as a heightmap.
std::string Filename() const
Get the full filename of the image.
Forward declarations for the common classes.