Classes | Public Member Functions | Protected Attributes | List of all members
octomap::ColorOcTreeNode Class Reference

#include <ColorOcTree.h>

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

Classes

class  Color
 

Public Member Functions

 ColorOcTreeNode ()
 
 ColorOcTreeNode (const ColorOcTreeNode &rhs)
 
bool createChild (unsigned int i)
 
void expandNode ()
 
ColorOcTreeNode::Color getAverageChildColor () const
 
ColorOcTreeNodegetChild (unsigned int i)
 
const ColorOcTreeNodegetChild (unsigned int i) const
 
Color getColor () const
 
ColorgetColor ()
 
bool isColorSet () const
 
bool operator== (const ColorOcTreeNode &rhs) const
 
bool pruneNode ()
 
std::istream & readValue (std::istream &s)
 
void setColor (Color c)
 
void setColor (unsigned char r, unsigned char g, unsigned char b)
 
void updateColorChildren ()
 
std::ostream & writeValue (std::ostream &s) const
 
- Public Member Functions inherited from octomap::OcTreeNode
void addValue (const float &p)
 adds p to the node's logOdds value (with no boundary / threshold checking!) More...
 
bool createChild (unsigned int i)
 
OcTreeNodegetChild (unsigned int i)
 
const OcTreeNodegetChild (unsigned int i) const
 
float getLogOdds () const
 
float getMaxChildLogOdds () const
 
double getMeanChildLogOdds () const
 
double getOccupancy () const
 
 OcTreeNode ()
 
void setLogOdds (float l)
 sets log odds occupancy of node More...
 
void updateOccupancyChildren ()
 update this node's occupancy according to its children's maximum occupancy More...
 
 ~OcTreeNode ()
 
- Public Member Functions inherited from octomap::OcTreeDataNode< float >
bool childExists (unsigned int i) const
 
bool collapsible () const
 
bool createChild (unsigned int i)
 initialize i-th child, allocate children array if needed More...
 
void deleteChild (unsigned int i)
 Deletes the i-th child of the node. More...
 
void expandNode ()
 
OcTreeDataNode< float > * getChild (unsigned int i)
 
const OcTreeDataNode< float > * getChild (unsigned int i) const
 
float getValue () const
 
bool hasChildren () const
 
 OcTreeDataNode ()
 
 OcTreeDataNode (floatinitVal)
 
 OcTreeDataNode (const OcTreeDataNode &rhs)
 Copy constructor, performs a recursive deep-copy of all children. More...
 
bool operator== (const OcTreeDataNode &rhs) const
 Equals operator, compares if the stored value is identical. More...
 
bool pruneNode ()
 
std::istream & readValue (std::istream &s)
 
void setValue (floatv)
 sets value to be stored in the node More...
 
std::ostream & writeValue (std::ostream &s) const
 
 ~OcTreeDataNode ()
 

Protected Attributes

Color color
 
- Protected Attributes inherited from octomap::OcTreeDataNode< float >
OcTreeDataNode< float > ** children
 pointer to array of children, may be NULL More...
 
float value
 stored data (payload) More...
 

Additional Inherited Members

- Public Types inherited from octomap::OcTreeDataNode< float >
typedef float DataType
 Make the templated data type available from the outside. More...
 
- Protected Member Functions inherited from octomap::OcTreeDataNode< float >
void allocChildren ()
 

Detailed Description

Definition at line 45 of file ColorOcTree.h.

Constructor & Destructor Documentation

octomap::ColorOcTreeNode::ColorOcTreeNode ( )
inline

Definition at line 63 of file ColorOcTree.h.

octomap::ColorOcTreeNode::ColorOcTreeNode ( const ColorOcTreeNode rhs)
inline

Definition at line 65 of file ColorOcTree.h.

Member Function Documentation

bool octomap::ColorOcTreeNode::createChild ( unsigned int  i)
inline

Definition at line 79 of file ColorOcTree.h.

void octomap::ColorOcTreeNode::expandNode ( )

Definition at line 123 of file ColorOcTree.cpp.

ColorOcTreeNode::Color octomap::ColorOcTreeNode::getAverageChildColor ( ) const

Definition at line 78 of file ColorOcTree.cpp.

ColorOcTreeNode* octomap::ColorOcTreeNode::getChild ( unsigned int  i)
inline

Definition at line 72 of file ColorOcTree.h.

const ColorOcTreeNode* octomap::ColorOcTreeNode::getChild ( unsigned int  i) const
inline

Definition at line 75 of file ColorOcTree.h.

Color octomap::ColorOcTreeNode::getColor ( ) const
inline

Definition at line 88 of file ColorOcTree.h.

Color& octomap::ColorOcTreeNode::getColor ( )
inline

Definition at line 94 of file ColorOcTree.h.

bool octomap::ColorOcTreeNode::isColorSet ( ) const
inline

Definition at line 97 of file ColorOcTree.h.

bool octomap::ColorOcTreeNode::operator== ( const ColorOcTreeNode rhs) const
inline

Definition at line 67 of file ColorOcTree.h.

bool octomap::ColorOcTreeNode::pruneNode ( )

Definition at line 107 of file ColorOcTree.cpp.

std::istream & octomap::ColorOcTreeNode::readValue ( std::istream &  s)

Definition at line 60 of file ColorOcTree.cpp.

void octomap::ColorOcTreeNode::setColor ( Color  c)
inline

Definition at line 89 of file ColorOcTree.h.

void octomap::ColorOcTreeNode::setColor ( unsigned char  r,
unsigned char  g,
unsigned char  b 
)
inline

Definition at line 90 of file ColorOcTree.h.

void octomap::ColorOcTreeNode::updateColorChildren ( )

Definition at line 101 of file ColorOcTree.cpp.

std::ostream & octomap::ColorOcTreeNode::writeValue ( std::ostream &  s) const

Definition at line 40 of file ColorOcTree.cpp.

Member Data Documentation

Color octomap::ColorOcTreeNode::color
protected

Definition at line 111 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 Fri Mar 25 2016 03:52:55