45 std::unique_ptr<PAD> clone(
static_cast<PAD*
>(
pad.Clone() ) );
61 pad.AddPrimitive(
F_Cu, shape );
82 pad.Padstack().FlipLayers(
nullptr );
99 auto makeFootprint = [&](
const VECTOR2I& aOffset,
double aAngle )
104 pad->SetNumber( wxS(
"1" ) );
110 board.
Add( footprint );
Information pertinent to a Pcbnew printed circuit board.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
@ CUSTOM
Shapes can be defined on arbitrary layers.
@ FRONT_INNER_BACK
Up to three shapes can be defined (F_Cu, inner copper layers, B_Cu)
static constexpr PCB_LAYER_ID ALL_LAYERS
! The layer identifier to use for the single defintion on normal padstacks
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_REQUIRE_EQUAL(rows.size(), 1)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_REQUIRE(res.columns()==1)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(InnerLayerKeepsInheritedSize)
VECTOR2< int32_t > VECTOR2I