41 std::unique_ptr<BOARD> board = std::make_unique<BOARD>();
50 board->Add( footprint );
53 group->AddItem( shape );
54 group->AddItem( footprint );
72 std::unique_ptr<BOARD> board = std::make_unique<BOARD>();
80 group->AddItem( shape );
94 std::unique_ptr<BOARD> board = std::make_unique<BOARD>();
107 group->AddItem( shape );
108 group->AddItem( dim );
const VECTOR2I & GetEnd() const
Return the ending point of the graphic.
const VECTOR2I & GetStart() const
Return the starting point of the graphic.
virtual void SetEnd(const VECTOR2I &aPoint)
virtual void SetStart(const VECTOR2I &aPoint)
virtual VECTOR2I GetEnd() const
virtual VECTOR2I GetStart() const
The dimension's origin is the first feature point for the dimension.
For better understanding of the points that make a dimension:
A set of BOARD_ITEMs (i.e., without duplicates).
void SetEnd(const VECTOR2I &aEnd) override
void SetStart(const VECTOR2I &aStart) override
@ LEFT_RIGHT
Flip left to right (around the Y axis)
Class to handle a set of BOARD_ITEMs.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_CASE(GroupWithFootprintIsLeftIntact)
BOOST_AUTO_TEST_SUITE_END()
@ PCB_DIM_ALIGNED_T
class PCB_DIM_ALIGNED, a linear dimension (graphic item)
VECTOR2< int32_t > VECTOR2I