50 const wxString& aActualConversion )
54 int minX, maxX, minY, maxY, x, y;
57 lNode =
FindNode( aNode, wxT(
"padShapeType" ) );
61 str = lNode->GetNodeContent();
66 lNode =
FindNode( aNode, wxT(
"layerNumRef" ) );
70 lNode->GetNodeContent().ToLong( &num );
80 ||
m_Shape == wxT(
"RndRect" ) )
82 lNode =
FindNode( aNode, wxT(
"shapeWidth" ) );
85 SetWidth( lNode->GetNodeContent(), aDefaultUnits, &
m_Width, aActualConversion );
87 lNode =
FindNode( aNode, wxT(
"shapeHeight" ) );
90 SetWidth( lNode->GetNodeContent(), aDefaultUnits, &
m_Height, aActualConversion );
92 else if(
m_Shape == wxT(
"Polygon" ) )
95 lNode =
FindNode( aNode, wxT(
"shapeOutline" ) );
98 lNode =
FindNode( lNode, wxT(
"pt" ) );
107 s = lNode->GetNodeContent();
108 SetPosition( s, aDefaultUnits, &x, &y, aActualConversion );
Information pertinent to a Pcbnew printed circuit board.
PCAD_PAD_SHAPE(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
virtual void Parse(XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion)
PCB_LAYER_ID GetKiCadLayer() const
PCB_LAYER_ID m_KiCadLayer
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)
void SetPosition(const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aX, int *aY, const wxString &aActualConversion)