Go to the documentation of this file.
18 #ifndef GAZEBO_COMMON_HEIGHTMAPDATA_HH_
19 #define GAZEBO_COMMON_HEIGHTMAPDATA_HH_
23 #include <ignition/math/Vector3.hh>
25 #include "gazebo/gazebo_config.h"
55 unsigned int _vertSize,
const ignition::math::Vector3d &_size,
56 const ignition::math::Vector3d &_scale,
bool _flipY,
57 std::vector<float> &_heights) = 0;
65 public:
virtual unsigned int GetWidth()
const = 0;
83 const std::string &_filename);
89 const std::string &_filename);
95 const std::string &_filename);
Encapsulates a generic heightmap data file.
Definition: HeightmapData.hh:40
Forward declarations for the common classes.
Definition: Animation.hh:27
virtual unsigned int GetWidth() const =0
Get the terrain's width.
common
Definition: FuelModelDatabase.hh:37
virtual float GetMaxElevation() const =0
Get the maximum terrain's elevation.
Helper class for loading heightmap data.
Definition: HeightmapData.hh:75
virtual unsigned int GetHeight() const =0
Get the terrain's height.
static HeightmapData * LoadTerrainFile(const std::string &_filename)
Load a terrain file specified by _filename.
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.
virtual ~HeightmapData()
Destructor.
Definition: HeightmapData.hh:42