34 m_alt = wxEmptyString;
83 if( !
m_alt.IsEmpty() )
94 if( !
m_alt.IsEmpty() )
97 if(
name == wxT(
"~" ) )
107 return wxEmptyString;
115 if( !
m_alt.IsEmpty() )
124 if( !
m_alt.IsEmpty() )
164 bool isReplaced =
false;
177 return static_cast<SCH_SYMBOL*>(
GetParent() );
194 aList.emplace_back(
_(
"Type" ),
_(
"Pin" ) );
201 aList.emplace_back(
_(
"Unit" ), msg );
210 aList.emplace_back(
_(
"Converted" ), msg );
217 aList.emplace_back(
_(
"Visible" ),
IsVisible() ?
_(
"Yes" ) :
_(
"No" ) );
224 SCH_EDIT_FRAME* schframe = dynamic_cast<SCH_EDIT_FRAME*>( aFrame );
228 aList.emplace_back( symbol->
GetRef( currentSheet ), symbol->
GetValue( currentSheet,
true ) );
265 if( it->second.second == aForceNoConnect )
266 return it->second.first;
269 wxString
name = wxT(
"Net-(" );
272 name = ( wxT(
"unconnected-(" ) );
276 bool annotated =
true;
279 if(
name.Last() ==
'?' )
320 aAccuracy = std::max( aAccuracy,
Schematic()->Settings().m_PinSymbolSize / 4 );
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
wxString MessageTextFromValue(EDA_UNITS aUnits, int aValue, bool aAddUnitLabel, EDA_DATA_TYPE aType)
Convert a value to a string using double notation.
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 ...
virtual bool Matches(const wxFindReplaceData &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
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
int GetOrientation() const
void ClearDefaultNetName(const SCH_SHEET_PATH *aPath)
wxString ElectricalPinTypeGetText(ELECTRICAL_PINTYPE aType)
GRAPHIC_PINSHAPE GetShape() const
SCHEMATIC * Schematic() const
Searches the item hierarchy to find a SCHEMATIC.
wxString GetDefaultNetName(const SCH_SHEET_PATH &aPath, bool aForceNoConnect=false)
int PinOrientationIndex(int code)
wxString AsString() const
Schematic editor (Eeschema) main window.
wxString GetNumber() const
wxString PinShapeGetText(GRAPHIC_PINSHAPE aShape)
ALT GetAlt(const wxString &aAlt)
const wxString GetRef(const SCH_SHEET_PATH *aSheet, bool aIncludeUnit=false) const
Return the reference for the given sheet path.
const EDA_RECT GetBoundingBox() const override
The base class for create windows for drawing purpose.
TRANSFORM & GetTransform()
wxPoint GetPosition() const override
ELECTRICAL_PINTYPE m_Type
bool Contains(const wxPoint &aPoint) const
bool IsConnectivityDirty() const
wxString GetShownName() const
bool IsPowerConnection() const
Return whether this pin forms an implicit power connection: i.e., is hidden and of type POWER_IN.
SCH_CONNECTION * Connection(const SCH_SHEET_PATH *aSheet=nullptr) const
Retrieve the connection associated with this object in the given sheet.
wxString PinOrientationName(unsigned aPinOrientationCode)
void AppendInfoToMsgPanel(std::vector< MSG_PANEL_ITEM > &aList) const
Adds information about the connection object to aList.
const wxString & GetName() const
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
EDA_ITEM * GetParent() 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...
const wxString GetValue(const SCH_SHEET_PATH *sheet, bool aResolve) const
Return the instance-specific value for the given sheet path.
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
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
wxPoint GetPosition() const override
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
const wxString & GetNumber() const
ELECTRICAL_PINTYPE GetType() 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
Each graphical item can have a SCH_CONNECTION describing its logical connection (to a bus or net).
ELECTRICAL_PINTYPE GetType() const
SCH_PIN(LIB_PIN *aLibPin, SCH_SYMBOL *aParentSymbol)
Handle the component boundary box.
bool ConnectionPropagatesTo(const EDA_ITEM *aItem) const override
Return true if this item should propagate connection info to aItem.
wxPoint GetPosition() const override
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)
SCH_SHEET_PATH & GetCurrentSheet() const
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
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,...
EDA_UNITS GetUserUnits() const
Return the user units currently in use.
SCH_ITEM & operator=(const SCH_ITEM &aPin)
EDA_RECT & Inflate(wxCoord dx, wxCoord dy)
Inflate the rectangle horizontally by dx and vertically by dy.
wxPoint GetTransformedPosition() const