25 #ifndef CLASS_SCH_FIELD_H 26 #define CLASS_SCH_FIELD_H 53 const wxString& aName = wxEmptyString );
66 return wxT(
"SCH_FIELD" );
74 for(
const KICAD_T* p = aScanTypes; *p !=
EOT; ++p )
103 wxString
GetName(
bool aUseDefaultName =
true )
const;
115 void SetId(
int aId );
159 void Move(
const wxPoint& aMoveVector )
override 164 void Rotate(
const wxPoint& aCenter )
override;
188 bool Matches(
const wxFindReplaceData& aSearchData,
void* aAuxData )
const override;
190 bool Replace(
const wxFindReplaceData& aSearchData,
void* aAuxData =
nullptr )
override;
202 void SetPosition(
const wxPoint& aPosition )
override;
206 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override;
207 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
216 void Show(
int nestLevel, std::ostream& os )
const override { ShowDummy( os ); }
Field Reference of part, i.e. "IC21".
void Move(const wxPoint &aMoveVector) override
Move the item by aMoveVector to a new position.
Instances are attached to a symbol or sheet and provide a place for the symbol's value,...
void Offset(const wxPoint &aOffset)
EDA_ITEM * m_parent
Linked list: Link (parent struct)
static bool ClassOf(const EDA_ITEM *aItem)
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
void ImportValues(const LIB_FIELD &aSource)
Copy parameters from a LIB_FIELD source.
wxPoint GetPosition() const override
Field object used in symbol libraries.
wxPoint GetDrawPos() const override
bool IsVertJustifyFlipped() const
bool IsHypertext() const override
Allow items to support hypertext actions when hovered/clicked.
Schematic editor (Eeschema) main window.
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
The base class for create windows for drawing purpose.
void DoHypertextMenu(EDA_DRAW_FRAME *aFrame) override
wxString GetShownText(int aDepth=0) const override
Return the string actually shown after processing of the base text.
search types array terminator (End Of Types)
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
bool operator<(const SCH_ITEM &aItem) const override
wxString GetCanonicalName() const
Get a non-language-specific name for a field which can be used for storage, variable look-up,...
EDA_TEXT_VJUSTIFY_T GetEffectiveVertJustify() const
EDA_TEXT_VJUSTIFY_T GetDrawVertJustify() const override
Field Value of part, i.e. "3.3K".
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
bool IsType(const KICAD_T aScanTypes[]) const override
Check whether the item is one of the listed types.
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
SCH_FIELD(const wxPoint &aPos, int aFieldId, SCH_ITEM *aParent, const wxString &aName=wxEmptyString)
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
virtual bool IsType(const KICAD_T aScanTypes[]) const
Check whether the item is one of the listed types.
wxPoint GetLibPosition() const
void Rotate(const wxPoint &aCenter) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
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.
EDA_TEXT_HJUSTIFY_T GetEffectiveHorizJustify() const
double GetDrawRotation() const override
Adjusters to allow EDA_TEXT to draw/print/etc.
Base plotter engine class.
BITMAPS
A list of all bitmap identifiers.
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
void SwapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
wxString GetName(bool aUseDefaultName=true) const
Return the field name.
Handle the component boundary box.
void SetName(const wxString &aName)
A base class for most all the KiCad significant classes used in schematics and boards.
wxString GetClass() const override
Return the class name.
bool IsHorizJustifyFlipped() const
Return whether the field will be rendered with the horizontal justification inverted due to rotation ...
const wxPoint & GetTextPos() const
bool IsReplaceable() const override
Override this method in any derived object that supports test find and replace.
wxPoint GetParentPosition() const
void Print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset) override
Print a schematic item.
bool Replace(const wxFindReplaceData &aSearchData, void *aAuxData=nullptr) override
Perform a text replace using the find and replace criteria in aSearchData on items that support text ...
void SetPosition(const wxPoint &aPosition) override
Base class for any item which can be embedded within the SCHEMATIC container class,...
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
bool Matches(const wxFindReplaceData &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
void Plot(PLOTTER *aPlotter) const override
Plot the schematic item to aPlotter.
int GetPenWidth() const override
EDA_TEXT_HJUSTIFY_T GetDrawHorizJustify() const override
KICAD_T Type() const
Returns the type of object.
Field Name Module PCB, i.e. "16DIP300".