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#ifndef SCH_PIN_H
25#define SCH_PIN_H
26
27#include <pin_type.h>
28#include <sch_item.h>
29#include <symbol.h>
30
31class LIB_SYMBOL;
32class SCH_SYMBOL;
33
34// Circle diameter drawn at the active end of pins:
35#define TARGET_PIN_RADIUS schIUScale.MilsToIU( 15 )
36
37
38class SCH_PIN : public SCH_ITEM
39{
40public:
41 struct ALT
42 {
43 wxString m_Name;
44 GRAPHIC_PINSHAPE m_Shape; // Shape drawn around pin
45 ELECTRICAL_PINTYPE m_Type; // Electrical type of the pin.
46 };
47
48 SCH_PIN( LIB_SYMBOL* aParentSymbol );
49
50 SCH_PIN( LIB_SYMBOL* aParentSymbol, const wxString& aName, const wxString& aNumber,
51 PIN_ORIENTATION aOrientation, ELECTRICAL_PINTYPE aPinType, int aLength,
52 int aNameTextSize, int aNumTextSize, int aBodyStyle, const VECTOR2I& aPos, int aUnit );
53
54 SCH_PIN( SCH_SYMBOL* aParentSymbol, SCH_PIN* aLibPin );
55
56 SCH_PIN( SCH_SYMBOL* aParentSymbol, const wxString& aNumber, const wxString& aAlt,
57 const KIID& aUuid );
58
59 SCH_PIN( const SCH_PIN& aPin );
60
61 ~SCH_PIN() override { }
62
63 SCH_PIN& operator=( const SCH_PIN& aPin );
64
65 wxString GetClass() const override
66 {
67 return wxT( "SCH_PIN" );
68 }
69
70 static bool ClassOf( const EDA_ITEM* aItem )
71 {
72 return aItem && aItem->Type() == SCH_PIN_T;
73 }
74
75 wxString GetFriendlyName() const override
76 {
77 return _( "Pin" );
78 }
79
80 SCH_PIN* GetLibPin() const { return m_libPin; }
81 void SetLibPin( SCH_PIN* aLibPin ) { m_libPin = aLibPin; }
82
84 void SetOrientation( PIN_ORIENTATION aOrientation ) { m_orientation = aOrientation; }
85
87 void SetShape( GRAPHIC_PINSHAPE aShape ) { m_shape = aShape; }
88
89 int GetLength() const;
90 void SetLength( int aLength ) { m_length = aLength; }
91
97 void ChangeLength( int aLength );
98
100 void SetType( ELECTRICAL_PINTYPE aType ) { m_type = aType; }
101 wxString GetCanonicalElectricalTypeName() const;
102 wxString GetElectricalTypeName() const;
103
104 bool IsVisible() const;
105 void SetVisible( bool aVisible ) { m_hidden = !aVisible; }
106
107 const wxString& GetName() const;
108 wxString GetShownName() const;
109 void SetName( const wxString& aName );
110
111 const wxString& GetNumber() const { return m_number; }
112 wxString GetShownNumber() const;
113 void SetNumber( const wxString& aNumber );
114
115 int GetNameTextSize() const;
116 void SetNameTextSize( int aSize );
117
118 int GetNumberTextSize() const;
119 void SetNumberTextSize( int aSize );
120
121 std::map<wxString, ALT>& GetAlternates()
122 {
123 if( m_libPin )
124 return m_libPin->GetAlternates();
125
126 return m_alternates;
127 }
128
129 ALT GetAlt( const wxString& aAlt )
130 {
131 return GetAlternates()[ aAlt ];
132 }
133
134 wxString GetAlt() const { return m_alt; }
135 void SetAlt( const wxString& aAlt ) { m_alt = aAlt; }
136
137 void Print( const SCH_RENDER_SETTINGS* aSettings, int aUnit, int aBodyStyle,
138 const VECTOR2I& aOffset, bool aForceNoFill, bool aDimmed ) override;
139
146 PIN_ORIENTATION PinDrawOrient( const TRANSFORM& aTransform ) const;
147
148#if defined(DEBUG)
149 void Show( int nestLevel, std::ostream& os ) const override;
150#endif
151
152 bool HitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const override;
153
154 bool HitTest( const BOX2I& aRect, bool aContained, int aAccuracy = 0 ) const override;
155
156 void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override;
157
158 const BOX2I ViewBBox() const override;
159
160 void ViewGetLayers( int aLayers[], int& aCount ) const override;
161
162 /* Cannot use a default parameter here as it will not be compatible with the virtual. */
163 const BOX2I GetBoundingBox() const override
164 {
165 return GetBoundingBox( false, true, m_flags & SHOW_ELEC_TYPE );
166 }
167
172 BOX2I GetBoundingBox( bool aIncludeLabelsOnInvisiblePins, bool aIncludeNameAndNumber,
173 bool aIncludeElectricalType ) const;
174
179 bool IsGlobalPower() const
180 {
181 return GetType() == ELECTRICAL_PINTYPE::PT_POWER_IN
182 && ( !IsVisible() || GetParentSymbol()->IsPower() );
183 }
184
185 int GetPenWidth() const override { return 0; }
186
187 void Move( const VECTOR2I& aOffset ) override;
188
189 VECTOR2I GetPosition() const override;
191 void SetPosition( const VECTOR2I& aPos ) override { m_position = aPos; }
192
193 // For properties system
194 int GetX() const { return m_position.x; }
195 void SetX( int aX ) { m_position.x = aX; }
196 int GetY() const { return m_position.y; }
197 void SetY( int aY ) { m_position.y = aY; }
198
199 VECTOR2I GetPinRoot() const;
200
204 void MirrorHorizontally( int aCenter ) override;
205 void MirrorVertically( int aCenter ) override;
206 void Rotate( const VECTOR2I& aCenter, bool aRotateCCW = true ) override;
207
211 void MirrorHorizontallyPin( int aCenter );
212 void MirrorVerticallyPin( int aCenter );
213 void RotatePin( const VECTOR2I& aCenter, bool aRotateCCW = true );
214
220 void PlotPinTexts( PLOTTER *aPlotter, const VECTOR2I &aPinPos, PIN_ORIENTATION aPinOrient,
221 int aTextInside, bool aDrawPinNum, bool aDrawPinName, bool aDimmed ) const;
222
223 void PlotPinType( PLOTTER *aPlotter, const VECTOR2I &aPosition, PIN_ORIENTATION aOrientation,
224 bool aDimmed ) const;
225
226 void Plot( PLOTTER* aPlotter, bool aBackground, const SCH_PLOT_OPTS& aPlotOpts,
227 int aUnit, int aBodyStyle, const VECTOR2I& aOffset, bool aDimmed ) override;
228
229 BITMAPS GetMenuImage() const override;
230
231 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider ) const override;
232 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider, ALT* aAlt ) const;
233
234 EDA_ITEM* Clone() const override;
235
236 void CalcEdit( const VECTOR2I& aPosition ) override;
237
238 bool Matches( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) const override;
239
240 bool Replace( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) override;
241
250 static wxString GetCanonicalElectricalTypeName( ELECTRICAL_PINTYPE aType );
251
252 bool IsConnectable() const override { return true; }
253
254 bool HasConnectivityChanges( const SCH_ITEM* aItem,
255 const SCH_SHEET_PATH* aInstance = nullptr ) const override;
256
257 void ClearDefaultNetName( const SCH_SHEET_PATH* aPath );
258 wxString GetDefaultNetName( const SCH_SHEET_PATH& aPath, bool aForceNoConnect = false );
259
260 bool IsDangling() const override
261 {
262 if( GetType() == ELECTRICAL_PINTYPE::PT_NC || GetType() == ELECTRICAL_PINTYPE::PT_NIC )
263 return false;
264
265 return m_isDangling;
266 }
267
268 void SetIsDangling( bool isDangling ) { m_isDangling = isDangling; }
269
274 bool IsStacked( const SCH_PIN* aPin ) const;
275
276 bool IsPointClickableAnchor( const VECTOR2I& aPos ) const override
277 {
278 return m_isDangling && GetPosition() == aPos;
279 }
280
281 bool ConnectionPropagatesTo( const EDA_ITEM* aItem ) const override;
282
283 const wxString& GetOperatingPoint() const { return m_operatingPoint; }
284 void SetOperatingPoint( const wxString& aText ) { m_operatingPoint = aText; }
285
286 double Similarity( const SCH_ITEM& aOther ) const override;
287
288 bool operator==( const SCH_ITEM& aOther ) const override;
289 bool operator!=( const SCH_ITEM& aOther ) const { return !operator==( aOther ); }
290 bool operator<( const SCH_PIN& aRhs ) const { return compare( aRhs, EQUALITY ) < 0; }
291 bool operator>( const SCH_PIN& aRhs ) const { return compare( aRhs, EQUALITY ) > 0; }
292
293protected:
294 wxString getItemDescription( ALT* aAlt ) const;
295
297 {
299 int m_FontSize = 0;
301 };
302
303 void validateExtentsCache( KIFONT::FONT* aFont, int aSize, const wxString& aText,
304 EXTENTS_CACHE* aCache ) const;
305
310 void printPinSymbol( const SCH_RENDER_SETTINGS *aSettings, const VECTOR2I &aPos,
311 PIN_ORIENTATION aOrientation, bool aDimmed );
312
321 void printPinTexts( const RENDER_SETTINGS* aSettings, const VECTOR2I& aPinPos,
322 PIN_ORIENTATION aPinOrient, int aTextInside, bool aDrawPinNum,
323 bool aDrawPinName, bool aDimmed );
324
328 void printPinElectricalTypeName( const RENDER_SETTINGS* aSettings, const VECTOR2I& aPosition,
329 PIN_ORIENTATION aOrientation, bool aDimmed );
330 std::ostream& operator<<( std::ostream& aStream );
331
332private:
342 int compare( const SCH_ITEM& aOther, int aCompareFlags = 0 ) const override;
343
344protected:
345 SCH_PIN* m_libPin; // The corresponding pin in the LIB_SYMBOL
346 // (nullptr for a pin *in* the LIB_SYMBOL)
347
348 std::map<wxString, ALT> m_alternates; // Map of alternate name to ALT structure
349 // (only valid for pins in LIB_SYMBOLS)
350
351 VECTOR2I m_position; // Position of the pin.
352 std::optional<int> m_length; // Length of the pin.
353 PIN_ORIENTATION m_orientation; // Pin orientation (Up, Down, Left, Right)
354 GRAPHIC_PINSHAPE m_shape; // Shape drawn around pin
355 ELECTRICAL_PINTYPE m_type; // Electrical type of the pin.
356 std::optional<bool> m_hidden;
357 wxString m_name;
358 wxString m_number;
359 std::optional<int> m_numTextSize; // Pin num and Pin name sizes
360 std::optional<int> m_nameTextSize;
361 wxString m_alt; // The current alternate for an instance
362
364
367
369
371 std::recursive_mutex m_netmap_mutex;
372 std::map<const SCH_SHEET_PATH, std::pair<wxString, bool>> m_net_name_map;
373};
374
375
376#endif // SCH_PIN_H
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:88
KICAD_T Type() const
Returns the type of object.
Definition: eda_item.h:100
EDA_ITEM_FLAGS m_flags
Definition: eda_item.h:490
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:77
Base plotter engine class.
Definition: plotter.h:104
Base class for any item which can be embedded within the SCHEMATIC container class,...
Definition: sch_item.h:174
const SYMBOL * GetParentSymbol() const
Definition: sch_item.cpp:161
@ EQUALITY
Definition: sch_item.h:668
void Rotate(const VECTOR2I &aCenter, bool aRotateCCW=true) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
Definition: sch_pin.cpp:1525
std::ostream & operator<<(std::ostream &aStream)
Definition: sch_pin.cpp:2174
void SetAlt(const wxString &aAlt)
Definition: sch_pin.h:135
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:1114
VECTOR2I GetLocalPosition() const
Definition: sch_pin.h:190
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider) const override
Return a user-visible description string of this item.
Definition: sch_pin.cpp:1954
int GetNumberTextSize() const
Definition: sch_pin.cpp:499
int GetLength() const
Definition: sch_pin.cpp:278
std::optional< bool > m_hidden
Definition: sch_pin.h:356
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
Definition: sch_pin.cpp:388
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:1553
void MirrorVerticallyPin(int aCenter)
Definition: sch_pin.cpp:1474
void validateExtentsCache(KIFONT::FONT *aFont, int aSize, const wxString &aText, EXTENTS_CACHE *aCache) const
Definition: sch_pin.cpp:1743
wxString GetAlt() const
Definition: sch_pin.h:134
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
Definition: sch_pin.cpp:1725
void CalcEdit(const VECTOR2I &aPosition) override
Calculate the attributes of an item at aPosition when it is being edited.
Definition: sch_pin.cpp:2204
void SetNumber(const wxString &aNumber)
Definition: sch_pin.cpp:467
std::optional< int > m_nameTextSize
Definition: sch_pin.h:360
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:1304
void SetVisible(bool aVisible)
Definition: sch_pin.h:105
int GetX() const
Definition: sch_pin.h:194
void ChangeLength(int aLength)
Change the length of a pin and adjust its position based on orientation.
Definition: sch_pin.cpp:1420
ALT GetAlt(const wxString &aAlt)
Definition: sch_pin.h:129
void SetX(int aX)
Definition: sch_pin.h:195
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:1911
SCH_PIN & operator=(const SCH_PIN &aPin)
Definition: sch_pin.cpp:214
wxString GetShownNumber() const
Definition: sch_pin.cpp:458
SCH_PIN * m_libPin
Definition: sch_pin.h:345
void Move(const VECTOR2I &aOffset) override
Move the item by aMoveVector to a new position.
Definition: sch_pin.cpp:1448
std::map< const SCH_SHEET_PATH, std::pair< wxString, bool > > m_net_name_map
Definition: sch_pin.h:372
PIN_ORIENTATION m_orientation
Definition: sch_pin.h:353
const wxString & GetOperatingPoint() const
Definition: sch_pin.h:283
void SetOrientation(PIN_ORIENTATION aOrientation)
Definition: sch_pin.h:84
void SetName(const wxString &aName)
Definition: sch_pin.cpp:364
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:179
wxString getItemDescription(ALT *aAlt) const
Definition: sch_pin.cpp:1981
bool IsVisible() const
Definition: sch_pin.cpp:340
bool ConnectionPropagatesTo(const EDA_ITEM *aItem) const override
Return true if this item should propagate connection info to aItem.
Definition: sch_pin.cpp:1933
std::optional< int > m_numTextSize
Definition: sch_pin.h:359
VECTOR2I GetPinRoot() const
Definition: sch_pin.cpp:521
~SCH_PIN() override
Definition: sch_pin.h:61
ELECTRICAL_PINTYPE m_type
Definition: sch_pin.h:355
void SetLibPin(SCH_PIN *aLibPin)
Definition: sch_pin.h:81
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
Definition: sch_pin.cpp:1487
SCH_PIN * GetLibPin() const
Definition: sch_pin.h:80
bool operator!=(const SCH_ITEM &aOther) const
Definition: sch_pin.h:289
void SetPosition(const VECTOR2I &aPos) override
Definition: sch_pin.h:191
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:2114
bool m_isDangling
Definition: sch_pin.h:368
bool IsConnectable() const override
Definition: sch_pin.h:252
wxString GetElectricalTypeName() const
Definition: sch_pin.cpp:326
int GetPenWidth() const override
Definition: sch_pin.h:185
bool operator==(const SCH_ITEM &aOther) const override
Definition: sch_pin.cpp:2031
std::map< wxString, ALT > m_alternates
Definition: sch_pin.h:348
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the layers the item is drawn on (which may be more than its "home" layer)
Definition: sch_pin.cpp:1731
const wxString & GetName() const
Definition: sch_pin.cpp:353
wxString GetFriendlyName() const override
Definition: sch_pin.h:75
void SetLength(int aLength)
Definition: sch_pin.h:90
bool IsDangling() const override
Definition: sch_pin.h:260
bool operator<(const SCH_PIN &aRhs) const
Definition: sch_pin.h:290
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:1532
void MirrorHorizontally(int aCenter) override
these transforms have effect only if the pin has a LIB_SYMBOL as parent
Definition: sch_pin.cpp:1467
std::recursive_mutex m_netmap_mutex
The name that this pin connection will drive onto a net.
Definition: sch_pin.h:371
PIN_ORIENTATION GetOrientation() const
Definition: sch_pin.cpp:245
wxString GetClass() const override
Return the class name.
Definition: sch_pin.h:65
void SetNumberTextSize(int aSize)
Definition: sch_pin.cpp:514
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:718
void SetShape(GRAPHIC_PINSHAPE aShape)
Definition: sch_pin.h:87
void RotatePin(const VECTOR2I &aCenter, bool aRotateCCW=true)
Definition: sch_pin.cpp:1494
std::map< wxString, ALT > & GetAlternates()
Definition: sch_pin.h:121
VECTOR2I GetPosition() const override
Definition: sch_pin.cpp:237
EXTENTS_CACHE m_numExtentsCache
Definition: sch_pin.h:365
wxString GetCanonicalElectricalTypeName() const
Definition: sch_pin.cpp:312
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:401
int GetNameTextSize() const
Definition: sch_pin.cpp:477
VECTOR2I m_position
Definition: sch_pin.h:351
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:590
wxString m_operatingPoint
Definition: sch_pin.h:363
GRAPHIC_PINSHAPE m_shape
Definition: sch_pin.h:354
int compare(const SCH_ITEM &aOther, int aCompareFlags=0) const override
Provide the draw object specific comparison called by the == and < operators.
Definition: sch_pin.cpp:1348
wxString GetShownName() const
Definition: sch_pin.cpp:444
static bool ClassOf(const EDA_ITEM *aItem)
Definition: sch_pin.h:70
void MirrorHorizontallyPin(int aCenter)
these transforms have always effects
Definition: sch_pin.cpp:1454
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:414
wxString m_name
Definition: sch_pin.h:357
wxString m_alt
Definition: sch_pin.h:361
void SetOperatingPoint(const wxString &aText)
Definition: sch_pin.h:284
void SetType(ELECTRICAL_PINTYPE aType)
Definition: sch_pin.h:100
void ClearDefaultNetName(const SCH_SHEET_PATH *aPath)
Definition: sch_pin.cpp:1621
void SetY(int aY)
Definition: sch_pin.h:197
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:895
EXTENTS_CACHE m_nameExtentsCache
Definition: sch_pin.h:366
void SetIsDangling(bool isDangling)
Definition: sch_pin.h:268
bool IsPointClickableAnchor(const VECTOR2I &aPos) const override
Definition: sch_pin.h:276
bool IsStacked(const SCH_PIN *aPin) const
Definition: sch_pin.cpp:374
bool operator>(const SCH_PIN &aRhs) const
Definition: sch_pin.h:291
const wxString & GetNumber() const
Definition: sch_pin.h:111
wxString m_number
Definition: sch_pin.h:358
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
Definition: sch_pin.cpp:1339
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
Definition: sch_pin.h:163
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:541
wxString GetDefaultNetName(const SCH_SHEET_PATH &aPath, bool aForceNoConnect=false)
Definition: sch_pin.cpp:1632
std::optional< int > m_length
Definition: sch_pin.h:352
GRAPHIC_PINSHAPE GetShape() const
Definition: sch_pin.cpp:258
void PlotPinType(PLOTTER *aPlotter, const VECTOR2I &aPosition, PIN_ORIENTATION aOrientation, bool aDimmed) const
Definition: sch_pin.cpp:967
int GetY() const
Definition: sch_pin.h:196
ELECTRICAL_PINTYPE GetType() const
Definition: sch_pin.cpp:291
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
Definition: sch_pin.cpp:1942
void SetNameTextSize(int aSize)
Definition: sch_pin.cpp:492
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:105
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:77
GRAPHIC_PINSHAPE
Definition: pin_type.h:57
wxString m_Name
Definition: sch_pin.h:43
GRAPHIC_PINSHAPE m_Shape
Definition: sch_pin.h:44
ELECTRICAL_PINTYPE m_Type
Definition: sch_pin.h:45
KIFONT::FONT * m_Font
Definition: sch_pin.h:298
@ SCH_PIN_T
Definition: typeinfo.h:153