Point Cloud Library (PCL)
1.11.1-dev
|
58 OctreeKey(
unsigned int keyX,
unsigned int keyY,
unsigned int keyZ)
59 :
x(keyX),
y(keyY),
z(keyZ)
74 return ((b.
x == this->x) && (b.
y == this->y) && (b.
z == this->z));
95 return ((b.
x >= this->x) && (b.
y >= this->y) && (b.
z >= this->z));
105 return ((b.
x <= this->x) && (b.
y <= this->y) && (b.
z <= this->z));
114 this->
x = (this->
x << 1) | (!!(childIndex & (1 << 2)));
115 this->
y = (this->
y << 1) | (!!(childIndex & (1 << 1)));
116 this->
z = (this->
z << 1) | (!!(childIndex & (1 << 0)));
136 return static_cast<unsigned char>(((!!(this->
x & depthMask)) << 2) |
137 ((!!(this->
y & depthMask)) << 1) |
138 (!!(this->
z & depthMask)));
143 static_cast<unsigned char>(
sizeof(std::uint32_t) * 8);
void pushBranch(unsigned char childIndex)
push a child node to the octree key
OctreeKey(unsigned int keyX, unsigned int keyY, unsigned int keyZ)
Constructor for key initialization.
static const unsigned char maxDepth
OctreeKey(const OctreeKey &source)
Copy constructor.
void popBranch()
pop child node from octree key
bool operator!=(const OctreeKey &other) const
Inequal comparison operator.
bool operator>=(const OctreeKey &b) const
Operator>= for comparing octree keys with each other.
OctreeKey & operator=(const OctreeKey &)=default
OctreeKey()
Empty constructor.
bool operator==(const OctreeKey &b) const
Operator== for comparing octree keys with each other.
unsigned char getChildIdxWithDepthMask(unsigned int depthMask) const
get child node index using depthMask
bool operator<=(const OctreeKey &b) const
Operator<= for comparing octree keys with each other.