48 const wxString& aActualConversion )
51 wxString pourType, str, propValue;
52 int pourSpacing, thermalWidth;
54 lNode =
FindNode( aNode, wxT(
"netNameRef" ) );
58 lNode->GetAttribute( wxT(
"Name" ), &propValue );
59 propValue.Trim(
false );
60 propValue.Trim(
true );
65 if(
FindNode( aNode, wxT(
"width" ) ) )
71 if(
FindNode( aNode, wxT(
"pourSpacing" ) ) )
73 SetWidth(
FindNode( aNode, wxT(
"pourSpacing" ) )->GetNodeContent(), aDefaultUnits,
74 &pourSpacing, aActualConversion );
77 if(
FindNode( aNode, wxT(
"thermalWidth" ) ) )
79 SetWidth(
FindNode( aNode, wxT(
"thermalWidth" ) )->GetNodeContent(), aDefaultUnits,
80 &thermalWidth, aActualConversion );
83 if(
FindNode( aNode, wxT(
"island" ) ) )
86 lNode =
FindNode( aNode, wxT(
"pcbPoly" ) );
90 lNode =
FindNode( aNode, wxT(
"pourOutline" ) );
Information pertinent to a Pcbnew printed circuit board.
virtual bool Parse(XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion) override
PCAD_COPPER_POUR(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard, int aPCadLayer)
int GetNetCode(const wxString &aNetName) const
void FormPolygon(XNODE *aNode, VERTICES_ARRAY *aPolygon, const wxString &aDefaultUnits, const wxString &actualConversion)
Hold an XML or S-expression element.
void SetWidth(const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aWidth, const wxString &aActualConversion)
XNODE * FindNode(XNODE *aChild, const wxString &aTag)