|
KiCad PCB EDA Suite
|
Functions | |
| GRAPHIC_ENDPOINT | NearestEndpoint (const BOARD_ITEM &aSource, const VECTOR2I &aPointer) |
| BOX2I | QueryBounds (const BOARD_ITEM &aSource, GRAPHIC_ENDPOINT aEndpoint, const BOX2I &aWorldBounds) |
| GRAPHIC_EDIT_RESULT | Plan (const BOARD_ITEM &aSource, GRAPHIC_ENDPOINT aEndpoint, const std::vector< const BOARD_ITEM * > &aBoundaries) |
| BOX2I | QueryBounds (const BOARD_ITEM &aSource, const VECTOR2I &aPointer, const BOX2I &aWorldBounds) |
| Take the endpoint from the pointer. What an interactive caller wants. | |
| GRAPHIC_EDIT_RESULT | Plan (const BOARD_ITEM &aSource, const VECTOR2I &aPointer, const std::vector< const BOARD_ITEM * > &aBoundaries) |
| GRAPHIC_ENDPOINT GRAPHIC_EXTEND_PLANNER::NearestEndpoint | ( | const BOARD_ITEM & | aSource, |
| const VECTOR2I & | aPointer ) |
Definition at line 49 of file graphic_extend.cpp.
References VECTOR2< T >::Distance(), END, EDA_SHAPE::GetEnd(), EDA_SHAPE::GetStart(), GraphicEditShape(), and START.
Referenced by BOOST_AUTO_TEST_CASE(), Plan(), and QueryBounds().
| GRAPHIC_EDIT_RESULT GRAPHIC_EXTEND_PLANNER::Plan | ( | const BOARD_ITEM & | aSource, |
| const VECTOR2I & | aPointer, | ||
| const std::vector< const BOARD_ITEM * > & | aBoundaries ) |
Definition at line 273 of file graphic_extend.cpp.
References NearestEndpoint(), and Plan().
| GRAPHIC_EDIT_RESULT GRAPHIC_EXTEND_PLANNER::Plan | ( | const BOARD_ITEM & | aSource, |
| GRAPHIC_ENDPOINT | aEndpoint, | ||
| const std::vector< const BOARD_ITEM * > & | aBoundaries ) |
Definition at line 102 of file graphic_extend.cpp.
References std::abs(), ARC, EDA_ANGLE::AsDegrees(), BoardItemIntersectable(), CIRCLE, SHAPE_ARC::ConstructFromStartEndCenter(), DEGENERATE, VECTOR2< T >::Distance(), distance(), END, end, extensionRay(), SHAPE_ARC::GetArcMid(), SHAPE_ARC::GetCenter(), SHAPE_ARC::GetCentralAngle(), EDA_SHAPE::GetEnd(), SHAPE_ARC::GetP0(), SHAPE_ARC::GetP1(), SHAPE_ARC::GetRadius(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), GRAPHIC_EDIT_ANGLE_EPSILON, GraphicEditArc(), GraphicEditBoundary(), GraphicEditCoincident(), GraphicEditSource(), SHAPE_ARC::IsClockwise(), IsGraphicEditArcUsable(), IsGraphicExtendSource(), KiROUND(), GRAPHIC_EDIT_GEOMETRY::m_End, GRAPHIC_EDIT_GEOMETRY::m_Mid, INTERSECTION_CONTACT::m_Overlapping, GRAPHIC_EDIT_GEOMETRY::m_Shape, GRAPHIC_EDIT_GEOMETRY::m_Start, NONE, result, SEGMENT, and START.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GRAPHIC_EDIT_TOOL::Extend(), and Plan().
| BOX2I GRAPHIC_EXTEND_PLANNER::QueryBounds | ( | const BOARD_ITEM & | aSource, |
| const VECTOR2I & | aPointer, | ||
| const BOX2I & | aWorldBounds ) |
Take the endpoint from the pointer. What an interactive caller wants.
Definition at line 266 of file graphic_extend.cpp.
References NearestEndpoint(), and QueryBounds().
| BOX2I GRAPHIC_EXTEND_PLANNER::QueryBounds | ( | const BOARD_ITEM & | aSource, |
| GRAPHIC_ENDPOINT | aEndpoint, | ||
| const BOX2I & | aWorldBounds ) |
Definition at line 62 of file graphic_extend.cpp.
References ARC, SHAPE_CIRCLE::BBox(), circle(), KIGEOM::ClipHalfLineToBox(), VECTOR2< T >::Distance(), exit, extensionRay(), SHAPE_ARC::GetCenter(), EDA_SHAPE::GetEnd(), SHAPE_ARC::GetRadius(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), HALF_LINE::GetStart(), GraphicEditArc(), GraphicEditShape(), IsGraphicEditArcUsable(), IsGraphicExtendSource(), KiROUND(), BOX2< Vec >::Merge(), BOX2< Vec >::SetOrigin(), and START.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GRAPHIC_EDIT_TOOL::Extend(), and QueryBounds().