#include <SceneObject.h>
Public Types | |
enum | ColorMode { CM_FLAT, CM_PRINTOUT, CM_COLOR_HEIGHT, CM_GRAY_HEIGHT, CM_SEMANTIC } |
Public Member Functions | |
virtual void | clear () |
virtual void | draw () const =0 |
void | enableHeightColorMode (bool enabled=true) |
void | enablePrintoutMode (bool enabled=true) |
void | enableSemanticColoring (bool enabled=true) |
SceneObject () | |
void | setColorMode (ColorMode mode) |
virtual | ~SceneObject () |
Protected Member Functions | |
void | heightMapColor (double h, GLfloat *glArrayPos) const |
void | heightMapGray (double h, GLfloat *glArrayPos) const |
Protected Attributes | |
ColorMode | m_colorMode |
double | m_zMax |
double | m_zMin |
Abstract base class for objects to be drawn in the ViewerWidget.
Definition at line 50 of file SceneObject.h.
Definition at line 52 of file SceneObject.h.
Definition at line 35 of file SceneObject.cpp.
virtual octomap::SceneObject::~SceneObject | ( | ) | [inline, virtual] |
Definition at line 62 of file SceneObject.h.
virtual void octomap::SceneObject::clear | ( | ) | [inline, virtual] |
Clears the object's representation (will be called when it gets invalid)
Reimplemented in octomap::PointcloudDrawer, octomap::TrajectoryDrawer, and octomap::OcTreeDrawer.
Definition at line 72 of file SceneObject.h.
virtual void octomap::SceneObject::draw | ( | ) | const [pure virtual] |
Actual draw function which will be called to visualize the object
Implemented in octomap::PointcloudDrawer, octomap::OcTreeDrawer, and octomap::TrajectoryDrawer.
void octomap::SceneObject::enableHeightColorMode | ( | bool | enabled = true | ) | [inline] |
Definition at line 79 of file SceneObject.h.
void octomap::SceneObject::enablePrintoutMode | ( | bool | enabled = true | ) | [inline] |
Definition at line 78 of file SceneObject.h.
void octomap::SceneObject::enableSemanticColoring | ( | bool | enabled = true | ) | [inline] |
Definition at line 80 of file SceneObject.h.
void octomap::SceneObject::heightMapColor | ( | double | h, |
GLfloat * | glArrayPos | ||
) | const [protected] |
writes rgb values which correspond to a rel. height in the map. (glArrayPos needs to have at least size 3!)
Definition at line 39 of file SceneObject.cpp.
void octomap::SceneObject::heightMapGray | ( | double | h, |
GLfloat * | glArrayPos | ||
) | const [protected] |
Definition at line 93 of file SceneObject.cpp.
void octomap::SceneObject::setColorMode | ( | ColorMode | mode | ) | [inline] |
the color mode has to be set before calling OcTreDrawer::setMap() because the cubes are generated in OcTreDrawer::setMap() using the color information
Definition at line 77 of file SceneObject.h.
ColorMode octomap::SceneObject::m_colorMode [protected] |
Definition at line 89 of file SceneObject.h.
double octomap::SceneObject::m_zMax [protected] |
Definition at line 88 of file SceneObject.h.
double octomap::SceneObject::m_zMin [protected] |
Definition at line 87 of file SceneObject.h.