Rendering a terrain using heightmap information.
More...
#include <rendering/rendering.hh>
|
| | Heightmap (ScenePtr _scene) |
| | Constructor.
|
| |
| virtual | ~Heightmap () |
| | Destructor.
|
| |
| double | GetHeight (double _x, double _y, double _z=1000) |
| | Get the height at a location.
|
| |
| Ogre::TerrainGroup * | GetOgreTerrain () const |
| | Get a pointer to the OGRE terrain group object.
|
| |
| void | Load () |
| | Load the heightmap.
|
| |
| void | LoadFromMsg (ConstVisualPtr &_msg) |
| | Load the heightmap from a visual message.
|
| |
Rendering a terrain using heightmap information.
| gazebo::rendering::Heightmap::Heightmap |
( |
ScenePtr |
_scene | ) |
|
Constructor.
- Parameters
-
| [in] | _scene | Pointer to the scene that will contain the heightmap |
| virtual gazebo::rendering::Heightmap::~Heightmap |
( |
| ) |
|
|
virtual |
| double gazebo::rendering::Heightmap::GetHeight |
( |
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z = 1000 |
|
) |
| |
Get the height at a location.
- Parameters
-
| [in] | _x | X location |
| [in] | _y | Y location |
| [in] | _z | Z location |
- Returns
- The height at the specified location
| Ogre::TerrainGroup* gazebo::rendering::Heightmap::GetOgreTerrain |
( |
| ) |
const |
Get a pointer to the OGRE terrain group object.
- Returns
- Pointer to the OGRE terrain.
| void gazebo::rendering::Heightmap::Load |
( |
| ) |
|
| void gazebo::rendering::Heightmap::LoadFromMsg |
( |
ConstVisualPtr & |
_msg | ) |
|
Load the heightmap from a visual message.
- Parameters
-
| [in] | _msg | The visual message containing heightmap info |
The documentation for this class was generated from the following file: