Classes | Public Member Functions | Protected Attributes | Friends | 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)
 
void copyData (const ColorOcTreeNode &from)
 
ColorOcTreeNode::Color getAverageChildColor () const
 
Color getColor () const
 
ColorgetColor ()
 
bool isColorSet () const
 
bool operator== (const ColorOcTreeNode &rhs) const
 
std::istream & readData (std::istream &s)
 
void setColor (Color c)
 
void setColor (uint8_t r, uint8_t g, uint8_t b)
 
void updateColorChildren ()
 
std::ostream & writeData (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...
 
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 >
void copyData (const OcTreeDataNode &from)
 
float getValue () const
 
 OCTOMAP_DEPRECATED (bool childExists(unsigned int i) const)
 
 OCTOMAP_DEPRECATED (bool hasChildren() const)
 
 OcTreeDataNode ()
 
 OcTreeDataNode (float initVal)
 
 OcTreeDataNode (const OcTreeDataNode &rhs)
 
bool operator== (const OcTreeDataNode &rhs) const
 Equals operator, compares if the stored value is identical. More...
 
std::istream & readData (std::istream &s)
 Read node payload (data only) from binary stream. More...
 
void setValue (float v)
 sets value to be stored in the node More...
 
std::ostream & writeData (std::ostream &s) const
 Write node payload (data only) to binary stream. More...
 
 ~OcTreeDataNode ()
 

Protected Attributes

Color color
 
- Protected Attributes inherited from octomap::OcTreeDataNode< float >
AbstractOcTreeNode ** children
 
float value
 stored data (payload) More...
 

Friends

class ColorOcTree
 

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 48 of file ColorOcTree.h.

Constructor & Destructor Documentation

◆ ColorOcTreeNode() [1/2]

octomap::ColorOcTreeNode::ColorOcTreeNode ( )
inline

Definition at line 67 of file ColorOcTree.h.

◆ ColorOcTreeNode() [2/2]

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

Definition at line 69 of file ColorOcTree.h.

Member Function Documentation

◆ copyData()

void octomap::ColorOcTreeNode::copyData ( const ColorOcTreeNode from)
inline

Definition at line 75 of file ColorOcTree.h.

◆ getAverageChildColor()

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

Definition at line 54 of file ColorOcTree.cpp.

◆ getColor() [1/2]

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

Definition at line 80 of file ColorOcTree.h.

◆ getColor() [2/2]

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

Definition at line 86 of file ColorOcTree.h.

◆ isColorSet()

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

Definition at line 89 of file ColorOcTree.h.

◆ operator==()

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

Definition at line 71 of file ColorOcTree.h.

◆ readData()

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

Definition at line 47 of file ColorOcTree.cpp.

◆ setColor() [1/2]

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

Definition at line 81 of file ColorOcTree.h.

◆ setColor() [2/2]

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

Definition at line 82 of file ColorOcTree.h.

◆ updateColorChildren()

void octomap::ColorOcTreeNode::updateColorChildren ( )

Definition at line 85 of file ColorOcTree.cpp.

◆ writeData()

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

Definition at line 40 of file ColorOcTree.cpp.

Friends And Related Function Documentation

◆ ColorOcTree

friend class ColorOcTree
friend

Definition at line 50 of file ColorOcTree.h.

Member Data Documentation

◆ color

Color octomap::ColorOcTreeNode::color
protected

Definition at line 103 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 Mon Feb 28 2022 22:58:06