KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_pin.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2015 Jean-Pierre Charras, jaen-pierre.charras at wanadoo.fr
5 * Copyright (C) 2015 Wayne Stambaugh <[email protected]>
6 * Copyright (C) 2018 CERN
7 * Copyright (C) 2004-2024 KiCad Developers, see AUTHOR.txt for contributors.
8 * @author Jon Evans <[email protected]>
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24#pragma once
25
26#include <memory>
27
28#include <pin_type.h>
29#include <sch_item.h>
30#include <symbol.h>
31
32class LIB_SYMBOL;
33class SCH_SYMBOL;
35
36// Circle diameter drawn at the active end of pins:
37#define TARGET_PIN_RADIUS schIUScale.MilsToIU( 15 )
38
39
40class SCH_PIN : public SCH_ITEM
41{
42public:
43 struct ALT
44 {
45 wxString m_Name;
46 GRAPHIC_PINSHAPE m_Shape; // Shape drawn around pin
47 ELECTRICAL_PINTYPE m_Type; // Electrical type of the pin.
48 };
49
50 SCH_PIN( LIB_SYMBOL* aParentSymbol );
51
52 SCH_PIN( LIB_SYMBOL* aParentSymbol, const wxString& aName, const wxString& aNumber,
53 PIN_ORIENTATION aOrientation, ELECTRICAL_PINTYPE aPinType, int aLength,
54 int aNameTextSize, int aNumTextSize, int aBodyStyle, const VECTOR2I& aPos, int aUnit );
55
56 SCH_PIN( SCH_SYMBOL* aParentSymbol, SCH_PIN* aLibPin );
57
58 SCH_PIN( SCH_SYMBOL* aParentSymbol, const wxString& aNumber, const wxString& aAlt,
59 const KIID& aUuid );
60
61 SCH_PIN( const SCH_PIN& aPin );
62
63 ~SCH_PIN();
64
65 SCH_PIN& operator=( const SCH_PIN& aPin );
66
67 wxString GetClass() const override
68 {
69 return wxT( "SCH_PIN" );
70 }
71
72 static bool ClassOf( const EDA_ITEM* aItem )
73 {
74 return aItem && aItem->Type() == SCH_PIN_T;
75 }
76
77 wxString GetFriendlyName() const override
78 {
79 return _( "Pin" );
80 }
81
82 SCH_PIN* GetLibPin() const { return m_libPin; }
83 void SetLibPin( SCH_PIN* aLibPin ) { m_libPin = aLibPin; }
84
86 void SetOrientation( PIN_ORIENTATION aOrientation ) { m_orientation = aOrientation; }
87
89 void SetShape( GRAPHIC_PINSHAPE aShape ) { m_shape = aShape; }
90
91 int GetLength() const;
92 void SetLength( int aLength ) { m_length = aLength; }
93
99 void ChangeLength( int aLength );
100
102 void SetType( ELECTRICAL_PINTYPE aType );
103 wxString GetCanonicalElectricalTypeName() const;
104 wxString GetElectricalTypeName() const;
105
106 bool IsVisible() const;
107 void SetVisible( bool aVisible ) { m_hidden = !aVisible; }
108
109 const wxString& GetName() const;
110 wxString GetShownName() const;
111 void SetName( const wxString& aName );
115 const wxString& GetBaseName() const;
116
117 const wxString& GetNumber() const { return m_number; }
118 wxString GetShownNumber() const;
119 void SetNumber( const wxString& aNumber );
120
121 int GetNameTextSize() const;
122 void SetNameTextSize( int aSize );
123
124 int GetNumberTextSize() const;
125 void SetNumberTextSize( int aSize );
126
127 const std::map<wxString, ALT>& GetAlternates() const
128 {
129 if( m_libPin )
130 return m_libPin->GetAlternates();
131
132 return m_alternates;
133 }
134
135 std::map<wxString, ALT>& GetAlternates()
136 {
137 return const_cast<std::map<wxString, ALT>&>(
138 static_cast<const SCH_PIN*>( this )->GetAlternates() );
139 }
140
141 ALT GetAlt( const wxString& aAlt )
142 {
143 return GetAlternates()[ aAlt ];
144 }
145
146 wxString GetAlt() const { return m_alt; }
147 void SetAlt( const wxString& aAlt ) { m_alt = aAlt; }
148
149 void Print( const SCH_RENDER_SETTINGS* aSettings, int aUnit, int aBodyStyle,
150 const VECTOR2I& aOffset, bool aForceNoFill, bool aDimmed ) override;
151
158 PIN_ORIENTATION PinDrawOrient( const TRANSFORM& aTransform ) const;
159
160#if defined(DEBUG)
161 void Show( int nestLevel, std::ostream& os ) const override;
162#endif
163
164 bool HitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const override;
165
166 bool HitTest( const BOX2I& aRect, bool aContained, int aAccuracy = 0 ) const override;
167
168 void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override;
169
170 const BOX2I ViewBBox() const override;
171
172 std::vector<int> ViewGetLayers() const override;
173
174 /* Cannot use a default parameter here as it will not be compatible with the virtual. */
175 const BOX2I GetBoundingBox() const override
176 {
177 return GetBoundingBox( false, true, m_flags & SHOW_ELEC_TYPE );
178 }
179
184 BOX2I GetBoundingBox( bool aIncludeLabelsOnInvisiblePins, bool aIncludeNameAndNumber,
185 bool aIncludeElectricalType ) const;
186
191 bool IsGlobalPower() const
192 {
193 return GetType() == ELECTRICAL_PINTYPE::PT_POWER_IN
194 && ( !IsVisible() || GetParentSymbol()->IsPower() );
195 }
196
197 int GetPenWidth() const override { return 0; }
198
199 void Move( const VECTOR2I& aOffset ) override;
200
201 VECTOR2I GetPosition() const override;
203 void SetPosition( const VECTOR2I& aPos ) override { m_position = aPos; }
204
205 // For properties system
206 int GetX() const { return m_position.x; }
207 void SetX( int aX ) { m_position.x = aX; }
208 int GetY() const { return m_position.y; }
209 void SetY( int aY ) { m_position.y = aY; }
210
211 VECTOR2I GetPinRoot() const;
212
216 void MirrorHorizontally( int aCenter ) override;
217 void MirrorVertically( int aCenter ) override;
218 void Rotate( const VECTOR2I& aCenter, bool aRotateCCW = true ) override;
219
223 void MirrorHorizontallyPin( int aCenter );
224 void MirrorVerticallyPin( int aCenter );
225 void RotatePin( const VECTOR2I& aCenter, bool aRotateCCW = true );
226
232 void PlotPinTexts( PLOTTER *aPlotter, const VECTOR2I &aPinPos, PIN_ORIENTATION aPinOrient,
233 int aTextInside, bool aDrawPinNum, bool aDrawPinName, bool aDimmed ) const;
234
235 void PlotPinType( PLOTTER *aPlotter, const VECTOR2I &aPosition, PIN_ORIENTATION aOrientation,
236 bool aDimmed ) const;
237
238 void Plot( PLOTTER* aPlotter, bool aBackground, const SCH_PLOT_OPTS& aPlotOpts,
239 int aUnit, int aBodyStyle, const VECTOR2I& aOffset, bool aDimmed ) override;
240
241 BITMAPS GetMenuImage() const override;
242
243 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const override;
244 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider, ALT* aAlt ) const;
245
246 EDA_ITEM* Clone() const override;
247
248 void CalcEdit( const VECTOR2I& aPosition ) override;
249
250 bool Matches( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) const override;
251
252 bool Replace( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) override;
253
262 static wxString GetCanonicalElectricalTypeName( ELECTRICAL_PINTYPE aType );
263
264 bool IsConnectable() const override { return true; }
265
266 bool HasConnectivityChanges( const SCH_ITEM* aItem,
267 const SCH_SHEET_PATH* aInstance = nullptr ) const override;
268
269 void ClearDefaultNetName( const SCH_SHEET_PATH* aPath );
270 wxString GetDefaultNetName( const SCH_SHEET_PATH& aPath, bool aForceNoConnect = false );
271
272 bool IsDangling() const override;
273 void SetIsDangling( bool aIsDangling );
274
279 bool IsStacked( const SCH_PIN* aPin ) const;
280
281 bool IsPointClickableAnchor( const VECTOR2I& aPos ) const override
282 {
283 return m_isDangling && GetPosition() == aPos;
284 }
285
286 bool ConnectionPropagatesTo( const EDA_ITEM* aItem ) const override;
287
288 const wxString& GetOperatingPoint() const { return m_operatingPoint; }
289 void SetOperatingPoint( const wxString& aText ) { m_operatingPoint = aText; }
290
291 double Similarity( const SCH_ITEM& aOther ) const override;
292
293 bool operator>( const SCH_ITEM& aRhs ) const { return compare( aRhs, EQUALITY ) > 0; }
294
303
304protected:
305 wxString getItemDescription( ALT* aAlt ) const;
306
308 {
310 int m_FontSize = 0;
312 };
313
314 void validateExtentsCache( KIFONT::FONT* aFont, int aSize, const wxString& aText,
315 EXTENTS_CACHE* aCache ) const;
316
321 void printPinSymbol( const SCH_RENDER_SETTINGS *aSettings, const VECTOR2I &aPos,
322 PIN_ORIENTATION aOrientation, bool aDimmed );
323
332 void printPinTexts( const RENDER_SETTINGS* aSettings, const VECTOR2I& aPinPos,
333 PIN_ORIENTATION aPinOrient, int aTextInside, bool aDrawPinNum,
334 bool aDrawPinName, bool aDimmed );
335
339 void printPinElectricalTypeName( const RENDER_SETTINGS* aSettings, const VECTOR2I& aPosition,
340 PIN_ORIENTATION aOrientation, bool aDimmed );
341 std::ostream& operator<<( std::ostream& aStream );
342
343private:
360 int compare( const SCH_ITEM& aOther, int aCompareFlags = 0 ) const override;
361
362protected:
363 SCH_PIN* m_libPin; // The corresponding pin in the LIB_SYMBOL
364 // (nullptr for a pin *in* the LIB_SYMBOL)
365
366 std::map<wxString, ALT> m_alternates; // Map of alternate name to ALT structure
367 // (only valid for pins in LIB_SYMBOLS)
368
369 VECTOR2I m_position; // Position of the pin.
370 std::optional<int> m_length; // Length of the pin.
371 PIN_ORIENTATION m_orientation; // Pin orientation (Up, Down, Left, Right)
372 GRAPHIC_PINSHAPE m_shape; // Shape drawn around pin
373 ELECTRICAL_PINTYPE m_type; // Electrical type of the pin.
374 std::optional<bool> m_hidden;
375 wxString m_name;
376 wxString m_number;
377 std::optional<int> m_numTextSize; // Pin num and Pin name sizes
378 std::optional<int> m_nameTextSize;
379 wxString m_alt; // The current alternate for an instance
380
382
384
389 mutable std::unique_ptr<PIN_LAYOUT_CACHE> m_layoutCache;
390
392 std::recursive_mutex m_netmap_mutex;
393 std::map<const SCH_SHEET_PATH, std::pair<wxString, bool>> m_net_name_map;
394};
BITMAPS
A list of all bitmap identifiers.
Definition: bitmaps_list.h:33
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:89
KICAD_T Type() const
Returns the type of object.
Definition: eda_item.h:101
EDA_ITEM_FLAGS m_flags
Definition: eda_item.h:499
FONT is an abstract base class for both outline and stroke fonts.
Definition: font.h:131
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
Definition: kiid.h:49
Define a library symbol object.
Definition: lib_symbol.h:78
A pin layout helper is a class that manages the layout of the parts of a pin on a schematic symbol:
Base plotter engine class.
Definition: plotter.h:105
Base class for any item which can be embedded within the SCHEMATIC container class,...
Definition: sch_item.h:166
const SYMBOL * GetParentSymbol() const
Definition: sch_item.cpp:166
@ EQUALITY
Definition: sch_item.h:660
void Rotate(const VECTOR2I &aCenter, bool aRotateCCW=true) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
Definition: sch_pin.cpp:1516
std::ostream & operator<<(std::ostream &aStream)
Definition: sch_pin.cpp:2096
void SetAlt(const wxString &aAlt)
Definition: sch_pin.h:147
void PlotPinTexts(PLOTTER *aPlotter, const VECTOR2I &aPinPos, PIN_ORIENTATION aPinOrient, int aTextInside, bool aDrawPinNum, bool aDrawPinName, bool aDimmed) const
Plot the pin name and number.
Definition: sch_pin.cpp:1177
VECTOR2I GetLocalPosition() const
Definition: sch_pin.h:202
int GetNumberTextSize() const
Definition: sch_pin.cpp:557
int GetLength() const
Definition: sch_pin.cpp:295
std::optional< bool > m_hidden
Definition: sch_pin.h:374
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
Definition: sch_pin.cpp:441
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.
Definition: sch_pin.cpp:1544
std::unique_ptr< PIN_LAYOUT_CACHE > m_layoutCache
The layout cache for this pin.
Definition: sch_pin.h:389
void MirrorVerticallyPin(int aCenter)
Definition: sch_pin.cpp:1465
void validateExtentsCache(KIFONT::FONT *aFont, int aSize, const wxString &aText, EXTENTS_CACHE *aCache) const
Definition: sch_pin.cpp:1729
wxString GetAlt() const
Definition: sch_pin.h:146
bool operator>(const SCH_ITEM &aRhs) const
Definition: sch_pin.h:293
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
Definition: sch_pin.cpp:1716
std::vector< int > ViewGetLayers() const override
Return the layers the item is drawn on (which may be more than its "home" layer)
Definition: sch_pin.cpp:1722
const std::map< wxString, ALT > & GetAlternates() const
Definition: sch_pin.h:127
void CalcEdit(const VECTOR2I &aPosition) override
Calculate the attributes of an item at aPosition when it is being edited.
Definition: sch_pin.cpp:2126
void SetNumber(const wxString &aNumber)
Definition: sch_pin.cpp:520
std::optional< int > m_nameTextSize
Definition: sch_pin.h:378
PIN_ORIENTATION PinDrawOrient(const TRANSFORM &aTransform) const
Return the pin real orientation (PIN_UP, PIN_DOWN, PIN_RIGHT, PIN_LEFT), according to its orientation...
Definition: sch_pin.cpp:1367
void SetVisible(bool aVisible)
Definition: sch_pin.h:107
int GetX() const
Definition: sch_pin.h:206
void ChangeLength(int aLength)
Change the length of a pin and adjust its position based on orientation.
Definition: sch_pin.cpp:1411
ALT GetAlt(const wxString &aAlt)
Definition: sch_pin.h:141
void SetX(int aX)
Definition: sch_pin.h:207
bool HasConnectivityChanges(const SCH_ITEM *aItem, const SCH_SHEET_PATH *aInstance=nullptr) const override
Check if aItem has connectivity changes against this object.
Definition: sch_pin.cpp:1759
SCH_PIN & operator=(const SCH_PIN &aPin)
Definition: sch_pin.cpp:229
wxString GetShownNumber() const
Definition: sch_pin.cpp:511
SCH_PIN * m_libPin
Definition: sch_pin.h:363
void Move(const VECTOR2I &aOffset) override
Move the item by aMoveVector to a new position.
Definition: sch_pin.cpp:1439
std::map< const SCH_SHEET_PATH, std::pair< wxString, bool > > m_net_name_map
Definition: sch_pin.h:393
PIN_ORIENTATION m_orientation
Definition: sch_pin.h:371
const wxString & GetOperatingPoint() const
Definition: sch_pin.h:288
void SetOrientation(PIN_ORIENTATION aOrientation)
Definition: sch_pin.h:86
void SetName(const wxString &aName)
Definition: sch_pin.cpp:399
bool IsGlobalPower() const
Return whether this pin forms a global power connection: i.e., is part of a power symbol and of type ...
Definition: sch_pin.h:191
wxString getItemDescription(ALT *aAlt) const
Definition: sch_pin.cpp:1830
bool IsVisible() const
Definition: sch_pin.cpp:367
bool ConnectionPropagatesTo(const EDA_ITEM *aItem) const override
Return true if this item should propagate connection info to aItem.
Definition: sch_pin.cpp:1781
std::optional< int > m_numTextSize
Definition: sch_pin.h:377
VECTOR2I GetPinRoot() const
Definition: sch_pin.cpp:581
ELECTRICAL_PINTYPE m_type
Definition: sch_pin.h:373
void SetLibPin(SCH_PIN *aLibPin)
Definition: sch_pin.h:83
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
Definition: sch_pin.cpp:1478
SCH_PIN * GetLibPin() const
Definition: sch_pin.h:82
void SetPosition(const VECTOR2I &aPos) override
Definition: sch_pin.h:203
double Similarity(const SCH_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
Definition: sch_pin.cpp:2036
bool m_isDangling
Definition: sch_pin.h:383
bool IsConnectable() const override
Definition: sch_pin.h:264
void SetIsDangling(bool aIsDangling)
Definition: sch_pin.cpp:421
wxString GetElectricalTypeName() const
Definition: sch_pin.cpp:353
int GetPenWidth() const override
Definition: sch_pin.h:197
std::map< wxString, ALT > m_alternates
Definition: sch_pin.h:366
const wxString & GetName() const
Definition: sch_pin.cpp:381
wxString GetFriendlyName() const override
Definition: sch_pin.h:77
void SetLength(int aLength)
Definition: sch_pin.h:92
bool IsDangling() const override
Definition: sch_pin.cpp:412
void Plot(PLOTTER *aPlotter, bool aBackground, const SCH_PLOT_OPTS &aPlotOpts, int aUnit, int aBodyStyle, const VECTOR2I &aOffset, bool aDimmed) override
Plot the item to aPlotter.
Definition: sch_pin.cpp:1523
void MirrorHorizontally(int aCenter) override
these transforms have effect only if the pin has a LIB_SYMBOL as parent
Definition: sch_pin.cpp:1458
std::recursive_mutex m_netmap_mutex
The name that this pin connection will drive onto a net.
Definition: sch_pin.h:392
PIN_ORIENTATION GetOrientation() const
Definition: sch_pin.cpp:260
wxString GetClass() const override
Return the class name.
Definition: sch_pin.h:67
void SetNumberTextSize(int aSize)
Definition: sch_pin.cpp:571
void printPinTexts(const RENDER_SETTINGS *aSettings, const VECTOR2I &aPinPos, PIN_ORIENTATION aPinOrient, int aTextInside, bool aDrawPinNum, bool aDrawPinName, bool aDimmed)
Put the pin number and pin text info, given the pin line coordinates.
Definition: sch_pin.cpp:781
void SetShape(GRAPHIC_PINSHAPE aShape)
Definition: sch_pin.h:89
void RotatePin(const VECTOR2I &aCenter, bool aRotateCCW=true)
Definition: sch_pin.cpp:1485
std::map< wxString, ALT > & GetAlternates()
Definition: sch_pin.h:135
VECTOR2I GetPosition() const override
Definition: sch_pin.cpp:252
wxString GetCanonicalElectricalTypeName() const
Definition: sch_pin.cpp:339
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 ...
Definition: sch_pin.cpp:454
int GetNameTextSize() const
Definition: sch_pin.cpp:533
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
Definition: sch_pin.cpp:1803
VECTOR2I m_position
Definition: sch_pin.h:369
void printPinSymbol(const SCH_RENDER_SETTINGS *aSettings, const VECTOR2I &aPos, PIN_ORIENTATION aOrientation, bool aDimmed)
Print the pin symbol without text.
Definition: sch_pin.cpp:653
wxString m_operatingPoint
Definition: sch_pin.h:381
GRAPHIC_PINSHAPE m_shape
Definition: sch_pin.h:372
int compare(const SCH_ITEM &aOther, int aCompareFlags=0) const override
The pin specific sort order is as follows:
Definition: sch_pin.cpp:1882
wxString GetShownName() const
Definition: sch_pin.cpp:497
static bool ClassOf(const EDA_ITEM *aItem)
Definition: sch_pin.h:72
void MirrorHorizontallyPin(int aCenter)
these transforms have always effects
Definition: sch_pin.cpp:1445
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
Definition: sch_pin.cpp:467
PIN_LAYOUT_CACHE & GetLayoutCache() const
Get the layout cache associated with this pin.
Definition: sch_pin.h:302
wxString m_name
Definition: sch_pin.h:375
wxString m_alt
Definition: sch_pin.h:379
void SetOperatingPoint(const wxString &aText)
Definition: sch_pin.h:289
void SetType(ELECTRICAL_PINTYPE aType)
Definition: sch_pin.cpp:329
const wxString & GetBaseName() const
Get the name without any alternates.
Definition: sch_pin.cpp:390
~SCH_PIN()
Definition: sch_pin.cpp:224
void ClearDefaultNetName(const SCH_SHEET_PATH *aPath)
Definition: sch_pin.cpp:1612
void SetY(int aY)
Definition: sch_pin.h:209
void printPinElectricalTypeName(const RENDER_SETTINGS *aSettings, const VECTOR2I &aPosition, PIN_ORIENTATION aOrientation, bool aDimmed)
Draw the electrical type text of the pin (only for the footprint editor)
Definition: sch_pin.cpp:958
bool IsPointClickableAnchor(const VECTOR2I &aPos) const override
Definition: sch_pin.h:281
bool IsStacked(const SCH_PIN *aPin) const
Definition: sch_pin.cpp:427
const wxString & GetNumber() const
Definition: sch_pin.h:117
wxString m_number
Definition: sch_pin.h:376
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
Definition: sch_pin.cpp:1402
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
Definition: sch_pin.h:175
void Print(const SCH_RENDER_SETTINGS *aSettings, int aUnit, int aBodyStyle, const VECTOR2I &aOffset, bool aForceNoFill, bool aDimmed) override
Print an item.
Definition: sch_pin.cpp:604
wxString GetDefaultNetName(const SCH_SHEET_PATH &aPath, bool aForceNoConnect=false)
Definition: sch_pin.cpp:1623
std::optional< int > m_length
Definition: sch_pin.h:370
GRAPHIC_PINSHAPE GetShape() const
Definition: sch_pin.cpp:274
void PlotPinType(PLOTTER *aPlotter, const VECTOR2I &aPosition, PIN_ORIENTATION aOrientation, bool aDimmed) const
Definition: sch_pin.cpp:1030
int GetY() const
Definition: sch_pin.h:208
ELECTRICAL_PINTYPE GetType() const
Definition: sch_pin.cpp:309
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
Definition: sch_pin.cpp:1791
void SetNameTextSize(int aSize)
Definition: sch_pin.cpp:547
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
Schematic symbol object.
Definition: sch_symbol.h:104
virtual bool IsPower() const =0
for transforming drawing coordinates for a wxDC device context.
Definition: transform.h:46
#define _(s)
#define SHOW_ELEC_TYPE
Show pin electrical type. Shared with IS_ROLLOVER.
ELECTRICAL_PINTYPE
The symbol library pin object electrical types used in ERC tests.
Definition: pin_type.h:36
PIN_ORIENTATION
The symbol library pin object orientations.
Definition: pin_type.h:78
GRAPHIC_PINSHAPE
Definition: pin_type.h:57
wxString m_Name
Definition: sch_pin.h:45
GRAPHIC_PINSHAPE m_Shape
Definition: sch_pin.h:46
ELECTRICAL_PINTYPE m_Type
Definition: sch_pin.h:47
KIFONT::FONT * m_Font
Definition: sch_pin.h:309
@ SCH_PIN_T
Definition: typeinfo.h:153