#include <ColorOcTree.h>
Classes | |
class | StaticMemberInitializer |
Public Member Functions | |
ColorOcTreeNode * | averageNodeColor (const OcTreeKey &key, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
ColorOcTreeNode * | averageNodeColor (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. | |
ColorOcTree * | create () const |
std::string | getTreeType () const |
ColorOcTreeNode * | integrateNodeColor (const OcTreeKey &key, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
ColorOcTreeNode * | integrateNodeColor (const float &x, const float &y, const float &z, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
ColorOcTreeNode * | setNodeColor (const OcTreeKey &key, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
ColorOcTreeNode * | setNodeColor (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) |
Definition at line 116 of file ColorOcTree.h.
octomap::ColorOcTree::ColorOcTree | ( | double | resolution | ) | [inline] |
Default constructor, sets resolution of leafs.
Definition at line 120 of file ColorOcTree.h.
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.
ColorOcTree* octomap::ColorOcTree::create | ( | ) | const [inline] |
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.
ColorOcTree::StaticMemberInitializer octomap::ColorOcTree::colorOcTreeMemberInit [static, protected] |
static member to ensure static initialization (only once)
Definition at line 185 of file ColorOcTree.h.