46 const wxString& aActualConversion )
56 lNode =
FindNode( aNode, wxT(
"pt" ) );
64 lNode =
FindNode( aNode, wxT(
"rotation" ) );
68 str = lNode->GetNodeContent();
73 aNode->GetAttribute( wxT(
"Name" ), &
m_Name.text );
74 m_Name.text.Replace( wxT(
"\r" ), wxT(
"" ) );
81 if( str.IsSameAs( wxT(
"True" ),
false ) )
84 lNode =
FindNode( aNode, wxT(
"textStyleRef" ) );
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
Information pertinent to a Pcbnew printed circuit board.
virtual void SetTextPos(const VECTOR2I &aPoint)
void SetMirrored(bool isMirrored)
virtual void SetText(const wxString &aText)
void SetItalic(bool aItalic)
Set the text to be italic - this will also update the font if needed.
PCB_LAYER_ID GetKiCadLayer() const
PCAD_PCB_COMPONENT(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
PCB_LAYER_ID m_KiCadLayer
PCAD_TEXT(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
virtual void Parse(XNODE *aNode, int aLayer, const wxString &aDefaultUnits, const wxString &aActualConversion)
void AddToBoard(FOOTPRINT *aFootprint=nullptr) override
void SetTextThickness(int aWidth) override
The TextThickness is that set by the user.
void SetTextAngle(const EDA_ANGLE &aAngle) override
An extension of wxXmlNode that can format its contents as KiCad-style s-expressions.
static constexpr EDA_ANGLE ANGLE_360
int StrToInt1Units(const wxString &aStr)
XNODE * FindNode(XNODE *aChild, const wxString &aTag)
void SetTextSizeFromStrokeFontHeight(EDA_TEXT *aText, int aTextHeight)
void SetPosition(const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aX, int *aY, const wxString &aActualConversion)
TTEXT_JUSTIFY GetJustifyIdentificator(const wxString &aJustify)
void SetTextJustify(EDA_TEXT *aText, TTEXT_JUSTIFY aJustify)
void SetFontProperty(XNODE *aNode, TTEXTVALUE *aTextValue, const wxString &aDefaultMeasurementUnit, const wxString &aActualConversion)
wxString FindNodeGetContent(XNODE *aChild, const wxString &aTag)
void SetTextSizeFromTrueTypeFontHeight(EDA_TEXT *aText, int aTextHeight)
VECTOR2< int32_t > VECTOR2I