39 std::unique_ptr<PAD>
pad = std::make_unique<PAD>( aParent );
45 pad->SetOrientation( aOrient );
46 pad->SetPosition( aPos );
56 std::unique_ptr<FOOTPRINT> footprint = std::make_unique<FOOTPRINT>( &board );
61 std::unique_ptr<PAD> padA =
makeRoundPad( footprint.get(), posA, { 0, 0 } );
62 std::unique_ptr<PAD> padB =
makeRoundPad( footprint.get(), posB, { 0, 0 } );
78 std::unique_ptr<FOOTPRINT> footprint = std::make_unique<FOOTPRINT>( &board );
86 std::unique_ptr<PAD> padB =
makeRoundPad( footprint.get(), posB, { 0, 0 } );
105 std::unique_ptr<FOOTPRINT> footprint = std::make_unique<FOOTPRINT>( &board );
132 std::unique_ptr<FOOTPRINT> footprint = std::make_unique<FOOTPRINT>( &board );
139 std::unique_ptr<PAD> padB =
makeRoundPad( footprint.get(), posB, { 0, 0 } );
141 VECTOR2I originalPosA = padA->GetPosition();
142 VECTOR2I originalPosB = padB->GetPosition();
155 std::unique_ptr<FOOTPRINT> footprint = std::make_unique<FOOTPRINT>( &board );
162 std::unique_ptr<PAD> padB =
makeRoundPad( footprint.get(), posB, { 0, 0 } );
166 VECTOR2I originalPosA = padA->GetPosition();
167 VECTOR2I originalPosB = padB->GetPosition();
constexpr EDA_IU_SCALE pcbIUScale
Information pertinent to a Pcbnew printed circuit board.
void SetBoardUse(BOARD_USE aUse)
Set what the board is going to be used for.
@ NORMAL
Shape is the same on all layers.
static constexpr PCB_LAYER_ID ALL_LAYERS
! The layer identifier to use for the single defintion on normal padstacks
static void SwapShapePositions(PAD *aLhs, PAD *aRhs, PCB_LAYER_ID aActiveLayer)
Swap the visible shape positions of two pads, preserving each pad's own shape offset.
static constexpr EDA_ANGLE ANGLE_0
@ LEFT_RIGHT
Flip left to right (around the Y axis)
@ PTH
Plated through hole pad.
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(SwapPadsWithoutOffset)
static std::unique_ptr< PAD > makeRoundPad(FOOTPRINT *aParent, const VECTOR2I &aPos, const VECTOR2I &aOffset, const EDA_ANGLE &aOrient=ANGLE_0)
VECTOR2< int32_t > VECTOR2I