60#include <wx/richmsgdlg.h>
64#define MULTICHANNEL_EXTRA_DEBUG
71 std::vector<wxString> refs;
78 refs.push_back( fp->GetReferenceAsString() );
81 std::sort( refs.begin(), refs.end(),
82 [](
const wxString& aLhs,
const wxString& aRhs )
84 return aLhs.CmpNoCase( aRhs ) < 0;
92 size_t componentsOnLine = 0;
94 for(
const wxString& ref : refs )
96 if( componentsOnLine == 10 )
103 componentsOnLine = 0;
110 if( !line.IsEmpty() )
123 const std::vector<wxString>& aReasons )
125 if( !aParent || aReasons.empty() )
130 for(
size_t idx = 0; idx < aReasons.size(); ++idx )
133 reasonText += wxT(
"\n" );
135 reasonText += aReasons[idx];
138 wxRichMessageDialog dlg( aParent, aSummary,
_(
"Topology mismatch" ), wxICON_ERROR | wxOK );
139 dlg.ShowDetailedText( reasonText );
155 const std::vector<wxString>& aReasons )
const
157 wxWindow* parent = aParent ? aParent :
frame();
170 std::set<FOOTPRINT*>& aComponents )
172 if( !aRuleArea || !aRuleArea->
m_zone )
183 aComponents.insert(
static_cast<FOOTPRINT*
>( item ) );
186 return (
int) aComponents.size();
195 [&](
const wxString& aMessage,
int aOffset )
225 auto ok = compiler.
Compile( ruleText, &ucode, &preflightCtx );
239 fp->GetSheetname() );
241 aComponents.insert( fp );
251 if( !aRuleArea || !aRuleArea->
m_zone )
267 if( !boardItem->IsConnected() || boardItem->Type() ==
PCB_ZONE_T )
268 aItems.insert( boardItem );
272 return aItems.size() > 0;
280 [&](
const wxString& aMessage,
int aOffset )
291 wxString ruleText = wxString::Format( wxT(
"A.enclosedByArea('%s')" ),
294 if( !compiler.
Compile( ruleText, &ucode, &preflightCtx ) )
301 auto val = ucode.
Run( &ctx );
303 if( val->AsDouble() != 0.0 )
304 aItems.insert( aItem );
309 if( zone == aRuleArea->
m_zone )
317 if( !drawing->IsConnected() )
318 testAndAdd( drawing );
327 std::set<FOOTPRINT*> rv;
329 if( aSheetName.EndsWith( wxT(
"/" ) ) )
330 aSheetName.RemoveLast();
332 wxString childPrefix = aSheetName + wxT(
"/" );
336 auto sn = fp->GetSheetname();
338 if( sn.EndsWith( wxT(
"/" ) ) )
341 if( sn == aSheetName || sn.StartsWith( childPrefix ) )
352 std::set<FOOTPRINT*> rv;
356 if( fp->GetComponentClass()->ContainsClassName( aComponentClassName ) )
366 std::set<FOOTPRINT*> rv;
370 if(
group->GetName() == aGroupName )
375 rv.insert(
static_cast<FOOTPRINT*
>( item ) );
386 std::set<BOARD_ITEM*> rv;
390 if(
group->GetName() != aGroupName )
395 if( item->IsBOARD_ITEM() )
396 rv.insert(
static_cast<BOARD_ITEM*
>( item ) );
406 std::vector<VECTOR2I> bbCorners;
407 bbCorners.reserve( aFootprints.size() * 4 );
411 const BOX2I bb = fp->GetBoundingBox(
false ).GetInflated( aMargin );
415 std::vector<VECTOR2I> hullVertices;
426 std::vector<VECTOR2I> bbCorners;
427 bbCorners.reserve( aItems.size() * 4 );
431 BOX2I bb = item->GetBoundingBox();
434 bb =
static_cast<FOOTPRINT*
>( item )->GetBoundingBox(
false );
439 std::vector<VECTOR2I> hullVertices;
451 using PathAndName = std::pair<wxString, wxString>;
452 std::set<PathAndName> uniqueSheets;
453 std::set<wxString> uniqueComponentClasses;
454 std::set<wxString> uniqueGroups;
460 uniqueSheets.insert( PathAndName( fp->GetSheetname(), fp->GetSheetfile() ) );
465 uniqueComponentClasses.insert( singleClass->GetName() );
467 if( fp->GetParentGroup() && !fp->GetParentGroup()->GetName().IsEmpty() )
468 uniqueGroups.insert( fp->GetParentGroup()->GetName() );
471 for(
const PathAndName& sheet : uniqueSheets )
480 m_areas.m_areas.push_back( ent );
485 (
int)
m_areas.m_areas.size() );
488 for(
const wxString& compClass : uniqueComponentClasses )
496 m_areas.m_areas.push_back( ent );
500 static_cast<int>(
m_areas.m_areas.size() ) );
503 for(
const wxString& groupName : uniqueGroups )
511 m_areas.m_areas.push_back( ent );
515 static_cast<int>(
m_areas.m_areas.size() ) );
526 if( !zone->GetIsRuleArea() )
529 if( !zone->GetPlacementAreaEnabled() )
537 area.
m_center = zone->Outline()->COutline( 0 ).Centre();
541 m_areas.m_areas.push_back( area );
571 std::vector<ZONE*> refRAs;
573 auto isSelectedItemAnRA =
579 ZONE* zone =
static_cast<ZONE*
>( aItem );
592 if(
ZONE* zone = isSelectedItemAnRA( item ) )
594 refRAs.push_back( zone );
602 if(
ZONE* grpZone = isSelectedItemAnRA( grpItem ) )
603 refRAs.push_back( grpZone );
608 if( refRAs.size() != 1 )
613 _(
"Select a reference Rule Area to copy from..." ),
616 return isSelectedItemAnRA( aItem ) !=
nullptr;
630 if(
m_areas.m_areas.size() <= 1 )
632 frame()->ShowInfoBarError(
_(
"No Rule Areas to repeat layout to have been found." ),
true );
652 if( ra.
m_zone == aRefZone )
664 std::vector<RULE_AREA*> targets;
671 targets.push_back( &ra );
675 if( targets.empty() )
678 int total =
static_cast<int>( targets.size() );
679 std::atomic<int> completed( 0 );
680 std::atomic<bool> cancelled(
false );
681 std::atomic<int> matchedComponents( 0 );
682 std::atomic<int> totalComponents( 0 );
697 auto future =
tp.submit_task(
698 [
this, refRA, &targets, &completed, &cancelled, &matchedComponents, &isoParams]()
702 if( cancelled.load( std::memory_order_relaxed ) )
705 matchedComponents.store( 0, std::memory_order_relaxed );
709 completed.fetch_add( 1, std::memory_order_relaxed );
715 std::unique_ptr<WX_PROGRESS_REPORTER> reporter;
716 auto startTime = std::chrono::steady_clock::now();
717 double highWaterMark = 0.0;
719 while( future.wait_for( std::chrono::milliseconds( 100 ) ) != std::future_status::ready )
723 auto elapsed = std::chrono::steady_clock::now() - startTime;
725 if( elapsed > std::chrono::seconds( 1 ) )
727 reporter = std::make_unique<WX_PROGRESS_REPORTER>(
733 wxLog::FlushActive();
739 int done = completed.load( std::memory_order_relaxed );
740 int matched = matchedComponents.load( std::memory_order_relaxed );
741 int compTotal = totalComponents.load( std::memory_order_relaxed );
743 double fraction = ( compTotal > 0 )
744 ?
static_cast<double>( matched ) / compTotal
746 double progress =
static_cast<double>( done + fraction ) / total;
748 if( progress > highWaterMark )
749 highWaterMark = progress;
751 reporter->SetCurrentProgress( highWaterMark );
752 reporter->Report( wxString::Format(
753 _(
"Resolving topology %d of %d (%d/%d components)" ),
754 done + 1, total, matched, compTotal ) );
756 if( !reporter->KeepRefreshing() )
757 cancelled.store(
true, std::memory_order_relaxed );
766 if( cancelled.load( std::memory_order_relaxed ) )
779 wxCHECK_MSG( aRefArea.
m_zone, -1, wxT(
"Reference Rule Area has no zone." ) );
780 wxCHECK_MSG( aTargetArea.
m_zone, -1, wxT(
"Target Rule Area has no zone." ) );
788 wxString summary = wxString::Format(
_(
"Rule Area topologies do not match: %s" ), compat.
m_errorMsg );
808 auto errMsg = wxString::Format(
_(
"Copy Rule Area contents failed between rule areas '%s' and '%s'." ),
814 frame()->ShowInfoBarError( errMsg,
true );
826 frame()->ShowInfoBarError(
_(
"Target group does not have a group." ),
true );
838 group->AddItem( item );
842 commit.
Push(
_(
"Repeat layout" ) );
854 for(
auto& [targetArea, compatData] :
m_areas.m_compatMap )
856 if( !compatData.m_doCopy )
859 targetArea->m_ruleName );
863 if( !compatData.m_isOk )
868 auto errMsg = wxString::Format(
_(
"Copy Rule Area contents failed between rule areas '%s' and '%s'." ),
869 m_areas.m_refRA->m_zone->GetZoneName(),
870 targetArea->m_zone->GetZoneName() );
875 frame()->ShowInfoBarError( errMsg,
true );
884 if(
m_areas.m_options.m_groupItems )
886 for(
const auto& [targetArea, compatData] :
m_areas.m_compatMap )
888 if( compatData.m_groupableItems.size() < 2 )
897 for(
BOARD_ITEM* item : compatData.m_groupableItems )
900 group->AddItem( item );
905 commit.
Push(
_(
"Repeat layout" ) );
908 frame()->ShowInfoBarMsg( wxString::Format(
_(
"Copied to %d Rule Areas." ), totalCopied ),
true );
928 if( ( c >=
'a' && c <=
'z' ) || ( c >=
'A' && c <=
'Z' ) || ( c ==
'_' ) )
939 std::shared_ptr<CONNECTIVITY_DATA> aConnectivity,
942 if( !aRuleArea || !aRuleArea->
m_zone )
970 if( bci->IsConnected() )
971 aOutput.insert( bci );
975 return (
int) aOutput.size();
983 [&](
const wxString& aMessage,
int aOffset )
994 wxString ruleText = wxString::Format( wxT(
"A.enclosedByArea('%s')" ),
1000 if( aOutput.contains( aItem ) )
1008 aOutput.insert( aItem );
1013 if( compiler.
Compile( ruleText, &ucode, &preflightCtx ) )
1016 testAndAdd( track );
1020 if( drawing->IsConnected() )
1046 targetAnchorFp = targetFP;
1054 if( targetAnchorFp )
1061 disp = newpos - oldpos;
1074 newTargetOutline.
Move( disp );
1079 std::map<EDA_GROUP*, EDA_GROUP*> groupMap;
1085 auto fixupParentGroup =
1088 if( !preserveGroups )
1093 if( !groupMap.contains( parentGroup ) )
1096 static_cast<PCB_GROUP*
>( parentGroup->AsEdaItem() )->Duplicate(
false ) );
1098 groupMap[parentGroup] = newGroup;
1099 aCommit->
Add( newGroup );
1102 groupMap[parentGroup]->AddItem( destItem );
1109 bool targetZoneOnBoard =
false;
1111 if( aTargetArea->
m_zone )
1115 if( z == aTargetArea->
m_zone )
1117 targetZoneOnBoard =
true;
1123 if( targetZoneOnBoard )
1132 std::set<BOARD_CONNECTED_ITEM*> refRouting;
1133 std::set<BOARD_CONNECTED_ITEM*> targetRouting;
1139 std::set<int> targc;
1143 for(
PAD*
pad : refFP->Pads() )
1144 refc.insert(
pad->GetNetCode() );
1146 for(
PAD*
pad : targetFP->Pads() )
1147 targc.insert(
pad->GetNetCode() );
1199 fixupParentGroup( item,
copied );
1210 std::set<BOARD_ITEM*> sourceItems;
1211 std::set<BOARD_ITEM*> targetItems;
1230 ZONE* zone =
static_cast<ZONE*
>( item );
1261 ZONE* zone =
static_cast<ZONE*
>( item );
1268 ZONE* targetZone =
static_cast<ZONE*
>( item->Duplicate(
false ) );
1286 fixupParentGroup( item,
copied );
1304 refFP->GetReference() );
1310 refFP->GetReference() );
1317 && !refFP->GetEffectiveShape( refFP->GetLayer() )->Collide( &refPoly, 0 ) )
1325 aCommit->
Modify( targetFP );
1327 targetFP->SetLayerAndFlip( refFP->GetLayer() );
1328 targetFP->SetOrientation( refFP->GetOrientation() );
1329 targetFP->SetPosition( refFP->GetPosition() );
1330 targetFP->Rotate(
VECTOR2( 0, 0 ), rot );
1331 targetFP->Move( disp );
1333 for(
PCB_FIELD* refField : refFP->GetFields() )
1335 wxCHECK2( refField,
continue );
1337 PCB_FIELD* targetField = targetFP->GetField( refField->GetName() );
1342 targetField->
SetLayerSet( refField->GetLayerSet() );
1343 targetField->
SetVisible( refField->IsVisible() );
1345 targetField->
SetPosition( refField->GetPosition() );
1347 targetField->
Move( disp );
1352 for(
BOARD_ITEM* refItem : refFP->GraphicalItems() )
1359 for(
BOARD_ITEM* targetItem : targetFP->GraphicalItems() )
1374 targetText->
Move( disp );
1382 targetFP->Models() = refFP->Models();
1405 const std::vector<BOARD_CONNECTED_ITEM*> refConnectedPads = connectivity->
GetNetItems( aRef->
GetNetCode(),
1413 const PAD* refPad =
static_cast<const PAD*
>( refConItem );
1416 if( aComponentMatches.contains( sourceFootprint ) )
1418 const FOOTPRINT* targetFootprint = aComponentMatches[sourceFootprint];
1419 std::vector<const PAD*> targetFpPads = targetFootprint->
GetPads( refPad->
GetNumber() );
1421 if( !targetFpPads.empty() )
1423 int targetNetCode = targetFpPads[0]->GetNet()->GetNetCode();
1449 std::vector<TMATCH::TOPOLOGY_MISMATCH_REASON> mismatchReasons;
1453 mismatchReasons, aParams );
1459 aMatches.
m_isOk = status;
1470 for(
const auto& reason : mismatchReasons )
1472 if( reason.m_reason.IsEmpty() )
1475 if( !reason.m_reference.IsEmpty() && !reason.m_candidate.IsEmpty() )
1480 reason.m_reason ) );
1482 else if( !reason.m_reference.IsEmpty() )
1486 reason.m_reason ) );
1499 wxString::Format(
_(
"Reference area total components: %d" ), (
int) aRefArea->
m_components.size() ) );
1500 aMatches.
m_mismatchReasons.push_back( wxString::Format(
_(
"Reference area components:\n%s" ),
1503 wxString::Format(
_(
"Target area total components: %d" ), (
int) aTargetArea->
m_components.size() ) );
1504 aMatches.
m_mismatchReasons.push_back( wxString::Format(
_(
"Target area components:\n%s" ),
1515 const std::unordered_set<BOARD_ITEM*>& aItemsToRemove )
1521 std::vector<EDA_ITEM*> pruneList;
1527 if( refItem->m_Uuid == testItem->m_Uuid )
1528 pruneList.push_back( refItem );
1532 if( !pruneList.empty() )
1537 group->RemoveItem( item );
1539 if(
group->GetItems().size() < 2 )
1554 if(
m_areas.m_areas.size() <= 1 )
1556 frame()->ShowInfoBarError(
_(
"Cannot auto-generate any placement areas because the "
1557 "schematic has only one or no hierarchical sheets, "
1558 "groups, or component classes." ),
1566 if( ret != wxID_OK )
1572 if( !zone->GetIsRuleArea() )
1575 if( !zone->GetPlacementAreaEnabled() )
1578 std::set<FOOTPRINT*> components;
1581 zoneRA.
m_sourceType = zone->GetPlacementAreaSourceType();
1584 if( components.empty() )
1594 wxT(
"Placement rule area for sheet '%s' already exists as '%s'\n" ),
1600 wxT(
"Placement rule area for component class '%s' already exists as '%s'\n" ),
1606 wxT(
"Placement rule area for group '%s' already exists as '%s'\n" ),
1640 if( groupItems.empty() )
1643 wxT(
"Skipping placement rule area generation for source group '%s': group has no board items." ),
1655 std::unique_ptr<ZONE> newZone(
new ZONE(
board() ) );
1658 newZone->SetZoneName( wxString::Format( wxT(
"auto-placement-area-%s" ), ra.
m_sheetPath ) );
1660 newZone->SetZoneName( wxString::Format( wxT(
"auto-placement-area-%s" ), ra.
m_componentClass ) );
1662 newZone->SetZoneName( wxString::Format( wxT(
"auto-placement-area-%s" ), ra.
m_groupName ) );
1665 newZone->GetZoneName(),
1668 newZone->SetIsRuleArea(
true );
1670 newZone->SetPlacementAreaEnabled(
true );
1671 newZone->SetDoNotAllowZoneFills(
false );
1672 newZone->SetDoNotAllowVias(
false );
1673 newZone->SetDoNotAllowTracks(
false );
1674 newZone->SetDoNotAllowPads(
false );
1675 newZone->SetDoNotAllowFootprints(
false );
1680 newZone->SetPlacementAreaSource( ra.
m_sheetPath );
1690 newZone->SetPlacementAreaSource( ra.
m_groupName );
1693 newZone->AddPolygon( raOutline );
1701 ra.
m_zone = newZone.release();
1708 if(
m_areas.m_options.m_groupItems )
1722 std::unordered_set<BOARD_ITEM*> toPrune;
1727 toPrune.insert( ra.
m_zone );
1741 group->AddItem( fp );
1746 commit.
Push(
_(
"Auto-generate placement rule areas" ) );
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Execute the changes.
virtual void Revert() override
Revert the commit by restoring the modified items state.
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
bool SetNetCode(int aNetCode, bool aNoAssert)
Set net using a net code.
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 void SetLayerSet(const LSET &aLayers)
virtual bool IsKnockout() const
virtual void SetIsKnockout(bool aKnockout)
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
FOOTPRINT * GetParentFootprint() const
std::shared_ptr< CONNECTIVITY_DATA > GetConnectivity() const
Return a list of missing connections between components/tracks.
constexpr BOX2< Vec > GetInflated(coord_type aDx, coord_type aDy) const
Get a new rectangle that is this one, inflated by aDx and aDy.
Represent a set of changes (additions, deletions or modifications) of a data model (e....
COMMIT & Remove(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Remove a new item from the model.
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr, RECURSE_MODE aRecurse=RECURSE_MODE::NO_RECURSE)
Modify a given item in the model.
COMMIT & Add(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Add a new item to the model.
int GetStatus(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Returns status of an item.
A lightweight representation of a component class.
const std::vector< COMPONENT_CLASS * > & GetConstituentClasses() const
Fetches a vector of the constituent classes for this (effective) class.
const std::vector< BOARD_CONNECTED_ITEM * > GetNetItems(int aNetCode, const std::vector< KICAD_T > &aTypes) const
Function GetNetItems() Returns the list of items that belong to a certain net.
A set of EDA_ITEMs (i.e., without duplicates).
std::unordered_set< EDA_ITEM * > & GetItems()
A base class for most all the KiCad significant classes used in schematics and boards.
virtual EDA_GROUP * GetParentGroup() const
KICAD_T Type() const
Returns the type of object.
virtual const wxString & GetText() const
Return the string associated with the text object.
virtual bool IsVisible() const
void SetAttributes(const EDA_TEXT &aSrc, bool aSetPosition=true)
Set the text attributes from another instance.
virtual void SetVisible(bool aVisible)
const TEXT_ATTRIBUTES & GetAttributes() const
wxString AsString() const
void SetErrorCallback(std::function< void(const wxString &aMessage, int aOffset)> aCallback)
bool Compile(const wxString &aString, UCODE *aCode, CONTEXT *aPreflightContext)
void SetErrorCallback(std::function< void(const wxString &aMessage, int aOffset)> aCallback)
VALUE * Run(CONTEXT *ctx)
virtual double AsDouble() const
LSET is a set of PCB_LAYER_IDs.
bool ContainsAll(const LSET &aLayers) const
See if this layer set contains all layers in another set.
static LSET AllCuMask(int aCuLayerCount)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
bool Contains(PCB_LAYER_ID aLayer) const
See if the layer set contains a PCB layer.
const wxString & GetNumber() const
void SetItems(BOARD_ITEM *a, BOARD_ITEM *b=nullptr)
static TOOL_ACTION repeatLayout
static TOOL_ACTION generatePlacementRuleAreas
static TOOL_ACTION selectItemInteractively
Selection of reference points/items.
A set of BOARD_ITEMs (i.e., without duplicates).
virtual VECTOR2I GetPosition() const override
virtual void SetPosition(const VECTOR2I &aPos) override
void Move(const VECTOR2I &aMoveVector) override
Move this object.
void Rotate(const VECTOR2I &aRotCentre, const EDA_ANGLE &aAngle) override
Rotate this object.
A small class to help profiling.
void Stop()
Save the time when this function was called, and set the counter stane to stop.
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
void Move(const VECTOR2I &aVector) override
void Rotate(const EDA_ANGLE &aAngle, const VECTOR2I &aCenter={ 0, 0 }) override
Rotate all vertices by a given angle.
Represent a set of closed polygons.
int AddOutline(const SHAPE_LINE_CHAIN &aOutline)
Adds a new outline to the set and returns its index.
virtual void CacheTriangulation(bool aPartition=true, bool aSimplify=false)
Build a polygon triangulation, needed to draw a polygon on OpenGL and in some other calculations.
const SHAPE_LINE_CHAIN & COutline(int aIndex) const
static std::unique_ptr< CONNECTION_GRAPH > BuildFromFootprintSet(const std::set< FOOTPRINT * > &aFps)
Define a general 2D-vector/point.
Handle a list of polygons defining a copper zone.
bool GetIsRuleArea() const
Accessors to parameters used in Rule Area zones:
void AddPolygon(std::vector< VECTOR2I > &aPolygon)
Add a polygon to the zone outline.
wxString GetPlacementAreaSource() const
void HatchBorder()
Compute the hatch lines depending on the hatch parameters and stores it in the zone's attribute m_bor...
PLACEMENT_SOURCE_T GetPlacementAreaSourceType() const
SHAPE_POLY_SET * Outline()
const wxString & GetZoneName() const
bool GetPlacementAreaEnabled() const
virtual LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
void UnHatchBorder()
Clear the zone's hatch.
void RemoveAllContours(void)
void BuildConvexHull(std::vector< VECTOR2I > &aResult, const std::vector< VECTOR2I > &aPoly)
Calculate the convex hull of a list of points in counter-clockwise order.
SHAPE_LINE_CHAIN RectifyPolygon(const SHAPE_LINE_CHAIN &aPoly)
void CollectBoxCorners(const BOX2I &aBox, std::vector< VECTOR2I > &aCorners)
Add the 4 corners of a BOX2I to a vector.
std::map< FOOTPRINT *, FOOTPRINT * > COMPONENT_MATCHES
Class to handle a set of BOARD_ITEMs.
PGM_BASE & Pgm()
The global program "get" accessor.
Utility functions for working with shapes.
void AccumulateDescription(wxString &aDesc, const wxString &aItem)
Utility to build comma separated lists in messages.
bool m_connectedRoutingOnly
bool m_includeLockedItems
std::vector< wxString > m_mismatchReasons
std::unordered_set< BOARD_ITEM * > m_affectedItems
Filled in by copyRuleAreaContents with items that were affected by the copy operation.
TMATCH::COMPONENT_MATCHES m_matchingComponents
std::unordered_set< BOARD_ITEM * > m_groupableItems
Filled in by copyRuleAreaContents with affected items that can be grouped together.
std::unordered_set< EDA_ITEM * > m_designBlockItems
PLACEMENT_SOURCE_T m_sourceType
wxString m_componentClass
std::set< FOOTPRINT * > m_components
std::atomic< bool > * m_cancelled
std::atomic< int > * m_matchedComponents
std::atomic< int > * m_totalComponents
wxString result
Test unit parsing edge cases and error handling.
thread_pool & GetKiCadThreadPool()
Get a reference to the current thread pool.
BS::priority_thread_pool thread_pool
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs
@ PCB_ZONE_T
class ZONE, a copper pour area
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
@ PCB_PAD_T
class PAD, a pad in a footprint
VECTOR2< int32_t > VECTOR2I