2 #ifndef GRAMODS_GRAPHICS_INTERSECTIONVISITOR
3 #define GRAMODS_GRAPHICS_INTERSECTIONVISITOR
5 #include <gmGraphics/config.hh>
7 #include <gmGraphics/IntersectionLine.hh>
8 #include <gmGraphics/Node.hh>
10 #include <Eigen/Eigen>
13 BEGIN_NAMESPACE_GMGRAPHICS;
74 std::vector<gmGraphics::Node *> node_path;
77 END_NAMESPACE_GMGRAPHICS;
Base type for objects in the Gramods package for standardized handling of construction,...
Definition: Object.hh:42
Line for intersection with ray or segment.
Definition: IntersectionLine.hh:15
Data associated with an intersection.
Definition: IntersectionVisitor.hh:33
const std::vector< gmGraphics::Node * > node_path
The path taken through the scene graph to find this intersection.
Definition: IntersectionVisitor.hh:52
const Eigen::Vector3f position
The position of the intersection in the space where the line was defined and the visitor was first ap...
Definition: IntersectionVisitor.hh:44
const Eigen::Vector3f local_position
The position of the intersection in the local space of the node where the intersection was detected.
Definition: IntersectionVisitor.hh:38
Visitor that collects intersections.
Definition: IntersectionVisitor.hh:28
std::vector< Intersection > intersections
This is the list of intersections found by the visitors during traversal.
Definition: IntersectionVisitor.hh:70
IntersectionVisitor(IntersectionLine line)
Create a visitor for checking for intersection against the specified line.
Definition: IntersectionVisitor.hh:59