Definition at line 59 of file ColorOcTree.h.
#include <mrpt/otherlibs/octomap/ColorOcTree.h>
Classes | |
class | Color |
Public Types | |
typedef float | DataType |
Make the templated data type available from the outside. More... | |
Public Member Functions | |
ColorOcTreeNode () | |
ColorOcTreeNode (const ColorOcTreeNode &rhs) | |
bool | operator== (const ColorOcTreeNode &rhs) const |
ColorOcTreeNode * | getChild (unsigned int i) |
const ColorOcTreeNode * | getChild (unsigned int i) const |
bool | createChild (unsigned int i) |
bool | pruneNode () |
void | expandNode () |
Color | getColor () const |
void | setColor (Color c) |
void | setColor (unsigned char r, unsigned char g, unsigned char b) |
Color & | getColor () |
bool | isColorSet () const |
void | updateColorChildren () |
ColorOcTreeNode::Color | getAverageChildColor () const |
std::istream & | readValue (std::istream &s) |
std::ostream & | writeValue (std::ostream &s) const |
double | getOccupancy () const |
float | getLogOdds () const |
void | setLogOdds (float l) |
sets log odds occupancy of node More... | |
double | getMeanChildLogOdds () const |
float | getMaxChildLogOdds () const |
void | updateOccupancyChildren () |
update this node's occupancy according to its children's maximum occupancy More... | |
void | addValue (const float &p) |
adds p to the node's logOdds value (with no boundary / threshold checking!) More... | |
bool | operator== (const OcTreeDataNode &rhs) const |
Equals operator, compares if the stored value is identical. More... | |
bool | childExists (unsigned int i) const |
bool | hasChildren () const |
bool | collapsible () const |
A node is collapsible if all children exist, don't have children of their own and have the same occupancy value. More... | |
void | deleteChild (unsigned int i) |
Deletes the i-th child of the node. More... | |
float | getValue () const |
void | setValue (floatv) |
sets value to be stored in the node More... | |
Protected Member Functions | |
void | allocChildren () |
Protected Attributes | |
Color | color |
OcTreeDataNode< float > ** | children |
pointer to array of children, may be NULL More... | |
float | value |
stored data (payload) More... | |
|
inherited |
Make the templated data type available from the outside.
Definition at line 156 of file OcTreeDataNode.h.
|
inline |
Definition at line 77 of file ColorOcTree.h.
Referenced by createChild().
|
inline |
Definition at line 79 of file ColorOcTree.h.
|
inherited |
adds p to the node's logOdds value (with no boundary / threshold checking!)
|
protectedinherited |
Referenced by octomap::OcTreeNodeStamped::createChild(), and createChild().
|
inherited |
|
inherited |
A node is collapsible if all children exist, don't have children of their own and have the same occupancy value.
|
inline |
Definition at line 93 of file ColorOcTree.h.
References octomap::OcTreeDataNode< float >::allocChildren(), octomap::OcTreeDataNode< float >::children, ColorOcTreeNode(), expandNode(), and pruneNode().
|
inherited |
Deletes the i-th child of the node.
void octomap::ColorOcTreeNode::expandNode | ( | ) |
Referenced by createChild().
ColorOcTreeNode::Color octomap::ColorOcTreeNode::getAverageChildColor | ( | ) | const |
Referenced by isColorSet().
|
inline |
Definition at line 86 of file ColorOcTree.h.
References octomap::OcTreeNode::getChild().
|
inline |
Definition at line 89 of file ColorOcTree.h.
References octomap::OcTreeNode::getChild().
|
inline |
Definition at line 102 of file ColorOcTree.h.
References color.
|
inline |
Definition at line 108 of file ColorOcTree.h.
References color.
|
inlineinherited |
Definition at line 89 of file OcTreeNode.h.
Referenced by octomap::AbstractOccupancyOcTree::isNodeAtThreshold(), and octomap::AbstractOccupancyOcTree::isNodeOccupied().
|
inherited |
Referenced by octomap::OcTreeNodeStamped::updateOccupancyChildren().
|
inherited |
|
inlineinherited |
Definition at line 86 of file OcTreeNode.h.
References octomap::probability().
|
inlineinherited |
Definition at line 129 of file OcTreeDataNode.h.
|
inherited |
|
inline |
Definition at line 111 of file ColorOcTree.h.
References octomap::ColorOcTreeNode::Color::b, color, octomap::ColorOcTreeNode::Color::g, getAverageChildColor(), octomap::ColorOcTreeNode::Color::r, readValue(), updateColorChildren(), and writeValue().
|
inline |
Definition at line 81 of file ColorOcTree.h.
References color, octomap::OcTreeDataNode< T >::value, and octomap::OcTreeDataNode< float >::value.
|
inherited |
Equals operator, compares if the stored value is identical.
bool octomap::ColorOcTreeNode::pruneNode | ( | ) |
Referenced by createChild().
std::istream& octomap::ColorOcTreeNode::readValue | ( | std::istream & | s | ) |
Referenced by isColorSet().
|
inline |
Definition at line 103 of file ColorOcTree.h.
References color.
|
inline |
Definition at line 104 of file ColorOcTree.h.
References octomap::ColorOcTreeNode::Color::Color(), and color.
|
inlineinherited |
sets log odds occupancy of node
Definition at line 91 of file OcTreeNode.h.
Referenced by octomap::OcTreeNodeStamped::updateOccupancyChildren().
|
inlineinherited |
sets value to be stored in the node
Definition at line 131 of file OcTreeDataNode.h.
void octomap::ColorOcTreeNode::updateColorChildren | ( | ) |
Referenced by isColorSet().
|
inlineinherited |
update this node's occupancy according to its children's maximum occupancy
Definition at line 104 of file OcTreeNode.h.
std::ostream& octomap::ColorOcTreeNode::writeValue | ( | std::ostream & | s | ) | const |
Referenced by isColorSet().
|
protectedinherited |
pointer to array of children, may be NULL
Definition at line 163 of file OcTreeDataNode.h.
Referenced by octomap::OcTreeNodeStamped::createChild(), and createChild().
|
protected |
Definition at line 125 of file ColorOcTree.h.
Referenced by getColor(), isColorSet(), operator==(), and setColor().
|
protectedinherited |
stored data (payload)
Definition at line 165 of file OcTreeDataNode.h.
Referenced by octomap::OcTreeNodeStamped::operator==(), and operator==().
Page generated by Doxygen 1.8.11 for MRPT 1.4.0 SVN:Unversioned directory at Sun Jul 10 11:38:36 UTC 2016 |