|
KiCad PCB EDA Suite
|
A visitor that visits INTERSECTABLE_GEOM variant objects with another (which is held as state: m_otherGeometry). More...
#include <intersection.h>
Public Member Functions | |
| INTERSECTION_VISITOR (const INTERSECTABLE_GEOM &aOtherGeometry, std::vector< VECTOR2I > &aIntersections) | |
| void | operator() (const SEG &aSeg) const |
| void | operator() (const LINE &aLine) const |
| void | operator() (const HALF_LINE &aLine) const |
| void | operator() (const CIRCLE &aCircle) const |
| void | operator() (const SHAPE_ARC &aArc) const |
| void | operator() (const BOX2I &aArc) const |
Private Attributes | |
| const INTERSECTABLE_GEOM & | m_otherGeometry |
| std::vector< VECTOR2I > & | m_intersections |
A visitor that visits INTERSECTABLE_GEOM variant objects with another (which is held as state: m_otherGeometry).
This provides a unified way to intersect any supported geometry with any other supported geometry.
Definition at line 48 of file intersection.h.
| INTERSECTION_VISITOR::INTERSECTION_VISITOR | ( | const INTERSECTABLE_GEOM & | aOtherGeometry, |
| std::vector< VECTOR2I > & | aIntersections ) |
| aOtherGeometry | The other geometry to intersect the visited geometry with. |
| aIntersections | A vector to store the intersections in. Does not have to be empty, the visitor will append to it. |
Definition at line 197 of file intersection.cpp.
References m_intersections, and m_otherGeometry.
| void INTERSECTION_VISITOR::operator() | ( | const BOX2I & | aArc | ) | const |
Definition at line 390 of file intersection.cpp.
References KIGEOM::BoxToSegs().
| void INTERSECTION_VISITOR::operator() | ( | const CIRCLE & | aCircle | ) | const |
Definition at line 313 of file intersection.cpp.
References KIGEOM::BoxToSegs(), m_intersections, and m_otherGeometry.
| void INTERSECTION_VISITOR::operator() | ( | const HALF_LINE & | aLine | ) | const |
Definition at line 275 of file intersection.cpp.
References KIGEOM::BoxToSegs(), m_intersections, and m_otherGeometry.
| void INTERSECTION_VISITOR::operator() | ( | const LINE & | aLine | ) | const |
Definition at line 237 of file intersection.cpp.
References KIGEOM::BoxToSegs(), m_intersections, and m_otherGeometry.
| void INTERSECTION_VISITOR::operator() | ( | const SEG & | aSeg | ) | const |
Definition at line 212 of file intersection.cpp.
References KIGEOM::BoxToSegs(), m_intersections, and m_otherGeometry.
| void INTERSECTION_VISITOR::operator() | ( | const SHAPE_ARC & | aArc | ) | const |
Definition at line 351 of file intersection.cpp.
References KIGEOM::BoxToSegs(), m_intersections, and m_otherGeometry.
|
private |
Definition at line 73 of file intersection.h.
Referenced by INTERSECTION_VISITOR(), operator()(), operator()(), operator()(), operator()(), and operator()().
|
private |
Definition at line 72 of file intersection.h.
Referenced by INTERSECTION_VISITOR(), operator()(), operator()(), operator()(), operator()(), and operator()().