All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
gazebo::rendering::Heightmap Class Reference

Rendering a terrain using heightmap information. More...

#include <rendering/rendering.hh>

Public Member Functions

 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.
 

Detailed Description

Rendering a terrain using heightmap information.

Constructor & Destructor Documentation

gazebo::rendering::Heightmap::Heightmap ( ScenePtr  _scene)

Constructor.

Parameters
[in]_scenePointer to the scene that will contain the heightmap
virtual gazebo::rendering::Heightmap::~Heightmap ( )
virtual

Destructor.

Member Function Documentation

double gazebo::rendering::Heightmap::GetHeight ( double  _x,
double  _y,
double  _z = 1000 
)

Get the height at a location.

Parameters
[in]_xX location
[in]_yY location
[in]_zZ 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 ( )

Load the heightmap.

void gazebo::rendering::Heightmap::LoadFromMsg ( ConstVisualPtr &  _msg)

Load the heightmap from a visual message.

Parameters
[in]_msgThe visual message containing heightmap info

The documentation for this class was generated from the following file: