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 <algorithm>
30#include <drc/drc_item.h>
31#include <drc/drc_rule.h>
32#include <board.h>
33#include <pcb_marker.h>
34#include <i18n_utility.h>
35
36
37// These, being statically-defined, require specialized I18N handling.
38// We don't translate on initialization and instead do it in the getters.
39
40// NOTE: Avoid changing the settings key for a DRC item after it has been created
41
42
43DRC_ITEM DRC_ITEM::heading_electrical( 0, _HKI( "Electrical" ), "" );
44DRC_ITEM DRC_ITEM::heading_DFM( 0, _HKI( "Design for Manufacturing" ), "" );
45DRC_ITEM DRC_ITEM::heading_schematic_parity( 0, _HKI( "Schematic Parity" ), "" );
46DRC_ITEM DRC_ITEM::heading_signal_integrity( 0, _HKI( "Signal Integrity" ), "" );
47DRC_ITEM DRC_ITEM::heading_readability( 0, _HKI( "Readability" ), "" );
48DRC_ITEM DRC_ITEM::heading_misc( 0, _HKI( "Miscellaneous" ), "" );
51
53 _HKI( "Missing connection between items" ),
54 wxT( "unconnected_items" ) );
55
57 _HKI( "Items shorting two nets" ),
58 wxT( "shorting_items" ) );
59
61 _HKI( "Items not allowed" ),
62 wxT( "items_not_allowed" ) );
63
64DRC_ITEM DRC_ITEM::textOnEdgeCuts( DRCE_TEXT_ON_EDGECUTS, _HKI( "Text or graphic on Edge.Cuts layer" ),
65 wxT( "text_on_edge_cuts" ) );
66
68 _HKI( "Clearance violation" ),
69 wxT( "clearance" ) );
70
72 _HKI( "Creepage violation" ),
73 wxT( "creepage" ) );
74
76 _HKI( "Tracks crossing" ),
77 wxT( "tracks_crossing" ) );
78
80 _HKI( "Board edge clearance violation" ),
81 wxT( "copper_edge_clearance" ) );
82
84 _HKI( "Copper zones intersect" ),
85 wxT( "zones_intersect" ) );
86
88 _HKI( "Isolated copper fill" ),
89 wxT( "isolated_copper" ) );
90
92 _HKI( "Thermal relief connection to zone incomplete" ),
93 wxT( "starved_thermal" ) );
94
96 _HKI( "Via is not connected or connected on only one layer" ),
97 wxT( "via_dangling" ) );
98
100 _HKI( "Track has unconnected end" ),
101 wxT( "track_dangling" ) );
102
104 _HKI( "Hole clearance violation" ),
105 wxT( "hole_clearance" ) );
106
108 _HKI( "Drilled hole too close to other hole" ),
109 wxT( "hole_to_hole" ) );
110
112 _HKI( "Drilled holes co-located" ),
113 wxT( "holes_co_located" ) );
114
116 _HKI( "Copper connection too narrow" ),
117 wxT( "connection_width" ) );
118
120 _HKI( "Track width" ),
121 wxT( "track_width" ) );
122
124 _HKI( "Track angle" ),
125 wxT( "track_angle" ) );
126
128 _HKI( "Track segment length" ),
129 wxT( "track_segment_length" ) );
130
132 _HKI( "Annular width" ),
133 wxT( "annular_width" ) );
134
136 _HKI( "Hole size out of range" ),
137 wxT( "drill_out_of_range" ) );
138
140 _HKI( "Via diameter" ),
141 wxT( "via_diameter" ) );
142
144 _HKI( "Padstack is questionable" ),
145 wxT( "padstack" ) );
146
148 _HKI( "Padstack is not valid" ),
149 wxT( "padstack_invalid" ) );
150
152 _HKI( "Micro via hole size out of range" ),
153 wxT( "microvia_drill_out_of_range" ) );
154
156 _HKI( "Courtyards overlap" ),
157 wxT( "courtyards_overlap" ) );
158
160 _HKI( "Footprint has no courtyard defined" ),
161 wxT( "missing_courtyard" ) );
162
164 _HKI( "Footprint has malformed courtyard" ),
165 wxT( "malformed_courtyard" ) );
166
168 _HKI( "PTH inside courtyard" ),
169 wxT( "pth_inside_courtyard" ) );
170
172 _HKI( "NPTH inside courtyard" ),
173 wxT( "npth_inside_courtyard" ) );
174
176 _HKI( "Item on a disabled copper layer" ),
177 wxT( "item_on_disabled_layer" ) );
178
180 _HKI( "Board has malformed outline" ),
181 wxT( "invalid_outline" ) );
182
184 _HKI( "Duplicate footprints" ),
185 wxT( "duplicate_footprints" ) );
186
188 _HKI( "Missing footprint" ),
189 wxT( "missing_footprint" ) );
190
192 _HKI( "Extra footprint" ),
193 wxT( "extra_footprint" ) );
194
196 _HKI( "Pad net doesn't match schematic" ),
197 wxT( "net_conflict" ) );
198
200 _HKI( "Footprint attributes don't match symbol" ),
201 wxT( "footprint_symbol_mismatch" ) );
202
204 _HKI( "Footprint doesn't match symbol's footprint filters" ),
205 wxT( "footprint_filters_mismatch" ) );
206
208 _HKI( "Footprint field does not match symbol field" ),
209 wxT( "footprint_symbol_field_mismatch" ) );
210
212 _HKI( "Footprint not found in libraries" ),
213 wxT( "lib_footprint_issues" ) );
214
216 _HKI( "Footprint doesn't match copy in library" ),
217 wxT( "lib_footprint_mismatch" ) );
218
220 _HKI( "Unresolved text variable" ),
221 wxT( "unresolved_variable" ) );
222
224 _HKI( "Assertion failure" ),
225 wxT( "assertion_failure" ) );
226
228 _HKI( "Warning" ),
229 wxT( "generic_warning" ) );
230
232 _HKI( "Error" ),
233 wxT( "generic_error" ) );
234
236 _HKI( "Copper sliver" ),
237 wxT( "copper_sliver" ) );
238
240 _HKI( "Solder mask aperture bridges items with different nets" ),
241 wxT( "solder_mask_bridge" ) );
242
244 _HKI( "Silkscreen clipped by solder mask" ),
245 wxT( "silk_over_copper" ) );
246
248 _HKI( "Silkscreen clipped by board edge" ),
249 wxT( "silk_edge_clearance" ) );
250
252 _HKI( "Silkscreen clearance" ),
253 wxT( "silk_overlap" ) );
254
256 _HKI( "Text height out of range" ),
257 wxT( "text_height" ) );
258
260 _HKI( "Text thickness out of range" ),
261 wxT( "text_thickness" ) );
262
264 _HKI( "Track length out of range" ),
265 wxT( "length_out_of_range" ) );
266
268 _HKI( "Net chain stub length out of range" ),
269 wxT( "net_chain_stub_length" ) );
270
272 _HKI( "Net chain routed without continuous copper on the required reference layer" ),
273 wxT( "net_chain_return_path" ) );
274
276 _HKI( "Skew between tracks out of range" ),
277 wxT( "skew_out_of_range" ) );
278
279// Note: this used to only check against a max value, hence the settings key too_many_vias
281 _HKI( "Too many or too few vias on a connection" ),
282 wxT( "too_many_vias" ) );
283
285 _HKI( "Differential pair gap out of range" ),
286 wxT( "diff_pair_gap_out_of_range" ) );
287
289 _HKI( "Differential uncoupled length too long" ),
290 wxT( "diff_pair_uncoupled_length_too_long" ) );
291
293 _HKI( "Footprint is not valid" ),
294 wxT( "footprint" ) );
295
297 _HKI( "Footprint component type doesn't match footprint pads" ),
298 wxT( "footprint_type_mismatch" ) );
299
301 _HKI( "Through hole pad has no hole" ),
302 wxT( "through_hole_pad_without_hole" ) );
303
305 _HKI( "Mirrored text on front layer" ),
306 wxT( "mirrored_text_on_front_layer" ) );
307
309 _HKI( "Non-Mirrored text on back layer" ),
310 wxT( "nonmirrored_text_on_back_layer" ) );
311
313 _HKI( "Missing tuning profile" ),
314 wxT( "missing_tuning_profile" ) );
315
317 _HKI( "Tuning profile track geometries" ),
318 wxT( "tuning_profile_track_geometries" ) );
319
321 _HKI( "Track connected to post-machined or backdrilled layer" ),
322 wxT( "track_on_post_machined_layer" ) );
323
325 _HKI( "Track endpoint not centered on via" ),
326 wxT( "track_not_centered_on_via" ) );
327
328std::vector<std::reference_wrapper<RC_ITEM>> DRC_ITEM::allItemTypes( {
337
360
370
379
388
406
407 // DRC_ITEM types with no user-editable severities
408 // NOTE: this MUST be the last grouping in the list!
413} );
414
415
416std::shared_ptr<DRC_ITEM> DRC_ITEM::Create( int aErrorCode )
417{
418 switch( aErrorCode )
419 {
420 case DRCE_UNCONNECTED_ITEMS: return std::make_shared<DRC_ITEM>( unconnectedItems );
421 case DRCE_SHORTING_ITEMS: return std::make_shared<DRC_ITEM>( shortingItems );
422 case DRCE_ALLOWED_ITEMS: return std::make_shared<DRC_ITEM>( itemsNotAllowed );
423 case DRCE_TEXT_ON_EDGECUTS: return std::make_shared<DRC_ITEM>( textOnEdgeCuts );
424 case DRCE_CLEARANCE: return std::make_shared<DRC_ITEM>( clearance );
425 case DRCE_CREEPAGE: return std::make_shared<DRC_ITEM>( creepage );
426 case DRCE_TRACKS_CROSSING: return std::make_shared<DRC_ITEM>( tracksCrossing );
427 case DRCE_EDGE_CLEARANCE: return std::make_shared<DRC_ITEM>( edgeClearance );
428 case DRCE_ZONES_INTERSECT: return std::make_shared<DRC_ITEM>( zonesIntersect );
429 case DRCE_ISOLATED_COPPER: return std::make_shared<DRC_ITEM>( isolatedCopper );
430 case DRCE_STARVED_THERMAL: return std::make_shared<DRC_ITEM>( starvedThermal );
431 case DRCE_DANGLING_VIA: return std::make_shared<DRC_ITEM>( viaDangling );
432 case DRCE_DANGLING_TRACK: return std::make_shared<DRC_ITEM>( trackDangling );
433 case DRCE_DRILLED_HOLES_TOO_CLOSE: return std::make_shared<DRC_ITEM>( holeNearHole );
434 case DRCE_DRILLED_HOLES_COLOCATED: return std::make_shared<DRC_ITEM>( holesCoLocated );
435 case DRCE_HOLE_CLEARANCE: return std::make_shared<DRC_ITEM>( holeClearance );
436 case DRCE_CONNECTION_WIDTH: return std::make_shared<DRC_ITEM>( connectionWidth );
437 case DRCE_TRACK_WIDTH: return std::make_shared<DRC_ITEM>( trackWidth );
438 case DRCE_TRACK_ANGLE: return std::make_shared<DRC_ITEM>( trackAngle );
439 case DRCE_TRACK_SEGMENT_LENGTH: return std::make_shared<DRC_ITEM>( trackSegmentLength );
440 case DRCE_ANNULAR_WIDTH: return std::make_shared<DRC_ITEM>( annularWidth );
441 case DRCE_DRILL_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( drillTooSmall );
442 case DRCE_VIA_DIAMETER: return std::make_shared<DRC_ITEM>( viaDiameter );
443 case DRCE_PADSTACK: return std::make_shared<DRC_ITEM>( padstack );
444 case DRCE_PADSTACK_INVALID: return std::make_shared<DRC_ITEM>( padstackInvalid );
445 case DRCE_MICROVIA_DRILL_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( microviaDrillTooSmall );
446 case DRCE_OVERLAPPING_FOOTPRINTS: return std::make_shared<DRC_ITEM>( courtyardsOverlap );
447 case DRCE_MISSING_COURTYARD: return std::make_shared<DRC_ITEM>( missingCourtyard );
448 case DRCE_MALFORMED_COURTYARD: return std::make_shared<DRC_ITEM>( malformedCourtyard );
449 case DRCE_PTH_IN_COURTYARD: return std::make_shared<DRC_ITEM>( pthInsideCourtyard );
450 case DRCE_NPTH_IN_COURTYARD: return std::make_shared<DRC_ITEM>( npthInsideCourtyard );
451 case DRCE_DISABLED_LAYER_ITEM: return std::make_shared<DRC_ITEM>( itemOnDisabledLayer );
452 case DRCE_INVALID_OUTLINE: return std::make_shared<DRC_ITEM>( invalidOutline );
453 case DRCE_MISSING_FOOTPRINT: return std::make_shared<DRC_ITEM>( missingFootprint );
454 case DRCE_DUPLICATE_FOOTPRINT: return std::make_shared<DRC_ITEM>( duplicateFootprints );
455 case DRCE_NET_CONFLICT: return std::make_shared<DRC_ITEM>( netConflict );
456 case DRCE_EXTRA_FOOTPRINT: return std::make_shared<DRC_ITEM>( extraFootprint );
457 case DRCE_SCHEMATIC_PARITY: return std::make_shared<DRC_ITEM>( schematicParity );
458 case DRCE_SCHEMATIC_FIELDS_PARITY: return std::make_shared<DRC_ITEM>( schematicFieldsParity );
459 case DRCE_FOOTPRINT_FILTERS: return std::make_shared<DRC_ITEM>( footprintFilters );
460 case DRCE_LIB_FOOTPRINT_ISSUES: return std::make_shared<DRC_ITEM>( libFootprintIssues );
461 case DRCE_LIB_FOOTPRINT_MISMATCH: return std::make_shared<DRC_ITEM>( libFootprintMismatch );
462 case DRCE_UNRESOLVED_VARIABLE: return std::make_shared<DRC_ITEM>( unresolvedVariable );
463 case DRCE_ASSERTION_FAILURE: return std::make_shared<DRC_ITEM>( assertionFailure );
464 case DRCE_GENERIC_WARNING: return std::make_shared<DRC_ITEM>( genericWarning );
465 case DRCE_GENERIC_ERROR: return std::make_shared<DRC_ITEM>( genericError );
466 case DRCE_COPPER_SLIVER: return std::make_shared<DRC_ITEM>( copperSliver );
467 case DRCE_SILK_CLEARANCE: return std::make_shared<DRC_ITEM>( silkClearance );
468 case DRCE_SILK_MASK_CLEARANCE: return std::make_shared<DRC_ITEM>( silkMaskClearance );
469 case DRCE_SILK_EDGE_CLEARANCE: return std::make_shared<DRC_ITEM>( silkEdgeClearance );
470 case DRCE_SOLDERMASK_BRIDGE: return std::make_shared<DRC_ITEM>( solderMaskBridge );
471 case DRCE_TEXT_HEIGHT: return std::make_shared<DRC_ITEM>( textHeightOutOfRange );
472 case DRCE_TEXT_THICKNESS: return std::make_shared<DRC_ITEM>( textThicknessOutOfRange );
473 case DRCE_LENGTH_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( lengthOutOfRange );
474 case DRCE_NET_CHAIN_STUB_TOO_LONG: return std::make_shared<DRC_ITEM>( netChainStubTooLong );
476 return std::make_shared<DRC_ITEM>( netChainReturnPathBreak );
477 case DRCE_SKEW_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( skewOutOfRange );
478 case DRCE_VIA_COUNT_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( viaCountOutOfRange );
479 case DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( diffPairGapOutOfRange );
480 case DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG: return std::make_shared<DRC_ITEM>( diffPairUncoupledLengthTooLong );
481 case DRCE_FOOTPRINT: return std::make_shared<DRC_ITEM>( footprint );
482 case DRCE_FOOTPRINT_TYPE_MISMATCH: return std::make_shared<DRC_ITEM>( footprintTypeMismatch );
483 case DRCE_PAD_TH_WITH_NO_HOLE: return std::make_shared<DRC_ITEM>( footprintTHPadhasNoHole );
484 case DRCE_MIRRORED_TEXT_ON_FRONT_LAYER: return std::make_shared<DRC_ITEM>( mirroredTextOnFrontLayer );
485 case DRCE_NONMIRRORED_TEXT_ON_BACK_LAYER: return std::make_shared<DRC_ITEM>( nonMirroredTextOnBackLayer );
486 case DRCE_MISSING_TUNING_PROFILE: return std::make_shared<DRC_ITEM>( missingTuningProfile );
487 case DRCE_TRACK_ON_POST_MACHINED_LAYER: return std::make_shared<DRC_ITEM>( trackOnPostMachinedLayer );
488 case DRCE_TRACK_NOT_CENTERED_ON_VIA: return std::make_shared<DRC_ITEM>( trackNotCenteredOnVia );
489
490 default:
491 return nullptr;
492 }
493}
494
495
496std::shared_ptr<DRC_ITEM> DRC_ITEM::Create( const wxString& aErrorKey )
497{
498 for( const RC_ITEM& item : allItemTypes )
499 {
500 if( aErrorKey == item.GetSettingsKey() )
501 return std::make_shared<DRC_ITEM>( static_cast<const DRC_ITEM&>( item ) );
502 }
503
504 // This can happen if a project has old-format exclusions. Just drop these items.
505 return nullptr;
506}
507
508
510{
512 {
513 // we have lots of segments, but it's enough to show the first P and the first N
514 return niluuid;
515 }
516
517 return m_ids.size() > 2 ? m_ids[2] : niluuid;
518}
519
520
522{
524 {
525 // we have lots of segments, but it's enough to show the first P and the first N
526 return niluuid;
527 }
528
529 return m_ids.size() > 3 ? m_ids[3] : niluuid;
530}
531
532
533wxString DRC_ITEM::GetViolatingRuleDesc( bool aTranslate ) const
534{
535 if( m_violatingRule )
536 return wxString::Format( aTranslate ? _( "Rule: %s" ) : wxString( wxT( "Rule: %s" ) ), m_violatingRule->m_Name );
537 else
538 return aTranslate ? _( "Local override" ) : wxString( wxT( "Local override" ) );
539}
540
541
543{
544 m_severities = aSeverities;
545
546 m_filteredMarkers.clear();
547
548 for( PCB_MARKER* marker : m_board->Markers() )
549 {
550 if( alg::contains( m_markerTypes, marker->GetMarkerType() )
551 && ( marker->GetSeverity() & m_severities ) > 0 )
552 {
553 m_filteredMarkers.push_back( marker );
554 }
555 }
556
557 // Sort markers so that errors appear before warnings
558 std::stable_sort( m_filteredMarkers.begin(), m_filteredMarkers.end(),
559 []( const PCB_MARKER* a, const PCB_MARKER* b )
560 {
561 return a->GetSeverity() > b->GetSeverity();
562 } );
563}
564
565
567{
568 return m_severities;
569}
570
571
572int DRC_ITEMS_PROVIDER::GetCount( int aSeverity ) const
573{
574 if( aSeverity < 0 )
575 return m_filteredMarkers.size();
576
577 int count = 0;
578
579 for( PCB_MARKER* marker : m_board->Markers() )
580 {
581 if( alg::contains( m_markerTypes, marker->GetMarkerType() )
582 && ( marker->GetSeverity() & aSeverity ) > 0 )
583 {
584 count++;
585 }
586 }
587
588 return count;
589}
590
591
592std::shared_ptr<RC_ITEM> DRC_ITEMS_PROVIDER::GetItem( int aIndex ) const
593{
594 PCB_MARKER* marker = m_filteredMarkers[ aIndex ];
595
596 return marker ? marker->GetRCItem() : nullptr;
597}
598
599
600void DRC_ITEMS_PROVIDER::DeleteItem( int aIndex, bool aDeep )
601{
602 PCB_MARKER* marker = m_filteredMarkers[ aIndex ];
603 m_filteredMarkers.erase( m_filteredMarkers.begin() + aIndex );
604
605 if( aDeep )
606 m_board->Delete( marker );
607}
608
void SetSeverities(int aSeverities) override
Definition drc_item.cpp:542
std::vector< MARKER_BASE::MARKER_T > m_markerTypes
Definition drc_item.h:302
void DeleteItem(int aIndex, bool aDeep) override
Remove (and optionally deletes) the indexed item from the list.
Definition drc_item.cpp:600
int GetSeverities() const override
Definition drc_item.cpp:566
int GetCount(int aSeverity=-1) const override
Definition drc_item.cpp:572
std::vector< PCB_MARKER * > m_filteredMarkers
Definition drc_item.h:305
std::shared_ptr< RC_ITEM > GetItem(int aIndex) const override
Retrieve a RC_ITEM by index.
Definition drc_item.cpp:592
static DRC_ITEM nonMirroredTextOnBackLayer
Definition drc_item.h:258
static DRC_ITEM lengthOutOfRange
Definition drc_item.h:247
KIID GetAuxItem3ID() const override
Definition drc_item.cpp:521
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
static DRC_ITEM netConflict
Definition drc_item.h:231
static DRC_ITEM copperSliver
Definition drc_item.h:240
static DRC_ITEM trackNotCenteredOnVia
Definition drc_item.h:262
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 trackOnPostMachinedLayer
Definition drc_item.h:261
static DRC_ITEM connectionWidth
Definition drc_item.h:211
static DRC_ITEM footprint
Definition drc_item.h:254
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:416
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 tuningProfileImplicitRules
Definition drc_item.h:260
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:250
static DRC_ITEM trackDangling
Definition drc_item.h:207
static DRC_ITEM netChainStubTooLong
Definition drc_item.h:248
static DRC_ITEM viaDangling
Definition drc_item.h:206
static DRC_ITEM genericError
Definition drc_item.h:239
static DRC_ITEM netChainReturnPathBreak
Definition drc_item.h:249
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:252
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:257
static DRC_ITEM heading_readability
Definition drc_item.h:190
static DRC_ITEM itemsNotAllowed
Definition drc_item.h:197
DRC_ITEM(int aErrorCode=0, const wxString &aTitle="", const wxString &aSettingsKey="")
Definition drc_item.h:175
static DRC_ITEM extraFootprint
Definition drc_item.h:230
static DRC_ITEM diffPairUncoupledLengthTooLong
Definition drc_item.h:253
KIID GetAuxItem2ID() const override
Definition drc_item.cpp:509
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:266
static DRC_ITEM missingTuningProfile
Definition drc_item.h:259
static DRC_ITEM libFootprintMismatch
Definition drc_item.h:235
static DRC_ITEM viaCountOutOfRange
Definition drc_item.h:251
static DRC_ITEM edgeClearance
Definition drc_item.h:202
static DRC_ITEM silkMaskClearance
Definition drc_item.h:241
static DRC_ITEM genericWarning
Definition drc_item.h:238
static DRC_ITEM schematicFieldsParity
Definition drc_item.h:263
static DRC_ITEM invalidOutline
Definition drc_item.h:227
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
wxString GetViolatingRuleDesc(bool aTranslate) const override
Definition drc_item.cpp:533
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:255
static DRC_ITEM footprintTHPadhasNoHole
Definition drc_item.h:256
static DRC_ITEM silkClearance
Definition drc_item.h:244
static DRC_ITEM duplicateFootprints
Definition drc_item.h:228
Definition kiid.h:48
std::shared_ptr< RC_ITEM > GetRCItem() const
int m_errorCode
The error code's numeric value.
Definition rc_item.h:207
KIIDS m_ids
Definition rc_item.h:213
RC_ITEM()
Definition rc_item.h:88
@ DRCE_DISABLED_LAYER_ITEM
Definition drc_item.h:72
@ DRCE_SKEW_OUT_OF_RANGE
Definition drc_item.h:107
@ DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE
Definition drc_item.h:109
@ DRCE_CREEPAGE
Definition drc_item.h:45
@ DRCE_TUNING_PROFILE_IMPLICIT_RULES
Definition drc_item.h:116
@ DRCE_HOLE_CLEARANCE
Definition drc_item.h:55
@ DRCE_SILK_EDGE_CLEARANCE
Definition drc_item.h:99
@ DRCE_ZONES_INTERSECT
Definition drc_item.h:48
@ DRCE_FOOTPRINT_FILTERS
Definition drc_item.h:80
@ DRCE_SILK_MASK_CLEARANCE
Definition drc_item.h:97
@ DRCE_VIA_DIAMETER
Definition drc_item.h:62
@ DRCE_UNCONNECTED_ITEMS
Definition drc_item.h:40
@ DRCE_TRACK_WIDTH
Definition drc_item.h:56
@ DRCE_PADSTACK
Definition drc_item.h:63
@ DRCE_MIRRORED_TEXT_ON_FRONT_LAYER
Definition drc_item.h:112
@ DRCE_LIB_FOOTPRINT_ISSUES
Definition drc_item.h:83
@ DRCE_OVERLAPPING_FOOTPRINTS
Definition drc_item.h:66
@ DRCE_INVALID_OUTLINE
Definition drc_item.h:73
@ DRCE_TRACK_ON_POST_MACHINED_LAYER
Definition drc_item.h:118
@ DRCE_TEXT_ON_EDGECUTS
Definition drc_item.h:43
@ DRCE_NET_CHAIN_STUB_TOO_LONG
Definition drc_item.h:105
@ DRCE_DRILL_OUT_OF_RANGE
Definition drc_item.h:61
@ DRCE_EDGE_CLEARANCE
Definition drc_item.h:47
@ DRCE_NET_CHAIN_RETURN_PATH_BREAK
Definition drc_item.h:106
@ DRCE_STARVED_THERMAL
Definition drc_item.h:50
@ DRCE_TRACK_SEGMENT_LENGTH
Definition drc_item.h:58
@ DRCE_SCHEMATIC_FIELDS_PARITY
Definition drc_item.h:122
@ DRCE_MISSING_COURTYARD
Definition drc_item.h:67
@ DRCE_TRACK_ANGLE
Definition drc_item.h:57
@ DRCE_TRACK_NOT_CENTERED_ON_VIA
Definition drc_item.h:120
@ DRCE_CLEARANCE
Definition drc_item.h:44
@ DRCE_ISOLATED_COPPER
Definition drc_item.h:49
@ DRCE_GENERIC_ERROR
Definition drc_item.h:91
@ DRCE_MISSING_TUNING_PROFILE
Definition drc_item.h:115
@ DRCE_DRILLED_HOLES_TOO_CLOSE
Definition drc_item.h:53
@ DRCE_ALLOWED_ITEMS
Definition drc_item.h:42
@ DRCE_COPPER_SLIVER
Definition drc_item.h:93
@ DRCE_PTH_IN_COURTYARD
Definition drc_item.h:70
@ DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG
Definition drc_item.h:110
@ DRCE_MICROVIA_DRILL_OUT_OF_RANGE
Definition drc_item.h:65
@ DRCE_SHORTING_ITEMS
Definition drc_item.h:41
@ DRCE_MALFORMED_COURTYARD
Definition drc_item.h:68
@ DRCE_DANGLING_VIA
Definition drc_item.h:51
@ DRCE_PADSTACK_INVALID
Definition drc_item.h:64
@ DRCE_UNRESOLVED_VARIABLE
Definition drc_item.h:88
@ DRCE_FOOTPRINT_TYPE_MISMATCH
Definition drc_item.h:82
@ DRCE_NONMIRRORED_TEXT_ON_BACK_LAYER
Definition drc_item.h:113
@ DRCE_DUPLICATE_FOOTPRINT
Definition drc_item.h:76
@ DRCE_DANGLING_TRACK
Definition drc_item.h:52
@ DRCE_TEXT_HEIGHT
Definition drc_item.h:101
@ DRCE_ASSERTION_FAILURE
Definition drc_item.h:89
@ DRCE_SOLDERMASK_BRIDGE
Definition drc_item.h:94
@ DRCE_DRILLED_HOLES_COLOCATED
Definition drc_item.h:54
@ DRCE_EXTRA_FOOTPRINT
Definition drc_item.h:77
@ DRCE_SILK_CLEARANCE
Definition drc_item.h:100
@ DRCE_LENGTH_OUT_OF_RANGE
Definition drc_item.h:104
@ DRCE_LIB_FOOTPRINT_MISMATCH
Definition drc_item.h:84
@ DRCE_NET_CONFLICT
Definition drc_item.h:78
@ DRCE_MISSING_FOOTPRINT
Definition drc_item.h:75
@ DRCE_PAD_TH_WITH_NO_HOLE
Definition drc_item.h:85
@ DRCE_FOOTPRINT
Definition drc_item.h:86
@ DRCE_GENERIC_WARNING
Definition drc_item.h:90
@ DRCE_TEXT_THICKNESS
Definition drc_item.h:102
@ DRCE_NPTH_IN_COURTYARD
Definition drc_item.h:71
@ DRCE_CONNECTION_WIDTH
Definition drc_item.h:60
@ DRCE_SCHEMATIC_PARITY
Definition drc_item.h:79
@ DRCE_TRACKS_CROSSING
Definition drc_item.h:46
@ DRCE_VIA_COUNT_OUT_OF_RANGE
Definition drc_item.h:108
@ DRCE_ANNULAR_WIDTH
Definition drc_item.h:59
#define _(s)
Some functions to handle hotkeys in KiCad.
KIID niluuid(0)
bool contains(const _Container &__container, _Value __value)
Returns true if the container contains the given value.
Definition kicad_algo.h:100
#define _HKI(x)
Definition page_info.cpp:44