22 #ifndef _SCH_PIN_CONNECTION_H 23 #define _SCH_PIN_CONNECTION_H 41 SCH_PIN(
SCH_SYMBOL* aParentSymbol,
const wxString& aNumber,
const wxString& aAlt );
54 return wxT(
"SCH_PIN" );
67 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
74 void Move(
const wxPoint& aMoveVector )
override {}
78 void Rotate(
const wxPoint& aCenter )
override {}
85 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override;
109 bool Matches(
const wxFindReplaceData& aSearchData,
void* aAuxData )
const override;
111 bool Replace(
const wxFindReplaceData& aSearchData,
void* aAuxData )
override;
146 void Show(
int nestLevel, std::ostream& os )
const override {}
LIB_PIN * GetLibPin() const
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
void Move(const wxPoint &aMoveVector) override
Move the item by aMoveVector to a new position.
bool Replace(const wxFindReplaceData &aSearchData, void *aAuxData) override
Perform a text replace using the find and replace criteria in aSearchData on items that support text ...
bool IsConnectable() const override
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
SCH_SYMBOL * GetParentSymbol() const
const wxPoint GetLocalPosition() const
void Print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset) override
Print a schematic item.
void SetIsDangling(bool isDangling)
void ClearDefaultNetName(const SCH_SHEET_PATH *aPath)
void Rotate(const wxPoint &aCenter) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
wxString GetDefaultNetName(const SCH_SHEET_PATH &aPath, bool aForceNoConnect=false)
wxString GetNumber() const
The base class for create windows for drawing purpose.
bool IsDangling() const override
wxPoint GetPosition() const override
bool IsPointClickableAnchor(const wxPoint &aPos) const override
wxString GetShownName() const
bool IsPowerConnection() const
Return whether this pin forms an implicit power connection: i.e., is hidden and of type POWER_IN.
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
not internally connected (may be connected to anything)
static bool ClassOf(const EDA_ITEM *aItem)
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.
wxString GetShownNumber() const
int GetOrientation() const
bool Matches(const wxFindReplaceData &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
GRAPHIC_PINSHAPE GetShape() const
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
std::recursive_mutex m_netmap_mutex
The name that this pin connection will drive onto a net.
SCH_PIN & operator=(const SCH_PIN &aPin)
void SetPosition(const wxPoint &aPosition) override
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
void SetNumber(const wxString &aNumber)
wxString GetClass() const override
Return the class name.
wxString GetCanonicalElectricalTypeName() const
ELECTRICAL_PINTYPE
The symbol library pin object electrical types used in ERC tests.
std::map< const SCH_SHEET_PATH, std::pair< wxString, bool > > m_net_name_map
ELECTRICAL_PINTYPE GetType() const
SCH_PIN(LIB_PIN *aLibPin, SCH_SYMBOL *aParentSymbol)
void SetAlt(const wxString &aAlt)
Handle the component boundary box.
bool ConnectionPropagatesTo(const EDA_ITEM *aItem) const override
Return true if this item should propagate connection info to aItem.
A base class for most all the KiCad significant classes used in schematics and boards.
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the layers the item is drawn on (which may be more than its "home" layer)
bool IsPowerConnection() const
EDA_MSG_PANEL items for displaying messages.
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
wxString const GetCanonicalElectricalTypeName() const
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
not connected (must be left open)
Base class for any item which can be embedded within the SCHEMATIC container class,...
KICAD_T Type() const
Returns the type of object.
wxPoint GetTransformedPosition() const