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" );
69 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
94 bool aIncludeElectricalType )
const;
96 bool HitTest(
const VECTOR2I& aPosition,
int aAccuracy = 0 )
const override;
97 bool HitTest(
const BOX2I& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
105 if(
GetType() == ELECTRICAL_PINTYPE::PT_NC ||
GetType() == ELECTRICAL_PINTYPE::PT_NIC )
168 void Show(
int nestLevel, std::ostream& os )
const override {}
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.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
bool IsGlobalPower() const
Return whether this pin forms a global power connection: i.e., is part of a power symbol and of type ...
wxString const GetCanonicalElectricalTypeName() const
EDA_MSG_PANEL items for displaying messages.
Base class for any item which can be embedded within the SCHEMATIC container class,...
void SetAlt(const wxString &aAlt)
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider) const override
Return a user-visible description string of this item.
void Print(const RENDER_SETTINGS *aSettings, const VECTOR2I &aOffset) override
Print a schematic item.
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
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.
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
void SetPosition(const VECTOR2I &aPosition) override
void SetNumber(const wxString &aNumber)
void Rotate(const VECTOR2I &aCenter) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
SCH_PIN & operator=(const SCH_PIN &aPin)
wxString GetShownNumber() const
std::map< const SCH_SHEET_PATH, std::pair< wxString, bool > > m_net_name_map
const wxString & GetOperatingPoint() const
bool IsGlobalPower() const
bool ConnectionPropagatesTo(const EDA_ITEM *aItem) const override
Return true if this item should propagate connection info to aItem.
void SetLibPin(LIB_PIN *aLibPin)
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
LIB_PIN * GetLibPin() const
bool IsConnectable() const override
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the layers the item is drawn on (which may be more than its "home" layer)
wxString GetNumber() const
bool IsDangling() const override
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
std::recursive_mutex m_netmap_mutex
The name that this pin connection will drive onto a net.
PIN_ORIENTATION GetOrientation() const
wxString GetClass() const override
Return the class name.
VECTOR2I GetPosition() const override
wxString GetCanonicalElectricalTypeName() const
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 ...
const VECTOR2I GetLocalPosition() const
wxString m_operatingPoint
wxString GetShownName() const
void Move(const VECTOR2I &aMoveVector) override
Move the item by aMoveVector to a new position.
static bool ClassOf(const EDA_ITEM *aItem)
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
void SetOperatingPoint(const wxString &aText)
VECTOR2I GetTransformedPosition() const
void ClearDefaultNetName(const SCH_SHEET_PATH *aPath)
void SetIsDangling(bool isDangling)
bool IsPointClickableAnchor(const VECTOR2I &aPos) const override
bool IsStacked(const SCH_PIN *aPin) const
SCH_SYMBOL * GetParentSymbol() const
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
wxString GetDefaultNetName(const SCH_SHEET_PATH &aPath, bool aForceNoConnect=false)
GRAPHIC_PINSHAPE GetShape() const
ELECTRICAL_PINTYPE GetType() const
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
ELECTRICAL_PINTYPE
The symbol library pin object electrical types used in ERC tests.
PIN_ORIENTATION
The symbol library pin object orientations.
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.