47 const wxString& aActualConversion )
53 lNode =
FindNode( aNode, wxT(
"viaShapeType" ) );
57 str = lNode->GetNodeContent();
62 lNode =
FindNode( aNode, wxT(
"layerNumRef" ) );
66 lNode->GetNodeContent().ToLong( &num );
71 lNode =
FindNode( aNode, wxT(
"shapeWidth" ) );
74 SetWidth( lNode->GetNodeContent(), aDefaultUnits, &
m_Width, aActualConversion );
76 lNode =
FindNode( aNode, wxT(
"shapeHeight" ) );
79 SetWidth( lNode->GetNodeContent(), aDefaultUnits, &
m_Height, aActualConversion );
Information pertinent to a Pcbnew printed circuit board.
PCB_LAYER_ID GetKiCadLayer() const
PCB_LAYER_ID m_KiCadLayer
PCAD_VIA_SHAPE(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
virtual void Parse(XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion) override
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)