45    virtual bool Run() 
override;
 
   47    virtual const wxString 
GetName()
 const override { 
return wxT( 
"diameter" ); };
 
 
   55        REPORT_AUX( wxT( 
"Via diameter violations ignored. Tests not run." ) );
 
   61        REPORT_AUX( wxT( 
"No via diameter constraints found. Tests not run." ) );
 
   68    auto checkViaDiameter =
 
   82                bool fail_min = 
false;
 
   83                bool fail_max = 
false;
 
   84                int  constraintDiameter = 0;
 
   90                    if( constraint.Value().HasMin() && 
actual < constraint.Value().Min() )
 
   93                        constraintDiameter = constraint.Value().Min();
 
   96                    if( constraint.Value().HasMax() && 
actual > constraint.Value().Max() )
 
   99                        constraintDiameter = constraint.Value().Max();
 
  103                if( fail_min || fail_max )
 
  106                    wxString constraintName = constraint.GetName();
 
  111                        if( constraint.m_ImplicitMin )
 
  112                            constraintName = 
_( 
"board setup constraints" );
 
  114                        msg = 
formatMsg( 
_( 
"(%s min diameter %s; actual %s)" ),
 
  121                        msg = 
formatMsg( 
_( 
"(%s max diameter %s; actual %s)" ),
 
  127                    drcItem->SetErrorMessage( drcItem->GetErrorText() + wxS( 
" " ) + msg );
 
  128                    drcItem->SetItems( item );
 
  129                    drcItem->SetViolatingRule( constraint.GetParentRule() );
 
  137    const int progressDelta = 500;
 
  145        if( !checkViaDiameter( item ) )
 
 
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
 
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
 
virtual ~DRC_TEST_PROVIDER_VIA_DIAMETER()=default
 
virtual bool Run() override
Run this provider against the given PCB with configured options (if any).
 
virtual const wxString GetName() const override
 
DRC_TEST_PROVIDER_VIA_DIAMETER()
 
virtual bool reportPhase(const wxString &aStageName)
 
void reportViolation(std::shared_ptr< DRC_ITEM > &item, const VECTOR2I &aMarkerPos, int aMarkerLayer, const std::function< void(PCB_MARKER *)> &aPathGenerator=[](PCB_MARKER *){})
 
wxString formatMsg(const wxString &aFormatString, const wxString &aSource, double aConstraint, double aActual, EDA_DATA_TYPE aDataType=EDA_DATA_TYPE::DISTANCE)
 
virtual bool reportProgress(size_t aCount, size_t aSize, size_t aDelta=1)
 
static constexpr PCB_LAYER_ID ALL_LAYERS
! Temporary layer identifier to identify code that is not padstack-aware
 
@ VIA_DIAMETER_CONSTRAINT
 
static DRC_REGISTER_TEST_PROVIDER< DRC_TEST_PROVIDER_ANNULAR_WIDTH > dummy
 
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)