|
KiCad PCB EDA Suite
|
Public Member Functions | |
| BACKDRILL_TEST_FIXTURE () | |
| void | SetupSixLayerBoard () |
| PCB_VIA * | CreateBackdrilledVia (const VECTOR2I &aPos, int aNetCode, PCB_LAYER_ID aPrimaryStart, PCB_LAYER_ID aPrimaryEnd, PCB_LAYER_ID aSecondaryStart, PCB_LAYER_ID aSecondaryEnd, int aSecondaryDrillSize) |
| Create a via with backdrill settings. | |
| PCB_VIA * | CreatePostMachinedVia (const VECTOR2I &aPos, int aNetCode, PAD_DRILL_POST_MACHINING_MODE aFrontMode, int aFrontSize, int aFrontDepth) |
| Create a via with post-machining settings. | |
| PCB_TRACK * | CreateTrack (const VECTOR2I &aStart, const VECTOR2I &aEnd, PCB_LAYER_ID aLayer, int aNetCode) |
| Create a simple track segment. | |
| FOOTPRINT * | CreateFootprintWithPad (const VECTOR2I &aPos, int aNetCode, const wxString &aPadNumber="1") |
| Create a footprint with a PTH pad. | |
| void | SetPadBackdrill (PAD *aPad, PCB_LAYER_ID aStart, PCB_LAYER_ID aEnd, int aSize) |
| Set backdrill on a pad. | |
| void | SetPadPostMachining (PAD *aPad, bool aFront, PAD_DRILL_POST_MACHINING_MODE aMode, int aSize, int aDepth) |
| Set post-machining on a pad. | |
| ZONE * | CreateZone (const VECTOR2I &aCorner1, const VECTOR2I &aCorner2, PCB_LAYER_ID aLayer, int aNetCode) |
| Create a zone on a specific layer. | |
| void | FillZones () |
| void | RebuildConnectivity () |
| std::vector< DRC_ITEM > | RunDRCForErrorCode (int aErrorCode) |
| Run DRC and collect violations of a specific type. | |
| int | GetNetCode (const wxString &aNetName) |
Public Attributes | |
| SETTINGS_MANAGER | m_settingsManager |
| std::unique_ptr< BOARD > | m_board |
Definition at line 47 of file test_drc_backdrill_postmachining.cpp.
|
inline |
Definition at line 49 of file test_drc_backdrill_postmachining.cpp.
References m_board, and SetupSixLayerBoard().
|
inline |
Create a via with backdrill settings.
| aPos | Position of the via |
| aNetCode | Net code for the via |
| aPrimaryStart | Start layer for primary drill |
| aPrimaryEnd | End layer for primary drill |
| aSecondaryStart | Start layer for backdrill (secondary drill) |
| aSecondaryEnd | End layer for backdrill |
| aSecondaryDrillSize | Size of the backdrill |
Definition at line 87 of file test_drc_backdrill_postmachining.cpp.
References PADSTACK::ALL_LAYERS, m_board, pcbIUScale, and via.
|
inline |
Create a footprint with a PTH pad.
Definition at line 152 of file test_drc_backdrill_postmachining.cpp.
References FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, LSET::AllCuMask(), B_Mask, CIRCLE, F_Mask, FOOTPRINT, m_board, PAD, pad, pcbIUScale, PTH, FOOTPRINT::SetPosition(), and FOOTPRINT::SetReference().
|
inline |
Create a via with post-machining settings.
| aPos | Position of the via |
| aNetCode | Net code for the via |
| aFrontMode | Post-machining mode for front (COUNTERBORE or COUNTERSINK) |
| aFrontSize | Size of front post-machining |
| aFrontDepth | Depth of front post-machining |
Definition at line 114 of file test_drc_backdrill_postmachining.cpp.
References PADSTACK::ALL_LAYERS, B_Cu, COUNTERSINK, F_Cu, m_board, pcbIUScale, and via.
|
inline |
Create a simple track segment.
Definition at line 136 of file test_drc_backdrill_postmachining.cpp.
References m_board, pcbIUScale, PCB_TRACK::SetEnd(), BOARD_ITEM::SetLayer(), BOARD_CONNECTED_ITEM::SetNetCode(), PCB_TRACK::SetStart(), and PCB_TRACK::SetWidth().
|
inline |
Create a zone on a specific layer.
Definition at line 211 of file test_drc_backdrill_postmachining.cpp.
References ZONE::AddPolygon(), SHAPE_POLY_SET::Append(), SHAPE_POLY_SET::COutline(), m_board, SHAPE_POLY_SET::NewOutline(), ZONE::SetLayer(), BOARD_CONNECTED_ITEM::SetNetCode(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
inline |
Definition at line 230 of file test_drc_backdrill_postmachining.cpp.
References KI_TEST::FillZones(), and m_board.
|
inline |
Definition at line 261 of file test_drc_backdrill_postmachining.cpp.
References NETINFO_ITEM::GetNetCode(), and m_board.
|
inline |
Definition at line 235 of file test_drc_backdrill_postmachining.cpp.
References m_board.
|
inline |
Run DRC and collect violations of a specific type.
Definition at line 243 of file test_drc_backdrill_postmachining.cpp.
References m_board, BOARD_DESIGN_SETTINGS::m_DRCEngine, MM, DRC_ENGINE::RunTests(), and DRC_ENGINE::SetViolationHandler().
|
inline |
Set backdrill on a pad.
Definition at line 177 of file test_drc_backdrill_postmachining.cpp.
References PAD::SetSecondaryDrillEndLayer(), PAD::SetSecondaryDrillSize(), and PAD::SetSecondaryDrillStartLayer().
|
inline |
Set post-machining on a pad.
Definition at line 187 of file test_drc_backdrill_postmachining.cpp.
References COUNTERSINK, PAD::SetBackPostMachiningAngle(), PAD::SetBackPostMachiningDepth(), PAD::SetBackPostMachiningMode(), PAD::SetBackPostMachiningSize(), PAD::SetFrontPostMachiningAngle(), PAD::SetFrontPostMachiningDepth(), PAD::SetFrontPostMachiningMode(), and PAD::SetFrontPostMachiningSize().
|
inline |
Definition at line 55 of file test_drc_backdrill_postmachining.cpp.
References LSET::AllCuMask(), BOARD_STACKUP::BuildDefaultStackupList(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), m_board, BOARD_DESIGN_SETTINGS::m_DRCEngine, and BOARD_DESIGN_SETTINGS::SetCopperLayerCount().
Referenced by BACKDRILL_TEST_FIXTURE().
| std::unique_ptr<BOARD> BACKDRILL_TEST_FIXTURE::m_board |
Definition at line 273 of file test_drc_backdrill_postmachining.cpp.
Referenced by BACKDRILL_TEST_FIXTURE(), CreateBackdrilledVia(), CreateFootprintWithPad(), CreatePostMachinedVia(), CreateTrack(), CreateZone(), FillZones(), GetNetCode(), RebuildConnectivity(), RunDRCForErrorCode(), and SetupSixLayerBoard().
| SETTINGS_MANAGER BACKDRILL_TEST_FIXTURE::m_settingsManager |
Definition at line 272 of file test_drc_backdrill_postmachining.cpp.