|
KiCad PCB EDA Suite
|
The one curve the pointer is trimming. More...
Public Member Functions | |
| bool | IsClosed () const |
| VECTOR2I | Start () const |
| VECTOR2I | End () const |
| double | Parameter (const VECTOR2I &aPoint) const |
| double | PointerParameter (const VECTOR2I &aPointer) const |
| Where the pointer sits, brought onto the carrier. | |
| GRAPHIC_EDIT_GEOMETRY | Span (const VECTOR2I &aFrom, const VECTOR2I &aTo, double aFromParameter, double aToParameter) const |
| The piece of the carrier running forward from aFrom to aTo. | |
Public Attributes | |
| SHAPE_T | m_Kind = SHAPE_T::SEGMENT |
| SEG | m_Seg |
| SHAPE_ARC | m_Arc |
| CIRCLE | m_Circle |
| INTERSECTABLE_GEOM | m_Geometry = SEG() |
| std::vector< SEG > | m_Untouched |
The one curve the pointer is trimming.
A circle has no ends, so its cuts wrap round; a rectangle offers only the side the pointer is nearest, and the other three come through.
Definition at line 63 of file graphic_trim.cpp.
|
inline |
Definition at line 75 of file graphic_trim.cpp.
References ARC, m_Arc, m_Kind, and m_Seg.
Referenced by GRAPHIC_TRIM_PLANNER::Plan().
|
inline |
Definition at line 72 of file graphic_trim.cpp.
References CIRCLE, and m_Kind.
Referenced by GRAPHIC_TRIM_PLANNER::Plan().
|
inline |
Definition at line 77 of file graphic_trim.cpp.
References ARC, arcParameter(), CIRCLE, m_Arc, m_Circle, m_Kind, m_Seg, KIGEOM::ParameterAlong(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by GRAPHIC_TRIM_PLANNER::Plan(), and PointerParameter().
|
inline |
Where the pointer sits, brought onto the carrier.
Definition at line 96 of file graphic_trim.cpp.
References ARC, CIRCLE, m_Arc, m_Kind, and Parameter().
Referenced by GRAPHIC_TRIM_PLANNER::Plan().
|
inline |
The piece of the carrier running forward from aFrom to aTo.
Definition at line 109 of file graphic_trim.cpp.
References ARC, SHAPE_ARC::ConstructFromStartEndCenter(), SHAPE_ARC::GetArcMid(), KiROUND(), m_Arc, m_Circle, GRAPHIC_EDIT_GEOMETRY::m_End, m_Kind, GRAPHIC_EDIT_GEOMETRY::m_Mid, GRAPHIC_EDIT_GEOMETRY::m_Shape, GRAPHIC_EDIT_GEOMETRY::m_Start, and SEGMENT.
Referenced by GRAPHIC_TRIM_PLANNER::Plan().
|
inline |
Definition at line 74 of file graphic_trim.cpp.
References ARC, m_Arc, m_Kind, and m_Seg.
Referenced by GRAPHIC_TRIM_PLANNER::Plan().
| SHAPE_ARC TRIM_CARRIER::m_Arc |
Definition at line 67 of file graphic_trim.cpp.
Referenced by buildCarrier(), End(), Parameter(), PointerParameter(), Span(), and Start().
| CIRCLE TRIM_CARRIER::m_Circle |
Definition at line 68 of file graphic_trim.cpp.
Referenced by buildCarrier(), Parameter(), and Span().
| INTERSECTABLE_GEOM TRIM_CARRIER::m_Geometry = SEG() |
Definition at line 69 of file graphic_trim.cpp.
Referenced by buildCarrier(), and GRAPHIC_TRIM_PLANNER::Plan().
| SHAPE_T TRIM_CARRIER::m_Kind = SHAPE_T::SEGMENT |
Definition at line 65 of file graphic_trim.cpp.
Referenced by buildCarrier(), End(), IsClosed(), Parameter(), PointerParameter(), Span(), and Start().
| SEG TRIM_CARRIER::m_Seg |
Definition at line 66 of file graphic_trim.cpp.
Referenced by buildCarrier(), End(), Parameter(), and Start().
| std::vector<SEG> TRIM_CARRIER::m_Untouched |
Definition at line 70 of file graphic_trim.cpp.
Referenced by buildCarrier(), and GRAPHIC_TRIM_PLANNER::Plan().