KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_io_ipc2581.h
Go to the documentation of this file.
1
19
20#ifndef PCB_IO_IPC2581_H_
21#define PCB_IO_IPC2581_H_
22
23#include <pcb_io/pcb_io.h>
25#include <pcb_io/pcb_io_mgr.h>
27
28#include "ipc2581_types.h"
29
30#include <eda_shape.h>
31#include <layer_ids.h> // PCB_LAYER_ID
32#include <font/font.h>
34#include <stroke_params.h>
35
36#include <wx/xml/xml.h>
37#include <array>
38#include <memory>
39#include <map>
40#include <set>
41
42class BOARD;
43class BOARD_ITEM;
45class EDA_TEXT;
46class FOOTPRINT;
48class NETINFO_ITEM;
49class PAD;
50class PADSTACK;
51class PCB_SHAPE;
52class PCB_VIA;
53class PCB_TEXT;
55class SHAPE_POLY_SET;
56class SHAPE_SEGMENT;
57
58class PCB_IO_IPC2581 : public PCB_IO
59{
60public:
61 PCB_IO_IPC2581() : PCB_IO( wxS( "IPC-2581" ) )
62 {
63 m_total_bytes = 0;
64 m_scale = 1.0;
65 m_sigfig = 3;
68 m_functionModeNode = nullptr;
69 m_anonymizeNets = false;
70 m_omitRefDes = false;
71 m_step_node = nullptr;
73 m_haveCadData = true;
74 m_enterpriseNode = nullptr;
75 m_board = nullptr;
76 m_props = nullptr;
77 m_shape_user_node = nullptr;
78 m_shape_std_node = nullptr;
79 m_line_node = nullptr;
80 m_last_padstack = nullptr;
82 m_cad_header_node = nullptr;
83 m_progress_reporter = nullptr;
84 m_xml_doc = nullptr;
85 m_xml_root = nullptr;
86 m_contentNode = nullptr;
87 m_lastAppendedNode = nullptr;
88 }
89
90 ~PCB_IO_IPC2581() override;
91
94 static constexpr int EXPORT_PHASES = 12;
95
96 void SaveBoard( const wxString& aFileName, BOARD& aBoard,
97 const std::map<std::string, UTF8>* aProperties = nullptr ) override;
98
100 {
101 return IO_BASE::IO_FILE_DESC( wxEmptyString, {}, {}, false, false, true );
102 }
103
105 {
106 // No library description for this plugin
107 return IO_BASE::IO_FILE_DESC( wxEmptyString, {} );
108 }
109
110 std::vector<FOOTPRINT*> GetImportedCachedLibraryFootprints() override;
111
112 long long GetLibraryTimestamp( const wxString& aLibraryPath ) const override
113 {
114 return 0;
115 }
116
117 // Reading currently disabled
118 bool CanReadBoard( const wxString& aFileName ) const override
119 {
120 return false;
121 }
122
123 // Reading currently disabled
124 bool CanReadFootprint( const wxString& aFileName ) const override
125 {
126 return false;
127 }
128
129 // Reading currently disabled
130 bool CanReadLibrary( const wxString& aFileName ) const override
131 {
132 return false;
133 }
134
135
136private:
137
142
146 wxXmlNode* generateXmlHeader();
147
153 wxXmlNode* generateContentSection();
154
159 wxXmlNode* generateLogisticSection();
160
166 wxXmlNode* generateHistorySection();
167
172 wxXmlNode* generateBOMSection( wxXmlNode* aEcadNode );
173
178 wxXmlNode* generateEcadSection();
179
184 wxXmlNode* generateAvlSection();
185
186 void generateCadLayers( wxXmlNode* aCadLayerNode );
187
188 void generateCadSpecs( wxXmlNode* aCadLayerNode );
189
190 void generateStackup( wxXmlNode* aCadLayerNode );
191
192 void generateDrillLayers( wxXmlNode* aCadLayerNode );
193
194 void generateAuxilliaryLayers( wxXmlNode* aCadLayerNode );
195
196 void generateStepSection( wxXmlNode* aCadNode );
197
198 void generateProfile( wxXmlNode* aStepNode );
199
200 void generateLogicalNets( wxXmlNode* aStepNode );
201
202 void generatePhyNetGroup( wxXmlNode* aStepNode );
203
204 void generateLayerFeatures( wxXmlNode* aStepNode );
205
206 void generateLayerSetDrill( wxXmlNode* aStepNode );
207
208 void generateLayerSetNet( wxXmlNode* aLayerNode, PCB_LAYER_ID aLayer, std::vector<BOARD_ITEM*>& aItems );
209
210 void generateLayerSetAuxilliary( wxXmlNode* aStepNode );
211
212 wxXmlNode* generateContentStackup( wxXmlNode* aContentNode );
213
214 void generateContentLayerRefs( wxXmlNode* aCadDataNode );
215
217 void dropContentStepRefs();
218
221
222 bool included( IPC2581::SECTION aSection ) const
223 {
224 return m_resolved.m_included.Contains( aSection );
225 }
226
227 bool suppressed( IPC2581::SUPPRESS aWhat ) const
228 {
229 return m_resolved.m_suppressions.Contains( aWhat );
230 }
231
237 void reportPhase( const wxString& aMessage );
238
240 void tickProgress( const wxString& aMessage = wxEmptyString );
241
243 bool layerIncluded( PCB_LAYER_ID aLayer ) const;
244
246 bool stackupRowIncluded( bool aDielectric, PCB_LAYER_ID aLayer ) const;
247
253 wxString netName( const wxString& aNetname, const wxString& aSuffix = wxEmptyString );
254
256 bool omitRefDes() const
257 {
259 }
260
266 bool refDesEmitted() const
267 {
269 }
270
273 {
275 }
276
277 void generateComponents( wxXmlNode* aStepNode );
278
279 void addCadHeader( wxXmlNode* aEcadNode );
280
281 wxXmlNode* addPackage( wxXmlNode* aStepNode, FOOTPRINT* aFootprint );
282
283 void addPad( wxXmlNode* aContentNode, const PAD* aPad, PCB_LAYER_ID aLayer );
284
285 void addVia( wxXmlNode* aContentNode, const PCB_VIA* aVia, PCB_LAYER_ID aLayer );
286
287 void addPadStack( wxXmlNode* aContentNode, const PAD* aPad );
288
289 void addPadStack( wxXmlNode* aContentNode, const PCB_VIA* aVia );
290
291 void ensureBackdrillSpecs( const wxString& aPadstackName, const PADSTACK& aPadstack );
292
293 void addBackdrillSpecRefs( wxXmlNode* aHoleNode, const wxString& aPadstackName );
294
296
297 void addLocationNode( wxXmlNode* aContentNode, double aX, double aY );
298
299 void addLocationNode( wxXmlNode* aContentNode, const PAD& aPad, bool aRelative,
300 PCB_LAYER_ID aLayer );
301
302 void addLocationNode( wxXmlNode* aContentNode, const PCB_SHAPE& aShape );
303
304 void addShape( wxXmlNode* aContentNode, const PCB_SHAPE& aShape, bool aInline = false );
305
306 void addShape( wxXmlNode* aContentNode, const PAD& aPad, PCB_LAYER_ID aLayer );
307
308 void addSlotCavity( wxXmlNode* aContentNode, const PAD& aPad, const wxString& aName );
309
310 void addKnockoutText( wxXmlNode* aContentNode, PCB_TEXT* aText );
311
312 void addText( wxXmlNode* aContentNode, EDA_TEXT* aShape, const KIFONT::METRICS& aFontMetrics );
313
314 void addLineDesc( wxXmlNode* aNode, int aWidth, LINE_STYLE aDashType, bool aForce = false );
315
316 void addFillDesc( wxXmlNode* aNode, FILL_T aFillType, bool aForce = false );
317
318 bool addPolygonNode( wxXmlNode* aParentNode, const SHAPE_LINE_CHAIN& aPolygon,
319 FILL_T aFillType = FILL_T::FILLED_SHAPE, int aWidth = 0,
320 LINE_STYLE aDashType = LINE_STYLE::SOLID );
321
322 bool addPolygonCutouts( wxXmlNode* aParentNode, const SHAPE_POLY_SET::POLYGON& aPolygon );
323
324 bool addOutlineNode( wxXmlNode* aParentNode, const SHAPE_POLY_SET& aPolySet, int aWidth = 0,
325 LINE_STYLE aDashType = LINE_STYLE::SOLID );
326
327 bool addContourNode( wxXmlNode* aParentNode, const SHAPE_POLY_SET& aPolySet, int aOutline = 0,
328 FILL_T aFillType = FILL_T::FILLED_SHAPE, int aWidth = 0,
329 LINE_STYLE aDashType = LINE_STYLE::SOLID );
330
331 size_t lineHash( int aWidth, LINE_STYLE aDashType );
332
333 size_t shapeHash( const PCB_SHAPE& aShape );
334
335 wxString sanitizeId( const wxString& aStr ) const;
336 wxString genString( const wxString& aStr, const char* aPrefix = nullptr ) const;
337 wxString genLayerString( PCB_LAYER_ID aLayer, const char* aPrefix ) const;
338 wxString genLayersString( PCB_LAYER_ID aTop, PCB_LAYER_ID aBottom, const char* aPrefix ) const;
339
340 wxString stackupLayerName( const BOARD_STACKUP_ITEM* aItem, int aSublayerId, const char* aPrefix ) const;
341
342 wxString floatVal( double aVal, int aSigFig = -1 ) const;
343
344 wxString pinName( const PAD* aPad ) const;
345
346 wxString componentName( FOOTPRINT* aFootprint );
347
348 void addXY( wxXmlNode* aNode, const VECTOR2I& aVec, const char* aXName = nullptr,
349 const char* aYName = nullptr );
350
351 void addAttribute( wxXmlNode* aNode, const wxString& aName, const wxString& aValue );
352
353 wxXmlNode* insertNode( wxXmlNode* aParent, const wxString& aName );
354
355 wxXmlNode* appendNode( wxXmlNode* aParent, const wxString& aName );
356
357 void appendNode( wxXmlNode* aParent, wxXmlNode* aNode );
358
359 void insertNode( wxXmlNode* aParent, wxXmlNode* aNode );
360
361 void insertNodeAfter( wxXmlNode* aPrev, wxXmlNode* aNode );
362
363 void deleteNode( wxXmlNode*& aNode );
364
365 void addLayerAttributes( wxXmlNode* aNode, PCB_LAYER_ID aLayer );
366
367 bool isValidLayerFor2581( PCB_LAYER_ID aLayer );
368private:
369
370 size_t m_total_bytes; //<! Total number of bytes to be written
371
372 wxString m_units_str; //<! Output string for units
373 double m_scale; //<! Scale factor from IU to IPC2581 units (mm, micron, in)
374 int m_sigfig; //<! Max number of digits past the decimal point
382 std::map<wxString, wxString> m_net_name_dict;
383 std::map<FOOTPRINT*, wxString> m_anon_refdes_dict;
384 wxXmlNode* m_step_node;
387 wxString m_OEMRef; //<! If set, field name containing the internal ID of parts
388 wxString m_mpn; //<! If set, field name containing the manufacturer part number
389 wxString m_mfg; //<! If set, field name containing the part manufacturer
390 wxString m_distpn; //<! If set, field name containing the distributor part number
391 wxString m_dist; //<! If set, field name containing the distributor name
392 wxString m_bomRev; //<! BOM revision string for the BomHeader element
393
394 // Node pointer to the main enterprise node to be used for adding
395 // enterprises later when forming the AVL
397
399 std::vector<FOOTPRINT*> m_loaded_footprints;
400 const std::map<std::string, UTF8>* m_props;
401
402 std::map<size_t, wxString> m_user_shape_dict; //<! Map between shape hash values and reference id string
403 wxXmlNode* m_shape_user_node; //<! Output XML node for reference shapes in UserDict
404
405 std::map<size_t, wxString> m_std_shape_dict; //<! Map between shape hash values and reference id string
406 wxXmlNode* m_shape_std_node; //<! Output XML node for reference shapes in StandardDict
407
408 std::map<size_t, wxString> m_line_dict; //<! Map between line hash values and reference id string
409 wxXmlNode* m_line_node; //<! Output XML node for reference lines in LineDict
410
411 std::map<size_t, wxString> m_padstack_dict; //<! Map between padstack hash values and reference id string (PADSTACK_##)
412 std::vector<wxXmlNode*> m_padstacks; //<! Holding vector for padstacks. These need to be inserted prior to the components
413 wxXmlNode* m_last_padstack; //<! Pointer to padstack list where we can insert the VIA padstacks once we process tracks
414
415 std::map<wxString, std::array<wxString, 2>> m_padstack_backdrill_specs;
416 std::map<wxString, wxXmlNode*> m_backdrill_spec_nodes;
417 std::set<wxString> m_backdrill_spec_used;
420
421 std::map<size_t, wxString>
422 m_footprint_dict; //<! Map between the footprint hash values and reference id string (<fpid>_##)
423
424 std::map<wxString, FOOTPRINT*>
425 m_footprint_refdes_dict; //<! Map between sanitized refdes and footprint pointer
426
427 std::map<FOOTPRINT*, wxString>
428 m_footprint_refdes_reverse_dict; //<! Reverse lookup for
429
430 std::map<FOOTPRINT*, wxString>
431 m_OEMRef_dict; //<! Reverse map from the footprint pointer to the reference id string assigned for components
432
433 std::map<int, std::vector<std::pair<wxString, wxString>>>
434 m_net_pin_dict; //<! Map from netcode to the component/pin pairs in the net
435
436 std::map<PCB_LAYER_ID, wxString>
437 m_layer_name_map; //<! Mapping layer name in 2581 to the internal layer id
438
439 std::map<std::pair<PCB_LAYER_ID, PCB_LAYER_ID>, std::vector<BOARD_ITEM*>>
440 m_drill_layers; //<! Drill sets are output as layers (to/from pairs)
441
442 std::map<std::pair<PCB_LAYER_ID, PCB_LAYER_ID>, std::vector<PAD*>>
443 m_slot_holes; //<! Storage vector of slotted holes that need to be output as cutouts
444
445 std::map<std::tuple<auxLayerType, PCB_LAYER_ID, PCB_LAYER_ID>, std::vector<BOARD_ITEM*>>
447
449
450 mutable std::set<wxString> m_element_names; //<! Track generated element names
451 mutable std::map<wxString, wxString> m_generated_names; //<! Map input keys to unique names
452
453 std::set<wxUniChar> m_acceptable_chars; //<! IPC2581B and C have differing sets of allowed characters in names
454
455 wxXmlDocument* m_xml_doc;
456 wxXmlNode* m_xml_root;
457 wxXmlNode* m_contentNode;
458
460};
461
462#endif // PCB_IO_IPC2581_H_
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:84
Manage one layer needed to make a physical board.
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:409
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
Definition eda_text.h:94
Set of schema sections.
Handle the data for a net.
Definition netinfo.h:50
A PADSTACK defines the characteristics of a single or multi-layer pad, in the IPC sense of the word.
Definition padstack.h:156
Definition pad.h:61
void addText(wxXmlNode *aContentNode, EDA_TEXT *aShape, const KIFONT::METRICS &aFontMetrics)
wxString floatVal(double aVal, int aSigFig=-1) const
wxXmlNode * m_step_node
bool CanReadBoard(const wxString &aFileName) const override
Checks if this PCB_IO can read the specified board file.
void generateLayerSetDrill(wxXmlNode *aStepNode)
wxString genLayerString(PCB_LAYER_ID aLayer, const char *aPrefix) const
wxXmlNode * generateContentSection()
Creates the Content section of the XML file.
wxXmlNode * appendNode(wxXmlNode *aParent, const wxString &aName)
void addBackdrillSpecRefs(wxXmlNode *aHoleNode, const wxString &aPadstackName)
void generateDrillLayers(wxXmlNode *aCadLayerNode)
wxString sanitizeId(const wxString &aStr) const
wxXmlNode * addPackage(wxXmlNode *aStepNode, FOOTPRINT *aFootprint)
void generateComponents(wxXmlNode *aStepNode)
IPC2581::SECTION_SET emittedSections() const
Schema sections that the finished document holds.
bool addContourNode(wxXmlNode *aParentNode, const SHAPE_POLY_SET &aPolySet, int aOutline=0, FILL_T aFillType=FILL_T::FILLED_SHAPE, int aWidth=0, LINE_STYLE aDashType=LINE_STYLE::SOLID)
bool refDesEmitted() const
True if a Component keeps a designator that a reference can name.
wxString componentName(FOOTPRINT *aFootprint)
void addShape(wxXmlNode *aContentNode, const PCB_SHAPE &aShape, bool aInline=false)
IPC2581::RESOLVE_RESULT m_resolved
std::map< FOOTPRINT *, wxString > m_anon_refdes_dict
bool componentRefEmitted() const
True if a component reference can name a Component that the export wrote.
bool addOutlineNode(wxXmlNode *aParentNode, const SHAPE_POLY_SET &aPolySet, int aWidth=0, LINE_STYLE aDashType=LINE_STYLE::SOLID)
void generateStackup(wxXmlNode *aCadLayerNode)
std::map< std::tuple< auxLayerType, PCB_LAYER_ID, PCB_LAYER_ID >, std::vector< BOARD_ITEM * > > m_auxilliary_Layers
bool addPolygonNode(wxXmlNode *aParentNode, const SHAPE_LINE_CHAIN &aPolygon, FILL_T aFillType=FILL_T::FILLED_SHAPE, int aWidth=0, LINE_STYLE aDashType=LINE_STYLE::SOLID)
void generateLayerSetNet(wxXmlNode *aLayerNode, PCB_LAYER_ID aLayer, std::vector< BOARD_ITEM * > &aItems)
bool isValidLayerFor2581(PCB_LAYER_ID aLayer)
void insertNodeAfter(wxXmlNode *aPrev, wxXmlNode *aNode)
void generateCadLayers(wxXmlNode *aCadLayerNode)
std::vector< wxXmlNode * > m_padstacks
wxString pinName(const PAD *aPad) const
bool stackupRowIncluded(bool aDielectric, PCB_LAYER_ID aLayer) const
True if a stackup row is in a schema section that this export holds.
void generateCadSpecs(wxXmlNode *aCadLayerNode)
void addVia(wxXmlNode *aContentNode, const PCB_VIA *aVia, PCB_LAYER_ID aLayer)
IPC2581::SECTION_SET m_requestedSections
void addSlotCavity(wxXmlNode *aContentNode, const PAD &aPad, const wxString &aName)
void deleteNode(wxXmlNode *&aNode)
wxXmlNode * m_last_padstack
size_t lineHash(int aWidth, LINE_STYLE aDashType)
void SaveBoard(const wxString &aFileName, BOARD &aBoard, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Write aBoard to a storage file in a format that this PCB_IO implementation knows about or it can be u...
std::map< size_t, wxString > m_std_shape_dict
wxString netName(const wxString &aNetname, const wxString &aSuffix=wxEmptyString)
Name to write for aNetname with the net name policy.
void addAttribute(wxXmlNode *aNode, const wxString &aName, const wxString &aValue)
wxXmlNode * m_shape_user_node
wxXmlNode * generateAvlSection()
Creates the Approved Vendor List section.
wxXmlNode * generateHistorySection()
Creates the history section.
wxString stackupLayerName(const BOARD_STACKUP_ITEM *aItem, int aSublayerId, const char *aPrefix) const
wxXmlNode * m_contentNode
IPC2581::MODE m_mode
void addXY(wxXmlNode *aNode, const VECTOR2I &aVec, const char *aXName=nullptr, const char *aYName=nullptr)
void reportPhase(const wxString &aMessage)
Go to the next progress phase and repaint.
wxXmlNode * m_shape_std_node
void addPadStack(wxXmlNode *aContentNode, const PAD *aPad)
std::map< FOOTPRINT *, wxString > m_OEMRef_dict
void clearLoadedFootprints()
Frees the memory allocated for the loaded footprints in m_loaded_footprints.
std::map< wxString, wxXmlNode * > m_backdrill_spec_nodes
std::map< std::pair< PCB_LAYER_ID, PCB_LAYER_ID >, std::vector< PAD * > > m_slot_holes
std::map< size_t, wxString > m_footprint_dict
wxXmlNode * m_functionModeNode
wxXmlNode * generateLogisticSection()
Creates the logistical data header.
std::map< wxString, wxString > m_net_name_dict
std::set< wxString > m_element_names
std::map< size_t, wxString > m_line_dict
void addLineDesc(wxXmlNode *aNode, int aWidth, LINE_STYLE aDashType, bool aForce=false)
void addKnockoutText(wxXmlNode *aContentNode, PCB_TEXT *aText)
long long GetLibraryTimestamp(const wxString &aLibraryPath) const override
Generate a timestamp representing all the files in the library (including the library directory).
std::map< size_t, wxString > m_padstack_dict
std::map< std::pair< PCB_LAYER_ID, PCB_LAYER_ID >, std::vector< BOARD_ITEM * > > m_drill_layers
std::map< wxString, FOOTPRINT * > m_footprint_refdes_dict
void generateProfile(wxXmlNode *aStepNode)
void generateLayerFeatures(wxXmlNode *aStepNode)
bool CanReadFootprint(const wxString &aFileName) const override
Checks if this PCB_IO can read a footprint from specified file or directory.
bool suppressed(IPC2581::SUPPRESS aWhat) const
wxXmlNode * generateBOMSection(wxXmlNode *aEcadNode)
Creates the BOM section.
wxXmlNode * generateContentStackup(wxXmlNode *aContentNode)
void generateAuxilliaryLayers(wxXmlNode *aCadLayerNode)
wxXmlNode * m_cad_header_node
void addCadHeader(wxXmlNode *aEcadNode)
void generateLayerSetAuxilliary(wxXmlNode *aStepNode)
bool layerIncluded(PCB_LAYER_ID aLayer) const
True if aLayer is in a schema section that this export holds.
PROGRESS_REPORTER * m_progress_reporter
std::vector< FOOTPRINT * > GetImportedCachedLibraryFootprints() override
Return a container with the cached library footprints generated in the last call to Load.
const std::map< std::string, UTF8 > * m_props
wxString genLayersString(PCB_LAYER_ID aTop, PCB_LAYER_ID aBottom, const char *aPrefix) const
void generateLogicalNets(wxXmlNode *aStepNode)
void addFillDesc(wxXmlNode *aNode, FILL_T aFillType, bool aForce=false)
std::map< size_t, wxString > m_user_shape_dict
size_t shapeHash(const PCB_SHAPE &aShape)
void generatePhyNetGroup(wxXmlNode *aStepNode)
~PCB_IO_IPC2581() override
wxString genString(const wxString &aStr, const char *aPrefix=nullptr) const
const IO_BASE::IO_FILE_DESC GetLibraryDesc() const override
Get the descriptor for the library container that this IO plugin operates on.
static constexpr int EXPORT_PHASES
Content logistic history CAD data components the two netlists BOM vendor list references the write an...
wxXmlNode * m_xml_root
std::vector< FOOTPRINT * > m_loaded_footprints
bool addPolygonCutouts(wxXmlNode *aParentNode, const SHAPE_POLY_SET::POLYGON &aPolygon)
void pruneUnusedBackdrillSpecs()
IPC2581::REVISION m_revision
std::set< wxUniChar > m_acceptable_chars
void addLayerAttributes(wxXmlNode *aNode, PCB_LAYER_ID aLayer)
wxXmlNode * generateXmlHeader()
Creates the XML header for IPC-2581.
void ensureBackdrillSpecs(const wxString &aPadstackName, const PADSTACK &aPadstack)
wxXmlNode * generateEcadSection()
Creates the ECAD section.
wxXmlDocument * m_xml_doc
bool CanReadLibrary(const wxString &aFileName) const override
Checks if this IO object can read the specified library file/directory.
bool included(IPC2581::SECTION aSection) const
wxXmlNode * insertNode(wxXmlNode *aParent, const wxString &aName)
void addPad(wxXmlNode *aContentNode, const PAD *aPad, PCB_LAYER_ID aLayer)
void generateContentLayerRefs(wxXmlNode *aCadDataNode)
void generateStepSection(wxXmlNode *aCadNode)
std::map< PCB_LAYER_ID, wxString > m_layer_name_map
void dropContentStepRefs()
Remove Content/StepRef when the export writes no Step.
std::map< wxString, wxString > m_generated_names
const IO_BASE::IO_FILE_DESC GetBoardFileDesc() const override
Returns board file description for the PCB_IO.
std::set< wxString > m_backdrill_spec_used
void addLocationNode(wxXmlNode *aContentNode, double aX, double aY)
bool omitRefDes() const
True if the export removes the reference designators from the artwork.
std::map< wxString, std::array< wxString, 2 > > m_padstack_backdrill_specs
wxXmlNode * m_line_node
std::map< int, std::vector< std::pair< wxString, wxString > > > m_net_pin_dict
void tickProgress(const wxString &aMessage=wxEmptyString)
Count one unit of work in this phase and repaint at intervals.
std::map< FOOTPRINT *, wxString > m_footprint_refdes_reverse_dict
wxXmlNode * m_lastAppendedNode
Optimization for appendNode to avoid O(n) child traversal.
wxXmlNode * m_enterpriseNode
PCB_IO(const wxString &aName)
Definition pcb_io.h:351
A progress reporter interface for use in multi-threaded environments.
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
Represent a set of closed polygons.
std::vector< SHAPE_LINE_CHAIN > POLYGON
represents a single polygon outline with holes.
FILL_T
Definition eda_fill.h:29
@ FILLED_SHAPE
Fill with object color.
Definition eda_fill.h:31
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:56
MODE
Columns of Table 4.
SECTION
Schema sections of the IPC-2581C function mode table, Table 4 p 80.
REVISION
Schema revision The two revisions declare different identity constraints.
SUPPRESS
Optional attributes to remove when their schema section is absent.
@ COMPONENT_REFDES
Component@refDes.
LINE_STYLE
Dashed line types.
Container that describes file type info.
Definition io_base.h:43
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:683