70 return static_cast<int>(
m_spin );
114 SCH_TEXT(
const VECTOR2I& aPos = { 0, 0 },
const wxString& aText = wxEmptyString,
128 return wxT(
"SCH_TEXT" );
132 int aDepth = 0 )
const;
134 wxString
GetShownText(
bool aAllowExtraText,
int aDepth = 0 )
const override
136 return GetShownText(
nullptr, aAllowExtraText, aDepth );
191 virtual void Rotate90(
bool aClockwise );
206 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
215 bool HitTest(
const VECTOR2I& aPosition,
int aAccuracy = 0 )
const override;
216 bool HitTest(
const BOX2I& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
218 void Plot(
PLOTTER* aPlotter,
bool aBackground )
const override;
228 void Show(
int nestLevel, std::ostream& os )
const override;
BITMAPS
A list of all bitmap identifiers.
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
const VECTOR2I & GetTextPos() const
virtual const wxString & GetText() const
Return the string associated with the text object.
void SetTextPos(const VECTOR2I &aPoint)
virtual bool HasHyperlink() const
void Offset(const VECTOR2I &aOffset)
bool Replace(const EDA_SEARCH_DATA &aSearchData)
Helper function used in search and replace dialog.
FONT is an abstract base class for both outline and stroke fonts.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
Base plotter engine class.
Base class for any item which can be embedded within the SCHEMATIC container class,...
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
static bool ClassOf(const EDA_ITEM *aItem)
void DoHypertextAction(EDA_DRAW_FRAME *aFrame) const override
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
bool IsHypertext() const override
Allow items to support hypertext actions when hovered/clicked.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
void Move(const VECTOR2I &aMoveVector) override
Move the item by aMoveVector to a new position.
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
void Plot(PLOTTER *aPlotter, bool aBackground) const override
Plot the schematic item to aPlotter.
static HTML_MESSAGE_BOX * ShowSyntaxHelp(wxWindow *aParentWindow)
bool operator<(const SCH_ITEM &aItem) const override
VECTOR2I GetPosition() const override
virtual void SetShape(LABEL_FLAG_SHAPE aShape)
virtual void Rotate90(bool aClockwise)
virtual bool IsReplaceable() const override
Override this method in any derived object that supports test find and replace.
void SetPosition(const VECTOR2I &aPosition) override
bool Replace(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) override
Perform a text replace using the find and replace criteria in aSearchData on items that support text ...
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
KIFONT::FONT * getDrawFont() const override
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
void Rotate(const VECTOR2I &aCenter) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
void SwapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
TEXT_SPIN_STYLE GetTextSpinStyle() const
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
virtual LABEL_FLAG_SHAPE GetShape() const
virtual wxString GetClass() const override
Return the class name.
int GetPenWidth() const override
virtual void SetTextSpinStyle(TEXT_SPIN_STYLE aSpinStyle)
Set a spin or rotation angle, along with specific horizontal and vertical justification styles with e...
virtual wxString GetShownText(const SCH_SHEET_PATH *aPath, bool aAllowExtraText, int aDepth=0) const
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the layers the item is drawn on (which may be more than its "home" layer)
TEXT_SPIN_STYLE m_spin_style
The orientation of text and any associated drawing elements of derived objects.
void Print(const RENDER_SETTINGS *aSettings, const VECTOR2I &offset) override
Print a schematic item.
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider) const override
Return a user-visible description string of this item.
void SetExcludeFromSim(bool aExclude) override
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
virtual VECTOR2I GetSchematicTextOffset(const RENDER_SETTINGS *aSettings) const
This offset depends on the orientation, the type of text, and the area required to draw the associate...
wxString GetShownText(bool aAllowExtraText, int aDepth=0) const override
Return the string actually shown after processing of the base text.
bool GetExcludeFromSim() const override
virtual void MirrorSpinStyle(bool aLeftRight)
int GetTextOffset(const RENDER_SETTINGS *aSettings=nullptr) const
constexpr TEXT_SPIN_STYLE(SPIN aSpin)
TEXT_SPIN_STYLE RotateCW()
constexpr bool operator!=(SPIN a) const
TEXT_SPIN_STYLE MirrorY()
Mirror the label spin style across the Y axis or simply swaps left and right.
TEXT_SPIN_STYLE RotateCCW()
TEXT_SPIN_STYLE()=default
TEXT_SPIN_STYLE MirrorX()
Mirror the label spin style across the X axis or simply swaps up and bottom.
constexpr bool operator==(SPIN a) const
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.