38 auto footprint = std::make_unique<FOOTPRINT>( &board );
43 auto pad1 =
new PAD( footprint.get() );
44 auto pad2 =
new PAD( footprint.get() );
55 pad1->SetDrillSize(
VECTOR2I( drill, drill ) );
56 pad2->SetDrillSize(
VECTOR2I( drill, drill ) );
57 pad1->SetPosition(
VECTOR2I( 0, 0 ) );
58 pad2->SetPosition(
VECTOR2I( 0, 0 ) );
64 footprint->Add( pad1 );
65 footprint->Add( pad2 );
66 board.
Add( footprint.release() );
70 BOOST_CHECK( pad1->FlashLayer(
F_Cu ) );
71 BOOST_CHECK( pad2->FlashLayer(
B_Cu ) );
72 BOOST_CHECK( !pad1->FlashLayer(
In1_Cu ) );
73 BOOST_CHECK( !pad2->FlashLayer(
In1_Cu ) );
81 auto footprint1 = std::make_unique<FOOTPRINT>( &board );
82 auto footprint2 = std::make_unique<FOOTPRINT>( &board );
87 auto pad1 =
new PAD( footprint1.get() );
88 auto pad2 =
new PAD( footprint2.get() );
99 pad1->SetDrillSize(
VECTOR2I( drill, drill ) );
100 pad2->SetDrillSize(
VECTOR2I( drill, drill ) );
101 pad1->SetPosition(
VECTOR2I( 0, 0 ) );
102 pad2->SetPosition(
VECTOR2I( 0, 0 ) );
108 footprint1->Add( pad1 );
109 footprint2->Add( pad2 );
110 board.
Add( footprint1.release() );
111 board.
Add( footprint2.release() );
115 BOOST_CHECK( pad1->FlashLayer(
F_Cu ) );
116 BOOST_CHECK( pad2->FlashLayer(
B_Cu ) );
117 BOOST_CHECK( !pad1->FlashLayer(
In1_Cu ) );
118 BOOST_CHECK( !pad2->FlashLayer(
In1_Cu ) );
constexpr EDA_IU_SCALE pcbIUScale
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.
void SetBoardUse(BOARD_USE aUse)
Set what the board is going to be used for.
bool BuildConnectivity(PROGRESS_REPORTER *aReporter=nullptr)
Build or rebuild the board connectivity database for the board, especially the list of connected item...
static LSET AllCuMask(int aCuLayerCount)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
Handle the data for a net.
@ REMOVE_EXCEPT_START_AND_END
static constexpr PCB_LAYER_ID ALL_LAYERS
! Temporary layer identifier to identify code that is not padstack-aware
@ PTH
Plated through hole pad.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(PadsInSameFootprintDoNotForceInnerLayerFlashing)
VECTOR2< int32_t > VECTOR2I