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);
common
Definition FuelModelDatabase.hh:37
Encapsulates a generic heightmap data file.
Definition HeightmapData.hh:40
Encapsulates an image that will be interpreted as a heightmap.
Definition ImageHeightmap.hh:40
unsigned int GetHeight() const
Get the terrain's height.
std::string GetFilename() const
Get the full filename of the image.
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 GetMaxElevation() const
Get the maximum terrain's elevation.
unsigned int GetWidth() const
Get the terrain's width.
int Load(const std::string &_filename="")
Load an image file as a heightmap.
ImageHeightmap()
Constructor.
Encapsulates an image.
Definition Image.hh:66
Forward declarations for the common classes.
Definition Animation.hh:27