![]() |
Visitor class to collect the items that intersect with a given bounding box. More...
#include <SurgSim/DataStructures/AabbTreeIntersectionVisitor.h>
Public Member Functions | |
AabbTreeIntersectionVisitor () | |
Constructor. More... | |
AabbTreeIntersectionVisitor (const SurgSim::Math::Aabbd &aabb) | |
Constructor. More... | |
virtual | ~AabbTreeIntersectionVisitor () |
Destructor. More... | |
virtual bool | handle (TreeNode *node) override |
Handle TreeNode basic type. More... | |
virtual bool | handle (AabbTreeNode *node) override |
Handle AabbTreeNode basic type, default body, override for specific work. More... | |
bool | hasIntersections () const |
void | reset () |
Resets the data in the tree. More... | |
SurgSim::Math::Aabbd | getAabb () const |
void | setAabb (const SurgSim::Math::Aabbd &aabb) |
Sets a new bounding box, will also call reset() More... | |
const std::list< size_t > & | getIntersections () const |
![]() | |
virtual | ~TreeVisitor () |
Destructor. More... | |
Private Attributes | |
std::list< size_t > | m_intersections |
List of ids found for intersections. More... | |
SurgSim::Math::Aabbd | m_aabb |
Bounding box used for intersection test. More... | |
Visitor class to collect the items that intersect with a given bounding box.
SurgSim::DataStructures::AabbTreeIntersectionVisitor::AabbTreeIntersectionVisitor | ( | ) |
Constructor.
|
explicit |
Constructor.
aabb | the bounding box to be used. |
|
virtual |
Destructor.
SurgSim::Math::Aabbd SurgSim::DataStructures::AabbTreeIntersectionVisitor::getAabb | ( | ) | const |
const std::list< size_t > & SurgSim::DataStructures::AabbTreeIntersectionVisitor::getIntersections | ( | ) | const |
|
overridevirtual |
Handle TreeNode basic type.
node | Node to process. |
Implements SurgSim::DataStructures::TreeVisitor.
|
overridevirtual |
Handle AabbTreeNode basic type, default body, override for specific work.
node | Node to process. |
Reimplemented from SurgSim::DataStructures::TreeVisitor.
bool SurgSim::DataStructures::AabbTreeIntersectionVisitor::hasIntersections | ( | ) | const |
void SurgSim::DataStructures::AabbTreeIntersectionVisitor::reset | ( | ) |
Resets the data in the tree.
void SurgSim::DataStructures::AabbTreeIntersectionVisitor::setAabb | ( | const SurgSim::Math::Aabbd & | aabb | ) |
Sets a new bounding box, will also call reset()
aabb | The new bounding box. |
|
private |
Bounding box used for intersection test.
|
private |
List of ids found for intersections.