#include <CountingOcTree.h>
Public Member Functions | |
CountingOcTreeNode () | |
implementation of CountingOcTreeNode -------------------------------— More... | |
bool | createChild (unsigned int i) |
void | expandNode () |
CountingOcTreeNode * | getChild (unsigned int i) |
const CountingOcTreeNode * | getChild (unsigned int i) const |
unsigned int | getCount () const |
void | increaseCount () |
void | setCount (unsigned c) |
~CountingOcTreeNode () | |
Public Member Functions inherited from octomap::OcTreeDataNode< unsigned int > | |
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< unsigned int > * | getChild (unsigned int i) |
const OcTreeDataNode< unsigned int > * | getChild (unsigned int i) const |
unsigned int | getValue () const |
bool | hasChildren () const |
OcTreeDataNode () | |
OcTreeDataNode (unsigned intinitVal) | |
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 (unsigned intv) |
sets value to be stored in the node More... | |
std::ostream & | writeValue (std::ostream &s) const |
~OcTreeDataNode () | |
Additional Inherited Members | |
Public Types inherited from octomap::OcTreeDataNode< unsigned int > | |
typedef unsigned int | DataType |
Make the templated data type available from the outside. More... | |
Protected Member Functions inherited from octomap::OcTreeDataNode< unsigned int > | |
void | allocChildren () |
Protected Attributes inherited from octomap::OcTreeDataNode< unsigned int > | |
OcTreeDataNode< unsigned int > ** | children |
pointer to array of children, may be NULL More... | |
unsigned int | value |
stored data (payload) More... | |
An Octree-node which stores an internal counter per node / volume.
Count is recursive, parent nodes have the summed count of their children.
Definition at line 53 of file CountingOcTree.h.
octomap::CountingOcTreeNode::CountingOcTreeNode | ( | ) |
implementation of CountingOcTreeNode -------------------------------—
Definition at line 42 of file CountingOcTree.cpp.
octomap::CountingOcTreeNode::~CountingOcTreeNode | ( | ) |
Definition at line 47 of file CountingOcTree.cpp.
bool octomap::CountingOcTreeNode::createChild | ( | unsigned int | i | ) |
Definition at line 62 of file CountingOcTree.cpp.
void octomap::CountingOcTreeNode::expandNode | ( | ) |
Definition at line 51 of file CountingOcTree.cpp.
|
inline |
Definition at line 61 of file CountingOcTree.h.
|
inline |
Definition at line 65 of file CountingOcTree.h.
|
inline |
Definition at line 69 of file CountingOcTree.h.
|
inline |
Definition at line 70 of file CountingOcTree.h.
|
inline |
Definition at line 71 of file CountingOcTree.h.