#include <VisualObject.h>
Public Member Functions | |
void | getVisualModelBoundingBox (mrpt::math::TPoint3D &bbmin, mrpt::math::TPoint3D &bbmax) const |
World * | getWorldObject () |
const World * | getWorldObject () const |
virtual void | guiUpdate (mrpt::opengl::COpenGLScene &scene) |
void | showBoundingBox (bool show) |
VisualObject (World *parent) | |
virtual | ~VisualObject () |
Protected Member Functions | |
virtual mrpt::poses::CPose3D | internalGuiGetVisualPose () |
virtual void | internalGuiUpdate (mrpt::opengl::COpenGLScene &scene, bool childrenOnly=false)=0 |
bool | parseVisual (const rapidxml::xml_node< char > *visual_node) |
Protected Attributes | |
std::shared_ptr< mrpt::opengl::CSetOfObjects > | m_glBoundingBox |
std::shared_ptr< mrpt::opengl::CSetOfObjects > | m_glCustomVisual |
int32_t | m_glCustomVisualId = -1 |
World * | m_world |
Private Attributes | |
mrpt::math::TPoint3D | viz_bbmax_ {1.0, 1.0, 1.0} |
mrpt::math::TPoint3D | viz_bbmin_ {-1.0, -1.0, .0} |
Virtual base class for any entity that can be shown in the 3D viewer (or sent out to RViz)
Definition at line 25 of file VisualObject.h.
|
inline |
Definition at line 28 of file VisualObject.h.
|
inlinevirtual |
Definition at line 29 of file VisualObject.h.
|
inline |
Returns bounding boxes, as loaded by parseVisual() from an XML config file.
Definition at line 39 of file VisualObject.h.
|
inline |
Definition at line 34 of file VisualObject.h.
Definition at line 35 of file VisualObject.h.
|
virtual |
Must create a new object in the scene and/or update it according to the current state
Definition at line 29 of file VisualObject.cpp.
|
inlineprotectedvirtual |
Reimplemented in mvsim::VehicleBase, and mvsim::Block.
Definition at line 60 of file VisualObject.h.
|
protectedpure virtual |
Implemented in mvsim::VehicleBase, mvsim::Block, mvsim::OccupancyGridMap, mvsim::LaserScanner, mvsim::ElevationMap, and mvsim::GroundGrid.
|
protected |
Definition at line 74 of file VisualObject.cpp.
void VisualObject::showBoundingBox | ( | bool | show | ) |
Definition at line 158 of file VisualObject.cpp.
|
protected |
Definition at line 55 of file VisualObject.h.
|
protected |
If not empty, will override the derived-class visualization for this object.
Definition at line 54 of file VisualObject.h.
|
protected |
Definition at line 56 of file VisualObject.h.
|
protected |
Definition at line 50 of file VisualObject.h.
|
private |
Definition at line 63 of file VisualObject.h.
|
private |
Definition at line 63 of file VisualObject.h.