30 std::unique_ptr<FOOTPRINT>
load(
const wxString& aName )
42 std::unique_ptr<FOOTPRINT> placed(
static_cast<FOOTPRINT*
>( aLibrary.
Clone() ) );
44 placed->SetPosition(
VECTOR2I( 25400000, 12700000 ) );
60 std::unique_ptr<FOOTPRINT> rev1 = load( wxS(
"R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal" ) );
61 std::unique_ptr<FOOTPRINT> rev2 = load( wxS(
"R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal" ) );
62 std::unique_ptr<FOOTPRINT> placed = placeOnBack( *rev1 );
76 std::unique_ptr<FOOTPRINT> plain = load( wxS(
"HSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.3x2.3mm" ) );
77 std::unique_ptr<FOOTPRINT> vias = load( wxS(
"HSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.3x2.3mm_ThermalVias" ) );
78 std::unique_ptr<FOOTPRINT> placed = placeOnBack( *plain );
General utilities for PCB file IO for QA programs.
Information pertinent to a Pcbnew printed circuit board.
static constexpr EDA_ANGLE ANGLE_90
@ LEFT_RIGHT
Flip left to right (around the Y axis)
std::string GetPcbnewTestDataDir()
Utility which returns a path to the data directory where the test board files are stored.
std::unique_ptr< FOOTPRINT > ReadFootprintFromFile(const std::filesystem::path &aFilename, const wxString &aFootprintName)
Read a footprint object aFootprintName from aFileName.
std::unique_ptr< FOOTPRINT > load(const wxString &aName)
std::unique_ptr< FOOTPRINT > placeOnBack(const FOOTPRINT &aLibrary)
Pad differences between a placed footprint and the library footprint that would replace it.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_REQUIRE(res.columns()==1)
BOOST_AUTO_TEST_CASE(PadMoveIsCounted)
BOOST_AUTO_TEST_SUITE_END()
BOOST_TEST(netlist.find("R_G1 ARM_OUT1 DIE_B R='0.001 / ((SW_STATE)") !=std::string::npos)
VECTOR2< int32_t > VECTOR2I