25 #ifndef CLASS_SCH_FIELD_H 26 #define CLASS_SCH_FIELD_H 59 const wxString& aName = wxEmptyString );
72 return wxT(
"SCH_FIELD" );
80 for(
const KICAD_T* p = aScanTypes; *p !=
EOT; ++p )
110 wxString
GetName(
bool aUseDefaultName =
true )
const;
122 void SetId(
int aId );
155 void Move(
const wxPoint& aMoveVector )
override 160 void Rotate( wxPoint aPosition )
override;
184 bool Matches(
const wxFindReplaceData& aSearchData,
void* aAuxData )
const override;
186 bool Replace(
const wxFindReplaceData& aSearchData,
void* aAuxData =
NULL )
override;
197 void SetPosition(
const wxPoint& aPosition )
override;
201 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override;
202 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
211 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.
SCH_FIELD instances are attached to a component and provide a place for the component's value,...
void Offset(const wxPoint &aOffset)
EDA_ITEM * m_parent
Linked list: Link (parent struct)
static bool ClassOf(const EDA_ITEM *aItem)
PNG memory record (file in memory).
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)
Function ImportValues copy parameters from a LIB_FIELD source.
wxPoint GetPosition() const override
Field object used in symbol libraries.
bool IsHypertext() const override
Allows 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.
bool IsVoid() const
Function IsVoid returns true if the field is either empty or holds "~".
bool Replace(const wxFindReplaceData &aSearchData, void *aAuxData=NULL) override
Perform a text replace using the find and replace criteria in aSearchData on items that support text ...
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,...
Field Value of part, i.e. "3.3K".
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 contained within or on the bounding box of an item.
virtual bool IsType(const KICAD_T aScanTypes[]) const
Check whether the item is one of the listed types.
wxPoint GetLibPosition() const
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
Base plotter engine class.
void Plot(PLOTTER *aPlotter) override
Plot the schematic item to aPlotter.
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
Function GetName returns 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
Function IsHorizJustifyFlipped Returns whether the field will be rendered with the horizontal justifi...
const wxPoint & GetTextPos() const
bool IsReplaceable() const override
Override this method in any derived object that supports test find and replace.
void Rotate(wxPoint aPosition) override
Rotate the item around aPosition 90 degrees in the clockwise direction.
wxPoint GetParentPosition() const
void Print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset) override
Print a schematic item.
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.
int GetPenWidth() const override
KICAD_T Type() const
Returns the type of object.
Field Name Module PCB, i.e. "16DIP300".