55 const wxString& aActualConversion )
67 lNode =
FindNode( aNode, wxT(
"pt" ) );
81 lNode =
FindNode( aNode, wxT(
"width" ) );
84 SetWidth( lNode->GetNodeContent(), aDefaultUnits, &
m_Width, aActualConversion );
86 lNode =
FindNode( aNode, wxT(
"netNameRef" ) );
90 lNode->GetAttribute( wxT(
"Name" ), &propValue );
91 propValue.Trim(
false );
92 propValue.Trim(
true );
bool SetNetCode(int aNetCode, bool aNoAssert)
Set net using a net code.
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
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 SetStart(const VECTOR2I &aStart)
void SetEnd(const VECTOR2I &aEnd)
void AddToBoard(FOOTPRINT *aFootprint=nullptr) override
virtual void Parse(XNODE *aNode, int aLayer, const wxString &aDefaultUnits, const wxString &aActualConversion)
PCAD_LINE(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
virtual void SetPosOffset(int aX_offs, int aY_offs) override
virtual void Flip() override
virtual void SetPosOffset(int aX_offs, int aY_offs)
PCB_LAYER_ID GetKiCadLayer() const
int GetNetCode(const wxString &aNetName) 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
void SetEnd(const VECTOR2I &aEnd)
void SetPosition(const VECTOR2I &aPos) override
virtual void SetWidth(int aWidth)
Simple container to manage line stroke parameters.
Hold an XML or S-expression element.
bool IsCopperLayer(int aLayerId)
Tests whether a layer is a copper layer.
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