52 virtual bool Run()
override;
54 virtual const wxString
GetName()
const override {
return wxT(
"footprint checks" ); };
70 drcItem->SetErrorMessage( drcItem->GetErrorText() + wxS(
" " ) + aMsg );
72 drcItem->SetItems( aItemA, aItemB, aItemC );
80 footprint->CheckFootprintAttributes(
81 [&](
const wxString& aMsg )
84 aMsg, footprint->GetPosition(), footprint->GetLayer() );
92 [&](
const PAD* aPad,
int aErrorCode,
const wxString& aMsg )
96 errorHandler( aPad,
nullptr,
nullptr, aErrorCode, aMsg,
105 if( footprint->IsNetTie() )
109 footprint->CheckNetTies(
114 wxEmptyString, aPosition, footprint->GetLayer() );
118 footprint->CheckNetTiePadGroups(
119 [&](
const wxString& aMsg )
122 footprint->GetPosition(), footprint->GetLayer() );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
const FOOTPRINTS & Footprints() const
bool IsErrorLimitExceeded(int error_code)
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
Represent a DRC "provider" which runs some DRC functions over a BOARD and spits out DRC_ITEM and posi...
virtual bool reportPhase(const wxString &aStageName)
virtual void reportViolation(std::shared_ptr< DRC_ITEM > &item, const VECTOR2I &aMarkerPos, int aMarkerLayer, DRC_CUSTOM_MARKER_HANDLER *aCustomHandler=nullptr)
VECTOR2I GetPosition() const override
PCB_LAYER_ID GetPrincipalLayer() const
@ DRCE_FOOTPRINT_TYPE_MISMATCH
@ DRCE_PAD_TH_WITH_NO_HOLE
PCB_LAYER_ID
A quick note on layer IDs:
static DRC_REGISTER_TEST_PROVIDER< DRC_TEST_PROVIDER_ANNULAR_WIDTH > dummy