57#include <wx/richmsgdlg.h>
61#define MULTICHANNEL_EXTRA_DEBUG
68 std::vector<wxString> refs;
75 refs.push_back( fp->GetReferenceAsString() );
78 std::sort( refs.begin(), refs.end(),
79 [](
const wxString& aLhs,
const wxString& aRhs )
81 return aLhs.CmpNoCase( aRhs ) < 0;
89 size_t componentsOnLine = 0;
91 for(
const wxString& ref : refs )
93 if( componentsOnLine == 10 )
100 componentsOnLine = 0;
107 if( !line.IsEmpty() )
120 const std::vector<wxString>& aReasons )
122 if( !aParent || aReasons.empty() )
127 for(
size_t idx = 0; idx < aReasons.size(); ++idx )
130 reasonText += wxT(
"\n" );
132 reasonText += aReasons[idx];
135 wxRichMessageDialog dlg( aParent, aSummary,
_(
"Topology mismatch" ), wxICON_ERROR | wxOK );
136 dlg.ShowDetailedText( reasonText );
152 const std::vector<wxString>& aReasons )
const
154 wxWindow* parent = aParent ? aParent :
frame();
167 std::set<FOOTPRINT*>& aComponents )
169 if( !aRuleArea || !aRuleArea->
m_zone )
180 aComponents.insert(
static_cast<FOOTPRINT*
>( item ) );
183 return (
int) aComponents.size();
192 [&](
const wxString& aMessage,
int aOffset )
222 auto ok = compiler.
Compile( ruleText, &ucode, &preflightCtx );
236 fp->GetSheetname() );
238 aComponents.insert( fp );
248 if( !aRuleArea || !aRuleArea->
m_zone )
264 if( !boardItem->IsConnected() || boardItem->Type() ==
PCB_ZONE_T )
265 aItems.insert( boardItem );
269 return aItems.size() > 0;
277 [&](
const wxString& aMessage,
int aOffset )
288 wxString ruleText = wxString::Format( wxT(
"A.enclosedByArea('%s')" ),
291 if( !compiler.
Compile( ruleText, &ucode, &preflightCtx ) )
298 auto val = ucode.
Run( &ctx );
300 if( val->AsDouble() != 0.0 )
301 aItems.insert( aItem );
306 if( zone == aRuleArea->
m_zone )
314 if( !drawing->IsConnected() )
315 testAndAdd( drawing );
324 std::set<FOOTPRINT*> rv;
326 if( aSheetName.EndsWith( wxT(
"/" ) ) )
327 aSheetName.RemoveLast();
329 wxString childPrefix = aSheetName + wxT(
"/" );
333 auto sn = fp->GetSheetname();
335 if( sn.EndsWith( wxT(
"/" ) ) )
338 if( sn == aSheetName || sn.StartsWith( childPrefix ) )
349 std::set<FOOTPRINT*> rv;
353 if( fp->GetComponentClass()->ContainsClassName( aComponentClassName ) )
363 std::set<FOOTPRINT*> rv;
367 if(
group->GetName() == aGroupName )
372 rv.insert(
static_cast<FOOTPRINT*
>( item ) );
383 std::set<BOARD_ITEM*> rv;
387 if(
group->GetName() != aGroupName )
392 if( item->IsBOARD_ITEM() )
393 rv.insert(
static_cast<BOARD_ITEM*
>( item ) );
403 std::vector<VECTOR2I> bbCorners;
404 bbCorners.reserve( aFootprints.size() * 4 );
408 const BOX2I bb = fp->GetBoundingBox(
false ).GetInflated( aMargin );
412 std::vector<VECTOR2I> hullVertices;
423 std::vector<VECTOR2I> bbCorners;
424 bbCorners.reserve( aItems.size() * 4 );
428 BOX2I bb = item->GetBoundingBox();
431 bb =
static_cast<FOOTPRINT*
>( item )->GetBoundingBox(
false );
436 std::vector<VECTOR2I> hullVertices;
448 using PathAndName = std::pair<wxString, wxString>;
449 std::set<PathAndName> uniqueSheets;
450 std::set<wxString> uniqueComponentClasses;
451 std::set<wxString> uniqueGroups;
457 uniqueSheets.insert( PathAndName( fp->GetSheetname(), fp->GetSheetfile() ) );
462 uniqueComponentClasses.insert( singleClass->GetName() );
464 if( fp->GetParentGroup() && !fp->GetParentGroup()->GetName().IsEmpty() )
465 uniqueGroups.insert( fp->GetParentGroup()->GetName() );
468 for(
const PathAndName& sheet : uniqueSheets )
477 m_areas.m_areas.push_back( ent );
482 (
int)
m_areas.m_areas.size() );
485 for(
const wxString& compClass : uniqueComponentClasses )
493 m_areas.m_areas.push_back( ent );
497 static_cast<int>(
m_areas.m_areas.size() ) );
500 for(
const wxString& groupName : uniqueGroups )
508 m_areas.m_areas.push_back( ent );
512 static_cast<int>(
m_areas.m_areas.size() ) );
523 if( !zone->GetIsRuleArea() )
526 if( !zone->GetPlacementAreaEnabled() )
534 area.
m_center = zone->Outline()->COutline( 0 ).Centre();
538 m_areas.m_areas.push_back( area );
568 std::vector<ZONE*> refRAs;
570 auto isSelectedItemAnRA =
576 ZONE* zone =
static_cast<ZONE*
>( aItem );
589 if(
ZONE* zone = isSelectedItemAnRA( item ) )
591 refRAs.push_back( zone );
599 if(
ZONE* grpZone = isSelectedItemAnRA( grpItem ) )
600 refRAs.push_back( grpZone );
605 if( refRAs.size() != 1 )
610 _(
"Select a reference Rule Area to copy from..." ),
613 return isSelectedItemAnRA( aItem ) !=
nullptr;
627 if(
m_areas.m_areas.size() <= 1 )
629 frame()->ShowInfoBarError(
_(
"No Rule Areas to repeat layout to have been found." ),
true );
649 if( ra.
m_zone == aRefZone )
661 std::vector<RULE_AREA*> targets;
668 targets.push_back( &ra );
672 if( targets.empty() )
675 int total =
static_cast<int>( targets.size() );
676 std::atomic<int> completed( 0 );
677 std::atomic<bool> cancelled(
false );
678 std::atomic<int> matchedComponents( 0 );
679 std::atomic<int> totalComponents( 0 );
694 auto future =
tp.submit_task(
695 [
this, refRA, &targets, &completed, &cancelled, &matchedComponents, &isoParams]()
699 if( cancelled.load( std::memory_order_relaxed ) )
702 matchedComponents.store( 0, std::memory_order_relaxed );
706 completed.fetch_add( 1, std::memory_order_relaxed );
712 std::unique_ptr<WX_PROGRESS_REPORTER> reporter;
713 auto startTime = std::chrono::steady_clock::now();
714 double highWaterMark = 0.0;
716 while( future.wait_for( std::chrono::milliseconds( 100 ) ) != std::future_status::ready )
720 auto elapsed = std::chrono::steady_clock::now() - startTime;
722 if( elapsed > std::chrono::seconds( 1 ) )
724 reporter = std::make_unique<WX_PROGRESS_REPORTER>(
730 wxLog::FlushActive();
736 int done = completed.load( std::memory_order_relaxed );
737 int matched = matchedComponents.load( std::memory_order_relaxed );
738 int compTotal = totalComponents.load( std::memory_order_relaxed );
740 double fraction = ( compTotal > 0 )
741 ?
static_cast<double>( matched ) / compTotal
743 double progress =
static_cast<double>( done + fraction ) / total;
745 if( progress > highWaterMark )
746 highWaterMark = progress;
748 reporter->SetCurrentProgress( highWaterMark );
749 reporter->Report( wxString::Format(
750 _(
"Resolving topology %d of %d (%d/%d components)" ),
751 done + 1, total, matched, compTotal ) );
753 if( !reporter->KeepRefreshing() )
754 cancelled.store(
true, std::memory_order_relaxed );
763 if( cancelled.load( std::memory_order_relaxed ) )
776 wxCHECK_MSG( aRefArea.
m_zone, -1, wxT(
"Reference Rule Area has no zone." ) );
777 wxCHECK_MSG( aTargetArea.
m_zone, -1, wxT(
"Target Rule Area has no zone." ) );
785 wxString summary = wxString::Format(
_(
"Rule Area topologies do not match: %s" ), compat.
m_errorMsg );
805 auto errMsg = wxString::Format(
_(
"Copy Rule Area contents failed between rule areas '%s' and '%s'." ),
811 frame()->ShowInfoBarError( errMsg,
true );
823 frame()->ShowInfoBarError(
_(
"Target group does not have a group." ),
true );
835 group->AddItem( item );
839 commit.
Push(
_(
"Repeat layout" ) );
851 for(
auto& [targetArea, compatData] :
m_areas.m_compatMap )
853 if( !compatData.m_doCopy )
856 targetArea->m_ruleName );
860 if( !compatData.m_isOk )
865 auto errMsg = wxString::Format(
_(
"Copy Rule Area contents failed between rule areas '%s' and '%s'." ),
866 m_areas.m_refRA->m_zone->GetZoneName(),
867 targetArea->m_zone->GetZoneName() );
872 frame()->ShowInfoBarError( errMsg,
true );
881 if(
m_areas.m_options.m_groupItems )
883 for(
const auto& [targetArea, compatData] :
m_areas.m_compatMap )
885 if( compatData.m_groupableItems.size() < 2 )
894 for(
BOARD_ITEM* item : compatData.m_groupableItems )
897 group->AddItem( item );
902 commit.
Push(
_(
"Repeat layout" ) );
905 frame()->ShowInfoBarMsg( wxString::Format(
_(
"Copied to %d Rule Areas." ), totalCopied ),
true );
925 if( ( c >=
'a' && c <=
'z' ) || ( c >=
'A' && c <=
'Z' ) || ( c ==
'_' ) )
936 std::shared_ptr<CONNECTIVITY_DATA> aConnectivity,
939 if( !aRuleArea || !aRuleArea->
m_zone )
967 if( bci->IsConnected() )
968 aOutput.insert( bci );
972 return (
int) aOutput.size();
980 [&](
const wxString& aMessage,
int aOffset )
991 wxString ruleText = wxString::Format( wxT(
"A.enclosedByArea('%s')" ),
997 if( aOutput.contains( aItem ) )
1005 aOutput.insert( aItem );
1010 if( compiler.
Compile( ruleText, &ucode, &preflightCtx ) )
1013 testAndAdd( track );
1017 if( drawing->IsConnected() )
1043 targetAnchorFp = targetFP;
1051 if( targetAnchorFp )
1058 disp = newpos - oldpos;
1071 newTargetOutline.
Move( disp );
1076 std::map<EDA_GROUP*, EDA_GROUP*> groupMap;
1082 auto fixupParentGroup =
1085 if( !preserveGroups )
1090 if( !groupMap.contains( parentGroup ) )
1093 static_cast<PCB_GROUP*
>( parentGroup->AsEdaItem() )->Duplicate(
false ) );
1095 groupMap[parentGroup] = newGroup;
1096 aCommit->
Add( newGroup );
1099 groupMap[parentGroup]->AddItem( destItem );
1106 bool targetZoneOnBoard =
false;
1108 if( aTargetArea->
m_zone )
1112 if( z == aTargetArea->
m_zone )
1114 targetZoneOnBoard =
true;
1120 if( targetZoneOnBoard )
1129 std::set<BOARD_CONNECTED_ITEM*> refRouting;
1130 std::set<BOARD_CONNECTED_ITEM*> targetRouting;
1136 std::set<int> targc;
1140 for(
PAD*
pad : refFP->Pads() )
1141 refc.insert(
pad->GetNetCode() );
1143 for(
PAD*
pad : targetFP->Pads() )
1144 targc.insert(
pad->GetNetCode() );
1196 fixupParentGroup( item,
copied );
1207 std::set<BOARD_ITEM*> sourceItems;
1208 std::set<BOARD_ITEM*> targetItems;
1227 ZONE* zone =
static_cast<ZONE*
>( item );
1258 ZONE* zone =
static_cast<ZONE*
>( item );
1265 ZONE* targetZone =
static_cast<ZONE*
>( item->Duplicate(
false ) );
1283 fixupParentGroup( item,
copied );
1301 refFP->GetReference() );
1307 refFP->GetReference() );
1314 && !refFP->GetEffectiveShape( refFP->GetLayer() )->Collide( &refPoly, 0 ) )
1322 aCommit->
Modify( targetFP );
1324 targetFP->SetLayerAndFlip( refFP->GetLayer() );
1325 targetFP->SetOrientation( refFP->GetOrientation() );
1326 targetFP->SetPosition( refFP->GetPosition() );
1327 targetFP->Rotate(
VECTOR2( 0, 0 ), rot );
1328 targetFP->Move( disp );
1330 for(
PCB_FIELD* refField : refFP->GetFields() )
1332 wxCHECK2( refField,
continue );
1334 PCB_FIELD* targetField = targetFP->GetField( refField->GetName() );
1339 targetField->
SetLayerSet( refField->GetLayerSet() );
1340 targetField->
SetVisible( refField->IsVisible() );
1342 targetField->
SetPosition( refField->GetPosition() );
1344 targetField->
Move( disp );
1349 for(
BOARD_ITEM* refItem : refFP->GraphicalItems() )
1356 for(
BOARD_ITEM* targetItem : targetFP->GraphicalItems() )
1371 targetText->
Move( disp );
1379 targetFP->Models() = refFP->Models();
1402 const std::vector<BOARD_CONNECTED_ITEM*> refConnectedPads = connectivity->
GetNetItems( aRef->
GetNetCode(),
1410 const PAD* refPad =
static_cast<const PAD*
>( refConItem );
1413 if( aComponentMatches.contains( sourceFootprint ) )
1415 const FOOTPRINT* targetFootprint = aComponentMatches[sourceFootprint];
1416 std::vector<const PAD*> targetFpPads = targetFootprint->
GetPads( refPad->
GetNumber() );
1418 if( !targetFpPads.empty() )
1420 int targetNetCode = targetFpPads[0]->GetNet()->GetNetCode();
1448 std::vector<TMATCH::TOPOLOGY_MISMATCH_REASON> mismatchReasons;
1452 mismatchReasons, aParams );
1458 aMatches.
m_isOk = status;
1469 for(
const auto& reason : mismatchReasons )
1471 if( reason.m_reason.IsEmpty() )
1474 if( !reason.m_reference.IsEmpty() && !reason.m_candidate.IsEmpty() )
1479 reason.m_reason ) );
1481 else if( !reason.m_reference.IsEmpty() )
1485 reason.m_reason ) );
1498 wxString::Format(
_(
"Reference area total components: %d" ), (
int) aRefArea->
m_components.size() ) );
1499 aMatches.
m_mismatchReasons.push_back( wxString::Format(
_(
"Reference area components:\n%s" ),
1502 wxString::Format(
_(
"Target area total components: %d" ), (
int) aTargetArea->
m_components.size() ) );
1503 aMatches.
m_mismatchReasons.push_back( wxString::Format(
_(
"Target area components:\n%s" ),
1514 const std::unordered_set<BOARD_ITEM*>& aItemsToRemove )
1520 std::vector<EDA_ITEM*> pruneList;
1526 if( refItem->m_Uuid == testItem->m_Uuid )
1527 pruneList.push_back( refItem );
1531 if( !pruneList.empty() )
1536 group->RemoveItem( item );
1538 if(
group->GetItems().size() < 2 )
1553 if(
m_areas.m_areas.size() <= 1 )
1555 frame()->ShowInfoBarError(
_(
"Cannot auto-generate any placement areas because the "
1556 "schematic has only one or no hierarchical sheets, "
1557 "groups, or component classes." ),
1565 if( ret != wxID_OK )
1571 if( !zone->GetIsRuleArea() )
1574 if( !zone->GetPlacementAreaEnabled() )
1577 std::set<FOOTPRINT*> components;
1580 zoneRA.
m_sourceType = zone->GetPlacementAreaSourceType();
1583 if( components.empty() )
1593 wxT(
"Placement rule area for sheet '%s' already exists as '%s'\n" ),
1599 wxT(
"Placement rule area for component class '%s' already exists as '%s'\n" ),
1605 wxT(
"Placement rule area for group '%s' already exists as '%s'\n" ),
1639 if( groupItems.empty() )
1642 wxT(
"Skipping placement rule area generation for source group '%s': group has no board items." ),
1654 std::unique_ptr<ZONE> newZone(
new ZONE(
board() ) );
1657 newZone->SetZoneName( wxString::Format( wxT(
"auto-placement-area-%s" ), ra.
m_sheetPath ) );
1659 newZone->SetZoneName( wxString::Format( wxT(
"auto-placement-area-%s" ), ra.
m_componentClass ) );
1661 newZone->SetZoneName( wxString::Format( wxT(
"auto-placement-area-%s" ), ra.
m_groupName ) );
1664 newZone->GetZoneName(),
1667 newZone->SetIsRuleArea(
true );
1669 newZone->SetPlacementAreaEnabled(
true );
1670 newZone->SetDoNotAllowZoneFills(
false );
1671 newZone->SetDoNotAllowVias(
false );
1672 newZone->SetDoNotAllowTracks(
false );
1673 newZone->SetDoNotAllowPads(
false );
1674 newZone->SetDoNotAllowFootprints(
false );
1679 newZone->SetPlacementAreaSource( ra.
m_sheetPath );
1689 newZone->SetPlacementAreaSource( ra.
m_groupName );
1692 newZone->AddPolygon( raOutline );
1700 ra.
m_zone = newZone.release();
1707 if(
m_areas.m_options.m_groupItems )
1721 std::unordered_set<BOARD_ITEM*> toPrune;
1726 toPrune.insert( ra.
m_zone );
1740 group->AddItem( fp );
1745 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, const std::set< FOOTPRINT * > &aOtherChannelFps={})
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