MRPT
1.9.9
|
The structure for each octree spatial node.
Each node can either be a leaf of has 8 children nodes. Instead of pointers, children are referenced by their indices in m_octree_nodes
Definition at line 131 of file COctreePointRenderer.h.
Public Member Functions | |
TNode () | |
void | update_bb (const mrpt::math::TPoint3Df &p) |
update bounding box with a new point: More... | |
float | getCornerX (int i) const |
float | getCornerY (int i) const |
float | getCornerZ (int i) const |
void | setBBFromOrderInParent (const TNode &parent, int my_child_index) |
Public Attributes | |
bool | is_leaf {true} |
true: it's a leaf and pts has valid indices; false: children is valid. More... | |
mrpt::math::TPoint3Df | bb_min |
mrpt::math::TPoint3Df | bb_max |
std::vector< size_t > | pts |
Point indices in the derived class that fall into this node. More... | |
bool | all {false} |
true: All elements in the reference object; false: only those in pts More... | |
mrpt::math::TPoint3Df | center |
[is_leaf=false] The center of the node, whose coordinates are used to decide between the 8 children nodes. More... | |
size_t | child_id [8] |
[is_leaf=false] The indices in m_octree_nodes of the 8 children. More... | |
|
inline |
Definition at line 133 of file COctreePointRenderer.h.
|
inline |
Definition at line 179 of file COctreePointRenderer.h.
References mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_max, mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_min, and mrpt::math::TPoint3Df::x.
|
inline |
Definition at line 183 of file COctreePointRenderer.h.
References mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_max, mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_min, and mrpt::math::TPoint3Df::y.
|
inline |
Definition at line 187 of file COctreePointRenderer.h.
References mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_max, mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_min, and mrpt::math::TPoint3Df::z.
|
inline |
Definition at line 192 of file COctreePointRenderer.h.
References mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_max, mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_min, mrpt::opengl::COctreePointRenderer< Derived >::TNode::center, mrpt::math::TPoint3Df::x, mrpt::math::TPoint3Df::y, and mrpt::math::TPoint3Df::z.
|
inline |
update bounding box with a new point:
Definition at line 169 of file COctreePointRenderer.h.
References mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_max, mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_min, mrpt::keep_max(), mrpt::keep_min(), mrpt::math::TPoint3Df::x, mrpt::math::TPoint3Df::y, and mrpt::math::TPoint3Df::z.
bool mrpt::opengl::COctreePointRenderer< Derived >::TNode::all {false} |
true: All elements in the reference object; false: only those in pts
Definition at line 158 of file COctreePointRenderer.h.
mrpt::math::TPoint3Df mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_max |
Definition at line 151 of file COctreePointRenderer.h.
Referenced by mrpt::opengl::COctreePointRenderer< Derived >::TNode::getCornerX(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::getCornerY(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::getCornerZ(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::setBBFromOrderInParent(), and mrpt::opengl::COctreePointRenderer< Derived >::TNode::update_bb().
mrpt::math::TPoint3Df mrpt::opengl::COctreePointRenderer< Derived >::TNode::bb_min |
Definition at line 151 of file COctreePointRenderer.h.
Referenced by mrpt::opengl::COctreePointRenderer< Derived >::TNode::getCornerX(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::getCornerY(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::getCornerZ(), mrpt::opengl::COctreePointRenderer< Derived >::TNode::setBBFromOrderInParent(), and mrpt::opengl::COctreePointRenderer< Derived >::TNode::update_bb().
mrpt::math::TPoint3Df mrpt::opengl::COctreePointRenderer< Derived >::TNode::center |
[is_leaf=false] The center of the node, whose coordinates are used to decide between the 8 children nodes.
Definition at line 163 of file COctreePointRenderer.h.
Referenced by mrpt::opengl::COctreePointRenderer< Derived >::TNode::setBBFromOrderInParent().
size_t mrpt::opengl::COctreePointRenderer< Derived >::TNode::child_id[8] |
[is_leaf=false] The indices in m_octree_nodes of the 8 children.
Definition at line 166 of file COctreePointRenderer.h.
bool mrpt::opengl::COctreePointRenderer< Derived >::TNode::is_leaf {true} |
true: it's a leaf and pts has valid indices; false: children is valid.
Definition at line 148 of file COctreePointRenderer.h.
std::vector<size_t> mrpt::opengl::COctreePointRenderer< Derived >::TNode::pts |
Point indices in the derived class that fall into this node.
Definition at line 155 of file COctreePointRenderer.h.
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019 |