Go to the documentation of this file.
17 #ifndef GZ_COMMON_IMAGEHEIGHTMAPDATA_HH_
18 #define GZ_COMMON_IMAGEHEIGHTMAPDATA_HH_
22 #include <gz/math/Vector3.hh>
24 #include <gz/common/graphics/Export.hh>
34 :
public gz::common::HeightmapData
43 public:
int Load(
const std::string &_filename =
"");
46 public:
void FillHeightMap(
int _subSampling,
unsigned int _vertSize,
47 const gz::math::Vector3d &_size,
48 const gz::math::Vector3d &_scale,
bool _flipY,
56 public:
unsigned int Height()
const;
59 public:
unsigned int Width()
const;
62 public:
float MaxElevation()
const;
65 private: gz::common::Image img;
Forward declarations for the common classes.
Encapsulates an image that will be interpreted as a heightmap.
Definition: gz/common/ImageHeightmap.hh:33
Encapsulates a generic heightmap data file.
Definition: gz/common/HeightmapData.hh:29
Encapsulates an image.
Definition: gz/common/Image.hh:64