Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
octomap::SceneObject Class Reference

#include <SceneObject.h>

Inheritance diagram for octomap::SceneObject:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Abstract base class for objects to be drawn in the ViewerWidget.

Definition at line 49 of file SceneObject.h.


Member Enumeration Documentation

Enumerator:
CM_FLAT 
CM_PRINTOUT 
CM_COLOR_HEIGHT 
CM_GRAY_HEIGHT 
CM_SEMANTIC 

Definition at line 51 of file SceneObject.h.


Constructor & Destructor Documentation

Definition at line 34 of file SceneObject.cpp.

virtual octomap::SceneObject::~SceneObject ( ) [inline, virtual]

Definition at line 61 of file SceneObject.h.


Member Function Documentation

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 71 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 78 of file SceneObject.h.

void octomap::SceneObject::enablePrintoutMode ( bool  enabled = true) [inline]

Definition at line 77 of file SceneObject.h.

void octomap::SceneObject::enableSemanticColoring ( bool  enabled = true) [inline]

Definition at line 79 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 38 of file SceneObject.cpp.

void octomap::SceneObject::heightMapGray ( double  h,
GLfloat *  glArrayPos 
) const [protected]

Definition at line 92 of file SceneObject.cpp.

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 76 of file SceneObject.h.


Member Data Documentation

Definition at line 88 of file SceneObject.h.

double octomap::SceneObject::m_zMax [protected]

Definition at line 87 of file SceneObject.h.

double octomap::SceneObject::m_zMin [protected]

Definition at line 86 of file SceneObject.h.


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


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Thu Feb 11 2016 23:51:20