25#include <math_for_graphics.h>
72 virtual bool Run()
override;
74 virtual const wxString
GetName()
const override
76 return wxT(
"clearance" );
81 return wxT(
"Tests copper item clearance" );
133 reportAux( wxT(
"No Clearance constraints found. Tests not run." ) );
141 if( !
reportPhase(
_(
"Checking track & via clearances..." ) ) )
148 if( !
reportPhase(
_(
"Checking hole clearances..." ) ) )
172 if( !
reportPhase(
_(
"Checking copper graphic clearances..." ) ) )
180 if( !
reportPhase(
_(
"Checking copper zone clearances..." ) ) )
211 bool has_error =
false;
215 otherNet = connectedItem->GetNetCode();
223 if(
pad->GetAttribute() == PAD_ATTRIB::NPTH && !
pad->FlashLayer( layer ) )
224 testClearance = testShorting =
false;
227 if( testClearance || testShorting )
247 drcItem->SetItems( item, other );
263 else if( actual == 0 && otherNet && testShorting )
268 msg.Printf(
_(
"(nets %s and %s)" ), item->
GetNetname(),
271 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
272 drce->SetItems( item, other );
280 else if( testClearance )
283 wxString msg =
formatMsg(
_(
"(%s clearance %s; actual %s)" ),
288 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
289 drce->SetItems( item, other );
303 std::array<BOARD_ITEM*, 2> a{ item, other };
304 std::array<BOARD_ITEM*, 2> b{ other, item };
305 std::array<SHAPE*, 2> a_shape{ itemShape, otherShape.get() };
307 for(
size_t ii = 0; ii < 2; ++ii )
309 std::shared_ptr<SHAPE_SEGMENT> holeShape;
313 if( !(
dynamic_cast<PCB_TRACK*
>( a[ii] ) ) || !b[ii]->HasHole() )
319 if( b[ii]->GetLayerSet().Contains( layer ) )
320 holeShape = b[ii]->GetEffectiveHoleShape();
324 holeShape = b[ii]->GetEffectiveHoleShape();
338 wxString msg =
formatMsg( clearance ?
_(
"(%s clearance %s; actual %s)" )
339 :
_(
"(%s clearance %s; actual < 0)" ),
344 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
345 drce->SetItems( a[ii], b[ii] );
372 BOX2I worstCaseBBox = itemBBox;
384 std::set<PAD*> allowedNetTiePads;
390 if(
pad->IsOnLayer( aLayer ) )
391 allowedNetTiePads.insert(
pad );
395 if( other->IsOnLayer( aLayer ) )
396 allowedNetTiePads.insert( other );
401 if( !allowedNetTiePads.empty() )
405 for(
PAD*
pad : allowedNetTiePads )
407 if(
pad->GetBoundingBox().Intersects( itemBBox )
408 &&
pad->GetEffectiveShape()->Collide( itemShape.get() ) )
419 if( !testClearance && !testHoles )
435 bool flashedPad =
pad->FlashLayer( aLayer );
436 bool platedHole =
pad->HasHole() &&
pad->GetAttribute() == PAD_ATTRIB::PTH;
438 if( !flashedPad && !platedHole )
439 testClearance =
false;
450 std::shared_ptr<SHAPE> itemShape = aItem->
GetEffectiveShape( aLayer, FLASHING::DEFAULT );
453 std::max( 0, clearance -
m_drcEpsilon ), &actual, &pos ) )
456 wxString msg =
formatMsg(
_(
"(%s clearance %s; actual %s)" ),
461 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
462 drce->SetItems( aItem, aZone );
469 if( testHoles && aItem->
HasHole() )
471 std::shared_ptr<SHAPE_SEGMENT> holeShape;
495 wxString msg =
formatMsg(
_(
"(%s clearance %s; actual %s)" ),
500 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
501 drce->SetItems( aItem, aZone );
524 if( !testClearance && !testShorts )
533 BOX2I worstCaseBBox = itemBBox;
545 std::shared_ptr<SHAPE> itemShape = aText->
GetEffectiveShape( layer, FLASHING::DEFAULT );
547 if( *aInheritedNet ==
nullptr )
549 if( zoneTree->
QueryColliding( itemBBox, itemShape.get(), layer ) )
550 *aInheritedNet = aZone->
GetNet();
553 if( *aInheritedNet == aZone->
GetNet() )
564 std::max( 0, clearance -
m_drcEpsilon ), &actual, &pos ) )
566 std::shared_ptr<DRC_ITEM> drce;
569 if( testShorts && actual == 0 && *aInheritedNet )
572 msg.Printf(
_(
"(nets %s and %s)" ),
573 ( *aInheritedNet )->GetNetname(),
579 msg =
formatMsg(
_(
"(%s clearance %s; actual %s)" ),
585 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
586 drce->SetItems( aText, aZone );
597 std::map<BOARD_ITEM*, int> freePadsUsageMap;
598 std::unordered_map<PTR_PTR_CACHE_KEY, layers_checked> checkedPairs;
599 std::mutex checkedPairsMutex;
600 std::mutex freePadsUsageMapMutex;
601 std::atomic<size_t> done( 0 );
604 reportAux( wxT(
"Testing %d tracks & vias..." ), count );
608 auto testTrack = [&](
const int start_idx,
const int end_idx )
610 for(
int trackIdx = start_idx; trackIdx < end_idx; ++trackIdx )
624 if( otherCItem && otherCItem->GetNetCode() == track->
GetNetCode() )
632 if(
static_cast<void*
>( a ) >
static_cast<void*
>( b ) )
635 std::lock_guard<std::mutex> lock( checkedPairsMutex );
636 auto it = checkedPairs.find( { a, b } );
638 if( it != checkedPairs.end() && ( it->second.layers.test( layer )
645 checkedPairs[ { a, b } ].layers.set( layer );
659 std::lock_guard<std::mutex> lock( freePadsUsageMapMutex );
660 auto it = freePadsUsageMap.find( other );
662 if( it == freePadsUsageMap.end() )
664 freePadsUsageMap[ other ] = track->
GetNetCode();
679 if(
static_cast<void*
>( a ) >
static_cast<void*
>( b ) )
685 std::lock_guard<std::mutex> lock( checkedPairsMutex );
686 auto it = checkedPairs.find( { a, b } );
688 if( it != checkedPairs.end() )
689 it->second.has_error =
true;
716 while( done < count )
726 std::this_thread::sleep_for( std::chrono::milliseconds( 250 ) );
744 int padGroupIdx = padToNetTieGroupMap[
pad->GetNumber() ];
748 PAD* otherPad =
static_cast<PAD*
>( other );
750 if( padGroupIdx >= 0 && padGroupIdx == padToNetTieGroupMap[ otherPad->
GetNumber() ] )
751 testClearance = testShorting =
false;
753 if(
pad->SameLogicalPadAs( otherPad ) )
758 testClearance = testShorting =
false;
761 PAD* otherPad =
nullptr;
765 otherPad =
static_cast<PAD*
>( other );
768 otherVia =
static_cast<PCB_VIA*
>( other );
771 testClearance = testShorting =
false;
774 if(
pad->GetAttribute() == PAD_ATTRIB::NPTH && !
pad->FlashLayer( aLayer ) )
775 testClearance = testShorting =
false;
778 testClearance = testShorting =
false;
782 testClearance = testShorting =
false;
784 int padNet =
pad->GetNetCode();
788 otherNet = connectedItem->GetNetCode();
791 if( otherNet && otherNet == padNet )
793 testClearance = testShorting =
false;
797 if( !(
pad->GetDrillSize().x > 0 )
799 && !( otherVia && otherVia->
GetDrill() > 0 ) )
804 if( !testClearance && !testShorting && !testHoles )
813 if( otherPad &&
pad->SameLogicalPadAs( otherPad ) )
823 if(
pad->GetShortNetname().StartsWith( wxS(
"unconnected-(" ) )
832 msg.Printf(
_(
"(nets %s and %s)" ),
836 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
837 drce->SetItems(
pad, otherPad );
845 if( testClearance || testShorting )
860 else if( actual == 0 && otherNet && testShorting )
865 msg.Printf(
_(
"(nets %s and %s)" ),
869 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
870 drce->SetItems(
pad, other );
875 else if( testClearance )
878 wxString msg =
formatMsg(
_(
"(%s clearance %s; actual %s)" ),
883 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
884 drce->SetItems(
pad, other );
903 if( testHoles && otherPad &&
pad->FlashLayer( aLayer ) && otherPad->
HasHole() )
910 wxString msg =
formatMsg(
_(
"(%s clearance %s; actual %s)" ),
915 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
916 drce->SetItems(
pad, other );
924 if( testHoles && otherPad && otherPad->
FlashLayer( aLayer ) &&
pad->HasHole() )
926 if( clearance > 0 && otherShape->Collide(
pad->GetEffectiveHoleShape().get(),
931 wxString msg =
formatMsg(
_(
"(%s clearance %s; actual %s)" ),
936 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
937 drce->SetItems(
pad, other );
945 if( testHoles && otherVia && otherVia->
IsOnLayer( aLayer ) )
952 wxString msg =
formatMsg(
_(
"(%s clearance %s; actual %s)" ),
957 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
958 drce->SetItems(
pad, otherVia );
971 std::atomic<size_t> done( 1 );
974 count += footprint->Pads().size();
976 reportAux( wxT(
"Testing %d pads..." ), count );
978 std::unordered_map<PTR_PTR_CACHE_KEY, int> checkedPairs;
982 std::future<void> retn =
tp.submit(
987 for( PAD* pad : footprint->Pads() )
989 for( PCB_LAYER_ID layer : LSET( pad->GetLayerSet() & boardCopperLayers ).Seq() )
991 if( m_drcEngine->IsCancelled() )
994 std::shared_ptr<SHAPE> padShape = pad->GetEffectiveShape( layer );
996 m_board->m_CopperItemRTreeCache->QueryColliding( pad, layer, layer,
998 [&]( BOARD_ITEM* other ) -> bool
1000 BOARD_ITEM* a = pad;
1001 BOARD_ITEM* b = other;
1005 if( static_cast<void*>( a ) > static_cast<void*>( b ) )
1008 if( checkedPairs.find( { a, b } ) != checkedPairs.end() )
1014 checkedPairs[ { a, b } ] = 1;
1019 [&]( BOARD_ITEM* other ) -> bool
1021 testPadAgainstItem( pad, padShape.get(), layer, other );
1023 return !m_drcEngine->IsCancelled();
1025 m_board->m_DRCMaxClearance );
1027 for( ZONE* zone : m_board->m_DRCCopperZones )
1029 testItemAgainstZone( pad, zone, layer );
1031 if( m_drcEngine->IsCancelled() )
1036 done.fetch_add( 1 );
1041 std::future_status status = retn.wait_for( std::chrono::milliseconds( 250 ) );
1043 while( status != std::future_status::ready )
1045 reportProgress( done, count );
1046 status = retn.wait_for( std::chrono::milliseconds( 250 ) );
1055 std::atomic<size_t> done( 1 );
1058 count += footprint->GraphicalItems().size();
1060 reportAux( wxT(
"Testing %d graphics..." ), count );
1062 auto isKnockoutText =
1068 auto testGraphicAgainstZone =
1084 if( isKnockoutText( item ) )
1094 std::unordered_map<PTR_PTR_CACHE_KEY, layers_checked> checkedPairs;
1096 auto testCopperGraphic =
1107 if( otherCItem && otherCItem->GetNetCode() == aShape->GetNetCode() )
1122 if(
static_cast<void*
>( a ) >
static_cast<void*
>( b ) )
1125 auto it = checkedPairs.find( { a, b } );
1127 if( it != checkedPairs.end() && it->second.layers.test( layer ) )
1133 checkedPairs[ { a, b } ].layers.set( layer );
1145 if(
static_cast<void*
>( a ) >
static_cast<void*
>( b ) )
1148 auto it = checkedPairs.find( { a, b } );
1151 aShape->GetEffectiveShape().get(),
1154 if( it != checkedPairs.end() )
1155 it->second.has_error =
true;
1163 std::future<void> retn =
tp.submit(
1168 testGraphicAgainstZone( item );
1170 if( item->Type() ==
PCB_SHAPE_T && item->IsOnCopperLayer() )
1171 testCopperGraphic(
static_cast<PCB_SHAPE*
>( item ) );
1173 done.fetch_add( 1 );
1181 for(
BOARD_ITEM* item : footprint->GraphicalItems() )
1183 testGraphicAgainstZone( item );
1185 done.fetch_add( 1 );
1193 std::future_status status = retn.wait_for( std::chrono::milliseconds( 250 ) );
1195 while( status != std::future_status::ready )
1198 status = retn.wait_for( std::chrono::milliseconds( 250 ) );
1209 std::vector<std::map<PCB_LAYER_ID, std::vector<SEG>>> poly_segments;
1214 using report_data = std::tuple<int, int, VECTOR2I, int, int, PCB_LAYER_ID>;
1216 std::vector<std::future<report_data>> futures;
1218 std::atomic<size_t> done( 1 );
1221 [
this, testClearance, testIntersects, &poly_segments, &done]
1222 (
int zoneA,
int zoneB,
int clearance,
PCB_LAYER_ID layer ) -> report_data
1225 std::map<VECTOR2I, int> conflictPoints;
1227 std::vector<SEG>& refSegments = poly_segments[zoneA][layer];
1228 std::vector<SEG>& testSegments = poly_segments[zoneB][layer];
1229 bool reported =
false;
1230 auto invalid_result = std::make_tuple( -1, -1,
VECTOR2I(), 0, 0,
F_Cu );
1232 for(
SEG& refSegment : refSegments )
1234 int ax1 = refSegment.A.x;
1235 int ay1 = refSegment.A.y;
1236 int ax2 = refSegment.B.x;
1237 int ay2 = refSegment.B.y;
1240 for(
SEG& testSegment : testSegments )
1245 int bx1 = testSegment.A.
x;
1246 int by1 = testSegment.A.y;
1247 int bx2 = testSegment.B.x;
1248 int by2 = testSegment.B.y;
1256 int d = GetClearanceBetweenSegments( bx1, by1, bx2, by2, 0,
1257 ax1, ay1, ax2, ay2, 0,
1258 clearance, &pt.
x, &pt.
y );
1262 if( d == 0 && testIntersects )
1264 else if( testClearance )
1269 done.fetch_add( 1 );
1270 return std::make_tuple( zoneA, zoneB, pt, d, clearance, layer );
1275 return invalid_result;
1279 done.fetch_add( 1 );
1280 return invalid_result;
1283 for(
int layer_id =
F_Cu; layer_id <=
B_Cu; ++layer_id )
1286 int zone2zoneClearance;
1297 std::vector<SEG>& zone_layer_poly_segs = poly_segments[ii][layer];
1306 if( seg.
A.
x > seg.
B.
x )
1309 zone_layer_poly_segs.push_back( seg );
1312 std::sort( zone_layer_poly_segs.begin(), zone_layer_poly_segs.end() );
1316 std::vector<std::pair<int, int>> zonePairs;
1355 futures.push_back(
tp.submit( checkZones, ia, ia2, zone2zoneClearance, layer ) );
1360 size_t count = futures.size();
1362 for(
auto& task : futures )
1367 std::future_status result;
1371 result = task.wait_for( std::chrono::milliseconds( 250 ) );
1378 if( result == std::future_status::ready )
1380 report_data data = task.get();
1381 int zoneA_idx = std::get<0>( data );
1382 int zoneB_idx = std::get<1>( data );
1384 int actual = std::get<3>( data );
1385 int required = std::get<4>( data );
1388 if( zoneA_idx >= 0 )
1394 std::shared_ptr<DRC_ITEM> drce;
1396 if( actual <= 0 && testIntersects )
1400 else if( testClearance )
1403 wxString msg =
formatMsg(
_(
"(%s clearance %s; actual %s)" ),
1406 std::max( actual, 0 ) );
1408 drce->SetErrorMessage( drce->GetErrorText() + wxS(
" " ) + msg );
1413 drce->SetItems( zoneA, zoneB );
bool test(size_t pos) const
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
wxString GetNetname() const
NETINFO_ITEM * GetNet() const
Return #NET_INFO object for a given item.
const wxString & GetShortNetname() const
int GetDRCEpsilon() const
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
virtual bool IsConnected() const
Returns information if the object is derived from BOARD_CONNECTED_ITEM.
virtual std::shared_ptr< SHAPE > GetEffectiveShape(PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=FLASHING::DEFAULT) const
Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes.
FOOTPRINT * GetParentFootprint() const
virtual LSET GetLayerSet() const
Return a std::bitset of all layers on which the item physically resides.
BOARD_ITEM_CONTAINER * GetParent() const
virtual std::shared_ptr< SHAPE_SEGMENT > GetEffectiveHoleShape() const
virtual bool HasHole() const
std::vector< ZONE * > m_DRCCopperZones
bool IsLayerEnabled(PCB_LAYER_ID aLayer) const
A proxy function that calls the correspondent function in m_BoardSettings tests whether a given layer...
int GetCopperLayerCount() const
const FOOTPRINTS & Footprints() const
const TRACKS & Tracks() const
std::shared_ptr< DRC_RTREE > m_CopperItemRTreeCache
std::unordered_map< ZONE *, std::unique_ptr< DRC_RTREE > > m_CopperZoneRTreeCache
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
const DRAWINGS & Drawings() const
bool Intersects(const BOX2< Vec > &aRect) const
BOX2< Vec > & Inflate(coord_type dx, coord_type dy)
Inflates the rectangle horizontally by dx and vertically by dy.
SEVERITY GetSeverity() const
const MINOPTMAX< int > & GetValue() const
DRC_RULE * GetParentRule() const
bool GetReportAllTrackErrors() const
bool IsErrorLimitExceeded(int error_code)
DRC_CONSTRAINT EvalRules(DRC_CONSTRAINT_T aConstraintType, const BOARD_ITEM *a, const BOARD_ITEM *b, PCB_LAYER_ID aLayer, REPORTER *aReporter=nullptr)
bool IsNetTieExclusion(int aTrackNetCode, PCB_LAYER_ID aTrackLayer, const VECTOR2I &aCollisionPos, BOARD_ITEM *aCollidingItem)
Check if the given collision between a track and another item occurs during the track's entry into a ...
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
Implement an R-tree for fast spatial and layer indexing of connectable items.
int QueryColliding(BOARD_ITEM *aRefItem, PCB_LAYER_ID aRefLayer, PCB_LAYER_ID aTargetLayer, std::function< bool(BOARD_ITEM *)> aFilter=nullptr, std::function< bool(BOARD_ITEM *)> aVisitor=nullptr, int aClearance=0) const
This is a fast test which essentially does bounding-box overlap given a worst-case clearance.
void testPadAgainstItem(PAD *pad, SHAPE *padShape, PCB_LAYER_ID layer, BOARD_ITEM *other)
struct DRC_TEST_PROVIDER_COPPER_CLEARANCE::checked layers_checked
virtual bool Run() override
Run this provider against the given PCB with configured options (if any).
DRC_TEST_PROVIDER_COPPER_CLEARANCE()
void testItemAgainstZone(BOARD_ITEM *aItem, ZONE *aZone, PCB_LAYER_ID aLayer)
void testGraphicClearances()
void testTrackClearances()
virtual ~DRC_TEST_PROVIDER_COPPER_CLEARANCE()
virtual const wxString GetDescription() const override
virtual const wxString GetName() const override
void testKnockoutTextAgainstZone(BOARD_ITEM *aText, NETINFO_ITEM **aInheritedNet, ZONE *aZone)
bool testSingleLayerItemAgainstItem(BOARD_CONNECTED_ITEM *item, SHAPE *itemShape, PCB_LAYER_ID layer, BOARD_ITEM *other)
Checks for track/via/hole <-> clearance.
wxString formatMsg(const wxString &aFormatString, const wxString &aSource, double aConstraint, double aActual)
virtual bool reportPhase(const wxString &aStageName)
virtual void reportViolation(std::shared_ptr< DRC_ITEM > &item, const VECTOR2I &aMarkerPos, int aMarkerLayer)
void reportAux(const wxString &aMsg)
virtual void reportRuleStatistics()
virtual bool reportProgress(size_t aCount, size_t aSize, size_t aDelta=1)
virtual const BOX2I GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
KICAD_T Type() const
Returns the type of object.
LSET is a set of PCB_LAYER_IDs.
LSEQ Seq(const PCB_LAYER_ID *aWishListSequence, unsigned aCount) const
Return an LSEQ from the union of this LSET and a desired sequence.
bool Contains(PCB_LAYER_ID aLayer)
See if the layer set contains a PCB layer.
static LSET AllCuMask(int aCuLayerCount=MAX_CU_LAYERS)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
Handle the data for a net.
bool FlashLayer(int aLayer, bool aOnlyCheckIfPermitted=false) const
Check to see whether the pad should be flashed on the specific layer.
const VECTOR2I & GetDrillSize() const
PAD_ATTRIB GetAttribute() const
const wxString & GetNumber() const
VECTOR2I GetPosition() const override
bool HasHole() const override
std::shared_ptr< SHAPE_SEGMENT > GetEffectiveHoleShape() const override
Return a SHAPE_SEGMENT object representing the pad's hole.
const VECTOR2I & GetStart() const
std::shared_ptr< SHAPE > GetEffectiveShape(PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=FLASHING::DEFAULT) const override
Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes.
const VECTOR2I & GetEnd() const
int GetDrill() const
Return the local drill setting for this PCB_VIA.
std::shared_ptr< SHAPE_SEGMENT > GetEffectiveHoleShape() const override
bool IsOnLayer(PCB_LAYER_ID aLayer) const override
Test to see if this object is on the given layer.
OPT_VECTOR2I Intersect(const SEG &aSeg, bool aIgnoreEndpoints=false, bool aLines=false) const
Compute intersection point of segment (this) with segment aSeg.
Represent a set of closed polygons.
int FullPointCount() const
Return the number of points in the shape poly set.
void BuildBBoxCaches() const
Construct BBoxCaches for Contains(), below.
SEGMENT_ITERATOR IterateSegmentsWithHoles()
Returns an iterator object, for all outlines in the set (with holes)
const BOX2I BBoxFromCaches() const
An abstract shape on 2D plane.
virtual bool Collide(const VECTOR2I &aP, int aClearance=0, int *aActual=nullptr, VECTOR2I *aLocation=nullptr) const
Check if the boundary of shape (this) lies closer to the point aP than aClearance,...
Handle a list of polygons defining a copper zone.
bool GetIsRuleArea() const
Accessors to parameters used in Rule Area zones:
const BOX2I GetBoundingBox() const override
virtual PCB_LAYER_ID GetLayer() const override
Return the primary layer this item is on.
virtual bool IsOnLayer(PCB_LAYER_ID) const override
Test to see if this object is on the given layer.
virtual LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
@ HOLE_CLEARANCE_CONSTRAINT
bool IsCopperLayer(int aLayerId)
Tests whether a layer is a copper layer.
PCB_LAYER_ID
A quick note on layer IDs:
static DRC_REGISTER_TEST_PROVIDER< DRC_TEST_PROVIDER_ANNULAR_WIDTH > dummy
std::optional< VECTOR2I > OPT_VECTOR2I
static bool Collide(const SHAPE_CIRCLE &aA, const SHAPE_CIRCLE &aB, int aClearance, int *aActual, VECTOR2I *aLocation, VECTOR2I *aMTV)
checked(PCB_LAYER_ID aLayer)
BS::thread_pool thread_pool
thread_pool & GetKiCadThreadPool()
Get a reference to the current thread pool.
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
@ PCB_REFERENCE_IMAGE_T
class PCB_REFERENCE_IMAGE, bitmap on a layer
@ PCB_PAD_T
class PAD, a pad in a footprint
@ PCB_ARC_T
class PCB_ARC, an arc track segment on a copper layer
@ PCB_TRACE_T
class PCB_TRACK, a track segment (segment on a copper layer)
VECTOR2< int32_t > VECTOR2I