KiCad PCB EDA Suite
Loading...
Searching...
No Matches
BACKDRILL_TEST_FIXTURE Struct Reference

Public Member Functions

 BACKDRILL_TEST_FIXTURE ()
 
void SetupSixLayerBoard ()
 
PCB_VIACreateBackdrilledVia (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_VIACreatePostMachinedVia (const VECTOR2I &aPos, int aNetCode, PAD_DRILL_POST_MACHINING_MODE aFrontMode, int aFrontSize, int aFrontDepth)
 Create a via with post-machining settings.
 
PCB_TRACKCreateTrack (const VECTOR2I &aStart, const VECTOR2I &aEnd, PCB_LAYER_ID aLayer, int aNetCode)
 Create a simple track segment.
 
FOOTPRINTCreateFootprintWithPad (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.
 
ZONECreateZone (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_ITEMRunDRCForErrorCode (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< BOARDm_board
 

Detailed Description

Definition at line 47 of file test_drc_backdrill_postmachining.cpp.

Constructor & Destructor Documentation

◆ BACKDRILL_TEST_FIXTURE()

BACKDRILL_TEST_FIXTURE::BACKDRILL_TEST_FIXTURE ( )
inline

Definition at line 49 of file test_drc_backdrill_postmachining.cpp.

References m_board, and SetupSixLayerBoard().

Member Function Documentation

◆ CreateBackdrilledVia()

PCB_VIA * BACKDRILL_TEST_FIXTURE::CreateBackdrilledVia ( const VECTOR2I & aPos,
int aNetCode,
PCB_LAYER_ID aPrimaryStart,
PCB_LAYER_ID aPrimaryEnd,
PCB_LAYER_ID aSecondaryStart,
PCB_LAYER_ID aSecondaryEnd,
int aSecondaryDrillSize )
inline

Create a via with backdrill settings.

Parameters
aPosPosition of the via
aNetCodeNet code for the via
aPrimaryStartStart layer for primary drill
aPrimaryEndEnd layer for primary drill
aSecondaryStartStart layer for backdrill (secondary drill)
aSecondaryEndEnd layer for backdrill
aSecondaryDrillSizeSize of the backdrill
Returns
Pointer to the created via

Definition at line 87 of file test_drc_backdrill_postmachining.cpp.

References PADSTACK::ALL_LAYERS, m_board, pcbIUScale, and via.

◆ CreateFootprintWithPad()

FOOTPRINT * BACKDRILL_TEST_FIXTURE::CreateFootprintWithPad ( const VECTOR2I & aPos,
int aNetCode,
const wxString & aPadNumber = "1" )
inline

◆ CreatePostMachinedVia()

PCB_VIA * BACKDRILL_TEST_FIXTURE::CreatePostMachinedVia ( const VECTOR2I & aPos,
int aNetCode,
PAD_DRILL_POST_MACHINING_MODE aFrontMode,
int aFrontSize,
int aFrontDepth )
inline

Create a via with post-machining settings.

Parameters
aPosPosition of the via
aNetCodeNet code for the via
aFrontModePost-machining mode for front (COUNTERBORE or COUNTERSINK)
aFrontSizeSize of front post-machining
aFrontDepthDepth of front post-machining
Returns
Pointer to the created via

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.

◆ CreateTrack()

PCB_TRACK * BACKDRILL_TEST_FIXTURE::CreateTrack ( const VECTOR2I & aStart,
const VECTOR2I & aEnd,
PCB_LAYER_ID aLayer,
int aNetCode )
inline

◆ CreateZone()

ZONE * BACKDRILL_TEST_FIXTURE::CreateZone ( const VECTOR2I & aCorner1,
const VECTOR2I & aCorner2,
PCB_LAYER_ID aLayer,
int aNetCode )
inline

◆ FillZones()

void BACKDRILL_TEST_FIXTURE::FillZones ( )
inline

Definition at line 230 of file test_drc_backdrill_postmachining.cpp.

References KI_TEST::FillZones(), and m_board.

◆ GetNetCode()

int BACKDRILL_TEST_FIXTURE::GetNetCode ( const wxString & aNetName)
inline

Definition at line 261 of file test_drc_backdrill_postmachining.cpp.

References NETINFO_ITEM::GetNetCode(), and m_board.

◆ RebuildConnectivity()

void BACKDRILL_TEST_FIXTURE::RebuildConnectivity ( )
inline

Definition at line 235 of file test_drc_backdrill_postmachining.cpp.

References m_board.

◆ RunDRCForErrorCode()

std::vector< DRC_ITEM > BACKDRILL_TEST_FIXTURE::RunDRCForErrorCode ( int aErrorCode)
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().

◆ SetPadBackdrill()

void BACKDRILL_TEST_FIXTURE::SetPadBackdrill ( PAD * aPad,
PCB_LAYER_ID aStart,
PCB_LAYER_ID aEnd,
int aSize )
inline

◆ SetPadPostMachining()

◆ SetupSixLayerBoard()

Member Data Documentation

◆ m_board

◆ m_settingsManager

SETTINGS_MANAGER BACKDRILL_TEST_FIXTURE::m_settingsManager

Definition at line 272 of file test_drc_backdrill_postmachining.cpp.


The documentation for this struct was generated from the following file: