Classes | Public Member Functions | Protected Member Functions | Static Protected Attributes
octomap::ColorOcTree Class Reference

#include <ColorOcTree.h>

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

List of all members.

Classes

class  StaticMemberInitializer

Public Member Functions

ColorOcTreeNodeaverageNodeColor (const OcTreeKey &key, const unsigned char &r, const unsigned char &g, const unsigned char &b)
ColorOcTreeNodeaverageNodeColor (const float &x, const float &y, const float &z, const unsigned char &r, const unsigned char &g, const unsigned char &b)
 ColorOcTree (double resolution)
 Default constructor, sets resolution of leafs.
ColorOcTreecreate () const
std::string getTreeType () const
ColorOcTreeNodeintegrateNodeColor (const OcTreeKey &key, const unsigned char &r, const unsigned char &g, const unsigned char &b)
ColorOcTreeNodeintegrateNodeColor (const float &x, const float &y, const float &z, const unsigned char &r, const unsigned char &g, const unsigned char &b)
ColorOcTreeNodesetNodeColor (const OcTreeKey &key, const unsigned char &r, const unsigned char &g, const unsigned char &b)
ColorOcTreeNodesetNodeColor (const float &x, const float &y, const float &z, const unsigned char &r, const unsigned char &g, const unsigned char &b)
void updateInnerOccupancy ()
void writeColorHistogram (std::string filename)

Protected Member Functions

void updateInnerOccupancyRecurs (ColorOcTreeNode *node, unsigned int depth)

Static Protected Attributes

static StaticMemberInitializer colorOcTreeMemberInit
 static member to ensure static initialization (only once)

Detailed Description

Definition at line 116 of file ColorOcTree.h.


Constructor & Destructor Documentation

octomap::ColorOcTree::ColorOcTree ( double  resolution) [inline]

Default constructor, sets resolution of leafs.

Definition at line 120 of file ColorOcTree.h.


Member Function Documentation

ColorOcTreeNode * octomap::ColorOcTree::averageNodeColor ( const OcTreeKey key,
const unsigned char &  r,
const unsigned char &  g,
const unsigned char &  b 
)

Definition at line 145 of file ColorOcTree.cpp.

ColorOcTreeNode* octomap::ColorOcTree::averageNodeColor ( const float &  x,
const float &  y,
const float &  z,
const unsigned char &  r,
const unsigned char &  g,
const unsigned char &  b 
) [inline]

Definition at line 144 of file ColorOcTree.h.

virtual constructor: creates a new object of same type (Covariant return type requires an up-to-date compiler)

Definition at line 124 of file ColorOcTree.h.

std::string octomap::ColorOcTree::getTreeType ( ) const [inline]

Reimplemented from octomap::OcTreeBaseImpl< NODE, INTERFACE >.

Definition at line 126 of file ColorOcTree.h.

ColorOcTreeNode * octomap::ColorOcTree::integrateNodeColor ( const OcTreeKey key,
const unsigned char &  r,
const unsigned char &  g,
const unsigned char &  b 
)

Definition at line 162 of file ColorOcTree.cpp.

ColorOcTreeNode* octomap::ColorOcTree::integrateNodeColor ( const float &  x,
const float &  y,
const float &  z,
const unsigned char &  r,
const unsigned char &  g,
const unsigned char &  b 
) [inline]

Definition at line 156 of file ColorOcTree.h.

ColorOcTreeNode * octomap::ColorOcTree::setNodeColor ( const OcTreeKey key,
const unsigned char &  r,
const unsigned char &  g,
const unsigned char &  b 
)

Definition at line 134 of file ColorOcTree.cpp.

ColorOcTreeNode* octomap::ColorOcTree::setNodeColor ( const float &  x,
const float &  y,
const float &  z,
const unsigned char &  r,
const unsigned char &  g,
const unsigned char &  b 
) [inline]

Definition at line 132 of file ColorOcTree.h.

Updates the occupancy of all inner nodes to reflect their children's occupancy. If you performed batch-updates with lazy evaluation enabled, you must call this before any queries to ensure correct multi-resolution behavior.

Reimplemented from octomap::OccupancyOcTreeBase< ColorOcTreeNode >.

Definition at line 187 of file ColorOcTree.cpp.

void octomap::ColorOcTree::updateInnerOccupancyRecurs ( ColorOcTreeNode node,
unsigned int  depth 
) [protected]

Reimplemented from octomap::OccupancyOcTreeBase< ColorOcTreeNode >.

Definition at line 191 of file ColorOcTree.cpp.

void octomap::ColorOcTree::writeColorHistogram ( std::string  filename)

Definition at line 207 of file ColorOcTree.cpp.


Member Data Documentation

static member to ensure static initialization (only once)

Definition at line 185 of file ColorOcTree.h.


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


octomap
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Thu Feb 11 2016 23:50:59