KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_symbol.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, jp.charras at wanadoo.fr
5 * Copyright (C) 2014 Dick Hollenbeck, [email protected]
6 * Copyright (C) 2015 Wayne Stambaugh <[email protected]>
7 * Copyright (C) 2022 CERN
8 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
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
21 * along with this program; if not, you may find one here:
22 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
23 * or you may search the http://www.gnu.org website for the version 2 license,
24 * or you may write to the Free Software Foundation, Inc.,
25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26 */
27
28#ifndef SCH_SYMBOL_H
29#define SCH_SYMBOL_H
30
31#include <eda_item.h>
32#include <core/typeinfo.h>
33#include <layer_ids.h>
34#include <lib_id.h>
35
36#include <memory>
37#include <string>
38#include <unordered_map>
39#include <vector>
40#include <wx/arrstr.h>
41#include <wx/chartype.h>
42#include <wx/string.h>
43
44#include <schematic.h>
45#include <symbol.h>
46#include <sch_field.h>
47#include <sch_pin.h>
48#include <sch_sheet_path.h> // SCH_SYMBOL_INSTANCE
49#include <transform.h>
50
51struct PICKED_SYMBOL;
52class KIID_PATH;
53class SCH_SCREEN;
54class LIB_SYMBOL;
55class MSG_PANEL_ITEM;
58class SCH_SCREEN;
59class SCH_COMMIT;
60class SCH_SHAPE;
61
62
64typedef std::vector<SCH_FIELD> SCH_FIELDS;
65
66typedef std::weak_ptr<LIB_SYMBOL> PART_REF;
67
68
69extern std::string toUTFTildaText( const wxString& txt );
70
71
75class SCH_SYMBOL : public SYMBOL
76{
77public:
78 SCH_SYMBOL();
79
90 SCH_SYMBOL( const LIB_SYMBOL& aSymbol, const LIB_ID& aLibId, const SCH_SHEET_PATH* aSheet,
91 int aUnit, int aBodyStyle = 0, const VECTOR2I& aPosition = VECTOR2I( 0, 0 ),
92 EDA_ITEM* aParent = nullptr );
93
94 SCH_SYMBOL( const LIB_SYMBOL& aSymbol, const SCH_SHEET_PATH* aSheet, const PICKED_SYMBOL& aSel,
95 const VECTOR2I& aPosition = VECTOR2I( 0, 0 ), EDA_ITEM* aParent = nullptr );
96
106 SCH_SYMBOL( const SCH_SYMBOL& aSymbol );
107
108 ~SCH_SYMBOL();
109
110 static inline bool ClassOf( const EDA_ITEM* aItem )
111 {
112 return aItem && SCH_SYMBOL_T == aItem->Type();
113 }
114
115 wxString GetClass() const override
116 {
117 return wxT( "SCH_SYMBOL" );
118 }
119
133 bool IsMissingLibSymbol() const;
134
135 const std::vector<SCH_SYMBOL_INSTANCE>& GetInstances() const
136 {
137 return m_instances;
138 }
139
140 bool GetInstance( SCH_SYMBOL_INSTANCE& aInstance,
141 const KIID_PATH& aSheetPath, bool aTestFromEnd = false ) const;
142
143 void RemoveInstance( const SCH_SHEET_PATH& aInstancePath );
144
145 void RemoveInstance( const KIID_PATH& aInstancePath );
146
161 bool IsMovableFromAnchorPoint() const override;
162
163 void SetLibId( const LIB_ID& aName );
164
165 const LIB_ID& GetLibId() const override { return m_lib_id; }
166
167 wxString GetSymbolIDAsString() const { return m_lib_id.Format(); }
168
180 void SetSchSymbolLibraryName( const wxString& aName ) { m_schLibSymbolName = aName; }
181 wxString GetSchSymbolLibraryName() const;
182 bool UseLibIdLookup() const { return m_schLibSymbolName.IsEmpty(); }
183
184 std::unique_ptr< LIB_SYMBOL >& GetLibSymbolRef() { return m_part; }
185 const std::unique_ptr< LIB_SYMBOL >& GetLibSymbolRef() const { return m_part; }
186
203 void SetLibSymbol( LIB_SYMBOL* aLibSymbol );
204
208 wxString GetDescription() const override;
209 wxString GetShownDescription( int aDepth = 0 ) const override;
210
214 wxString GetKeyWords() const override;
215 wxString GetShownKeyWords( int aDepth = 0 ) const override;
216
220 wxString GetDatasheet() const;
221
225 void UpdatePins();
226
232 wxString GetUnitDisplayName( int aUnit, bool aLabel ) const override;
233
234 wxString GetBodyStyleDescription( int aBodyStyle, bool aLabel ) const override;
235
236 void SetBodyStyle( int aBodyStyle ) override;
237
238 wxString GetPrefix() const { return m_prefix; }
239 void SetPrefix( const wxString& aPrefix ) { m_prefix = aPrefix; }
240
244 void UpdatePrefix();
245
246 wxString SubReference( int aUnit, bool aAddSeparator = true ) const;
247
253 int GetUnitCount() const override;
254
255 bool IsMultiUnit() const override { return GetUnitCount() > 1; }
256
262 int GetBodyStyleCount() const override;
263
264 bool IsMultiBodyStyle() const override { return GetBodyStyleCount() > 1; }
265
266 bool HasDeMorganBodyStyles() const override;
267
274 void SetOrientation( int aOrientation );
275
291 int GetOrientation() const override;
292
297 {
298 int mirroring = GetOrientation();
299
301
302 SetOrientation( aAngle | mirroring );
303 }
304
321
322 void SetMirrorX( bool aMirror )
323 {
324 int orientation = GetOrientation();
325
326 if( aMirror )
328 else
330
331 SetOrientation( orientation );
332 }
333
334 bool GetMirrorX() const
335 {
337 }
338
339 void SetMirrorY( bool aMirror )
340 {
341 int orientation = GetOrientation();
342
343 if( aMirror )
345 else
347
348 SetOrientation( orientation );
349 }
350
351 bool GetMirrorY() const
352 {
354 }
355
359 void GetContextualTextVars( wxArrayString* aVars ) const;
360
368 bool ResolveTextVar( const SCH_SHEET_PATH* aPath, wxString* token, int aDepth = 0 ) const;
369
378 bool ResolveTextVar( const SCH_SHEET_PATH* aPath, wxString* token,
379 const wxString& aVariantName, int aDepth = 0 ) const;
380
381 void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override;
382
393 void ClearAnnotation( const SCH_SHEET_PATH* aSheetPath, bool aResetPrefix );
394
406 bool AddSheetPathReferenceEntryIfMissing( const KIID_PATH& aSheetPath );
407
408
409 const BOX2I GetBoundingBox() const override;
410
414 BOX2I GetBodyBoundingBox() const override;
415
419 BOX2I GetBodyAndPinsBoundingBox() const override;
420
421
422 //-----<Fields>-----------------------------------------------------------
423
428 SCH_FIELD* GetField( FIELD_T aFieldType );
429 const SCH_FIELD* GetField( FIELD_T aFieldNdx ) const;
430
438 SCH_FIELD* GetField( const wxString& aFieldName );
439 const SCH_FIELD* GetField( const wxString& aFieldName ) const;
440
447 void GetFields( std::vector<SCH_FIELD*>& aVector, bool aVisibleOnly ) const override;
448
452 std::vector<SCH_FIELD>& GetFields() { return m_fields; }
453 const std::vector<SCH_FIELD>& GetFields() const { return m_fields; }
454
462 SCH_FIELD* AddField( const SCH_FIELD& aField );
463
469 void RemoveField( const wxString& aFieldName );
470
471 void RemoveField( SCH_FIELD* aField )
472 {
473 if( aField )
474 RemoveField( aField->GetName() );
475 }
476
484 SCH_FIELD* FindFieldCaseInsensitive( const wxString& aFieldName );
485 const SCH_FIELD* FindFieldCaseInsensitive( const wxString& aFieldName ) const;
486
490 const wxString GetRef( const SCH_SHEET_PATH* aSheet,
491 bool aIncludeUnit = false ) const override;
492
496 const wxString GetValue( bool aResolve, const SCH_SHEET_PATH* aPath,
497 bool aAllowExtraText, const wxString& aVariantName = wxEmptyString ) const override;
498
499 void SetValueFieldText( const wxString& aValue, const SCH_SHEET_PATH* aInstance = nullptr,
500 const wxString& aVariantName = wxEmptyString );
501
502 const wxString GetFootprintFieldText( bool aResolve, const SCH_SHEET_PATH* aPath,
503 bool aAllowExtraText, const wxString& aVariantName = wxEmptyString ) const;
504 void SetFootprintFieldText( const wxString& aFootprint );
505
506 /*
507 * Field access for property manager
508 */
509 wxString GetRefProp() const
510 {
511 return GetRef( &Schematic()->CurrentSheet() );
512 }
513
514 void SetRefProp( const wxString& aRef );
515
516 wxString GetValueProp() const
517 {
518 return GetValue( false, &Schematic()->CurrentSheet(), false, Schematic()->GetCurrentVariant() );
519 }
520
521 void SetValueProp( const wxString& aValue ); // Implemented in sch_symbol.cpp for tracing
522
523 int GetUnitProp() const
524 {
525 return GetUnitSelection( &Schematic()->CurrentSheet() );
526 }
527
528 void SetFieldText( const wxString& aFieldName, const wxString& aFieldText, const SCH_SHEET_PATH* aPath = nullptr,
529 const wxString& aVariantName = wxEmptyString );
530
531 wxString GetFieldText( const wxString& aFieldName, const SCH_SHEET_PATH* aPath = nullptr,
532 const wxString& aVariantName = wxEmptyString ) const;
533
534 void SetUnitProp( int aUnit )
535 {
536 SetUnitSelection( &Schematic()->CurrentSheet(), aUnit );
537 SetUnit( aUnit );
538 }
539
540 wxString GetBodyStyleProp() const override
541 {
542 return GetBodyStyleDescription( GetBodyStyle(), false );
543 }
544
545 void SetBodyStyleProp( const wxString& aBodyStyle ) override
546 {
547 for( int bodyStyle = 1; bodyStyle <= GetBodyStyleCount(); bodyStyle++ )
548 {
549 if( GetBodyStyleDescription( bodyStyle, false ) == aBodyStyle )
550 {
551 SetBodyStyle( bodyStyle );
552 return;
553 }
554 }
555 }
556
567 void UpdateFields( const SCH_SHEET_PATH* aPath, bool aUpdateStyle, bool aUpdateRef,
568 bool aUpdateOtherFields, bool aResetRef, bool aResetOtherFields );
569
579 void SyncOtherUnits( const SCH_SHEET_PATH& aSourceSheet, SCH_COMMIT& aCommit,
580 PROPERTY_BASE* aProperty,
581 const wxString& aVariantName = wxEmptyString );
582
586 int GetNextFieldOrdinal() const;
587
594 void AutoplaceFields( SCH_SCREEN* aScreen, AUTOPLACE_ALGO aAlgo ) override;
595
596 void RunOnChildren( const std::function<void( SCH_ITEM* )>& aFunction, RECURSE_MODE aMode ) override;
597
598
599 //-----</Fields>----------------------------------------------------------
600
601
608 SCH_PIN* GetPin( const wxString& number ) const;
609
619 std::vector<SCH_PIN*> GetPinsByNumber( const wxString& aNumber ) const;
620
627 std::vector<SCH_PIN*> GetLibPins() const;
628
633 std::vector<SCH_PIN*> GetAllLibPins() const;
634
638 size_t GetFullPinCount() const;
639
643 SCH_PIN* GetPin( SCH_PIN* aLibPin ) const;
644
652 const SCH_PIN* GetPin( const VECTOR2I& aPosition ) const;
653
662 std::vector<const SCH_PIN*> GetPins( const SCH_SHEET_PATH* aSheet ) const;
663 std::vector<SCH_PIN*> GetPins( const SCH_SHEET_PATH* aSheet );
664
665 std::vector<SCH_PIN*> GetPins() const override;
666
667
668 std::vector<std::unique_ptr<SCH_PIN>>& GetRawPins() { return m_pins; }
669
676 void SetRef( const SCH_SHEET_PATH* aSheet, const wxString& aReference );
677
684 bool IsAnnotated( const SCH_SHEET_PATH* aSheet ) const;
685
697 void AddHierarchicalReference( const KIID_PATH& aPath,
698 const wxString& aRef,
699 int aUnit );
700
701 void AddHierarchicalReference( const SCH_SYMBOL_INSTANCE& aInstance );
702
704 int GetUnitSelection( const SCH_SHEET_PATH* aSheet ) const;
705
707 void SetUnitSelection( const SCH_SHEET_PATH* aSheet, int aUnitSelection );
708
710 void SetUnitSelection( int aUnitSelection );
711
712 virtual void SetDNP( bool aEnable, const SCH_SHEET_PATH* aInstance = nullptr,
713 const wxString& aVariantName = wxEmptyString ) override;
714 virtual bool GetDNP( const SCH_SHEET_PATH* aInstance = nullptr,
715 const wxString& aVariantName = wxEmptyString ) const override;
716
717 bool GetDNPProp() const { return GetDNP( &Schematic()->CurrentSheet(), Schematic()->GetCurrentVariant() ); }
718
719 void SetDNPProp( bool aEnable ) { SetDNP( aEnable, &Schematic()->CurrentSheet(),
720 Schematic()->GetCurrentVariant() ); }
721
722 void SetExcludedFromBOM( bool aEnable, const SCH_SHEET_PATH* aInstance = nullptr,
723 const wxString& aVariantName = wxEmptyString ) override;
724 bool GetExcludedFromBOM( const SCH_SHEET_PATH* aInstance = nullptr,
725 const wxString& aVariantName = wxEmptyString ) const override;
726
728 {
729 return GetExcludedFromBOM( &Schematic()->CurrentSheet(), Schematic()->GetCurrentVariant() );
730 }
731
732 void SetExcludedFromBOMProp( bool aEnable )
733 {
734 SetExcludedFromBOM( aEnable, &Schematic()->CurrentSheet(), Schematic()->GetCurrentVariant() );
735 }
736
737 void SetExcludedFromSim( bool aEnable, const SCH_SHEET_PATH* aInstance = nullptr,
738 const wxString& aVariantName = wxEmptyString ) override;
739 bool GetExcludedFromSim( const SCH_SHEET_PATH* aInstance = nullptr,
740 const wxString& aVariantName = wxEmptyString ) const override;
741
743 {
744 return GetExcludedFromSim( &Schematic()->CurrentSheet(), Schematic()->GetCurrentVariant() );
745 }
746
747 void SetExcludedFromSimProp( bool aEnable )
748 {
749 SetExcludedFromSim( aEnable, &Schematic()->CurrentSheet(), Schematic()->GetCurrentVariant() );
750 }
751
752 void SetExcludedFromBoard( bool aEnable, const SCH_SHEET_PATH* aInstance = nullptr,
753 const wxString& aVariantName = wxEmptyString ) override;
754 bool GetExcludedFromBoard( const SCH_SHEET_PATH* aInstance = nullptr,
755 const wxString& aVariantName = wxEmptyString ) const override;
756
758 {
759 return GetExcludedFromBoard( &Schematic()->CurrentSheet(), Schematic()->GetCurrentVariant() );
760 }
761
762 void SetExcludedFromBoardProp( bool aEnable )
763 {
764 SetExcludedFromBoard( aEnable, &Schematic()->CurrentSheet(), Schematic()->GetCurrentVariant() );
765 }
766
767 void SetExcludedFromPosFiles( bool aEnable, const SCH_SHEET_PATH* aInstance = nullptr,
768 const wxString& aVariantName = wxEmptyString ) override;
769 bool GetExcludedFromPosFiles( const SCH_SHEET_PATH* aInstance = nullptr,
770 const wxString& aVariantName = wxEmptyString ) const override;
771
773 {
774 return GetExcludedFromPosFiles( &Schematic()->CurrentSheet(), Schematic()->GetCurrentVariant() );
775 }
776
777 void SetExcludedFromPosFilesProp( bool aEnable )
778 {
779 SetExcludedFromPosFiles( aEnable, &Schematic()->CurrentSheet(), Schematic()->GetCurrentVariant() );
780 }
781
787
788 void Move( const VECTOR2I& aMoveVector ) override
789 {
790 if( aMoveVector == VECTOR2I( 0, 0 ) )
791 return;
792
793 m_pos += aMoveVector;
794
795 for( SCH_FIELD& field : m_fields )
796 field.Move( aMoveVector );
797 }
798
799 void MirrorHorizontally( int aCenter ) override;
800 void MirrorVertically( int aCenter ) override;
801 void Rotate( const VECTOR2I& aCenter, bool aRotateCCW ) override;
802
803 bool Matches( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) const override;
804
805 void GetEndPoints( std::vector<DANGLING_END_ITEM>& aItemList ) override;
806
817 bool UpdateDanglingState( std::vector<DANGLING_END_ITEM>& aItemListByType,
818 std::vector<DANGLING_END_ITEM>& aItemListByPos,
819 const SCH_SHEET_PATH* aPath = nullptr ) override;
820
821 VECTOR2I GetPinPhysicalPosition( const SCH_PIN* Pin ) const;
822
823 bool IsConnectable() const override { return true; }
824
825 bool HasConnectivityChanges( const SCH_ITEM* aItem,
826 const SCH_SHEET_PATH* aInstance = nullptr ) const override;
827
828 bool CanConnect( const SCH_ITEM* aItem ) const override
829 {
830 return ( aItem->Type() == SCH_LINE_T && aItem->GetLayer() == LAYER_WIRE ) ||
831 ( aItem->Type() == SCH_NO_CONNECT_T ) ||
832 ( aItem->Type() == SCH_JUNCTION_T ) ||
833 ( aItem->Type() == SCH_SYMBOL_T ) ||
834 ( aItem->Type() == SCH_DIRECTIVE_LABEL_T ) ||
835 ( aItem->Type() == SCH_LABEL_T ) ||
836 ( aItem->Type() == SCH_HIER_LABEL_T ) ||
837 ( aItem->Type() == SCH_GLOBAL_LABEL_T );
838 }
839
843 bool IsInNetlist() const;
844
851
854
855 // Back-compat helpers used by existing code and old file formats
857 void SetPassthrough( bool aEnable )
858 {
860 }
861
862 const wxString& GetNetChainName() const { return m_signalName; }
863 void SetNetChainName( const wxString& aName ) { m_signalName = aName; }
864
865 std::vector<VECTOR2I> GetConnectionPoints() const override;
866
867 INSPECT_RESULT Visit( INSPECTOR inspector, void* testData,
868 const std::vector<KICAD_T>& aScanTypes ) override;
869
877 SCH_ITEM* GetDrawItem( const VECTOR2I& aPosition, KICAD_T aType = TYPE_NOT_INIT );
878
879 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const override;
880
881 BITMAPS GetMenuImage() const override;
882
883 bool operator <( const SCH_ITEM& aItem ) const override;
884
885 bool operator==( const SCH_SYMBOL& aSymbol) const;
886 bool operator!=( const SCH_SYMBOL& aSymbol) const;
887
888 SCH_SYMBOL& operator=( const SCH_SYMBOL& aItem );
889
890 bool IsReplaceable() const override { return true; }
891
892 VECTOR2I GetPosition() const override { return m_pos; }
893 void SetPosition( const VECTOR2I& aPosition ) override { Move( aPosition - m_pos ); }
894
895 int GetX() const { return GetPosition().x; };
896 void SetX( int aX ) { SetPosition( VECTOR2I( aX, GetY() ) ); }
897
898 int GetY() const { return GetPosition().y; }
899 void SetY( int aY ) { SetPosition( VECTOR2I( GetX(), aY ) ); }
900
901 bool HitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const override;
902 bool HitTest( const BOX2I& aRect, bool aContained, int aAccuracy = 0 ) const override;
903 bool HitTest( const SHAPE_LINE_CHAIN& aPoly, bool aContained ) const override;
904
905 void Plot( PLOTTER* aPlotter, bool aBackground, const SCH_PLOT_OPTS& aPlotOpts,
906 int aUnit, int aBodyStyle, const VECTOR2I& aOffset, bool aDimmed ) override;
907
915 void PlotPins( PLOTTER* aPlotter, bool aDnp ) const;
916
922 void PlotLocalPowerIconShape( PLOTTER* aPlotter ) const;
923
930 void PlotDNP( PLOTTER* aPlotter ) const;
931
941 static void BuildLocalPowerIconShape( std::vector<SCH_SHAPE>& aShapeList, const VECTOR2D& aPos,
942 double aSize, double aLineWidth, bool aHorizontal );
943
944 EDA_ITEM* Clone() const override;
945
946 void Serialize( google::protobuf::Any& aContainer ) const override;
947 bool Deserialize( const google::protobuf::Any& aContainer ) override;
948
949#if defined(DEBUG)
950 void Show( int nestLevel, std::ostream& os ) const override;
951#endif
952
953 void ClearBrightenedPins();
954
955 bool HasBrightenedPins();
956
957 bool IsPointClickableAnchor( const VECTOR2I& aPos ) const override;
958
964 bool IsSymbolLikePowerGlobalLabel() const;
965 bool IsSymbolLikePowerLocalLabel() const;
966
967 bool IsGlobalPower() const override;
968 bool IsLocalPower() const override;
969 bool IsPower() const override;
970 bool IsNormal() const override;
971
972 bool GetShowPinNames() const override;
973 void SetShowPinNames( bool aShow ) override;
974
975 bool GetShowPinNumbers() const override;
976 void SetShowPinNumbers( bool aShow ) override;
977
978 double Similarity( const SCH_ITEM& aOther ) const override;
979
981 std::unordered_set<wxString> GetComponentClassNames( const SCH_SHEET_PATH* aPath ) const;
982
983 void DeleteVariant( const KIID_PATH& aPath, const wxString& aVariantName );
984
985 void RenameVariant( const KIID_PATH& aPath, const wxString& aOldName, const wxString& aNewName );
986
987 void CopyVariant( const KIID_PATH& aPath, const wxString& aSourceVariant,
988 const wxString& aNewVariant );
989
990 std::optional<SCH_SYMBOL_VARIANT> GetVariant( const SCH_SHEET_PATH& aInstance, const wxString& aVariantName ) const;
991 void AddVariant( const SCH_SHEET_PATH& aInstance, const SCH_SYMBOL_VARIANT& aVariant );
992
993 void DeleteVariant( const SCH_SHEET_PATH& aInstance, const wxString& aVariantName )
994 {
995 DeleteVariant( aInstance.Path(), aVariantName );
996 }
997
998 void RenameVariant( const SCH_SHEET_PATH& aInstance, const wxString& aOldName,
999 const wxString& aNewName )
1000 {
1001 RenameVariant( aInstance.Path(), aOldName, aNewName );
1002 }
1003
1004 void CopyVariant( const SCH_SHEET_PATH& aInstance, const wxString& aSourceVariant,
1005 const wxString& aNewVariant )
1006 {
1007 CopyVariant( aInstance.Path(), aSourceVariant, aNewVariant );
1008 }
1009
1010 bool operator==( const SCH_ITEM& aOther ) const override;
1011
1012protected:
1013 void swapData( SCH_ITEM* aItem ) override;
1014
1015private:
1016 BOX2I doGetBoundingBox( bool aIncludePins, bool aIncludeFields ) const;
1017
1018 bool doIsConnected( const VECTOR2I& aPosition ) const override;
1019
1020 void Init( const VECTOR2I& pos = VECTOR2I( 0, 0 ) );
1021
1022 SCH_SYMBOL_INSTANCE* getInstance( const KIID_PATH& aPath );
1023 const SCH_SYMBOL_INSTANCE* getInstance( const KIID_PATH& aPath ) const;
1024
1025 SCH_SYMBOL_INSTANCE* getInstance( const SCH_SHEET_PATH& aPath ) { return getInstance( aPath.Path() ); }
1026 const SCH_SYMBOL_INSTANCE* getInstance( const SCH_SHEET_PATH& aPath ) const { return getInstance( aPath.Path() ); }
1027
1028private:
1031 wxString m_prefix;
1035
1044
1045 std::vector<SCH_FIELD> m_fields;
1046
1047 std::unique_ptr<LIB_SYMBOL> m_part;
1050
1052
1054
1055 std::vector<std::unique_ptr<SCH_PIN>> m_pins;
1056 std::unordered_map<SCH_PIN*, SCH_PIN*> m_pinMap;
1057
1063 std::vector<SCH_SYMBOL_INSTANCE> m_instances;
1064
1066 static std::unordered_map<TRANSFORM, int> s_transformToOrientationCache;
1067};
1068
1069
1070#endif /* SCH_SYMBOL_H */
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(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Definition eda_item.cpp:41
A collection of #SYMBOL_LIB objects.
Object used to load, save, search, and otherwise manipulate symbol library files.
A logical library item identifier and consists of various portions much like a URI.
Definition lib_id.h:49
Define a library symbol object.
Definition lib_symbol.h:83
EDA_MSG_PANEL items for displaying messages.
Definition msgpanel.h:54
Base plotter engine class.
Definition plotter.h:137
wxString GetName(bool aUseDefaultName=true) const
Return the field name (not translated).
Base class for any item which can be embedded within the SCHEMATIC container class,...
Definition sch_item.h:168
SCHEMATIC * Schematic() const
Search the item hierarchy to find a SCHEMATIC.
Definition sch_item.cpp:272
int GetBodyStyle() const
Definition sch_item.h:248
friend class LIB_SYMBOL
Definition sch_item.h:803
SCH_LAYER_ID GetLayer() const
Return the layer this item is on.
Definition sch_item.h:344
virtual void SetUnit(int aUnit)
Definition sch_item.h:238
SCH_ITEM(EDA_ITEM *aParent, KICAD_T aType, int aUnit=0, int aBodyStyle=0)
Definition sch_item.cpp:56
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
KIID_PATH Path() const
Get the sheet path as an KIID_PATH.
Variant information for a schematic symbol.
Schematic symbol object.
Definition sch_symbol.h:76
wxString GetUnitDisplayName(int aUnit, bool aLabel) const override
Return the display name for a given unit aUnit.
SCH_SYMBOL & operator=(const SCH_SYMBOL &aItem)
int GetUnitProp() const
Definition sch_symbol.h:523
size_t GetFullPinCount() const
std::vector< SCH_SYMBOL_INSTANCE > m_instances
Define the hierarchical path and reference of the symbol.
void UpdatePrefix()
Set the prefix based on the current reference designator.
wxString m_prefix
C, R, U, Q etc - the first character(s) which typically indicate what the symbol is.
wxString GetDescription() const override
std::unordered_map< SCH_PIN *, SCH_PIN * > m_pinMap
Library pin pointer : SCH_PIN indices.
void SetMirrorX(bool aMirror)
Definition sch_symbol.h:322
bool IsSymbolLikePowerGlobalLabel() const
VECTOR2I m_pos
PASSTHROUGH_MODE GetPassthroughMode() const
Definition sch_symbol.h:852
EMBEDDED_FILES * GetEmbeddedFiles() override
SCH_SYMBOLs don't currently support embedded files, but their LIB_SYMBOL counterparts do.
wxString GetSymbolIDAsString() const
Definition sch_symbol.h:167
LIB_ID m_lib_id
Name and library the symbol was loaded from, i.e. 74xx:74LS00.
bool GetExcludedFromSim(const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
bool GetShowPinNumbers() const override
wxString GetDatasheet() const
Return the documentation text for the given part alias.
double Similarity(const SCH_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
void SetLibId(const LIB_ID &aName)
bool HasBrightenedPins()
std::vector< SCH_FIELD > & GetFields()
Return a reference to the vector holding the symbol's fields.
Definition sch_symbol.h:452
BOX2I GetBodyAndPinsBoundingBox() const override
Return a bounding box for the symbol body and pins but not the fields.
wxString GetBodyStyleProp() const override
Definition sch_symbol.h:540
void SetRefProp(const wxString &aRef)
INSPECT_RESULT Visit(INSPECTOR inspector, void *testData, const std::vector< KICAD_T > &aScanTypes) override
May be re-implemented for each derived class in order to handle all the types given by its member dat...
virtual void SetDNP(bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
SCH_ITEM * GetDrawItem(const VECTOR2I &aPosition, KICAD_T aType=TYPE_NOT_INIT)
Return the symbol library item at aPosition that is part of this symbol.
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.
std::vector< std::unique_ptr< SCH_PIN > > & GetRawPins()
Definition sch_symbol.h:668
const std::vector< SCH_SYMBOL_INSTANCE > & GetInstances() const
Definition sch_symbol.h:135
void SetPosition(const VECTOR2I &aPosition) override
Definition sch_symbol.h:893
void PlotDNP(PLOTTER *aPlotter) const
Plot the red 'X' over the symbol.
bool operator!=(const SCH_SYMBOL &aSymbol) const
void SetShowPinNumbers(bool aShow) override
Set or clear the pin number visibility flag.
wxString m_signalName
bool IsConnectable() const override
Definition sch_symbol.h:823
SYMBOL_ORIENTATION_PROP GetOrientationProp() const
Definition sch_symbol.h:305
int GetY() const
Definition sch_symbol.h:898
SCH_SYMBOL_INSTANCE * getInstance(const KIID_PATH &aPath)
wxString SubReference(int aUnit, bool aAddSeparator=true) const
wxString GetClass() const override
Return the class name.
Definition sch_symbol.h:115
void RemoveInstance(const SCH_SHEET_PATH &aInstancePath)
void SetFieldText(const wxString &aFieldName, const wxString &aFieldText, const SCH_SHEET_PATH *aPath=nullptr, const wxString &aVariantName=wxEmptyString)
void CopyVariant(const SCH_SHEET_PATH &aInstance, const wxString &aSourceVariant, const wxString &aNewVariant)
bool IsAnnotated(const SCH_SHEET_PATH *aSheet) const
Check if the symbol has a valid annotation (reference) for the given sheet path.
void SetMirrorY(bool aMirror)
Definition sch_symbol.h:339
void SetBodyStyleProp(const wxString &aBodyStyle) override
Definition sch_symbol.h:545
bool UseLibIdLookup() const
Definition sch_symbol.h:182
int GetX() const
Definition sch_symbol.h:895
std::vector< SCH_PIN * > GetPins() const override
bool IsMultiBodyStyle() const override
Definition sch_symbol.h:264
bool GetExcludedFromPosFilesProp() const
Definition sch_symbol.h:772
void RemoveField(const wxString &aFieldName)
Remove a user field from the symbol.
void AutoplaceFields(SCH_SCREEN *aScreen, AUTOPLACE_ALGO aAlgo) override
Automatically orient all the fields in the symbol.
wxString GetFieldText(const wxString &aFieldName, const SCH_SHEET_PATH *aPath=nullptr, const wxString &aVariantName=wxEmptyString) const
void SetExcludedFromSim(bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override
Set or clear the exclude from simulation flag.
void SetExcludedFromSimProp(bool aEnable)
Definition sch_symbol.h:747
void SetBodyStyle(int aBodyStyle) override
void SetShowPinNames(bool aShow) override
Set or clear the pin name visibility flag.
wxString GetKeyWords() const override
wxString GetSchSymbolLibraryName() const
wxString GetShownKeyWords(int aDepth=0) const override
const wxString & GetNetChainName() const
Definition sch_symbol.h:862
static bool ClassOf(const EDA_ITEM *aItem)
Definition sch_symbol.h:110
void DeleteVariant(const SCH_SHEET_PATH &aInstance, const wxString &aVariantName)
Definition sch_symbol.h:993
PASSTHROUGH_MODE m_passthroughMode
bool IsInNetlist() const
void Move(const VECTOR2I &aMoveVector) override
Move the item by aMoveVector to a new position.
Definition sch_symbol.h:788
std::optional< SCH_SYMBOL_VARIANT > GetVariant(const SCH_SHEET_PATH &aInstance, const wxString &aVariantName) const
bool GetExcludedFromBoardProp() const
Definition sch_symbol.h:757
void ClearBrightenedPins()
void SetY(int aY)
Definition sch_symbol.h:899
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
bool HasConnectivityChanges(const SCH_ITEM *aItem, const SCH_SHEET_PATH *aInstance=nullptr) const override
Check if aItem has connectivity changes against this object.
bool GetExcludedFromSimProp() const
Definition sch_symbol.h:742
bool GetExcludedFromBOM(const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override
bool IsGlobalPower() const override
bool GetMirrorX() const
Definition sch_symbol.h:334
wxString GetRefProp() const
Definition sch_symbol.h:509
void SetPassthrough(bool aEnable)
Definition sch_symbol.h:857
wxString GetBodyStyleDescription(int aBodyStyle, bool aLabel) const override
bool AddSheetPathReferenceEntryIfMissing(const KIID_PATH &aSheetPath)
Add an instance to the alternate references list (m_instances), if this entry does not already exist.
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
void SetExcludedFromBOMProp(bool aEnable)
Definition sch_symbol.h:732
static std::unordered_map< TRANSFORM, int > s_transformToOrientationCache
void UpdatePins()
Updates the cache of SCH_PIN objects for each pin.
SCH_FIELD * FindFieldCaseInsensitive(const wxString &aFieldName)
Search for a SCH_FIELD with aFieldName.
const std::unique_ptr< LIB_SYMBOL > & GetLibSymbolRef() const
Definition sch_symbol.h:185
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
bool IsPointClickableAnchor(const VECTOR2I &aPos) const override
void UpdateFields(const SCH_SHEET_PATH *aPath, bool aUpdateStyle, bool aUpdateRef, bool aUpdateOtherFields, bool aResetRef, bool aResetOtherFields)
Restore fields to the original library values.
wxString m_schLibSymbolName
The name used to look up a symbol in the symbol library embedded in a schematic.
void SetRef(const SCH_SHEET_PATH *aSheet, const wxString &aReference)
Set the reference for the given sheet path for this symbol.
const wxString GetValue(bool aResolve, const SCH_SHEET_PATH *aPath, bool aAllowExtraText, const wxString &aVariantName=wxEmptyString) const override
void ClearAnnotation(const SCH_SHEET_PATH *aSheetPath, bool aResetPrefix)
Clear exiting symbol annotation.
void RenameVariant(const KIID_PATH &aPath, const wxString &aOldName, const wxString &aNewName)
bool IsMultiUnit() const override
Definition sch_symbol.h:255
void SetOrientationProp(SYMBOL_ORIENTATION_PROP aAngle)
Orientation/mirroring access for property manager.
Definition sch_symbol.h:296
bool GetShowPinNames() const override
bool HasDeMorganBodyStyles() const override
std::vector< SCH_FIELD > m_fields
Variable length list of fields.
std::vector< SCH_PIN * > GetAllLibPins() const
const wxString GetFootprintFieldText(bool aResolve, const SCH_SHEET_PATH *aPath, bool aAllowExtraText, const wxString &aVariantName=wxEmptyString) const
int GetBodyStyleCount() const override
Return the number of body styles of the symbol.
void SetOrientation(int aOrientation)
Compute the new transform matrix based on aOrientation for the symbol which is applied to the current...
bool GetDNPProp() const
Definition sch_symbol.h:717
void PlotPins(PLOTTER *aPlotter, bool aDnp) const
Plot just the symbol pins.
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
void SetFootprintFieldText(const wxString &aFootprint)
bool doIsConnected(const VECTOR2I &aPosition) const override
Provide the object specific test to see if it is connected to aPosition.
void AddHierarchicalReference(const KIID_PATH &aPath, const wxString &aRef, int aUnit)
Add a full hierarchical reference to this symbol.
bool IsMissingLibSymbol() const
Check to see if the library symbol is set to the dummy library symbol.
VECTOR2I GetPosition() const override
Definition sch_symbol.h:892
std::unique_ptr< LIB_SYMBOL > m_part
A flattened copy of the LIB_SYMBOL from the PROJECT object's libraries.
int GetNextFieldOrdinal() const
Return the next ordinal for a user field for this symbol.
void SetExcludedFromPosFiles(bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override
void swapData(SCH_ITEM *aItem) override
Swap the internal data structures aItem with the schematic item.
bool ResolveTextVar(const SCH_SHEET_PATH *aPath, wxString *token, int aDepth=0) const
Resolve any references to system tokens supported by the symbol.
const std::vector< SCH_FIELD > & GetFields() const
Definition sch_symbol.h:453
SCH_SYMBOL_INSTANCE * getInstance(const SCH_SHEET_PATH &aPath)
bool CanConnect(const SCH_ITEM *aItem) const override
Definition sch_symbol.h:828
void SyncOtherUnits(const SCH_SHEET_PATH &aSourceSheet, SCH_COMMIT &aCommit, PROPERTY_BASE *aProperty, const wxString &aVariantName=wxEmptyString)
Keep fields other than the reference, include/exclude flags, and alternate pin assignments in sync in...
void Init(const VECTOR2I &pos=VECTOR2I(0, 0))
void SetExcludedFromPosFilesProp(bool aEnable)
Definition sch_symbol.h:777
wxString GetShownDescription(int aDepth=0) const override
const LIB_ID & GetLibId() const override
Definition sch_symbol.h:165
bool operator<(const SCH_ITEM &aItem) const override
bool GetPassthrough() const
Definition sch_symbol.h:856
static void BuildLocalPowerIconShape(std::vector< SCH_SHAPE > &aShapeList, const VECTOR2D &aPos, double aSize, double aLineWidth, bool aHorizontal)
Build the local power pin indicator icon shape, at coordinate aPos.
void GetContextualTextVars(wxArrayString *aVars) const
Return the list of system text vars & fields for this symbol.
void SetValueProp(const wxString &aValue)
void SetUnitProp(int aUnit)
Definition sch_symbol.h:534
void RenameVariant(const SCH_SHEET_PATH &aInstance, const wxString &aOldName, const wxString &aNewName)
Definition sch_symbol.h:998
void SetSchSymbolLibraryName(const wxString &aName)
The name of the symbol in the schematic library symbol list.
Definition sch_symbol.h:180
bool Deserialize(const google::protobuf::Any &aContainer) override
Deserializes the given protobuf message into this object.
void MirrorHorizontally(int aCenter) override
Mirror item horizontally about aCenter.
void SetValueFieldText(const wxString &aValue, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString)
std::vector< SCH_PIN * > GetLibPins() const
Populate a vector with all the pins from the library object that match the current unit and bodyStyle...
bool UpdateDanglingState(std::vector< DANGLING_END_ITEM > &aItemListByType, std::vector< DANGLING_END_ITEM > &aItemListByPos, const SCH_SHEET_PATH *aPath=nullptr) override
Test if the symbol's dangling state has changed for all pins.
bool GetExcludedFromPosFiles(const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override
bool GetInstance(SCH_SYMBOL_INSTANCE &aInstance, const KIID_PATH &aSheetPath, bool aTestFromEnd=false) const
void AddVariant(const SCH_SHEET_PATH &aInstance, const SCH_SYMBOL_VARIANT &aVariant)
BOX2I doGetBoundingBox(bool aIncludePins, bool aIncludeFields) const
bool GetMirrorY() const
Definition sch_symbol.h:351
SCH_FIELD * AddField(const SCH_FIELD &aField)
Add a field to the symbol.
void SetDNPProp(bool aEnable)
Definition sch_symbol.h:719
bool GetExcludedFromBoard(const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override
std::vector< SCH_PIN * > GetPinsByNumber(const wxString &aNumber) const
Find all symbol pins with the given number.
void GetEndPoints(std::vector< DANGLING_END_ITEM > &aItemList) override
Add the schematic item end points to aItemList if the item has end points.
void SetNetChainName(const wxString &aName)
Definition sch_symbol.h:863
void RemoveField(SCH_FIELD *aField)
Definition sch_symbol.h:471
void SetPassthroughMode(PASSTHROUGH_MODE aMode)
Definition sch_symbol.h:853
void SetX(int aX)
Definition sch_symbol.h:896
std::vector< VECTOR2I > GetConnectionPoints() const override
Add all the connection points for this item to aPoints.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
const SCH_SYMBOL_INSTANCE * getInstance(const SCH_SHEET_PATH &aPath) const
bool m_isInNetlist
True if the symbol should appear in netlist.
int GetUnitSelection(const SCH_SHEET_PATH *aSheet) const
Return the instance-specific unit selection for the given sheet path.
SCH_PIN * GetPin(const wxString &number) const
Find a symbol pin by number.
wxString GetValueProp() const
Definition sch_symbol.h:516
bool IsLocalPower() const override
void RunOnChildren(const std::function< void(SCH_ITEM *)> &aFunction, RECURSE_MODE aMode) override
int GetUnitCount() const override
Return the number of units per package of the symbol.
void SetPrefix(const wxString &aPrefix)
Definition sch_symbol.h:239
int GetOrientation() const override
Get the display symbol orientation.
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.
bool IsSymbolLikePowerLocalLabel() const
bool GetExcludedFromBOMProp() const
Definition sch_symbol.h:727
void SetUnitSelection(const SCH_SHEET_PATH *aSheet, int aUnitSelection)
Set the selected unit of this symbol on one sheet.
void SetExcludedFromBoardProp(bool aEnable)
Definition sch_symbol.h:762
void SetExcludedFromBOM(bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override
Set or clear the exclude from schematic bill of materials flag.
void PlotLocalPowerIconShape(PLOTTER *aPlotter) const
Plot the local power pin indicator icon shape.
bool IsNormal() const override
std::unique_ptr< LIB_SYMBOL > & GetLibSymbolRef()
Definition sch_symbol.h:184
std::unordered_set< wxString > GetComponentClassNames(const SCH_SHEET_PATH *aPath) const
Return the component classes this symbol belongs in.
std::vector< std::unique_ptr< SCH_PIN > > m_pins
A SCH_PIN for every #LIB_PIN.
void DeleteVariant(const KIID_PATH &aPath, const wxString &aVariantName)
bool IsReplaceable() const override
Override this method in any derived object that supports test find and replace.
Definition sch_symbol.h:890
void SetLibSymbol(LIB_SYMBOL *aLibSymbol)
Set this schematic symbol library symbol reference to aLibSymbol.
VECTOR2I GetPinPhysicalPosition(const SCH_PIN *Pin) const
BOX2I GetBodyBoundingBox() const override
Return a bounding box for the symbol body but not the pins or fields.
virtual bool GetDNP(const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override
Set or clear the 'Do Not Populate' flag.
const wxString GetRef(const SCH_SHEET_PATH *aSheet, bool aIncludeUnit=false) const override
wxString GetPrefix() const
Definition sch_symbol.h:238
void Rotate(const VECTOR2I &aCenter, bool aRotateCCW) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
bool IsMovableFromAnchorPoint() const override
Return true for items which are moved with the anchor point at mouse cursor and false for items moved...
bool IsPower() const override
void SetExcludedFromBoard(bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override
void CopyVariant(const KIID_PATH &aPath, const wxString &aSourceVariant, const wxString &aNewVariant)
bool operator==(const SCH_SYMBOL &aSymbol) const
SCH_FIELD * GetField(FIELD_T aFieldType)
Return a mandatory field in this symbol.
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
SYMBOL(KICAD_T idType)
Definition symbol.h:65
RECURSE_MODE
Definition eda_item.h:52
INSPECT_RESULT
Definition eda_item.h:46
const INSPECTOR_FUNC & INSPECTOR
std::function passed to nested users by ref, avoids copying std::function.
Definition eda_item.h:93
@ LAYER_WIRE
Definition layer_ids.h:454
AUTOPLACE_ALGO
Definition sch_item.h:69
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
std::string toUTFTildaText(const wxString &txt)
Convert a wxString to UTF8 and replace any control characters with a ~, where a control character is ...
std::weak_ptr< LIB_SYMBOL > PART_REF
Definition sch_symbol.h:66
std::vector< SCH_FIELD > SCH_FIELDS
A container for several SCH_FIELD items.
Definition sch_symbol.h:64
A simple container for schematic symbol instance information.
SYMBOL_ORIENTATION_PROP
Definition symbol.h:51
@ SYMBOL_ANGLE_180
Definition symbol.h:54
@ SYMBOL_ANGLE_0
Definition symbol.h:52
@ SYMBOL_ANGLE_90
Definition symbol.h:53
@ SYMBOL_ANGLE_270
Definition symbol.h:55
SYMBOL_ORIENTATION_T
enum used in RotationMiroir()
Definition symbol.h:35
@ SYM_ORIENT_270
Definition symbol.h:42
@ SYM_MIRROR_Y
Definition symbol.h:44
@ SYM_ORIENT_180
Definition symbol.h:41
@ SYM_MIRROR_X
Definition symbol.h:43
@ SYM_NORMAL
Definition symbol.h:36
@ SYM_ORIENT_90
Definition symbol.h:40
@ SYM_ORIENT_0
Definition symbol.h:39
FIELD_T
The set of all field indices assuming an array like sequence that a SCH_COMPONENT or LIB_PART can hol...
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition typeinfo.h:75
@ SCH_LINE_T
Definition typeinfo.h:164
@ SCH_NO_CONNECT_T
Definition typeinfo.h:161
@ TYPE_NOT_INIT
Definition typeinfo.h:78
@ SCH_SYMBOL_T
Definition typeinfo.h:173
@ SCH_DIRECTIVE_LABEL_T
Definition typeinfo.h:172
@ SCH_LABEL_T
Definition typeinfo.h:168
@ SCH_HIER_LABEL_T
Definition typeinfo.h:170
@ SCH_GLOBAL_LABEL_T
Definition typeinfo.h:169
@ SCH_JUNCTION_T
Definition typeinfo.h:160
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:687
VECTOR2< double > VECTOR2D
Definition vector2d.h:686