Go to the documentation of this file.
18 #ifndef _GAZEBO_IMAGE_HEIGHTMAP_DATA_HH_
19 #define _GAZEBO_IMAGE_HEIGHTMAP_DATA_HH_
23 #include <ignition/math/Vector3.hh>
48 public:
int Load(
const std::string &_filename=
"");
52 const ignition::math::Vector3d &_size,
53 const ignition::math::Vector3d &_scale,
bool _flipY,
54 std::vector<float> &_heights);
Encapsulates a generic heightmap data file.
Definition: HeightmapData.hh:40
Forward declarations for the common classes.
Definition: Animation.hh:27
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.
std::string GetFilename() const
Get the full filename of the image.
common
Definition: FuelModelDatabase.hh:37
Encapsulates an image.
Definition: Image.hh:75
int Load(const std::string &_filename="")
Load an image file as a heightmap.
ImageHeightmap()
Constructor.
float GetMaxElevation() const
Get the maximum terrain's elevation.
unsigned int GetWidth() const
Get the terrain's width.
unsigned int GetHeight() const
Get the terrain's height.
Encapsulates an image that will be interpreted as a heightmap.
Definition: ImageHeightmap.hh:40