Octree key class More...
#include <octree_key.h>
Public Member Functions | |
| unsigned char | getChildIdxWithDepthMask (unsigned int depthMask) const |
| get child node index using depthMask | |
| OctreeKey () | |
| Empty constructor. | |
| OctreeKey (unsigned int keyX, unsigned int keyY, unsigned int keyZ) | |
| Constructor for key initialization. | |
| OctreeKey (const OctreeKey &source) | |
| Copy constructor. | |
| bool | operator<= (const OctreeKey &b) const |
| Operator<= for comparing octree keys with each other. | |
| bool | operator== (const OctreeKey &b) const |
| Operator== for comparing octree keys with each other. | |
| bool | operator>= (const OctreeKey &b) const |
| Operator>= for comparing octree keys with each other. | |
| void | popBranch () |
| pop child node from octree key | |
| void | pushBranch (unsigned char childIndex) |
| push a child node to the octree key | |
Public Attributes | |
| union { | |
| struct { | |
| uint32_t x | |
| uint32_t y | |
| uint32_t z | |
| } | |
| uint32_t key_ [3] | |
| }; | |
Static Public Attributes | |
| static const unsigned char | maxDepth = static_cast<const unsigned char>(sizeof(uint32_t)*8) |
Octree key class
Definition at line 53 of file octree_key.h.
| pcl::octree::OctreeKey::OctreeKey | ( | ) | [inline] |
Empty constructor.
Definition at line 58 of file octree_key.h.
| pcl::octree::OctreeKey::OctreeKey | ( | unsigned int | keyX, |
| unsigned int | keyY, | ||
| unsigned int | keyZ | ||
| ) | [inline] |
Constructor for key initialization.
Definition at line 64 of file octree_key.h.
| pcl::octree::OctreeKey::OctreeKey | ( | const OctreeKey & | source | ) | [inline] |
Copy constructor.
Definition at line 70 of file octree_key.h.
| unsigned char pcl::octree::OctreeKey::getChildIdxWithDepthMask | ( | unsigned int | depthMask | ) | const [inline] |
get child node index using depthMask
| [in] | depthMask | bit mask with single bit set at query depth |
Definition at line 128 of file octree_key.h.
| bool pcl::octree::OctreeKey::operator<= | ( | const OctreeKey & | b | ) | const [inline] |
Operator<= for comparing octree keys with each other.
Definition at line 88 of file octree_key.h.
| bool pcl::octree::OctreeKey::operator== | ( | const OctreeKey & | b | ) | const [inline] |
Operator== for comparing octree keys with each other.
Definition at line 79 of file octree_key.h.
| bool pcl::octree::OctreeKey::operator>= | ( | const OctreeKey & | b | ) | const [inline] |
Operator>= for comparing octree keys with each other.
Definition at line 97 of file octree_key.h.
| void pcl::octree::OctreeKey::popBranch | ( | ) | [inline] |
pop child node from octree key
Definition at line 116 of file octree_key.h.
| void pcl::octree::OctreeKey::pushBranch | ( | unsigned char | childIndex | ) | [inline] |
push a child node to the octree key
| [in] | childIndex | index of child node to be added (0-7) |
Definition at line 106 of file octree_key.h.
| union { ... } |
| uint32_t pcl::octree::OctreeKey::key_[3] |
Definition at line 148 of file octree_key.h.
const unsigned char pcl::octree::OctreeKey::maxDepth = static_cast<const unsigned char>(sizeof(uint32_t)*8) [static] |
Definition at line 136 of file octree_key.h.
| uint32_t pcl::octree::OctreeKey::x |
Definition at line 144 of file octree_key.h.
| uint32_t pcl::octree::OctreeKey::y |
Definition at line 145 of file octree_key.h.
| uint32_t pcl::octree::OctreeKey::z |
Definition at line 146 of file octree_key.h.