Encapsulates a generic heightmap data file. More...
#include <common/common.hh>
Public Member Functions | |
virtual | ~HeightmapData () |
Destructor. More... | |
virtual void | FillHeightMap (int _subSampling, unsigned int _vertSize, const ignition::math::Vector3d &_size, const ignition::math::Vector3d &_scale, bool _flipY, std::vector< float > &_heights)=0 |
Create a lookup table of the terrain's height. More... | |
virtual unsigned int | GetHeight () const =0 |
Get the terrain's height. More... | |
virtual float | GetMaxElevation () const =0 |
Get the maximum terrain's elevation. More... | |
virtual unsigned int | GetWidth () const =0 |
Get the terrain's width. More... | |
Encapsulates a generic heightmap data file.
|
inlinevirtual |
Destructor.
|
pure virtual |
Create a lookup table of the terrain's height.
[in] | _subsampling | Multiplier used to increase the resolution. Ex: A subsampling of 2 in a terrain of 129x129 means that the height vector will be 257 * 257. |
[in] | _vertSize | Number of points per row. |
[in] | _size | Real dimmensions of the terrain. |
[in] | _scale | Vector3 used to scale the height. |
[in] | _flipY | If true, it inverts the order in which the vector is filled. |
[out] | _heights | Vector containing the terrain heights. |
Implemented in gazebo::common::Dem, and gazebo::common::ImageHeightmap.
|
pure virtual |
Get the terrain's height.
Implemented in gazebo::common::Dem, and gazebo::common::ImageHeightmap.
|
pure virtual |
Get the maximum terrain's elevation.
Implemented in gazebo::common::ImageHeightmap, and gazebo::common::Dem.
|
pure virtual |
Get the terrain's width.
Implemented in gazebo::common::Dem, and gazebo::common::ImageHeightmap.