56 const wxString& aActualConversion )
65 if(
FindNode( aNode, wxT(
"width" ) ) )
71 if( aNode->GetName() == wxT(
"triplePointArc" ) )
74 lNode =
FindNode( aNode, wxT(
"pt" ) );
98 SetPosition( lNode->GetNodeContent(), aDefaultUnits, &end.
x, &end.
y,
118 else if( aNode->GetName() == wxT(
"arc" ) )
120 lNode =
FindNode( aNode, wxT(
"pt" ) );
128 lNode =
FindNode( aNode, wxT(
"radius" ) );
132 SetWidth(
FindNode( aNode, wxT(
"radius" ) )->GetNodeContent(), aDefaultUnits, &r,
137 lNode =
FindNode( aNode, wxT(
"startAngle" ) );
144 lNode =
FindNode( aNode, wxT(
"sweepAngle" ) );
188 aFootprint->
Add( arc );
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
Information pertinent to a Pcbnew printed circuit board.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
PCB_LAYER_ID FlipLayer(PCB_LAYER_ID aLayer) const
void SetCenter(const VECTOR2I &aCenter)
void SetStart(const VECTOR2I &aStart)
void SetArcAngleAndEnd(const EDA_ANGLE &aAngle, bool aCheckNegativeAngle=false)
Set the end point from the angle center and start.
PCAD_ARC(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
virtual void SetPosOffset(int aX_offs, int aY_offs) override
virtual void Parse(XNODE *aNode, int aLayer, const wxString &aDefaultUnits, const wxString &aActualConversion)
void AddToBoard(FOOTPRINT *aFootprint=nullptr) override
virtual void Flip() override
virtual void SetPosOffset(int aX_offs, int aY_offs)
PCB_LAYER_ID GetKiCadLayer() const
PCB_LAYER_ID m_KiCadLayer
void Rotate(const VECTOR2I &aRotCentre, const EDA_ANGLE &aAngle) override
Rotate this object.
void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
void Move(const VECTOR2I &aMoveVector) override
Move this object.
void SetStroke(const STROKE_PARAMS &aStroke) override
Simple container to manage line stroke parameters.
Hold an XML or S-expression element.
static constexpr EDA_ANGLE ANGLE_0
static constexpr EDA_ANGLE ANGLE_360
int StrToInt1Units(const wxString &aStr)
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)
VECTOR2< int32_t > VECTOR2I