#include <ElevationMap.h>
Public Member Functions | |
ElevationMap (World *parent, const rapidxml::xml_node< char > *root) | |
bool | getElevationAt (double x, double y, float &z) const |
return false if out of bounds | |
virtual void | gui_update (mrpt::opengl::COpenGLScene &scene) |
See docs in base class. | |
virtual void | loadConfigFrom (const rapidxml::xml_node< char > *root) |
See docs in base class. | |
virtual void | simul_post_timestep (const TSimulContext &context) |
See docs in base class. | |
virtual void | simul_pre_timestep (const TSimulContext &context) |
See docs in base class. | |
virtual | ~ElevationMap () |
Protected Attributes | |
bool | m_first_scene_rendering |
mrpt::opengl::CMesh::Ptr | m_gl_mesh |
mrpt::math::CMatrixFloat | m_mesh_z_cache |
double | m_resolution |
Private Attributes | |
TMatchingPairList | corrs |
mrpt::poses::CPose3D | m_optimal_transf |
Definition at line 34 of file ElevationMap.h.
ElevationMap::ElevationMap | ( | World * | parent, |
const rapidxml::xml_node< char > * | root | ||
) |
Definition at line 24 of file ElevationMap.cpp.
ElevationMap::~ElevationMap | ( | ) | [virtual] |
Definition at line 30 of file ElevationMap.cpp.
bool ElevationMap::getElevationAt | ( | double | x, |
double | y, | ||
float & | z | ||
) | const |
return false if out of bounds
Definition at line 293 of file ElevationMap.cpp.
void ElevationMap::gui_update | ( | mrpt::opengl::COpenGLScene & | scene | ) | [virtual] |
See docs in base class.
Implements mvsim::VisualObject.
Definition at line 127 of file ElevationMap.cpp.
void ElevationMap::loadConfigFrom | ( | const rapidxml::xml_node< char > * | root | ) | [virtual] |
See docs in base class.
Implements mvsim::WorldElementBase.
Definition at line 31 of file ElevationMap.cpp.
void ElevationMap::simul_post_timestep | ( | const TSimulContext & | context | ) | [virtual] |
See docs in base class.
Reimplemented from mvsim::Simulable.
Definition at line 270 of file ElevationMap.cpp.
void ElevationMap::simul_pre_timestep | ( | const TSimulContext & | context | ) | [virtual] |
See docs in base class.
Reimplemented from mvsim::Simulable.
Definition at line 144 of file ElevationMap.cpp.
TMatchingPairList mvsim::ElevationMap::corrs [private] |
m_gl_mesh. Coordinate order is (x,y)
Definition at line 66 of file ElevationMap.h.
bool mvsim::ElevationMap::m_first_scene_rendering [protected] |
Definition at line 58 of file ElevationMap.h.
mrpt::opengl::CMesh::Ptr mvsim::ElevationMap::m_gl_mesh [protected] |
This object holds both, the mesh data, and is in charge of 3D rendering.
Definition at line 57 of file ElevationMap.h.
mrpt::math::CMatrixFloat mvsim::ElevationMap::m_mesh_z_cache [protected] |
A copy of elevation data in
Definition at line 60 of file ElevationMap.h.
mrpt::poses::CPose3D mvsim::ElevationMap::m_optimal_transf [private] |
Definition at line 67 of file ElevationMap.h.
double mvsim::ElevationMap::m_resolution [protected] |
Definition at line 59 of file ElevationMap.h.