KiCad PCB EDA Suite
Loading...
Searching...
No Matches
drc_item.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2007 Dick Hollenbeck, [email protected]
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25
26#include "wx/html/m_templ.h"
27#include "wx/html/styleparams.h"
28#include "core/kicad_algo.h"
29#include <drc/drc_item.h>
30#include <drc/drc_rule.h>
31#include <board.h>
32#include <pcb_marker.h>
33
34
35// These, being statically-defined, require specialized I18N handling. We continue to
36// use the _() macro so that string harvesting by the I18N framework doesn't have to be
37// specialized, but we don't translate on initialization and instead do it in the getters.
38
39#undef _
40#define _(s) s
41
42// NOTE: Avoid changing the settings key for a DRC item after it has been created
43
44
45DRC_ITEM DRC_ITEM::heading_electrical( 0, _( "Electrical" ), "" );
46DRC_ITEM DRC_ITEM::heading_DFM( 0, _( "Design for Manufacturing" ), "" );
47DRC_ITEM DRC_ITEM::heading_schematic_parity( 0, _( "Schematic Parity" ), "" );
48DRC_ITEM DRC_ITEM::heading_signal_integrity( 0, _( "Signal Integrity" ), "" );
49DRC_ITEM DRC_ITEM::heading_readability( 0, _( "Readability" ), "" );
50DRC_ITEM DRC_ITEM::heading_misc( 0, _( "Miscellaneous" ), "" );
53
55 _( "Missing connection between items" ),
56 wxT( "unconnected_items" ) );
57
59 _( "Items shorting two nets" ),
60 wxT( "shorting_items" ) );
61
63 _( "Items not allowed" ),
64 wxT( "items_not_allowed" ) );
65
67 _( "Text (or dimension) on Edge.Cuts layer" ),
68 wxT( "text_on_edge_cuts" ) );
69
71 _( "Clearance violation" ),
72 wxT( "clearance" ) );
73
75 _( "Creepage violation" ),
76 wxT( "creepage" ) );
77
79 _( "Tracks crossing" ),
80 wxT( "tracks_crossing" ) );
81
83 _( "Board edge clearance violation" ),
84 wxT( "copper_edge_clearance" ) );
85
87 _( "Copper zones intersect" ),
88 wxT( "zones_intersect" ) );
89
91 _( "Isolated copper fill" ),
92 wxT( "isolated_copper" ) );
93
95 _( "Thermal relief connection to zone incomplete" ),
96 wxT( "starved_thermal" ) );
97
99 _( "Via is not connected or connected on only one layer" ),
100 wxT( "via_dangling" ) );
101
103 _( "Track has unconnected end" ),
104 wxT( "track_dangling" ) );
105
107 _( "Hole clearance violation" ),
108 wxT( "hole_clearance" ) );
109
111 _( "Drilled hole too close to other hole" ),
112 wxT( "hole_to_hole" ) );
113
115 _( "Drilled holes co-located" ),
116 wxT( "holes_co_located" ) );
117
119 _( "Copper connection too narrow" ),
120 wxT( "connection_width" ) );
121
123 _( "Track width" ),
124 wxT( "track_width" ) );
125
127 _( "Track angle" ),
128 wxT( "track_angle" ) );
129
131 _( "Track segment length" ),
132 wxT( "track_segment_length" ) );
133
135 _( "Annular width" ),
136 wxT( "annular_width" ) );
137
139 _( "Hole size out of range" ),
140 wxT( "drill_out_of_range" ) );
141
143 _( "Via diameter" ),
144 wxT( "via_diameter" ) );
145
147 wxT( "Padstack is questionable" ),
148 wxT( "padstack" ) );
149
151 _( "Padstack is not valid" ),
152 wxT( "padstack_invalid" ) );
153
155 _( "Micro via hole size out of range" ),
156 wxT( "microvia_drill_out_of_range" ) );
157
159 _( "Courtyards overlap" ),
160 wxT( "courtyards_overlap" ) );
161
163 _( "Footprint has no courtyard defined" ),
164 wxT( "missing_courtyard" ) );
165
167 _( "Footprint has malformed courtyard" ),
168 wxT( "malformed_courtyard" ) );
169
171 _( "PTH inside courtyard" ),
172 wxT( "pth_inside_courtyard" ) );
173
175 _( "NPTH inside courtyard" ),
176 wxT( "npth_inside_courtyard" ) );
177
179 _( "Item on a disabled copper layer" ),
180 wxT( "item_on_disabled_layer" ) );
181
183 _( "Board has malformed outline" ),
184 wxT( "invalid_outline" ) );
185
187 _( "Duplicate footprints" ),
188 wxT( "duplicate_footprints" ) );
189
191 _( "Missing footprint" ),
192 wxT( "missing_footprint" ) );
193
195 _( "Extra footprint" ),
196 wxT( "extra_footprint" ) );
197
199 _( "Pad net doesn't match schematic" ),
200 wxT( "net_conflict" ) );
201
203 _( "Footprint attributes don't match symbol" ),
204 wxT( "footprint_symbol_mismatch" ) );
205
207 _( "Footprint doesn't match symbol's footprint filters" ),
208 wxT( "footprint_filters_mismatch" ) );
209
211 _( "Footprint not found in libraries" ),
212 wxT( "lib_footprint_issues" ) );
213
215 _( "Footprint doesn't match copy in library" ),
216 wxT( "lib_footprint_mismatch" ) );
217
219 _( "Unresolved text variable" ),
220 wxT( "unresolved_variable" ) );
221
223 _( "Assertion failure" ),
224 wxT( "assertion_failure" ) );
225
227 _( "Warning" ),
228 wxT( "generic_warning" ) );
229
231 _( "Error" ),
232 wxT( "generic_error" ) );
233
235 _( "Copper sliver" ),
236 wxT( "copper_sliver" ) );
237
239 _( "Solder mask aperture bridges items with different nets" ),
240 wxT( "solder_mask_bridge" ) );
241
243 _( "Silkscreen clipped by solder mask" ),
244 wxT( "silk_over_copper" ) );
245
247 _( "Silkscreen clipped by board edge" ),
248 wxT( "silk_edge_clearance" ) );
249
251 _( "Silkscreen overlap" ),
252 wxT( "silk_overlap" ) );
253
255 _( "Text height out of range" ),
256 wxT( "text_height" ) );
257
259 _( "Text thickness out of range" ),
260 wxT( "text_thickness" ) );
261
263 _( "Track length out of range" ),
264 wxT( "length_out_of_range" ) );
265
267 _( "Skew between tracks out of range" ),
268 wxT( "skew_out_of_range" ) );
269
270// Note: this used to only check against a max value, hence the settings key too_many_vias
272 _( "Too many or too few vias on a connection" ),
273 wxT( "too_many_vias" ) );
274
276 _( "Differential pair gap out of range" ),
277 wxT( "diff_pair_gap_out_of_range" ) );
278
280 _( "Differential uncoupled length too long" ),
281 wxT( "diff_pair_uncoupled_length_too_long" ) );
282
284 _( "Footprint is not valid" ),
285 wxT( "footprint" ) );
286
288 _( "Footprint component type doesn't match footprint pads" ),
289 wxT( "footprint_type_mismatch" ) );
290
292 _( "Through hole pad has no hole" ),
293 wxT( "through_hole_pad_without_hole" ) );
294
296 _( "Mirrored text on front layer" ),
297 wxT( "mirrored_text_on_front_layer" ) );
298
300 _( "Non-Mirrored text on back layer" ),
301 wxT( "nonmirrored_text_on_back_layer" ) );
302
305
307 _( "Drilled hole too close to other hole - deprecated" ),
308 wxT( "hole_near_hole" ) );
309
310std::vector<std::reference_wrapper<RC_ITEM>> DRC_ITEM::allItemTypes(
311 {
320
339
348
355
364
379
380 // Deprecated items need to come second to last in the list
381 // They will not be shown in the panel but will be used to
382 // parse old settings files
385
386 // DRC_ITEM types with no user-editable severities
387 // NOTE: this MUST be the last grouping in the list!
392 } );
393
394
395std::shared_ptr<DRC_ITEM> DRC_ITEM::Create( int aErrorCode )
396{
397 switch( aErrorCode )
398 {
399 case DRCE_UNCONNECTED_ITEMS: return std::make_shared<DRC_ITEM>( unconnectedItems );
400 case DRCE_SHORTING_ITEMS: return std::make_shared<DRC_ITEM>( shortingItems );
401 case DRCE_ALLOWED_ITEMS: return std::make_shared<DRC_ITEM>( itemsNotAllowed );
402 case DRCE_TEXT_ON_EDGECUTS: return std::make_shared<DRC_ITEM>( textOnEdgeCuts );
403 case DRCE_CLEARANCE: return std::make_shared<DRC_ITEM>( clearance );
404 case DRCE_CREEPAGE: return std::make_shared<DRC_ITEM>( creepage );
405 case DRCE_TRACKS_CROSSING: return std::make_shared<DRC_ITEM>( tracksCrossing );
406 case DRCE_EDGE_CLEARANCE: return std::make_shared<DRC_ITEM>( edgeClearance );
407 case DRCE_ZONES_INTERSECT: return std::make_shared<DRC_ITEM>( zonesIntersect );
408 case DRCE_ISOLATED_COPPER: return std::make_shared<DRC_ITEM>( isolatedCopper );
409 case DRCE_STARVED_THERMAL: return std::make_shared<DRC_ITEM>( starvedThermal );
410 case DRCE_DANGLING_VIA: return std::make_shared<DRC_ITEM>( viaDangling );
411 case DRCE_DANGLING_TRACK: return std::make_shared<DRC_ITEM>( trackDangling );
412 case DRCE_DRILLED_HOLES_TOO_CLOSE: return std::make_shared<DRC_ITEM>( holeNearHole );
413 case DRCE_DRILLED_HOLES_COLOCATED: return std::make_shared<DRC_ITEM>( holesCoLocated );
414 case DRCE_HOLE_CLEARANCE: return std::make_shared<DRC_ITEM>( holeClearance );
415 case DRCE_CONNECTION_WIDTH: return std::make_shared<DRC_ITEM>( connectionWidth );
416 case DRCE_TRACK_WIDTH: return std::make_shared<DRC_ITEM>( trackWidth );
417 case DRCE_TRACK_ANGLE: return std::make_shared<DRC_ITEM>( trackAngle );
418 case DRCE_TRACK_SEGMENT_LENGTH: return std::make_shared<DRC_ITEM>( trackSegmentLength );
419 case DRCE_ANNULAR_WIDTH: return std::make_shared<DRC_ITEM>( annularWidth );
420 case DRCE_DRILL_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( drillTooSmall );
421 case DRCE_VIA_DIAMETER: return std::make_shared<DRC_ITEM>( viaDiameter );
422 case DRCE_PADSTACK: return std::make_shared<DRC_ITEM>( padstack );
423 case DRCE_PADSTACK_INVALID: return std::make_shared<DRC_ITEM>( padstackInvalid );
424 case DRCE_MICROVIA_DRILL_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( microviaDrillTooSmall );
425 case DRCE_OVERLAPPING_FOOTPRINTS: return std::make_shared<DRC_ITEM>( courtyardsOverlap );
426 case DRCE_MISSING_COURTYARD: return std::make_shared<DRC_ITEM>( missingCourtyard );
427 case DRCE_MALFORMED_COURTYARD: return std::make_shared<DRC_ITEM>( malformedCourtyard );
428 case DRCE_PTH_IN_COURTYARD: return std::make_shared<DRC_ITEM>( pthInsideCourtyard );
429 case DRCE_NPTH_IN_COURTYARD: return std::make_shared<DRC_ITEM>( npthInsideCourtyard );
430 case DRCE_DISABLED_LAYER_ITEM: return std::make_shared<DRC_ITEM>( itemOnDisabledLayer );
431 case DRCE_INVALID_OUTLINE: return std::make_shared<DRC_ITEM>( invalidOutline );
432 case DRCE_MISSING_FOOTPRINT: return std::make_shared<DRC_ITEM>( missingFootprint );
433 case DRCE_DUPLICATE_FOOTPRINT: return std::make_shared<DRC_ITEM>( duplicateFootprints );
434 case DRCE_NET_CONFLICT: return std::make_shared<DRC_ITEM>( netConflict );
435 case DRCE_EXTRA_FOOTPRINT: return std::make_shared<DRC_ITEM>( extraFootprint );
436 case DRCE_SCHEMATIC_PARITY: return std::make_shared<DRC_ITEM>( schematicParity );
437 case DRCE_FOOTPRINT_FILTERS: return std::make_shared<DRC_ITEM>( footprintFilters );
438 case DRCE_LIB_FOOTPRINT_ISSUES: return std::make_shared<DRC_ITEM>( libFootprintIssues );
439 case DRCE_LIB_FOOTPRINT_MISMATCH: return std::make_shared<DRC_ITEM>( libFootprintMismatch );
440 case DRCE_UNRESOLVED_VARIABLE: return std::make_shared<DRC_ITEM>( unresolvedVariable );
441 case DRCE_ASSERTION_FAILURE: return std::make_shared<DRC_ITEM>( assertionFailure );
442 case DRCE_GENERIC_WARNING: return std::make_shared<DRC_ITEM>( genericWarning );
443 case DRCE_GENERIC_ERROR: return std::make_shared<DRC_ITEM>( genericError );
444 case DRCE_COPPER_SLIVER: return std::make_shared<DRC_ITEM>( copperSliver );
445 case DRCE_OVERLAPPING_SILK: return std::make_shared<DRC_ITEM>( silkOverlaps );
446 case DRCE_SILK_CLEARANCE: return std::make_shared<DRC_ITEM>( silkClearance );
447 case DRCE_SILK_EDGE_CLEARANCE: return std::make_shared<DRC_ITEM>( silkEdgeClearance );
448 case DRCE_SOLDERMASK_BRIDGE: return std::make_shared<DRC_ITEM>( solderMaskBridge );
449 case DRCE_TEXT_HEIGHT: return std::make_shared<DRC_ITEM>( textHeightOutOfRange );
450 case DRCE_TEXT_THICKNESS: return std::make_shared<DRC_ITEM>( textThicknessOutOfRange );
451 case DRCE_LENGTH_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( lengthOutOfRange );
452 case DRCE_SKEW_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( skewOutOfRange );
453 case DRCE_VIA_COUNT_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( viaCountOutOfRange );
454 case DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( diffPairGapOutOfRange );
455 case DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG: return std::make_shared<DRC_ITEM>( diffPairUncoupledLengthTooLong );
456 case DRCE_FOOTPRINT: return std::make_shared<DRC_ITEM>( footprint );
457 case DRCE_FOOTPRINT_TYPE_MISMATCH: return std::make_shared<DRC_ITEM>( footprintTypeMismatch );
458 case DRCE_PAD_TH_WITH_NO_HOLE: return std::make_shared<DRC_ITEM>( footprintTHPadhasNoHole );
459 case DRCE_MIRRORED_TEXT_ON_FRONT_LAYER: return std::make_shared<DRC_ITEM>( mirroredTextOnFrontLayer );
460 case DRCE_NONMIRRORED_TEXT_ON_BACK_LAYER: return std::make_shared<DRC_ITEM>( nonMirroredTextOnBackLayer );
461 default:
462 wxFAIL_MSG( wxT( "Unknown DRC error code" ) );
463 return nullptr;
464 }
465}
466
467
468std::shared_ptr<DRC_ITEM> DRC_ITEM::Create( const wxString& aErrorKey )
469{
470 for( const RC_ITEM& item : allItemTypes )
471 {
472 if( aErrorKey == item.GetSettingsKey() )
473 return std::make_shared<DRC_ITEM>( static_cast<const DRC_ITEM&>( item ) );
474 }
475
476 // This can happen if a project has old-format exclusions. Just drop these items.
477 return nullptr;
478}
479
480
482{
484 {
485 // we have lots of segments, but it's enough to show the first P and the first N
486 return niluuid;
487 }
488
489 return m_ids.size() > 2 ? m_ids[2] : niluuid;
490}
491
492
494{
496 {
497 // we have lots of segments, but it's enough to show the first P and the first N
498 return niluuid;
499 }
500
501 return m_ids.size() > 3 ? m_ids[3] : niluuid;
502}
503
504
506{
507 if( m_violatingRule )
508 return wxString::Format( _( "Rule: %s" ), m_violatingRule->m_Name );
509 else
510 return _( "Local override" );
511}
512
513
515{
516 m_severities = aSeverities;
517
518 m_filteredMarkers.clear();
519
520 for( PCB_MARKER* marker : m_board->Markers() )
521 {
522 if( alg::contains( m_markerTypes, marker->GetMarkerType() )
523 && ( marker->GetSeverity() & m_severities ) > 0 )
524 {
525 m_filteredMarkers.push_back( marker );
526 }
527 }
528}
529
530
531int DRC_ITEMS_PROVIDER::GetCount( int aSeverity ) const
532{
533 if( aSeverity < 0 )
534 return m_filteredMarkers.size();
535
536 int count = 0;
537
538 for( PCB_MARKER* marker : m_board->Markers() )
539 {
540 if( alg::contains( m_markerTypes, marker->GetMarkerType() )
541 && ( marker->GetSeverity() & aSeverity ) > 0 )
542 {
543 count++;
544 }
545 }
546
547 return count;
548}
549
550
551std::shared_ptr<RC_ITEM> DRC_ITEMS_PROVIDER::GetItem( int aIndex ) const
552{
553 PCB_MARKER* marker = m_filteredMarkers[ aIndex ];
554
555 return marker ? marker->GetRCItem() : nullptr;
556}
557
558
559void DRC_ITEMS_PROVIDER::DeleteItem( int aIndex, bool aDeep )
560{
561 PCB_MARKER* marker = m_filteredMarkers[ aIndex ];
562 m_filteredMarkers.erase( m_filteredMarkers.begin() + aIndex );
563
564 if( aDeep )
565 m_board->Delete( marker );
566}
567
virtual void Delete(BOARD_ITEM *aItem)
Removes an item from the container and deletes it.
const MARKERS & Markers() const
Definition: board.h:344
void SetSeverities(int aSeverities) override
Definition: drc_item.cpp:514
std::vector< MARKER_BASE::MARKER_T > m_markerTypes
Definition: drc_item.h:291
void DeleteItem(int aIndex, bool aDeep) override
Remove (and optionally deletes) the indexed item from the list.
Definition: drc_item.cpp:559
int GetCount(int aSeverity=-1) const override
Definition: drc_item.cpp:531
std::vector< PCB_MARKER * > m_filteredMarkers
Definition: drc_item.h:294
std::shared_ptr< RC_ITEM > GetItem(int aIndex) const override
Retrieve a RC_ITEM by index.
Definition: drc_item.cpp:551
static DRC_ITEM nonMirroredTextOnBackLayer
Definition: drc_item.h:256
static DRC_ITEM lengthOutOfRange
Definition: drc_item.h:247
KIID GetAuxItem3ID() const override
Definition: drc_item.cpp:493
static DRC_ITEM viaDiameter
Definition: drc_item.h:217
static DRC_ITEM silkEdgeClearance
Definition: drc_item.h:242
static DRC_ITEM trackWidth
Definition: drc_item.h:212
static DRC_ITEM heading_DFM
Definition: drc_item.h:187
static DRC_ITEM annularWidth
Definition: drc_item.h:215
static DRC_ITEM pthInsideCourtyard
Definition: drc_item.h:224
static DRC_ITEM trackSegmentLength
Definition: drc_item.h:214
static DRC_ITEM schematicParity
Definition: drc_item.h:232
wxString GetViolatingRuleDesc() const override
Definition: drc_item.cpp:505
static DRC_ITEM holeNearHolev8
Deprecated items.
Definition: drc_item.h:259
static DRC_ITEM netConflict
Definition: drc_item.h:231
static DRC_ITEM copperSliver
Definition: drc_item.h:240
static DRC_ITEM holeNearHole
Definition: drc_item.h:208
static DRC_ITEM heading_signal_integrity
Definition: drc_item.h:189
static DRC_ITEM courtyardsOverlap
Definition: drc_item.h:221
static DRC_ITEM textThicknessOutOfRange
Definition: drc_item.h:246
static DRC_ITEM connectionWidth
Definition: drc_item.h:211
static DRC_ITEM footprint
Definition: drc_item.h:252
static DRC_ITEM unresolvedVariable
Definition: drc_item.h:236
static DRC_ITEM assertionFailure
Definition: drc_item.h:237
static DRC_ITEM npthInsideCourtyard
Definition: drc_item.h:225
static DRC_ITEM footprintFilters
Definition: drc_item.h:233
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
Definition: drc_item.cpp:395
static DRC_ITEM textOnEdgeCuts
Definition: drc_item.h:198
static DRC_ITEM creepage
Definition: drc_item.h:200
static std::vector< std::reference_wrapper< RC_ITEM > > allItemTypes
A list of all DRC_ITEM types which are valid error codes.
Definition: drc_item.h:184
static DRC_ITEM zonesIntersect
Definition: drc_item.h:203
static DRC_ITEM starvedThermal
Definition: drc_item.h:205
static DRC_ITEM heading_deprecated
Definition: drc_item.h:193
static DRC_ITEM shortingItems
Definition: drc_item.h:196
static DRC_ITEM tracksCrossing
Definition: drc_item.h:201
static DRC_ITEM missingCourtyard
Definition: drc_item.h:222
static DRC_ITEM skewOutOfRange
Definition: drc_item.h:248
static DRC_ITEM trackDangling
Definition: drc_item.h:207
static DRC_ITEM viaDangling
Definition: drc_item.h:206
static DRC_ITEM genericError
Definition: drc_item.h:239
static DRC_ITEM drillTooSmall
Definition: drc_item.h:216
static DRC_ITEM holesCoLocated
Definition: drc_item.h:209
static DRC_ITEM missingFootprint
Definition: drc_item.h:229
static DRC_ITEM textHeightOutOfRange
Definition: drc_item.h:245
static DRC_ITEM diffPairGapOutOfRange
Definition: drc_item.h:250
static DRC_ITEM heading_electrical
Definition: drc_item.h:186
static DRC_ITEM padstack
Definition: drc_item.h:218
static DRC_ITEM itemOnDisabledLayer
Definition: drc_item.h:226
static DRC_ITEM mirroredTextOnFrontLayer
Definition: drc_item.h:255
static DRC_ITEM heading_readability
Definition: drc_item.h:190
static DRC_ITEM itemsNotAllowed
Definition: drc_item.h:197
static DRC_ITEM extraFootprint
Definition: drc_item.h:230
static DRC_ITEM diffPairUncoupledLengthTooLong
Definition: drc_item.h:251
KIID GetAuxItem2ID() const override
Definition: drc_item.cpp:481
static DRC_ITEM unconnectedItems
Definition: drc_item.h:195
static DRC_ITEM clearance
Definition: drc_item.h:199
DRC_RULE * m_violatingRule
Definition: drc_item.h:262
static DRC_ITEM libFootprintMismatch
Definition: drc_item.h:235
static DRC_ITEM viaCountOutOfRange
Definition: drc_item.h:249
static DRC_ITEM edgeClearance
Definition: drc_item.h:202
static DRC_ITEM genericWarning
Definition: drc_item.h:238
static DRC_ITEM invalidOutline
Definition: drc_item.h:227
static DRC_ITEM silkOverlaps
Definition: drc_item.h:244
static DRC_ITEM isolatedCopper
Definition: drc_item.h:204
static DRC_ITEM malformedCourtyard
Definition: drc_item.h:223
static DRC_ITEM heading_internal
Definition: drc_item.h:192
static DRC_ITEM holeClearance
Definition: drc_item.h:210
static DRC_ITEM libFootprintIssues
Definition: drc_item.h:234
static DRC_ITEM padstackInvalid
Definition: drc_item.h:219
static DRC_ITEM trackAngle
Definition: drc_item.h:213
static DRC_ITEM heading_schematic_parity
Definition: drc_item.h:188
static DRC_ITEM microviaDrillTooSmall
Definition: drc_item.h:220
static DRC_ITEM solderMaskBridge
Definition: drc_item.h:243
static DRC_ITEM heading_misc
Definition: drc_item.h:191
static DRC_ITEM footprintTypeMismatch
Definition: drc_item.h:253
static DRC_ITEM footprintTHPadhasNoHole
Definition: drc_item.h:254
static DRC_ITEM silkClearance
Definition: drc_item.h:241
static DRC_ITEM duplicateFootprints
Definition: drc_item.h:228
wxString m_Name
Definition: drc_rule.h:117
Definition: kiid.h:49
std::shared_ptr< RC_ITEM > GetRCItem() const
Definition: marker_base.h:112
A holder for a rule check item, DRC in Pcbnew or ERC in Eeschema.
Definition: rc_item.h:79
int m_errorCode
The error code's numeric value.
Definition: rc_item.h:185
KIIDS m_ids
Definition: rc_item.h:191
#define _(s)
Definition: drc_item.cpp:40
@ DRCE_DISABLED_LAYER_ITEM
Definition: drc_item.h:71
@ DRCE_SKEW_OUT_OF_RANGE
Definition: drc_item.h:104
@ DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE
Definition: drc_item.h:106
@ DRCE_CREEPAGE
Definition: drc_item.h:44
@ DRCE_HOLE_CLEARANCE
Definition: drc_item.h:54
@ DRCE_SILK_EDGE_CLEARANCE
Definition: drc_item.h:98
@ DRCE_ZONES_INTERSECT
Definition: drc_item.h:47
@ DRCE_FOOTPRINT_FILTERS
Definition: drc_item.h:79
@ DRCE_VIA_DIAMETER
Definition: drc_item.h:61
@ DRCE_UNCONNECTED_ITEMS
Definition: drc_item.h:39
@ DRCE_TRACK_WIDTH
Definition: drc_item.h:55
@ DRCE_PADSTACK
Definition: drc_item.h:62
@ DRCE_MIRRORED_TEXT_ON_FRONT_LAYER
Definition: drc_item.h:109
@ DRCE_LIB_FOOTPRINT_ISSUES
Definition: drc_item.h:82
@ DRCE_OVERLAPPING_FOOTPRINTS
Definition: drc_item.h:65
@ DRCE_INVALID_OUTLINE
Definition: drc_item.h:72
@ DRCE_TEXT_ON_EDGECUTS
Definition: drc_item.h:42
@ DRCE_OVERLAPPING_SILK
Definition: drc_item.h:101
@ DRCE_DRILL_OUT_OF_RANGE
Definition: drc_item.h:60
@ DRCE_EDGE_CLEARANCE
Definition: drc_item.h:46
@ DRCE_STARVED_THERMAL
Definition: drc_item.h:49
@ DRCE_TRACK_SEGMENT_LENGTH
Definition: drc_item.h:57
@ DRCE_MISSING_COURTYARD
Definition: drc_item.h:66
@ DRCE_TRACK_ANGLE
Definition: drc_item.h:56
@ DRCE_CLEARANCE
Definition: drc_item.h:43
@ DRCE_ISOLATED_COPPER
Definition: drc_item.h:48
@ DRCE_GENERIC_ERROR
Definition: drc_item.h:90
@ DRCE_DRILLED_HOLES_TOO_CLOSE
Definition: drc_item.h:52
@ DRCE_ALLOWED_ITEMS
Definition: drc_item.h:41
@ DRCE_COPPER_SLIVER
Definition: drc_item.h:92
@ DRCE_PTH_IN_COURTYARD
Definition: drc_item.h:69
@ DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG
Definition: drc_item.h:107
@ DRCE_MICROVIA_DRILL_OUT_OF_RANGE
Definition: drc_item.h:64
@ DRCE_SHORTING_ITEMS
Definition: drc_item.h:40
@ DRCE_MALFORMED_COURTYARD
Definition: drc_item.h:67
@ DRCE_DANGLING_VIA
Definition: drc_item.h:50
@ DRCE_PADSTACK_INVALID
Definition: drc_item.h:63
@ DRCE_UNRESOLVED_VARIABLE
Definition: drc_item.h:87
@ DRCE_FOOTPRINT_TYPE_MISMATCH
Definition: drc_item.h:81
@ DRCE_NONMIRRORED_TEXT_ON_BACK_LAYER
Definition: drc_item.h:110
@ DRCE_DUPLICATE_FOOTPRINT
Definition: drc_item.h:75
@ DRCE_DANGLING_TRACK
Definition: drc_item.h:51
@ DRCE_TEXT_HEIGHT
Definition: drc_item.h:99
@ DRCE_ASSERTION_FAILURE
Definition: drc_item.h:88
@ DRCE_SOLDERMASK_BRIDGE
Definition: drc_item.h:93
@ DRCE_DRILLED_HOLES_COLOCATED
Definition: drc_item.h:53
@ DRCE_EXTRA_FOOTPRINT
Definition: drc_item.h:76
@ DRCE_SILK_CLEARANCE
Definition: drc_item.h:96
@ DRCE_LENGTH_OUT_OF_RANGE
Definition: drc_item.h:103
@ DRCE_LIB_FOOTPRINT_MISMATCH
Definition: drc_item.h:83
@ DRCE_NET_CONFLICT
Definition: drc_item.h:77
@ DRCE_MISSING_FOOTPRINT
Definition: drc_item.h:74
@ DRCE_PAD_TH_WITH_NO_HOLE
Definition: drc_item.h:84
@ DRCE_FOOTPRINT
Definition: drc_item.h:85
@ DRCE_GENERIC_WARNING
Definition: drc_item.h:89
@ DRCE_TEXT_THICKNESS
Definition: drc_item.h:100
@ DRCE_NPTH_IN_COURTYARD
Definition: drc_item.h:70
@ DRCE_CONNECTION_WIDTH
Definition: drc_item.h:59
@ DRCE_SCHEMATIC_PARITY
Definition: drc_item.h:78
@ DRCE_TRACKS_CROSSING
Definition: drc_item.h:45
@ DRCE_VIA_COUNT_OUT_OF_RANGE
Definition: drc_item.h:105
@ DRCE_ANNULAR_WIDTH
Definition: drc_item.h:58
#define _(s)
KIID niluuid(0)
bool contains(const _Container &__container, _Value __value)
Returns true if the container contains the given value.
Definition: kicad_algo.h:100