Home | nevrax.com |
|
NL3D::CQuadTree Class Template Referenceclass: CQuadTree. More...
Detailed Descriptiontemplate<class T>
class: CQuadTree.
|
|
Default constructor, use axes XZ.
Definition at line 658 of file quad_tree.h. References _ChangeBasis, _DepthMax, _QuadRoot, _Selection, _Size, NL3D::CQuadTree::CQuadNode::BBoxMax, NL3D::CQuadTree::CQuadNode::BBoxMin, NLMISC::CMatrix::identity, NL3D::CQuadTree::CBaseNode::Next, and NLMISC::CVector::set. |
|
dtor.
|
|
Return the first iterator of the selected element list. begin and end are valid till the next insert. Definition at line 884 of file quad_tree.h. References _Selection, and NL3D::CQuadTree::CBaseNode::Next. Referenced by eraseAll. |
|
Change the base matrix of the quad tree. For exemple this code init the quad tree in the plane XY: CQuadTree quadTree; NLMISC::CMatrix tmp; NLMISC::CVector I(1,0,0); NLMISC::CVector J(0,0,-1); NLMISC::CVector K(0,1,0); tmp.identity(); tmp.setRot(I,J,K, true); quadTree.changeBase (tmp);
Definition at line 669 of file quad_tree.h. References _ChangeBasis. |
|
Clear the container. Elements are deleted, and the quadtree too (create() is undone).
Definition at line 679 of file quad_tree.h. References _QuadRoot, _Selection, NL3D::CQuadTree::CQuadNode::clear, and NL3D::CQuadTree::CBaseNode::Next. Referenced by create. |
|
Clear the selection list.
Definition at line 775 of file quad_tree.h. References _Selection, and NL3D::CQuadTree::CBaseNode::Next. |
|
Init the container.
Definition at line 685 of file quad_tree.h. References _ChangeBasis, _DepthMax, _QuadRoot, _Size, NL3D::CQuadTree::CQuadNode::BBoxMax, NL3D::CQuadTree::CQuadNode::BBoxMin, and clear. |
|
Return the end iterator of the selected element list. begin and end are valid till the next insert. Definition at line 889 of file quad_tree.h. References CIterator. Referenced by eraseAll. |
|
Erase an interator from the container.
Definition at line 723 of file quad_tree.h. Referenced by eraseAll. |
|
Erase all elements from the container.
Definition at line 704 of file quad_tree.h. |
|
Insert a new element in the container. The bounding box of the element MUST be included in the bounding box of the quadtree.
Definition at line 736 of file quad_tree.h. References _ChangeBasis, _DepthMax, _QuadRoot, _Size, CIterator, NL3D::CQuadTree::CQuadNode::insert, nlassert, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z. |
|
Select element with multiple planes. Intersect with a polytope convex made of planes. The normals of planes must be directed outwards the polytope.
Definition at line 804 of file quad_tree.h. References _QuadRoot, _Selection, clearSelection, and NL3D::CQuadTree::CQuadNode::select. |
|
Select element intersecting a bounding box.
Definition at line 793 of file quad_tree.h. References _ChangeBasis, _QuadRoot, _Selection, clearSelection, NL3D::CQuadTree::CQuadNode::select, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z. Referenced by selectRay, and selectSegment. |
|
Select all the container.
Definition at line 787 of file quad_tree.h. References _QuadRoot, _Selection, clearSelection, and NL3D::CQuadTree::CQuadNode::selectAll. Referenced by eraseAll. |
|
Select element with a ray.
Definition at line 817 of file quad_tree.h. References NLMISC::CMatrix::getJ, NLMISC::CMatrix::getK, NLMISC::CMatrix::identity, NLMISC::CPlane::make, NLMISC::CMatrix::normalize, select, NLMISC::CMatrix::setRot, and NLMISC::CMatrix::XYZ. |
|
Select element with a segment.
Definition at line 848 of file quad_tree.h. References NLMISC::CMatrix::getI, NLMISC::CMatrix::getJ, NLMISC::CMatrix::getK, NLMISC::CMatrix::identity, NLMISC::CPlane::make, NLMISC::CMatrix::normalize, select, NLMISC::CMatrix::setRot, and NLMISC::CMatrix::XYZ. |
|
Definition at line 105 of file quad_tree.h. |
|
Definition at line 102 of file quad_tree.h. |
|
Definition at line 581 of file quad_tree.h. Referenced by changeBase, CQuadTree, create, insert, and select. |
|
Definition at line 579 of file quad_tree.h. |
|
Definition at line 577 of file quad_tree.h. Referenced by clear, CQuadTree, create, insert, select, and selectAll. |
|
Definition at line 578 of file quad_tree.h. Referenced by begin, clear, clearSelection, CQuadTree, select, and selectAll. |
|
Definition at line 580 of file quad_tree.h. |