39 std::unique_ptr<FOOTPRINT> fp = std::make_unique<FOOTPRINT>( &board );
40 std::unique_ptr<PAD>
pad = std::make_unique<PAD>( fp.get() );
62 std::unique_ptr<FOOTPRINT> fp = std::make_unique<FOOTPRINT>( &board );
63 std::unique_ptr<PAD>
pad = std::make_unique<PAD>( fp.get() );
84 std::unique_ptr<FOOTPRINT> fp = std::make_unique<FOOTPRINT>( &board );
85 std::unique_ptr<PAD>
pad = std::make_unique<PAD>( fp.get() );
107 std::unique_ptr<FOOTPRINT> fp = std::make_unique<FOOTPRINT>( &board );
108 std::unique_ptr<PAD>
pad = std::make_unique<PAD>( fp.get() );
116 pad->Padstack().SetBackdrillSize(
true,
pcbIUScale.mmToIU( 1.2 ) );
117 pad->Padstack().SetBackdrillEndLayer(
true,
In1_Cu );
119 pad->Padstack().FrontPostMachining().size =
pcbIUScale.mmToIU( 1.5 );
128 BOOST_CHECK( !
pad->Padstack().FrontPostMachining().mode.has_value() );
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.
LSET is a set of PCB_LAYER_IDs.
@ 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 LSET PTHMask()
layer set for a through hole pad
@ SMD
Smd pad, appears on the solder paste layer (default)
@ PTH
Plated through hole pad.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(SetSizeXOnCirclePadUpdatesY)
VECTOR2< int32_t > VECTOR2I