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 The 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#include <vector>
28
29#include <pin_type.h>
30#include <sch_item.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
65 SCH_PIN( SCH_SYMBOL* aParentSymbol, const wxString& aNumber, const wxString& aAlt,
66 const KIID& aUuid );
67
68 SCH_PIN( const SCH_PIN& aPin );
69
70 ~SCH_PIN();
71
72 SCH_PIN& operator=( const SCH_PIN& aPin );
73
74 void Serialize( google::protobuf::Any& aContainer ) const override;
75 bool Deserialize( const google::protobuf::Any& aContainer ) override;
76
77 wxString GetClass() const override
78 {
79 return wxT( "SCH_PIN" );
80 }
81
82 static bool ClassOf( const EDA_ITEM* aItem )
83 {
84 return aItem && aItem->Type() == SCH_PIN_T;
85 }
86
87 wxString GetFriendlyName() const override
88 {
89 return _( "Pin" );
90 }
91
92 SCH_PIN* GetLibPin() const { return m_libPin; }
93 void SetLibPin( SCH_PIN* aLibPin ) { m_libPin = aLibPin; }
94
96 void SetOrientation( PIN_ORIENTATION aOrientation ) { m_orientation = aOrientation; }
97
99 void SetShape( GRAPHIC_PINSHAPE aShape ) { m_shape = aShape; }
100
101 int GetLength() const;
102 void SetLength( int aLength ) { m_length = aLength; }
103
109 void ChangeLength( int aLength );
110
112 void SetType( ELECTRICAL_PINTYPE aType );
113 wxString GetCanonicalElectricalTypeName() const;
114 wxString GetElectricalTypeName() const;
115
116 bool IsVisible() const;
117 void SetVisible( bool aVisible ) { m_hidden = !aVisible; }
118
119 const wxString& GetName() const;
120 const wxString& GetShownName() const;
121 void SetName( const wxString& aName );
125 const wxString& GetBaseName() const;
126
127 const wxString& GetNumber() const { return m_number; }
128 const wxString& GetShownNumber() const;
129 std::vector<wxString> GetStackedPinNumbers( bool* aValid = nullptr ) const;
130
141 int GetStackedPinCount( bool* aValid = nullptr ) const;
142
147 std::optional<wxString> GetSmallestLogicalNumber() const;
148
154 wxString GetEffectivePadNumber() const;
155 void SetNumber( const wxString& aNumber );
156
157 int GetNameTextSize() const;
158 void SetNameTextSize( int aSize );
159
160 int GetNumberTextSize() const;
161 void SetNumberTextSize( int aSize );
162
163 const std::map<wxString, ALT>& GetAlternates() const
164 {
165 if( m_libPin )
166 return m_libPin->GetAlternates();
167
168 return m_alternates;
169 }
170
171 std::map<wxString, ALT>& GetAlternates()
172 {
173 return const_cast<std::map<wxString, ALT>&>(
174 static_cast<const SCH_PIN*>( this )->GetAlternates() );
175 }
176
177 ALT GetAlt( const wxString& aAlt )
178 {
179 return GetAlternates()[ aAlt ];
180 }
181
182 wxString GetAlt() const { return m_alt; }
183
193 void SetAlt( const wxString& aAlt );
194
201 PIN_ORIENTATION PinDrawOrient( const TRANSFORM& aTransform ) const;
202
203#if defined(DEBUG)
204 void Show( int nestLevel, std::ostream& os ) const override;
205#endif
206
207 bool HitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const override;
208
209 bool HitTest( const BOX2I& aRect, bool aContained, int aAccuracy = 0 ) const override;
210
211 void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override;
212
213 const BOX2I ViewBBox() const override;
214
215 std::vector<int> ViewGetLayers() const override;
216
217 /* Cannot use a default parameter here as it will not be compatible with the virtual. */
218 const BOX2I GetBoundingBox() const override
219 {
220 return GetBoundingBox( false, true, m_flags & SHOW_ELEC_TYPE );
221 }
222
227 BOX2I GetBoundingBox( bool aIncludeLabelsOnInvisiblePins, bool aIncludeNameAndNumber,
228 bool aIncludeElectricalType ) const;
229
234 bool IsGlobalPower() const;
235
240 bool IsLocalPower() const;
241
246 bool IsPower() const;
247
248 int GetPenWidth() const override { return 0; }
249
250 void Move( const VECTOR2I& aOffset ) override;
251
252 VECTOR2I GetPosition() const override;
254 void SetPosition( const VECTOR2I& aPos ) override { m_position = aPos; }
255
256 // For properties system
257 int GetX() const { return m_position.x; }
258 void SetX( int aX ) { m_position.x = aX; }
259 int GetY() const { return m_position.y; }
260 void SetY( int aY ) { m_position.y = aY; }
261
262 VECTOR2I GetPinRoot() const;
263
267 void MirrorHorizontally( int aCenter ) override;
268 void MirrorVertically( int aCenter ) override;
269 void Rotate( const VECTOR2I& aCenter, bool aRotateCCW = true ) override;
270
274 void MirrorHorizontallyPin( int aCenter );
275 void MirrorVerticallyPin( int aCenter );
276 void RotatePin( const VECTOR2I& aCenter, bool aRotateCCW = true );
277
284 void PlotPinTexts( PLOTTER *aPlotter, const VECTOR2I &aPinPos, PIN_ORIENTATION aPinOrient,
285 int aTextInside, bool aDrawPinNum, bool aDrawPinName, bool aDimmed ) const;
286
287 void PlotPinType( PLOTTER *aPlotter, const VECTOR2I &aPosition, PIN_ORIENTATION aOrientation,
288 bool aDimmed ) const;
289
290 void Plot( PLOTTER* aPlotter, bool aBackground, const SCH_PLOT_OPTS& aPlotOpts,
291 int aUnit, int aBodyStyle, const VECTOR2I& aOffset, bool aDimmed ) override;
292
293 BITMAPS GetMenuImage() const override;
294
295 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const override;
296 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider, ALT* aAlt ) const;
297
298 EDA_ITEM* Clone() const override;
299
300 void CalcEdit( const VECTOR2I& aPosition ) override;
301
302 bool Matches( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) const override;
303
304 bool Replace( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) override;
305
315
316 bool IsConnectable() const override { return true; }
317
318 bool IsLocked() const override;
319
320 bool HasConnectivityChanges( const SCH_ITEM* aItem,
321 const SCH_SHEET_PATH* aInstance = nullptr ) const override;
322
323 void ClearDefaultNetName( const SCH_SHEET_PATH* aPath );
324 wxString GetDefaultNetName( const SCH_SHEET_PATH& aPath, bool aForceNoConnect = false );
325
326 bool IsDangling() const override;
327 void SetIsDangling( bool aIsDangling );
328
333 bool IsStacked( const SCH_PIN* aPin ) const;
334
335 bool IsPointClickableAnchor( const VECTOR2I& aPos ) const override
336 {
337 return m_isDangling && GetPosition() == aPos;
338 }
339
340 bool ConnectionPropagatesTo( const EDA_ITEM* aItem ) const override;
341
342 const wxString& GetOperatingPoint() const { return m_operatingPoint; }
343 void SetOperatingPoint( const wxString& aText ) { m_operatingPoint = aText; }
344
345 double Similarity( const SCH_ITEM& aOther ) const override;
346
347 bool operator>( const SCH_ITEM& aRhs ) const { return compare( aRhs, EQUALITY ) > 0; }
348
357
358protected:
359 wxString getItemDescription( ALT* aAlt ) const;
360
367
368 void validateExtentsCache( KIFONT::FONT* aFont, int aSize, const wxString& aText,
369 EXTENTS_CACHE* aCache ) const;
370
371 std::ostream& operator<<( std::ostream& aStream );
372
373private:
390 int compare( const SCH_ITEM& aOther, int aCompareFlags = 0 ) const override;
391
392protected:
393 SCH_PIN* m_libPin; // The corresponding pin in the LIB_SYMBOL
394 // (nullptr for a pin *in* the LIB_SYMBOL)
395
396 std::map<wxString, ALT> m_alternates; // Map of alternate name to ALT structure
397 // (only valid for pins in LIB_SYMBOLS)
398
399 VECTOR2I m_position; // Position of the pin.
400 std::optional<int> m_length; // Length of the pin.
401 PIN_ORIENTATION m_orientation; // Pin orientation (Up, Down, Left, Right)
402 GRAPHIC_PINSHAPE m_shape; // Shape drawn around pin
403 ELECTRICAL_PINTYPE m_type; // Electrical type of the pin.
404 std::optional<bool> m_hidden;
405 wxString m_name;
406 wxString m_number;
407 std::optional<int> m_numTextSize; // Pin num and Pin name sizes
408 std::optional<int> m_nameTextSize;
409 wxString m_alt; // The current alternate for an instance
410
412
414
420 mutable std::unique_ptr<PIN_LAYOUT_CACHE> m_layoutCache;
421
423 std::recursive_mutex m_netmap_mutex;
424 std::map<const SCH_SHEET_PATH, std::pair<wxString, bool>> m_net_name_map;
425};
BITMAPS
A list of all bitmap identifiers.
BOX2< VECTOR2I > BOX2I
Definition box2.h:922
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:100
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:112
EDA_ITEM_FLAGS m_flags
Definition eda_item.h:539
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Definition eda_item.cpp:41
FONT is an abstract base class for both outline and stroke fonts.
Definition font.h:98
Definition kiid.h:48
Define a library symbol object.
Definition lib_symbol.h:83
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:136
Base class for any item which can be embedded within the SCHEMATIC container class,...
Definition sch_item.h:168
friend class LIB_SYMBOL
Definition sch_item.h:803
SCH_ITEM(EDA_ITEM *aParent, KICAD_T aType, int aUnit=0, int aBodyStyle=0)
Definition sch_item.cpp:56
void Rotate(const VECTOR2I &aCenter, bool aRotateCCW=true) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
Definition sch_pin.cpp:1431
std::ostream & operator<<(std::ostream &aStream)
Definition sch_pin.cpp:1975
void SetAlt(const wxString &aAlt)
Set the name of the alternate pin.
Definition sch_pin.cpp:518
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:965
VECTOR2I GetLocalPosition() const
Definition sch_pin.h:253
int GetNumberTextSize() const
Definition sch_pin.cpp:765
int GetLength() const
Definition sch_pin.cpp:379
std::optional< bool > m_hidden
Definition sch_pin.h:404
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
Definition sch_pin.cpp:584
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:1459
std::unique_ptr< PIN_LAYOUT_CACHE > m_layoutCache
The layout cache for this pin.
Definition sch_pin.h:420
void MirrorVerticallyPin(int aCenter)
Definition sch_pin.cpp:1380
void validateExtentsCache(KIFONT::FONT *aFont, int aSize, const wxString &aText, EXTENTS_CACHE *aCache) const
Definition sch_pin.cpp:1640
wxString GetAlt() const
Definition sch_pin.h:182
bool operator>(const SCH_ITEM &aRhs) const
Definition sch_pin.h:347
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
Definition sch_pin.cpp:1627
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:1633
const std::map< wxString, ALT > & GetAlternates() const
Definition sch_pin.h:163
void CalcEdit(const VECTOR2I &aPosition) override
Calculate the attributes of an item at aPosition when it is being edited.
Definition sch_pin.cpp:2004
void SetNumber(const wxString &aNumber)
Definition sch_pin.cpp:725
std::optional< int > m_nameTextSize
Definition sch_pin.h:408
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:1282
void SetVisible(bool aVisible)
Definition sch_pin.h:117
int GetX() const
Definition sch_pin.h:257
void ChangeLength(int aLength)
Change the length of a pin and adjust its position based on orientation.
Definition sch_pin.cpp:1326
ALT GetAlt(const wxString &aAlt)
Definition sch_pin.h:177
void SetX(int aX)
Definition sch_pin.h:258
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:1680
SCH_PIN & operator=(const SCH_PIN &aPin)
Definition sch_pin.cpp:233
SCH_PIN * m_libPin
Definition sch_pin.h:393
std::optional< wxString > GetSmallestLogicalNumber() const
Return the smallest logical pin number if this pin uses stacked notation and it is valid.
Definition sch_pin.cpp:704
void Move(const VECTOR2I &aOffset) override
Move the item by aMoveVector to a new position.
Definition sch_pin.cpp:1354
std::map< const SCH_SHEET_PATH, std::pair< wxString, bool > > m_net_name_map
Definition sch_pin.h:424
PIN_ORIENTATION m_orientation
Definition sch_pin.h:401
const wxString & GetOperatingPoint() const
Definition sch_pin.h:342
void SetOrientation(PIN_ORIENTATION aOrientation)
Definition sch_pin.h:96
void SetName(const wxString &aName)
Definition sch_pin.cpp:503
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.cpp:439
wxString getItemDescription(ALT *aAlt) const
Definition sch_pin.cpp:1774
bool IsVisible() const
Definition sch_pin.cpp:471
bool ConnectionPropagatesTo(const EDA_ITEM *aItem) const override
Return true if this item should propagate connection info to aItem.
Definition sch_pin.cpp:1714
bool IsLocked() const override
Definition sch_pin.cpp:1720
std::optional< int > m_numTextSize
Definition sch_pin.h:407
VECTOR2I GetPinRoot() const
Definition sch_pin.cpp:791
bool IsLocalPower() const
Local power pin is the same except that it is sheet-local and it does not support the legacy hidden p...
Definition sch_pin.cpp:458
ELECTRICAL_PINTYPE m_type
Definition sch_pin.h:403
void SetLibPin(SCH_PIN *aLibPin)
Definition sch_pin.h:93
wxString GetEffectivePadNumber() const
Return the pin number to be used for deterministic operations such as auto‑generated net names.
Definition sch_pin.cpp:716
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
Definition sch_pin.cpp:1393
SCH_PIN * GetLibPin() const
Definition sch_pin.h:92
void SetPosition(const VECTOR2I &aPos) override
Definition sch_pin.h:254
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:1915
bool m_isDangling
Definition sch_pin.h:413
bool IsConnectable() const override
Definition sch_pin.h:316
void SetIsDangling(bool aIsDangling)
Definition sch_pin.cpp:555
wxString GetElectricalTypeName() const
Definition sch_pin.cpp:432
std::vector< wxString > GetStackedPinNumbers(bool *aValid=nullptr) const
Definition sch_pin.cpp:679
int GetPenWidth() const override
Definition sch_pin.h:248
std::map< wxString, ALT > m_alternates
Definition sch_pin.h:396
const wxString & GetName() const
Definition sch_pin.cpp:485
wxString GetFriendlyName() const override
Definition sch_pin.h:87
int GetStackedPinCount(bool *aValid=nullptr) const
Return the count of logical pins represented by this pin's stacked notation.
Definition sch_pin.cpp:697
void SetLength(int aLength)
Definition sch_pin.h:102
bool IsDangling() const override
Definition sch_pin.cpp:546
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:1438
void MirrorHorizontally(int aCenter) override
These transforms have effect only if the pin has a LIB_SYMBOL as parent.
Definition sch_pin.cpp:1373
std::recursive_mutex m_netmap_mutex
The name that this pin connection will drive onto a net.
Definition sch_pin.h:423
PIN_ORIENTATION GetOrientation() const
Definition sch_pin.cpp:344
wxString GetClass() const override
Return the class name.
Definition sch_pin.h:77
void SetNumberTextSize(int aSize)
Definition sch_pin.cpp:779
void SetShape(GRAPHIC_PINSHAPE aShape)
Definition sch_pin.h:99
void RotatePin(const VECTOR2I &aCenter, bool aRotateCCW=true)
Definition sch_pin.cpp:1400
std::map< wxString, ALT > & GetAlternates()
Definition sch_pin.h:171
VECTOR2I GetPosition() const override
Definition sch_pin.cpp:336
wxString GetCanonicalElectricalTypeName() const
Definition sch_pin.cpp:425
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:611
int GetNameTextSize() const
Definition sch_pin.cpp:739
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
Definition sch_pin.cpp:1747
VECTOR2I m_position
Definition sch_pin.h:399
wxString m_operatingPoint
Definition sch_pin.h:411
GRAPHIC_PINSHAPE m_shape
Definition sch_pin.h:402
bool Deserialize(const google::protobuf::Any &aContainer) override
Deserializes the given protobuf message into this object.
Definition sch_pin.cpp:293
int compare(const SCH_ITEM &aOther, int aCompareFlags=0) const override
The pin specific sort order is as follows:
Definition sch_pin.cpp:1819
const wxString & GetShownName() const
Definition sch_pin.cpp:662
static bool ClassOf(const EDA_ITEM *aItem)
Definition sch_pin.h:82
void MirrorHorizontallyPin(int aCenter)
These transforms have always effects.
Definition sch_pin.cpp:1360
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:632
PIN_LAYOUT_CACHE & GetLayoutCache() const
Get the layout cache associated with this pin.
Definition sch_pin.cpp:1671
wxString m_name
Definition sch_pin.h:405
wxString m_alt
Definition sch_pin.h:409
void SetOperatingPoint(const wxString &aText)
Definition sch_pin.h:343
void SetType(ELECTRICAL_PINTYPE aType)
Definition sch_pin.cpp:413
const wxString & GetBaseName() const
Get the name without any alternates.
Definition sch_pin.cpp:494
void ClearDefaultNetName(const SCH_SHEET_PATH *aPath)
Definition sch_pin.cpp:1506
void SetY(int aY)
Definition sch_pin.h:260
SCH_PIN(LIB_SYMBOL *aParentSymbol)
Definition sch_pin.cpp:123
const wxString & GetShownNumber() const
Definition sch_pin.cpp:673
bool IsPointClickableAnchor(const VECTOR2I &aPos) const override
Definition sch_pin.h:335
bool IsStacked(const SCH_PIN *aPin) const
Definition sch_pin.cpp:561
const wxString & GetNumber() const
Definition sch_pin.h:127
wxString m_number
Definition sch_pin.h:406
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
Definition sch_pin.cpp:1317
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
Definition sch_pin.h:218
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
Definition sch_pin.cpp:257
wxString GetDefaultNetName(const SCH_SHEET_PATH &aPath, bool aForceNoConnect=false)
Definition sch_pin.cpp:1517
std::optional< int > m_length
Definition sch_pin.h:400
static wxString GetCanonicalElectricalTypeName(ELECTRICAL_PINTYPE aType)
Return a string giving the electrical type of a pin.
GRAPHIC_PINSHAPE GetShape() const
Definition sch_pin.cpp:358
void PlotPinType(PLOTTER *aPlotter, const VECTOR2I &aPosition, PIN_ORIENTATION aOrientation, bool aDimmed) const
Definition sch_pin.cpp:814
int GetY() const
Definition sch_pin.h:259
bool IsPower() const
Check if the pin is either a global or local power pin.
Definition sch_pin.cpp:465
ELECTRICAL_PINTYPE GetType() const
Definition sch_pin.cpp:393
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
Definition sch_pin.cpp:1732
void SetNameTextSize(int aSize)
Definition sch_pin.cpp:753
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:76
for transforming drawing coordinates for a wxDC device context.
Definition transform.h:46
#define _(s)
#define SHOW_ELEC_TYPE
Show pin electrical type.
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:105
GRAPHIC_PINSHAPE
Definition pin_type.h:84
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:363
@ SCH_PIN_T
Definition typeinfo.h:154
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:687