54#include <wx/numformatter.h>
55#include <wx/mstream.h>
73 catch(
const std::exception& e )
75 std::cerr << e.what() << std::endl;
85 { wxS(
"ODB_VERSION_MAJOR" ), wxS(
"8" ) },
86 { wxS(
"ODB_VERSION_MINOR" ), wxS(
"1" ) },
87 { wxS(
"ODB_SOURCE" ), wxS(
"KiCad EDA" ) },
88 { wxS(
"CREATION_DATE" ), wxDateTime::Now().Format(
"%Y%m%d.%H%M%S" ) },
89 { wxS(
"SAVE_DATE" ), wxDateTime::Now().Format(
"%Y%m%d.%H%M%S" ) },
90 { wxS(
"SAVE_APP" ), wxString::Format( wxS(
"KiCad EDA %s" ),
GetBuildVersion() ) } };
127 std::vector<BOARD_STACKUP_ITEM*> layers = stackup.
GetList();
128 std::set<PCB_LAYER_ID> added_layers;
132 for(
int i = 0; i < stackup.
GetCount(); i++ )
136 for(
int sublayer_id = 0; sublayer_id < stackup_item->
GetSublayersCount(); sublayer_id++ )
140 if( ly_name.IsEmpty() )
162 m_plugin->GetLayerNameList().emplace_back(
177 if( added_layers.find( layer ) != added_layers.end() )
181 added_layers.insert( layer );
295 m_plugin->GetLayerNameList().emplace_back( std::make_pair( aLayer, aMLayer.
m_layerName ) );
302 std::map<ODB_DRILL_SPAN, std::vector<BOARD_ITEM*>>& drill_layers =
m_plugin->GetDrillLayerItemsMap();
304 std::map<std::pair<PCB_LAYER_ID, PCB_LAYER_ID>, std::vector<BOARD_ITEM*>>& slot_holes =
307 drill_layers.clear();
310 std::map<ODB_DRILL_SPAN, wxString>& span_names =
m_plugin->GetDrillSpanNameMap();
313 bool has_pth_layer =
false;
314 bool has_npth_layer =
false;
321 has_pth_layer =
true;
324 drill_layers[platedSpan].push_back(
via );
326 std::set<ODB_DRILL_SPAN> addedBackdrillSpans;
331 && ( aDrill.size.x > 0 || aDrill.size.y > 0 ) )
335 if( addedBackdrillSpans.insert( backSpan ).second )
336 drill_layers[backSpan].push_back(
via );
340 addBackdrillSpan(
via->Padstack().SecondaryDrill() );
341 addBackdrillSpan(
via->Padstack().TertiaryDrill() );
347 if( fp->IsFlipped() )
352 for(
PAD*
pad : fp->Pads() )
355 has_pth_layer =
true;
357 has_npth_layer =
true;
359 if(
pad->HasHole() &&
pad->GetDrillSizeX() !=
pad->GetDrillSizeY() )
360 slot_holes[std::make_pair(
F_Cu,
B_Cu )].push_back(
pad );
361 else if(
pad->HasHole() )
364 drill_layers[padSpan].push_back(
pad );
372 drill_layers[npthSpan];
378 drill_layers[platedSpan];
381 int backdrillIndex = 1;
386 auto it = span_names.find( aSpan );
388 if( it != span_names.end() )
393 if( aSpan.m_IsBackdrill )
395 name.Printf( wxT(
"drill%d" ), backdrillIndex++ );
399 wxString platedLabel = aSpan.m_IsNonPlated ? wxT(
"non-plated" ) : wxT(
"plated" );
400 name.Printf( wxT(
"drill_%s_%s-%s" ), platedLabel,
401 m_board->GetLayerName( aSpan.TopLayer() ),
402 m_board->GetLayerName( aSpan.BottomLayer() ) );
406 span_names[aSpan] = legalName;
411 auto InitDrillMatrix =
414 wxString dLayerName = assignName( aSpan );
420 matrix.
m_span.emplace( std::make_pair(
424 if( aSpan.m_IsBackdrill )
428 m_plugin->GetLayerNameList().emplace_back(
432 for(
const auto& entry : drill_layers )
433 InitDrillMatrix( entry.first );
443 if( aCompSide ==
F_Cu )
446 m_plugin->GetLayerNameList().emplace_back(
454 m_plugin->GetLayerNameList().emplace_back(
461 auto& auxilliary_layers =
m_plugin->GetAuxilliaryLayerItemsMap();
469 if(
via->Padstack().IsFilled().value_or(
false ) )
472 via->BottomLayer() )]
476 if(
via->Padstack().IsCapped().value_or(
false ) )
479 via->BottomLayer() )]
485 if(
via->Padstack().IsPlugged( layer ).value_or(
false ) )
492 if(
via->Padstack().IsCovered( layer ).value_or(
false ) )
499 if(
via->Padstack().IsTented( layer ).value_or(
false ) )
510 [&]( std::tuple<ODB_AUX_LAYER_TYPE, PCB_LAYER_ID, PCB_LAYER_ID> aLayerPair )
512 wxString featureName =
"";
513 switch( std::get<0>( aLayerPair ) )
527 dLayerName = wxString::Format(
"%s_%s-%s", featureName,
528 m_board->GetLayerName( std::get<1>( aLayerPair ) ),
529 m_board->GetLayerName( std::get<2>( aLayerPair ) ) );
533 if(
m_board->IsFrontLayer( std::get<1>( aLayerPair ) ) )
534 dLayerName = wxString::Format(
"%s_front", featureName );
535 else if(
m_board->IsBackLayer( std::get<1>( aLayerPair ) ) )
536 dLayerName = wxString::Format(
"%s_back", featureName );
548 matrix.
m_span.emplace( std::make_pair(
551 m_board->GetLayerName( std::get<2>( aLayerPair ) ) ) ) );
558 m_plugin->GetLayerNameList().emplace_back(
563 m_plugin->GetLayerNameList().emplace_back(
564 std::make_pair( std::get<1>( aLayerPair ), matrix.
m_layerName ) );
568 for(
const auto& [layer_pair, vec] : auxilliary_layers )
570 InitAuxMatrix( layer_pair );
578 std::map<wxString, std::vector<size_t>> name_to_indices;
584 name_to_indices[layerName].push_back( i );
588 for(
auto& [layerName, indices] : name_to_indices )
590 if( indices.size() > 1 )
593 for(
size_t count = 0; count < indices.size(); ++count )
595 size_t idx = indices[count];
596 wxString newLayerName = wxString::Format(
"%s_%zu",
m_matrixLayers[idx].m_layerName, count + 1 );
599 if( newLayerName.length() > 64 )
603 size_t suffixLen = wxString::Format(
"_%zu", count + 1 ).length();
605 if( suffixLen < baseName.length() )
607 baseName.Truncate( 64 - suffixLen );
608 newLayerName = wxString::Format(
"%s_%zu", baseName, count + 1 );
639 if( layer.m_addType.has_value() )
648 if( layer.m_diType.has_value() )
661 if( layer.m_span.has_value() )
673 std::map<
int, std::vector<BOARD_ITEM*>>& aMap,
674 const PCB_LAYER_ID& aLayerID,
const wxString& aLayerName ) :
678 m_featuresMgr = std::make_unique<FEATURES_MANAGER>( aBoard, aPlugin, aLayerName );
715 std::vector<BOARD_ITEM*>& vec =
m_layerItems[net->GetNetCode()];
717 std::stable_sort( vec.begin(), vec.end(),
720 if( a->GetParentFootprint() == b->GetParentFootprint() )
721 return a->Type() < b->Type();
723 return a->GetParentFootprint() < b->GetParentFootprint();
743 return m_compBot.value().AddComponent( aFp, aPkg );
752 return m_compTop.value().AddComponent( aFp, aPkg );
759 std::map<ODB_DRILL_SPAN, std::vector<BOARD_ITEM*>>& drill_layers =
762 std::map<std::pair<PCB_LAYER_ID, PCB_LAYER_ID>, std::vector<BOARD_ITEM*>>& slot_holes =
765 std::map<ODB_DRILL_SPAN, wxString>& span_names =
m_plugin->GetDrillSpanNameMap();
774 std::optional<ODB_DRILL_SPAN> matchedSpan;
776 for(
const auto& [span,
name] : span_names )
785 bool useLegacyMatching = !matchedSpan.has_value();
786 bool isBackdrillLayer = matchedSpan.has_value() && matchedSpan->m_IsBackdrill;
787 bool isNonPlatedLayer = matchedSpan.has_value() && matchedSpan->m_IsNonPlated;
788 bool isNPTHLayer = matchedSpan.has_value() && matchedSpan->m_IsNonPlated
789 && !matchedSpan->m_IsBackdrill;
790 bool isPlatedDrillLayer = matchedSpan.has_value() && !matchedSpan->m_IsNonPlated
791 && !matchedSpan->m_IsBackdrill;
793 if( matchedSpan.has_value() && ( isNPTHLayer || isPlatedDrillLayer ) )
798 auto slotIt = slot_holes.find( matchedSpan->Pair() );
800 if( slotIt != slot_holes.end() )
811 if( isNPTHLayer != padIsNPTH )
814 m_tools.value().AddDrillTools( padIsNPTH ? wxT(
"NON_PLATED" ) : wxT(
"PLATED" ),
816 std::min(
pad->GetDrillSizeX(),
817 pad->GetDrillSizeY() ) ) );
823 else if( useLegacyMatching )
825 bool is_npth_layer =
false;
826 wxString plated_name = wxT(
"plated" );
830 is_npth_layer =
true;
831 plated_name = wxT(
"non-plated" );
834 for(
const auto& [layer_pair, vec] : slot_holes )
836 wxString dLayerName = wxString::Format( wxT(
"drill_%s_%s-%s" ), plated_name,
837 m_board->GetLayerName( layer_pair.first ),
838 m_board->GetLayerName( layer_pair.second ) );
857 : wxT(
"NON_PLATED" ),
859 std::min(
pad->GetDrillSizeX(),
pad->GetDrillSizeY() ) ) );
869 if( matchedSpan.has_value() )
871 auto drillIt = drill_layers.find( *matchedSpan );
873 if( drillIt != drill_layers.end() )
881 if( isBackdrillLayer )
885 return aDrill.start == matchedSpan->m_StartLayer
886 && aDrill.end == matchedSpan->m_EndLayer
887 && ( aDrill.size.x > 0 || aDrill.size.y > 0 );
895 if( drillMatches( secondary ) )
897 else if( drillMatches( tertiary ) )
902 int diameter = drill->
size.
x;
904 if( drill->
size.
y > 0 )
906 diameter = ( diameter > 0 ) ? std::min( diameter, drill->
size.
y )
913 m_tools.value().AddDrillTools( wxT(
"NON_PLATED" ),
917 else if( isNonPlatedLayer )
919 m_tools.value().AddDrillTools( wxT(
"NON_PLATED" ),
924 m_tools.value().AddDrillTools( wxT(
"VIA" ),
936 if( isNPTHLayer && !padIsNPTH )
939 if( !isNonPlatedLayer && padIsNPTH )
942 int drillSize =
pad->GetDrillSizeX();
944 if(
pad->GetDrillSizeX() !=
pad->GetDrillSizeY() )
945 drillSize = std::min(
pad->GetDrillSizeX(),
pad->GetDrillSizeY() );
947 wxString typeLabel = ( padIsNPTH || isNonPlatedLayer ) ? wxT(
"NON_PLATED" )
949 wxString type2 = isBackdrillLayer ? wxT(
"BLIND" ) : wxT(
"STANDARD" );
961 bool is_npth_layer =
false;
962 wxString plated_name = wxT(
"plated" );
966 is_npth_layer =
true;
967 plated_name = wxT(
"non-plated" );
970 for(
const auto& [span, vec] : drill_layers )
972 wxString dLayerName = wxString::Format( wxT(
"drill_%s_%s-%s" ), plated_name,
973 m_board->GetLayerName( span.TopLayer() ),
974 m_board->GetLayerName( span.BottomLayer() ) );
980 if( item->Type() ==
PCB_VIA_T && !is_npth_layer )
984 m_tools.value().AddDrillTools( wxT(
"VIA" ),
1001 : wxT(
"NON_PLATED" ),
1016 auto& auxilliary_layers =
m_plugin->GetAuxilliaryLayerItemsMap();
1023 for(
const auto& [layer_pair, vec] : auxilliary_layers )
1025 wxString featureName =
"";
1026 switch( std::get<0>( layer_pair ) )
1036 wxString dLayerName;
1040 dLayerName = wxString::Format(
"%s_%s-%s", featureName,
1041 m_board->GetLayerName( std::get<1>( layer_pair ) ),
1042 m_board->GetLayerName( std::get<2>( layer_pair ) ) );
1046 if(
m_board->IsFrontLayer( std::get<1>( layer_pair ) ) )
1047 dLayerName = wxString::Format(
"%s_front", featureName );
1048 else if(
m_board->IsBackLayer( std::get<1>( layer_pair ) ) )
1049 dLayerName = wxString::Format(
"%s_back", featureName );
1080 layer_entity_ptr->InitEntityData();
1109 m_compTop->Write( fileproxy.GetStream() );
1113 m_compBot->Write( fileproxy.GetStream() );
1122 m_featuresMgr->GenerateFeatureFile( fileproxy.GetStream() );
1130 std::ostream& ost = fileproxy.
GetStream();
1141 if( item->GetBrdLayerId() ==
m_layerID )
1154 wxString dielectricName = wxString::Format(
"DIELECTRIC_%d",
1155 item->GetDielectricLayerId() );
1178 double copperThicknessMM =
static_cast<double>( thickness ) /
pcbIUScale.mmToIU( 1.0 );
1179 double thicknessOz = copperThicknessMM / 0.035;
1187 if( epsilonR > 0.0 )
1197 if( lossTangent > 0.0 )
1205 if( !material.IsEmpty() )
1217 m_tools.value().GenerateFile( fileproxy.GetStream() );
1243 if( fp->IsFlipped() )
1250 wxLogTrace(
traceOdbppIo, wxT(
"Failed to add component data" ) );
1256 std::shared_ptr<FOOTPRINT> fp_pkg =
m_edaData.GetEdaFootprints().at( j );
1262 if( fp->Pads().empty() )
1267 for(
int i = 0; i < (int) fp->Pads().size(); ++i )
1269 PAD*
pad = fp->Pads()[i];
1276 comp.m_index,
comp.m_toeprints.size() );
1278 m_plugin->GetPadSubnetMap().emplace(
pad, &subnet );
1282 auto& toep =
comp.m_toeprints.emplace_back( pin_ref );
1284 toep.m_net_num = eda_net.
m_index;
1285 toep.m_subnet_num = subnet.
m_index;
1291 if(
pad->IsFlipped() )
1292 toep.m_mirror = wxT(
"M" );
1294 toep.m_mirror = wxT(
"N" );
1308 m_plugin->GetViaTraceSubnetMap().emplace( track, subnet );
1321 m_plugin->GetPlaneSubnetMap().emplace( std::piecewise_construct,
1322 std::forward_as_tuple( layer, zone ),
1323 std::forward_as_tuple( &subnet ) );
1360 if( !
m_board->GetBoardPolygonOutlines( board_outline,
true ) )
1361 wxLogTrace(
traceOdbppIo,
"Failed to get board outline" );
1363 if( !
m_profile->AddContour( board_outline, 0 ) )
1364 wxLogTrace(
traceOdbppIo,
"Failed to add polygon to profile" );
1366 m_profile->GenerateProfileFeatures( fileproxy.GetStream() );
1378 {
"X_ORIGIN",
"0" },
1379 {
"Y_ORIGIN",
"0" },
1380 {
"TOP_ACTIVE",
"0" },
1381 {
"BOTTOM_ACTIVE",
"0" },
1382 {
"RIGHT_ACTIVE",
"0" },
1383 {
"LEFT_ACTIVE",
"0" },
1384 {
"AFFECTING_BOM",
"" },
1385 {
"AFFECTING_BOM_CHANGED",
"0" },
1390 for(
const auto& [key, value] :
m_stephdr )
1405 layerEntity->GenerateFiles( writer );
1414 m_edaData.Write( fileproxy.GetStream() );
1422 m_netlist.Write( fileproxy.GetStream() );
1434 catch(
const std::exception& e )
1436 std::cerr << e.what() << std::endl;
1448 std::map<PCB_LAYER_ID, std::map<int, std::vector<BOARD_ITEM*>>>& elements =
m_plugin->GetLayerElementsMap();
1450 std::for_each(
m_board->Tracks().begin(),
m_board->Tracks().end(),
1451 [&layers, &elements](
PCB_TRACK* aTrack )
1453 if( aTrack->Type() == PCB_VIA_T )
1455 PCB_VIA* via = static_cast<PCB_VIA*>( aTrack );
1457 for( PCB_LAYER_ID layer : layers )
1459 if( via->FlashLayer( layer ) )
1460 elements[layer][via->GetNetCode()].push_back( via );
1465 elements[aTrack->GetLayer()][aTrack->GetNetCode()].push_back( aTrack );
1469 std::for_each( m_board->Zones().begin(), m_board->Zones().end(),
1470 [&elements](
ZONE* zone )
1472 for( PCB_LAYER_ID layer : zone->GetLayerSet() )
1473 elements[layer][zone->GetNetCode()].push_back( zone );
1476 for(
BOARD_ITEM* item : m_board->Drawings() )
1481 elements[layer][conn_it->GetNetCode()].push_back( conn_it );
1486 elements[layer][0].push_back( item );
1490 for(
FOOTPRINT* fp : m_board->Footprints() )
1492 for(
PCB_FIELD* field : fp->GetFields() )
1493 elements[field->GetLayer()][0].push_back( field );
1495 for(
BOARD_ITEM* item : fp->GraphicalItems() )
1498 elements[layer][0].push_back( item );
1501 for(
PAD*
pad : fp->Pads() )
1511 if( onSolderMaskLayer )
1514 if( onSolderPasteLayer )
1519 if( onCopperLayer && !
pad->IsOnCopperLayer() )
1522 if( onCopperLayer && !
pad->FlashLayer( layer ) )
1526 && ( padPlotsSize.
x <= 0 || padPlotsSize.
y <= 0 ) )
1531 elements[layer][
pad->GetNetCode()].push_back(
pad );
1536 for(
const auto& [layerID, layerName] : m_plugin->GetLayerNameList() )
1538 std::shared_ptr<ODB_LAYER_ENTITY> layer_entity_ptr = std::make_shared<ODB_LAYER_ENTITY>(
1539 m_board, m_plugin, elements[layerID], layerID, layerName );
1541 m_layerEntityMap.emplace( layerName, layer_entity_ptr );
constexpr EDA_IU_SCALE pcbIUScale
@ BS_ITEM_TYPE_DIELECTRIC
wxString GetBuildVersion()
Get the full KiCad version string.
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
Container for design settings for a BOARD object.
BOARD_STACKUP & GetStackupDescriptor()
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Manage one layer needed to make a physical board.
wxString GetTypeName() const
int GetSublayersCount() const
double GetEpsilonR(int aDielectricSubLayer=0) const
bool HasEpsilonRValue() const
wxString GetLayerName() const
bool HasLossTangentValue() const
PCB_LAYER_ID GetBrdLayerId() const
int GetThickness(int aDielectricSubLayer=0) const
BOARD_STACKUP_ITEM_TYPE GetType() const
wxString GetMaterial(int aDielectricSubLayer=0) const
int GetDielectricLayerId() const
double GetLossTangent(int aDielectricSubLayer=0) const
Manage layers needed to make a physical board.
const std::vector< BOARD_STACKUP_ITEM * > & GetList() const
bool SynchronizeWithBoard(BOARD_DESIGN_SETTINGS *aSettings)
Synchronize the BOARD_STACKUP_ITEM* list with the board.
Information pertinent to a Pcbnew printed circuit board.
T & AddSubnet(Args &&... args)
const std::shared_ptr< PIN > GetEdaPkgPin(size_t aPadIndex) const
KICAD_T Type() const
Returns the type of object.
LSET is a set of PCB_LAYER_IDs.
static const LSET & AllCuMask()
return AllCuMask( MAX_CU_LAYERS );
Handle the data for a net.
Container for NETINFO_ITEM elements, which are the nets.
virtual std::string GetEntityName()=0
virtual bool CreateDirectoryTree(ODB_TREE_WRITER &writer)
ODB_ENTITY_BASE(BOARD *aBoard, PCB_IO_ODBPP *aPlugin)
std::ostream & GetStream()
void GenFeatures(ODB_TREE_WRITER &writer)
void GenComponents(ODB_TREE_WRITER &writer)
wxString m_matrixLayerName
void InitAuxilliaryData()
std::optional< COMPONENTS_MANAGER > m_compTop
virtual void GenerateFiles(ODB_TREE_WRITER &writer) override
std::optional< COMPONENTS_MANAGER > m_compBot
std::optional< ODB_DRILL_TOOLS > m_tools
void GenTools(ODB_TREE_WRITER &writer)
std::map< int, std::vector< BOARD_ITEM * > > m_layerItems
ODB_LAYER_ENTITY(BOARD *aBoard, PCB_IO_ODBPP *aPlugin, std::map< int, std::vector< BOARD_ITEM * > > &aMap, const PCB_LAYER_ID &aLayerID, const wxString &aLayerName)
ODB_COMPONENT & InitComponentData(const FOOTPRINT *aFp, const EDA_DATA::PACKAGE &aPkg)
virtual void InitEntityData() override
void GenAttrList(ODB_TREE_WRITER &writer)
std::unique_ptr< FEATURES_MANAGER > m_featuresMgr
void AddStep(const wxString &aStepName)
void InitMatrixLayerData()
std::vector< MATRIX_LAYER > m_matrixLayers
void AddMatrixLayerField(MATRIX_LAYER &aMLayer, PCB_LAYER_ID aLayer)
virtual void GenerateFiles(ODB_TREE_WRITER &writer) override
std::map< wxString, unsigned int > m_matrixSteps
void AddAuxilliaryMatrixLayer()
void EnsureUniqueLayerNames()
void AddDrillMatrixLayer()
virtual void InitEntityData() override
void AddCOMPMatrixLayer(PCB_LAYER_ID aCompSide)
std::vector< std::pair< wxString, wxString > > m_info
virtual void GenerateFiles(ODB_TREE_WRITER &writer) override
virtual std::string GetEntityName() override
std::unordered_map< wxString, wxString > m_stephdr
void GenerateProfileFile(ODB_TREE_WRITER &writer)
void GenerateStepHeaderFile(ODB_TREE_WRITER &writer)
void GenerateEdaFiles(ODB_TREE_WRITER &writer)
virtual void InitEntityData() override
void GenerateLayerFiles(ODB_TREE_WRITER &writer)
std::map< wxString, std::shared_ptr< ODB_LAYER_ENTITY > > m_layerEntityMap
std::unique_ptr< FEATURES_MANAGER > m_profile
virtual bool CreateDirectoryTree(ODB_TREE_WRITER &writer) override
void GenerateNetlistsFiles(ODB_TREE_WRITER &writer)
virtual void GenerateFiles(ODB_TREE_WRITER &writer) override
void WriteEquationLine(const std::string &var, int value)
ARRAY_PROXY MakeArrayProxy(const std::string &aStr)
void write_line_enum(const std::string &var, const T &value)
const wxString GetRootPath() const
void CreateEntityDirectory(const wxString &aPareDir, const wxString &aSubDir=wxEmptyString)
ODB_FILE_WRITER CreateFileProxy(const wxString &aFileName)
void SetCurrentPath(const wxString &aDir)
const wxString GetCurrentPath() const
static constexpr PCB_LAYER_ID ALL_LAYERS
! Temporary layer identifier to identify code that is not padstack-aware
static std::string m_unitsStr
Represent a set of closed polygons.
Handle a list of polygons defining a copper zone.
static constexpr EDA_ANGLE ANGLE_360
const wxChar *const traceOdbppIo
size_t hash_fp_item(const EDA_ITEM *aItem, int aFlags)
Calculate hash of an EDA_ITEM.
Hashing functions for EDA_ITEMs.
@ REL_COORD
Use coordinates relative to the parent object.
bool IsCopperLayer(int aLayerId)
Test whether a layer is a copper layer.
PCB_LAYER_ID
A quick note on layer IDs:
bool IsValidLayer(int aLayerId)
Test whether a given integer is a valid layer index, i.e.
std::pair< wxString, wxString > AddXY(const VECTOR2I &aVec)
wxString GenLegalEntityName(const wxString &aStr)
wxString Double2String(double aVal)
wxString SymDouble2String(double aVal)
@ NPTH
like PAD_PTH, but not plated mechanical use only, no connection allowed
@ PTH
Plated through hole pad.
std::optional< ODB_SUBTYPE > m_addType
std::optional< ODB_DIELECTRIC_TYPE > m_diType
std::optional< std::pair< wxString, wxString > > m_span
! The properties of a padstack drill. Drill position is always the pad position (origin).
VECTOR2I size
Drill diameter (x == y) or slot dimensions (x != y)
wxLogTrace helper definitions.
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
@ PCB_PAD_T
class PAD, a pad in a footprint
VECTOR2< int32_t > VECTOR2I