|
KiCad PCB EDA Suite
|
Schematic symbol object. More...
#include <sch_symbol.h>
Public Types | |
| enum class | PASSTHROUGH_MODE { DEFAULT , BLOCK , FORCE } |
| enum | COMPARE_FLAGS : int { UNIT = 1 << 0 , POSITION = 1 << 1 , UUID = 1 << 2 , MISSING_FIELDS = 1 << 3 , EXTRA_FIELDS = 1 << 4 , FIELD_TEXT = 1 << 5 , FIELD_VISIBILITY = 1 << 6 , FIELD_SIZE_AND_STYLE = 1 << 7 , FIELD_POSITIONS = 1 << 8 , PIN_VISIBILITIES = 1 << 9 , PIN_ALT_DEFS = 1 << 10 , EXCLUDE_FROM_SIM = 1 << 11 , EXCLUDE_FROM_BOARD = 1 << 12 , DNP = 1 << 13 , EXCLUDE_FROM_BOM = 1 << 15 , EXCLUDE_FROM_POS_FILES = 1 << 16 , IDENTITY = 1 << 17 } |
| The list of flags used by various compare functions. More... | |
Public Member Functions | |
| SCH_SYMBOL () | |
| SCH_SYMBOL (const LIB_SYMBOL &aSymbol, const LIB_ID &aLibId, const SCH_SHEET_PATH *aSheet, int aUnit, int aBodyStyle=0, const VECTOR2I &aPosition=VECTOR2I(0, 0), EDA_ITEM *aParent=nullptr) | |
| Create schematic symbol from library symbol object. | |
| SCH_SYMBOL (const LIB_SYMBOL &aSymbol, const SCH_SHEET_PATH *aSheet, const PICKED_SYMBOL &aSel, const VECTOR2I &aPosition=VECTOR2I(0, 0), EDA_ITEM *aParent=nullptr) | |
| SCH_SYMBOL (const SCH_SYMBOL &aSymbol) | |
| Clone aSymbol into a new schematic symbol object. | |
| ~SCH_SYMBOL () | |
| wxString | GetClass () const override |
| Return the class name. | |
| bool | IsMissingLibSymbol () const |
| Check to see if the library symbol is set to the dummy library symbol. | |
| const std::vector< SCH_SYMBOL_INSTANCE > & | GetInstances () const |
| bool | GetInstance (SCH_SYMBOL_INSTANCE &aInstance, const KIID_PATH &aSheetPath, bool aTestFromEnd=false) const |
| void | RemoveInstance (const SCH_SHEET_PATH &aInstancePath) |
| void | RemoveInstance (const KIID_PATH &aInstancePath) |
| bool | IsMovableFromAnchorPoint () const override |
| Return true for items which are moved with the anchor point at mouse cursor and false for items moved with no reference to anchor. | |
| void | SetLibId (const LIB_ID &aName) |
| const LIB_ID & | GetLibId () const override |
| wxString | GetSymbolIDAsString () const |
| void | SetSchSymbolLibraryName (const wxString &aName) |
| The name of the symbol in the schematic library symbol list. | |
| wxString | GetSchSymbolLibraryName () const |
| bool | UseLibIdLookup () const |
| std::unique_ptr< LIB_SYMBOL > & | GetLibSymbolRef () |
| const std::unique_ptr< LIB_SYMBOL > & | GetLibSymbolRef () const |
| bool | HasEffectiveAssociatedFootprint () const |
| void | SetLibSymbol (LIB_SYMBOL *aLibSymbol) |
| Set this schematic symbol library symbol reference to aLibSymbol. | |
| wxString | GetDescription () const override |
| wxString | GetShownDescription (RESOLUTION_CONTEXT aContext, int aDepth=0) const override |
| wxString | GetKeyWords () const override |
| wxString | GetShownKeyWords (RESOLUTION_CONTEXT aContext, int aDepth=0) const override |
| wxString | GetDatasheet () const |
| Return the documentation text for the given part alias. | |
| void | UpdatePins () |
| Updates the cache of SCH_PIN objects for each pin. | |
| wxString | GetUnitDisplayName (int aUnit, bool aLabel) const override |
| Return the display name for a given unit aUnit. | |
| wxString | GetBodyStyleDescription (int aBodyStyle, bool aLabel) const override |
| void | SetBodyStyle (int aBodyStyle) override |
| wxString | GetPrefix () const |
| void | SetPrefix (const wxString &aPrefix) |
| void | UpdatePrefix () |
| Set the prefix based on the current reference designator. | |
| wxString | SubReference (int aUnit, bool aAddSeparator=true) const |
| int | GetUnitCount () const override |
| Return the number of units per package of the symbol. | |
| bool | IsMultiUnit () const override |
| int | GetBodyStyleCount () const override |
| Return the number of body styles of the symbol. | |
| bool | IsMultiBodyStyle () const override |
| bool | HasDeMorganBodyStyles () const override |
| void | SetOrientation (int aOrientation) |
| Compute the new transform matrix based on aOrientation for the symbol which is applied to the current transform. | |
| int | GetOrientation () const override |
| Get the display symbol orientation. | |
| void | SetOrientationProp (SYMBOL_ORIENTATION_PROP aAngle) |
| Orientation/mirroring access for property manager. | |
| SYMBOL_ORIENTATION_PROP | GetOrientationProp () const |
| void | SetMirrorX (bool aMirror) |
| bool | GetMirrorX () const |
| void | SetMirrorY (bool aMirror) |
| bool | GetMirrorY () const |
| void | GetContextualTextVars (wxArrayString *aVars) const |
| Return the list of system text vars & fields for this symbol. | |
| bool | ResolveTextVar (const SCH_SHEET_PATH *aPath, wxString *token, int aDepth=0) const |
| Resolve any references to system tokens supported by the symbol. | |
| bool | ResolveTextVar (const SCH_SHEET_PATH *aPath, wxString *token, const wxString &aVariantName, int aDepth=0) const |
| Resolve any references to system tokens supported by the symbol with variant support. | |
| 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. | |
| void | ClearAnnotation (const SCH_SHEET_PATH *aSheetPath, bool aResetPrefix) |
| Clear exiting symbol annotation. | |
| bool | AddSheetPathReferenceEntryIfMissing (const KIID_PATH &aSheetPath) |
| Add an instance to the alternate references list (m_instances), if this entry does not already exist. | |
| bool | SetInstanceProjectName (const KIID_PATH &aSheetPath, const wxString &aProjectName) |
| Set the owning project of the instance stored for aSheetPath. | |
| const BOX2I | GetBoundingBox () const override |
| Return the orthogonal bounding box of this object for display purposes. | |
| BOX2I | GetBodyBoundingBox () const override |
| Return a bounding box for the symbol body but not the pins or fields. | |
| BOX2I | GetBodyAndPinsBoundingBox () const override |
| Return a bounding box for the symbol body and pins but not the fields. | |
| SCH_FIELD * | GetField (FIELD_T aFieldType) |
| Return a mandatory field in this symbol. | |
| const SCH_FIELD * | GetField (FIELD_T aFieldNdx) const |
| SCH_FIELD * | GetField (const wxString &aFieldName) |
| Return a field in this symbol. | |
| const SCH_FIELD * | GetField (const wxString &aFieldName) const |
| void | GetFields (std::vector< SCH_FIELD * > &aVector, bool aVisibleOnly) const override |
| Populate a std::vector with SCH_FIELDs, sorted in ordinal order. | |
| std::vector< SCH_FIELD > & | GetFields () |
| Return a reference to the vector holding the symbol's fields. | |
| const std::vector< SCH_FIELD > & | GetFields () const |
| std::vector< PROPERTY_BASE * > | GetDynamicProperties () const override |
| Return dynamically-computed properties specific to this object instance (e.g. | |
| std::vector< PROPERTY_BASE * > | GetDynamicProperties (const SCH_SHEET_PATH *aPath) const |
| SCH_FIELD * | AddField (const SCH_FIELD &aField) |
| Add a field to the symbol. | |
| void | RemoveField (const wxString &aFieldName) |
| Remove a user field from the symbol. | |
| void | RemoveField (SCH_FIELD *aField) |
| SCH_FIELD * | FindFieldCaseInsensitive (const wxString &aFieldName) |
| Search for a SCH_FIELD with aFieldName. | |
| const SCH_FIELD * | FindFieldCaseInsensitive (const wxString &aFieldName) const |
| const wxString | GetRef (const SCH_SHEET_PATH *aSheet, bool aIncludeUnit=false) const override |
| const wxString | GetValue (const SCH_SHEET_PATH *aPath, RESOLUTION_CONTEXT aContext, const wxString &aVariantName=wxEmptyString) const override |
| void | SetValueFieldText (const wxString &aValue, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) |
| const wxString | GetFootprintFieldText (const SCH_SHEET_PATH *aPath, RESOLUTION_CONTEXT aContext, const wxString &aVariantName=wxEmptyString) const |
| void | SetFootprintFieldText (const wxString &aFootprint) |
| wxString | GetRefProp () const |
| void | SetRefProp (const wxString &aRef) |
| wxString | GetValueProp () const |
| void | SetValueProp (const wxString &aValue) |
| int | GetUnitProp () const |
| void | SetFieldText (const wxString &aFieldName, const wxString &aFieldText, const SCH_SHEET_PATH *aPath=nullptr, const wxString &aVariantName=wxEmptyString) |
| wxString | GetFieldText (const wxString &aFieldName, const SCH_SHEET_PATH *aPath=nullptr, const wxString &aVariantName=wxEmptyString) const |
| void | SetUnitProp (int aUnit) |
| wxString | GetBodyStyleProp () const override |
| void | SetBodyStyleProp (const wxString &aBodyStyle) 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. | |
| 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 multi-unit parts. | |
| int | GetNextFieldOrdinal () const |
| Return the next ordinal for a user field for this symbol. | |
| void | AutoplaceFields (SCH_SCREEN *aScreen, AUTOPLACE_ALGO aAlgo) override |
| Automatically orient all the fields in the symbol. | |
| void | RunOnChildren (const std::function< void(SCH_ITEM *)> &aFunction, RECURSE_MODE aMode) override |
| void | ClearCaches () override |
| SCH_PIN * | GetPin (const wxString &number) const |
| Find a symbol pin by number. | |
| SCH_PIN * | GetPinByEffectivePadNumber (const wxString &aPadNumber, const SCH_SHEET_PATH *aSheet, const wxString &aVariantName=wxEmptyString) const |
| Find the pin whose effective footprint pad number (issue #2282) is aPadNumber on aSheet, expanding bracketed stacked targets. | |
| std::vector< SCH_PIN * > | GetPinsByNumber (const wxString &aNumber) const |
| Find all symbol pins with the given number. | |
| std::vector< SCH_PIN * > | GetLibPins () const |
| Populate a vector with all the pins from the library object that match the current unit and bodyStyle. | |
| std::vector< SCH_PIN * > | GetAllLibPins () const |
| size_t | GetFullPinCount () const |
| SCH_PIN * | GetPin (SCH_PIN *aLibPin) const |
| const SCH_PIN * | GetPin (const VECTOR2I &aPosition) const |
| Return the SCH_PIN object found at aPosition. | |
| std::vector< const SCH_PIN * > | GetPins (const SCH_SHEET_PATH *aSheet) const |
| Retrieve a list of the SCH_PINs for the given sheet path. | |
| std::vector< SCH_PIN * > | GetPins (const SCH_SHEET_PATH *aSheet) |
| std::vector< SCH_PIN * > | GetGraphicalPins (int aUnit, int aBodyStyle) const override |
| std::vector< std::unique_ptr< SCH_PIN > > & | GetRawPins () |
| const std::vector< std::unique_ptr< SCH_PIN > > & | GetRawPins () const |
| void | SetRef (const SCH_SHEET_PATH *aSheet, const wxString &aReference) |
| Set the reference for the given sheet path for this symbol. | |
| bool | IsAnnotated (const SCH_SHEET_PATH *aSheet) const |
| Check if the symbol has a valid annotation (reference) for the given sheet path. | |
| void | AddHierarchicalReference (const KIID_PATH &aPath, const wxString &aRef, int aUnit) |
| Add a full hierarchical reference to this symbol. | |
| void | AddHierarchicalReference (const SCH_SYMBOL_INSTANCE &aInstance) |
| int | GetUnitSelection (const SCH_SHEET_PATH *aSheet) const |
| Return the instance-specific unit selection for the given sheet path. | |
| void | SetUnitSelection (const SCH_SHEET_PATH *aSheet, int aUnitSelection) |
| Set the selected unit of this symbol on one sheet. | |
| void | SetUnitSelection (int aUnitSelection) |
| Set the selected unit of this symbol for all sheets. | |
| virtual void | SetDNP (bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override |
| virtual bool | GetDNP (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override |
| Set or clear the 'Do Not Populate' flag. | |
| bool | GetDNPProp () const |
| void | SetDNPProp (bool aEnable) |
| void | SetPinMapOverride (const PIN_MAP_INSTANCE_OVERRIDE &aOverride, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) |
| Set the per-instance pin-to-pad map override (issue #2282). | |
| PIN_MAP_INSTANCE_OVERRIDE | GetPinMapOverride (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const |
| 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. | |
| bool | GetExcludedFromBOM (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override |
| bool | GetExcludedFromBOMProp () const |
| void | SetExcludedFromBOMProp (bool aEnable) |
| void | SetExcludedFromSim (bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override |
| Set or clear the exclude from simulation flag. | |
| bool | GetExcludedFromSim (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override |
| bool | GetExcludedFromSimProp () const |
| void | SetExcludedFromSimProp (bool aEnable) |
| void | SetExcludedFromBoard (bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override |
| bool | GetExcludedFromBoard (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override |
| bool | GetExcludedFromBoardProp () const |
| void | SetExcludedFromBoardProp (bool aEnable) |
| void | SetExcludedFromPosFiles (bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override |
| bool | GetExcludedFromPosFiles (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override |
| bool | GetExcludedFromPosFilesProp () const |
| void | SetExcludedFromPosFilesProp (bool aEnable) |
| EMBEDDED_FILES * | GetEmbeddedFiles () override |
| SCH_SYMBOLs don't currently support embedded files, but their LIB_SYMBOL counterparts do. | |
| void | Move (const VECTOR2I &aMoveVector) override |
| Move the item by aMoveVector to a new position. | |
| void | MirrorHorizontally (int aCenter) override |
| Mirror item horizontally about aCenter. | |
| void | MirrorVertically (int aCenter) override |
| Mirror item vertically about aCenter. | |
| void | Rotate (const VECTOR2I &aCenter, bool aRotateCCW) override |
| Rotate the item around aCenter 90 degrees in the clockwise direction. | |
| bool | Matches (const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override |
| Compare the item against the search criteria in aSearchData. | |
| void | GetEndPoints (std::vector< DANGLING_END_ITEM > &aItemList) override |
| Add the schematic item end points to aItemList if the item has end points. | |
| 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. | |
| VECTOR2I | GetPinPhysicalPosition (const SCH_PIN *Pin) const |
| bool | IsConnectable () const override |
| bool | HasConnectivityChanges (const SCH_ITEM *aItem, const SCH_SHEET_PATH *aInstance=nullptr) const override |
| Check if aItem has connectivity changes against this object. | |
| bool | CanConnect (const SCH_ITEM *aItem) const override |
| bool | DoNetList () const |
| PASSTHROUGH_MODE | GetPassthroughMode () const |
| void | SetPassthroughMode (PASSTHROUGH_MODE aMode) |
| const wxString & | GetNetChainName () const |
| void | SetNetChainName (wxString aName) noexcept |
| std::vector< VECTOR2I > | GetConnectionPoints () const override |
| Add all the connection points for this item to aPoints. | |
| 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 data. | |
| 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. | |
| wxString | GetItemDescription (UNITS_PROVIDER *aUnitsProvider, bool aFull) const override |
| Return a user-visible description string of this item. | |
| BITMAPS | GetMenuImage () const override |
| Return a pointer to an image to be used in menus. | |
| bool | operator< (const SCH_ITEM &aItem) const override |
| bool | operator== (const SCH_SYMBOL &aSymbol) const |
| bool | operator!= (const SCH_SYMBOL &aSymbol) const |
| SCH_SYMBOL & | operator= (const SCH_SYMBOL &aItem) |
| bool | IsReplaceable () const override |
| Override this method in any derived object that supports test find and replace. | |
| VECTOR2I | GetPosition () const override |
| void | SetPosition (const VECTOR2I &aPosition) override |
| int | GetX () const |
| void | SetX (int aX) |
| int | GetY () const |
| void | SetY (int aY) |
| bool | HitTest (const VECTOR2I &aPosition, int aAccuracy=0) const override |
| Test if aPosition is inside or on the boundary of this item. | |
| bool | HitTest (const BOX2I &aRect, bool aContained, int aAccuracy=0) const override |
| Test if aRect intersects this item. | |
| bool | HitTest (const SHAPE_LINE_CHAIN &aPoly, bool aContained) const override |
| Test if aPoly intersects this item. | |
| 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. | |
| void | PlotPins (PLOTTER *aPlotter, bool aDnp) const |
| Plot just the symbol pins. | |
| void | PlotLocalPowerIconShape (PLOTTER *aPlotter) const |
| Plot the local power pin indicator icon shape. | |
| void | PlotDNP (PLOTTER *aPlotter) const |
| Plot the red 'X' over the symbol. | |
| EDA_ITEM * | Clone () const override |
| Create a duplicate of this item with linked list members set to NULL. | |
| void | Serialize (google::protobuf::Any &aContainer) const override |
| Serializes this object to the given Any message. | |
| bool | Deserialize (const google::protobuf::Any &aContainer) override |
| Deserializes the given protobuf message into this object. | |
| void | Serialize (kiapi::schematic::types::SchematicSymbolInstance &aSymbol) const |
| bool | Deserialize (const kiapi::schematic::types::SchematicSymbolInstance &aSymbol) |
| void | ClearBrightenedPins () |
| bool | HasBrightenedPins () |
| bool | IsPointClickableAnchor (const VECTOR2I &aPos) const override |
| bool | IsSymbolLikePowerGlobalLabel () const |
| bool | IsSymbolLikePowerLocalLabel () const |
| bool | IsGlobalPower () const override |
| bool | IsLocalPower () const override |
| bool | IsPower () const override |
| bool | IsNormal () const override |
| bool | GetShowPinNames () const override |
| void | SetShowPinNames (bool aShow) override |
| Set or clear the pin name visibility flag. | |
| bool | GetShowPinNumbers () const override |
| void | SetShowPinNumbers (bool aShow) override |
| Set or clear the pin number visibility flag. | |
| double | Similarity (const SCH_ITEM &aOther) const override |
| Return a measure of how likely the other object is to represent the same object. | |
| std::unordered_set< wxString > | GetComponentClassNames (const SCH_SHEET_PATH *aPath) const |
| Return the component classes this symbol belongs in. | |
| void | DeleteVariant (const KIID_PATH &aPath, const wxString &aVariantName) |
| void | ClearVariantField (const KIID_PATH &aPath, const wxString &aVariantName, const wxString &aFieldName) |
| void | RenameVariant (const KIID_PATH &aPath, const wxString &aOldName, const wxString &aNewName) |
| void | CopyVariant (const KIID_PATH &aPath, const wxString &aSourceVariant, const wxString &aNewVariant) |
| std::optional< SCH_SYMBOL_VARIANT > | GetVariant (const SCH_SHEET_PATH &aInstance, const wxString &aVariantName) const |
| void | AddVariant (const SCH_SHEET_PATH &aInstance, const SCH_SYMBOL_VARIANT &aVariant) |
| void | SetVariantSymbolOverride (const SCH_SHEET_PATH &aPath, const wxString &aVariantName, const LIB_ID &aLibId) |
| Set the alternate-symbol override for a given variant and sheet instance. | |
| bool | ClearVariantSymbolOverride (const SCH_SHEET_PATH &aPath, const wxString &aVariantName) |
| Remove the alternate-symbol override for a given variant and sheet instance. | |
| LIB_SYMBOL * | GetVariantLibSymbol (const wxString &aVariantName, const SCH_SHEET_PATH &aPath) const |
| Resolve the alternate library symbol for a given variant. | |
| const LIB_SYMBOL * | GetEffectiveLibSymbol (const SCH_SHEET_PATH *aPath=nullptr) const |
| Return the library symbol to use for rendering and bounding box calculations. | |
| std::vector< SCH_PIN * > | MapLibPins (const std::vector< SCH_PIN * > &aLibPins, bool aByNumber) const |
| Map pins of an effective library symbol to this symbol's instance pins. | |
| void | DeleteVariant (const SCH_SHEET_PATH &aInstance, const wxString &aVariantName) |
| void | RenameVariant (const SCH_SHEET_PATH &aInstance, const wxString &aOldName, const wxString &aNewName) |
| void | CopyVariant (const SCH_SHEET_PATH &aInstance, const wxString &aSourceVariant, const wxString &aNewVariant) |
| bool | operator== (const SCH_ITEM &aOther) const override |
| void | SetPinNameOffset (int aOffset) |
| Set the offset in mils of the pin name text from the pin symbol. | |
| int | GetPinNameOffset () const |
| const TRANSFORM & | GetTransform () const |
| TRANSFORM & | GetTransform () |
| void | SetTransform (const TRANSFORM &aTransform) |
| void | SetPreviewUnit (int aUnit) |
| void | SetPreviewBodyStyle (int aBodyStyle) |
| std::vector< int > | ViewGetLayers () const override |
| Return the layers the item is drawn on (which may be more than its "home" layer) | |
| bool | IsType (const std::vector< KICAD_T > &aScanTypes) const override |
| Check whether the item is one of the listed types. | |
| bool | IsGroupableType () const |
| void | SwapItemData (SCH_ITEM *aImage) |
| Swap data between aItem and aImage. | |
| void | SwapFlags (SCH_ITEM *aItem) |
| Swap the non-temp and non-edit flags. | |
| SCH_ITEM * | Duplicate (bool addToParentGroup, SCH_COMMIT *aCommit=nullptr, bool aDoClone=false) const |
| Routine to create a new copy of given item. | |
| virtual void | SetUnit (int aUnit) |
| int | GetUnit () const |
| virtual void | SetUnitString (const wxString &aUnit) |
| virtual wxString | GetUnitString () const |
| int | GetBodyStyle () const |
| void | SetPrivate (bool aPrivate) |
| bool | IsPrivate () const |
| bool | IsLocked () const override |
| void | SetLocked (bool aLocked) override |
| bool | ResolveExcludedFromSim (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const |
| bool | ResolveExcludedFromBOM (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const |
| bool | ResolveExcludedFromBoard (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const |
| bool | ResolveExcludedFromPosFiles (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const |
| bool | ResolveDNP (const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const |
| wxString | ResolveText (const wxString &aText, const SCH_SHEET_PATH *aPath, int aDepth=0) const |
| wxString | ResolveText (const wxString &aText, const SCH_SHEET_PATH *aPath, int aDepth, const wxString &aVariantName) const |
| VECTOR2I & | GetStoredPos () |
| void | SetStoredPos (const VECTOR2I &aPos) |
| SCHEMATIC * | Schematic () const |
| Search the item hierarchy to find a SCHEMATIC. | |
| SCH_SCREEN * | GetParentScreen () const |
| const SYMBOL * | GetParentSymbol () const |
| SYMBOL * | GetParentSymbol () |
| virtual bool | HasHypertext () const |
| Indicates that the item has at least one hypertext action. | |
| virtual bool | HasHoveredHypertext () const |
| Indicates that a hypertext link is currently active. | |
| virtual void | DoHypertextAction (EDA_DRAW_FRAME *aFrame, const VECTOR2I &aMousePos) const |
| SCH_LAYER_ID | GetLayer () const |
| Return the layer this item is on. | |
| void | SetLayer (SCH_LAYER_ID aLayer) |
| const BOX2I | ViewBBox () const override |
| The view bounds of text that shows a net name must match the drawing, so this reads connectivity inside a SCH_CONNECTIVITY::RENDER_SCOPE. | |
| int | GetMaxError () const |
| virtual int | GetPenWidth () const |
| int | GetEffectivePenWidth (const SCH_RENDER_SETTINGS *aSettings) const |
| const wxString & | GetDefaultFont (const KIGFX::RENDER_SETTINGS *aSettings) const |
| const KIFONT::METRICS & | GetFontMetrics () const |
| bool | RenderAsBitmap (double aWorldScale) const override |
| double | SimilarityBase (const SCH_ITEM &aItem) const |
| Calculate the boilerplate similarity for all LIB_ITEMs without preventing the use above of a pure virtual function that catches at compile time when a new object has not been fully implemented. | |
| virtual void | BeginEdit (const VECTOR2I &aPosition) |
| Begin drawing a symbol library draw item at aPosition. | |
| virtual bool | ContinueEdit (const VECTOR2I &aPosition) |
| Continue an edit in progress at aPosition. | |
| virtual void | EndEdit (bool aClosed=false) |
| End an object editing action. | |
| virtual void | CalcEdit (const VECTOR2I &aPosition) |
| Calculate the attributes of an item at aPosition when it is being edited. | |
| virtual bool | IsEndPoint (const VECTOR2I &aPt) const |
| Test if aPt is an end point of this schematic object. | |
| virtual bool | IsDangling () const |
| bool | IsConnected (const VECTOR2I &aPoint) const |
| Test the item to see if it is connected to aPoint. | |
| SCH_CONNECTION * | Connection (const SCH_SHEET_PATH *aSheet=nullptr) const |
| Retrieve the connection associated with this object in the given sheet. | |
| std::optional< wxString > | GetConnectionName (const SCH_SHEET_PATH *aSheet=nullptr, bool aLocal=false, bool aIgnoreSheet=false) const |
| Return the active connection name; absent for missing or stale published rows. | |
| bool | HasBusConnection (const SCH_SHEET_PATH *aSheet=nullptr) const |
| std::vector< wxString > | GetBusMemberNames (const SCH_SHEET_PATH *aSheet=nullptr) const |
| Names of the bus members of this item's connection, empty when it does not have a bus. | |
| bool | MatchesNetName (const EDA_SEARCH_DATA &aSearchData, const SCH_SHEET_PATH *aSheet) const |
| Match aSearchData against the connection of this item on aSheet. | |
| const std::vector< SCH_ITEM * > & | ConnectedItems (const SCH_SHEET_PATH &aPath) const |
| Retrieve the set of items connected to this item on the given sheet. | |
| void | AddConnectionTo (const SCH_SHEET_PATH &aPath, SCH_ITEM *aItem) |
| Add a connection link between this item and another. | |
| void | ClearConnectedItems (const SCH_SHEET_PATH &aPath) |
| Clear all connections to this item. | |
| SCH_CONNECTION * | InitializeConnection (const SCH_SHEET_PATH &aPath, CONNECTION_GRAPH *aGraph) |
| Create a new connection object associated with this object. | |
| SCH_CONNECTION * | GetOrInitConnection (const SCH_SHEET_PATH &aPath, CONNECTION_GRAPH *aGraph) |
| virtual bool | ConnectionPropagatesTo (const EDA_ITEM *aItem) const |
| Return true if this item should propagate connection info to aItem. | |
| bool | IsConnectivityDirty () const |
| void | SetConnectivityDirty (bool aDirty=true) |
| Set the dirty flag. | |
| void | SetConnectionGraph (CONNECTION_GRAPH *aGraph) |
| Update the connection graph for all connections in this item. | |
| virtual bool | HasCachedDriverName () const |
| virtual const wxString & | GetCachedDriverName () const |
| virtual void | SetLastResolvedState (const SCH_ITEM *aItem) |
| std::shared_ptr< NETCLASS > | GetEffectiveNetClass (const SCH_SHEET_PATH *aSheet=nullptr) const |
| AUTOPLACE_ALGO | GetFieldsAutoplaced () const |
| Return whether the fields have been automatically placed. | |
| void | SetFieldsAutoplaced (AUTOPLACE_ALGO aAlgo) |
| virtual bool | HasLineStroke () const |
| Check if this schematic item has line stoke properties. | |
| virtual STROKE_PARAMS | GetStroke () const |
| virtual void | SetStroke (const STROKE_PARAMS &aStroke) |
| void | ClearRuleAreasCache () |
| Reset the cache of rule areas (called prior to schematic connectivity computation) | |
| void | AddRuleAreaToCache (SCH_RULE_AREA *aRuleArea) |
| Add a rule area to the item's cache. | |
| void | RemoveRuleAreaFromCache (SCH_RULE_AREA *aRuleArea) |
| Remove a specific rule area from the item's cache. | |
| const std::unordered_set< SCH_RULE_AREA * > & | GetRuleAreaCache () const |
| Get the cache of rule areas enclosing this item. | |
| const std::vector< wxString > * | GetEmbeddedFonts () override |
| bool | operator< (const EDA_ITEM &aItem) const |
| Test if another item is less than this object. | |
| KICAD_T | Type () const |
| Returns the type of object. | |
| EDA_ITEM * | GetParent () const |
| virtual void | SetParent (EDA_ITEM *aParent) |
| virtual void | SetParentGroup (EDA_GROUP *aGroup) |
| virtual EDA_GROUP * | GetParentGroup () const |
| KIID | GetParentGroupId () const |
| bool | HasSelectedAncestorGroup () const |
| bool | IsModified () const |
| bool | IsNew () const |
| bool | IsMoving () const |
| bool | IsSelected () const |
| bool | IsEntered () const |
| bool | IsBrightened () const |
| bool | IsNetHighlighted () const |
| Net highlighting must not clear brightening owned by find or picker tools. | |
| void | SetNetHighlighted (bool aHighlighted) |
| bool | IsRollover () const |
| VECTOR2I | GetRolloverPos () const |
| void | SetIsRollover (bool aIsRollover, const VECTOR2I &aMousePos) |
| void | SetSelected () |
| void | SetBrightened () |
| void | ClearSelected () |
| void | ClearBrightened () |
| void | SetModified () |
| void | SetFlags (EDA_ITEM_FLAGS aMask) |
| void | XorFlags (EDA_ITEM_FLAGS aMask) |
| void | ClearFlags (EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS) |
| EDA_ITEM_FLAGS | GetFlags () const |
| bool | HasFlag (EDA_ITEM_FLAGS aFlag) const |
| EDA_ITEM_FLAGS | GetEditFlags () const |
| virtual void | ClearEditFlags () |
| EDA_ITEM_FLAGS | GetTempFlags () const |
| virtual void | ClearTempFlags () |
| void | SetIsShownAsBitmap (bool aBitmap) |
| bool | IsShownAsBitmap () const |
| void | SetForceVisible (bool aEnable) |
| Set and clear force visible flag used to force the item to be drawn even if it's draw attribute is set to not visible. | |
| bool | IsForceVisible () const |
| const std::map< wxString, wxString > & | GetCustomProperties () const |
| Custom user-defined string key/value properties attached to this item. | |
| void | SetCustomProperties (const std::map< wxString, wxString > &aProps) |
| void | SetCustomProperty (const wxString &aKey, const wxString &aValue) |
| bool | HasCustomProperties () const |
| void | ClearCustomProperties () |
| void | RemoveCustomProperty (const wxString &aKey) |
| std::vector< wxString > | RemoveConflictingCustomProperties () |
| Remove custom properties whose keys collide with an existing field or built-in property name (matched case-insensitively). | |
| bool | GetCustomProperty (const wxString &aKey, wxString &aValue) const |
| std::vector< PROPERTY_BASE * > | GetCustomPropertiesAsInspectables () const |
| virtual wxString | GetFriendlyName () const |
| virtual const VECTOR2I | GetFocusPosition () const |
| Similar to GetPosition() but allows items to return their visual center rather than their anchor. | |
| virtual VECTOR2I | GetSortPosition () const |
| Return the coordinates that should be used for sorting this element visually compared to other elements. | |
| wxString | GetTypeDesc () const |
| Return a translated description of the type for this EDA_ITEM for display in user facing messages. | |
| virtual wxString | DisambiguateItemDescription (UNITS_PROVIDER *aUnitsProvider, bool aFull) const |
| virtual bool | Replace (const EDA_SEARCH_DATA &aSearchData, void *aAuxData=nullptr) |
| Perform a text replace using the find and replace criteria in aSearchData on items that support text find and replace. | |
| bool | IsSCH_ITEM () const |
| bool | IsBOARD_ITEM () const |
| virtual void | ViewDraw (int aLayer, VIEW *aView) const |
| Draw the parts of the object belonging to layer aLayer. | |
| virtual double | ViewGetLOD (int aLayer, const VIEW *aView) const |
| Return the level of detail (LOD) of the item. | |
| VIEW_ITEM_DATA * | viewPrivData () const |
| void | SetForcedTransparency (double aForcedTransparency) |
| double | GetForcedTransparency () const |
| bool | Set (PROPERTY_BASE *aProperty, wxAny &aValue, bool aNotify=true) |
| template<typename T> | |
| bool | Set (PROPERTY_BASE *aProperty, T aValue, bool aNotify=true) |
| bool | Set (PROPERTY_BASE *aProperty, wxVariant aValue, bool aNotify=true) |
| template<typename T> | |
| bool | Set (const wxString &aProperty, T aValue, bool aNotify=true) |
| wxAny | Get (PROPERTY_BASE *aProperty) const |
| template<typename T> | |
| T | Get (PROPERTY_BASE *aProperty) const |
| template<typename T> | |
| std::optional< T > | Get (const wxString &aProperty) const |
Static Public Member Functions | |
| static bool | ClassOf (const EDA_ITEM *aItem) |
| 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. | |
| template<class T> | |
| static INSPECT_RESULT | IterateForward (std::deque< T > &aList, INSPECTOR inspector, void *testData, const std::vector< KICAD_T > &scanTypes) |
| This changes first parameter to avoid the DList and use the main queue instead. | |
| template<class T> | |
| static INSPECT_RESULT | IterateForward (std::vector< T > &aList, INSPECTOR inspector, void *testData, const std::vector< KICAD_T > &scanTypes) |
| Change first parameter to avoid the DList and use std::vector instead. | |
| static bool | Replace (const EDA_SEARCH_DATA &aSearchData, wxString &aText) |
| Perform a text replace on aText using the find and replace criteria in aSearchData on items that support text find and replace. | |
| static bool | Sort (const EDA_ITEM *aLeft, const EDA_ITEM *aRight) |
| Helper function to be used by the C++ STL sort algorithm for sorting a STL container of EDA_ITEM pointers. | |
Public Attributes | |
| const KIID | m_Uuid |
Protected Member Functions | |
| void | swapData (SCH_ITEM *aItem) override |
| Swap the internal data structures aItem with the schematic item. | |
| void | invalidateConnectivity (KICAD_T aChangedType=TYPE_NOT_INIT) |
| Bump the parent screen's connectivity revision when this item, or the item owning it as a child, is on its draw list. | |
| SCH_RENDER_SETTINGS * | getRenderSettings (PLOTTER *aPlotter) const |
| virtual int | compare (const SCH_ITEM &aOther, int aCompareFlags=~COMPARE_FLAGS::UNIT) const |
| Provide the draw object specific comparison called by the == and < operators. | |
| bool | Matches (const wxString &aText, const EDA_SEARCH_DATA &aSearchData) const |
| Compare aText against search criteria in aSearchData. | |
| EDA_ITEM * | findParent (KICAD_T aType) const |
Static Protected Member Functions | |
| static double | lodScaleForThreshold (const KIGFX::VIEW *aView, int aWhatIu, int aThresholdIu) |
| Get the scale at which aWhatIu would be drawn at the same size as aThresholdIu on screen. | |
Protected Attributes | |
| TRANSFORM | m_transform |
| The rotation/mirror transformation. | |
| int | m_pinNameOffset |
| The offset in mils to draw the pin name. | |
| bool | m_showPinNames |
| bool | m_showPinNumbers |
| bool | m_excludedFromSim |
| bool | m_excludedFromBOM |
| bool | m_excludedFromBoard |
| bool | m_excludedFromPosFiles |
| bool | m_DNP |
| True if symbol is set to 'Do Not Populate'. | |
| int | m_previewUnit = 1 |
| int | m_previewBodyStyle = 1 |
| SCH_LAYER_ID | m_layer |
| int | m_unit |
| int | m_bodyStyle |
| bool | m_private |
| AUTOPLACE_ALGO | m_fieldsAutoplaced |
| VECTOR2I | m_storedPos |
| std::map< SCH_SHEET_PATH, std::vector< SCH_ITEM * >, SHEET_PATH_CMP > | m_connected_items |
| Store pointers to other items that are connected to this one, per sheet. | |
| std::unordered_map< SCH_SHEET_PATH, SCH_CONNECTION * > | m_connection_map |
| Store connectivity information, per sheet. | |
| bool | m_connectivity_dirty |
| std::unordered_set< SCH_RULE_AREA * > | m_rule_areas_cache |
| Store pointers to rule areas which this item is contained within. | |
| bool | m_isLocked |
| EDA_ITEM_FLAGS | m_flags |
| EDA_ITEM * | m_parent |
| Owner. | |
| EDA_GROUP * | m_group |
| The group this item belongs to, if any. No ownership implied. | |
| VECTOR2I | m_rolloverPos |
| bool | m_isRollover |
| bool | m_forceVisible |
| bool | m_netHighlighted = false |
| std::map< wxString, wxString > | m_customProperties |
| std::map< wxString, std::unique_ptr< PROPERTY_BASE > > | m_dynamicCustomPropsCache |
| Per-key cache of dynamic property descriptors for m_customProperties, owned by this object. | |
Static Protected Attributes | |
| static constexpr double | LOD_HIDE = std::numeric_limits<double>::max() |
| Return this constant from ViewGetLOD() to hide the item unconditionally. | |
| static constexpr double | LOD_SHOW = 0.0 |
| Return this constant from ViewGetLOD() to show the item unconditionally. | |
Private Member Functions | |
| void | updatePins () |
| BOX2I | doGetBoundingBox (bool aIncludePins, bool aIncludeFields) const |
| bool | doIsConnected (const VECTOR2I &aPosition) const override |
| Provide the object specific test to see if it is connected to aPosition. | |
| void | Init (const VECTOR2I &pos=VECTOR2I(0, 0)) |
| void | setVariantAttribute (bool aEnable, const SCH_SHEET_PATH *aInstance, const wxString &aVariantName, bool SCH_SYMBOL::*aBase, bool SCH_SYMBOL_VARIANT::*aOverride) |
| SCH_SYMBOL_INSTANCE * | getInstance (const KIID_PATH &aPath) |
| const SCH_SYMBOL_INSTANCE * | getInstance (const KIID_PATH &aPath) const |
| SCH_SYMBOL_INSTANCE * | getInstance (const SCH_SHEET_PATH &aPath) |
| const SCH_SYMBOL_INSTANCE * | getInstance (const SCH_SHEET_PATH &aPath) const |
| PIN_MAP_INSTANCE_OVERRIDE | resolveDelegatedPinMapOverride (const SCH_SHEET_PATH &aSheet, const wxString &aVariantName) const |
| Return unit 1's pin-map override for a unit that delegates to it (issue #2282). | |
| void | rebuildInstancePathIndex () |
| void | registerConnectivityOwner (const std::shared_ptr< CONNECTION_GRAPH_LIFETIME > &aOwner) |
| Graph membership belongs to this item identity and must not propagate to clones. | |
Private Attributes | |
| VECTOR2I | m_pos |
| LIB_ID | m_lib_id |
| Name and library the symbol was loaded from, i.e. 74xx:74LS00. | |
| wxString | m_prefix |
| C, R, U, Q etc - the first character(s) which typically indicate what the symbol is. | |
| wxString | m_schLibSymbolName |
| The name used to look up a symbol in the symbol library embedded in a schematic. | |
| std::vector< SCH_FIELD > | m_fields |
| Variable length list of fields. | |
| std::map< wxString, std::unique_ptr< PROPERTY_BASE > > | m_dynamicPropertyCache |
| Per-object cache of dynamic property descriptors for custom fields and effective pin-map entries, keyed by descriptor name and populated lazily. | |
| std::unique_ptr< LIB_SYMBOL > | m_part |
| A flattened copy of the LIB_SYMBOL from the PROJECT object's libraries. | |
| bool | m_doNetlist |
| True if the symbol should appear in netlist. | |
| PASSTHROUGH_MODE | m_passthroughMode |
| wxString | m_signalName |
| std::vector< std::unique_ptr< SCH_PIN > > | m_pins |
| A copy of SCH_PIN objects from the library symbol. | |
| std::unordered_map< SCH_PIN *, SCH_PIN * > | m_pinMap |
| Library pin pointer : SCH_PIN indices. | |
| PIN_MAP_INSTANCE_OVERRIDE | m_pinMapOverride |
| Base (no-variant) pin-to-pad map override applied when no variant override exists for the sheet path (issue #2282). | |
| std::vector< SCH_SYMBOL_INSTANCE > | m_instances |
| Define the hierarchical path and reference of the symbol. | |
| std::unordered_map< KIID_PATH, size_t > | m_instancePathIndex |
| Index from an instance's sheet path to its position in m_instances for O(1) lookups. | |
| std::map< wxString, std::unique_ptr< LIB_SYMBOL > > | m_variantSymbolCache |
| std::vector< std::weak_ptr< CONNECTION_GRAPH_LIFETIME > > | m_connectivityOwners |
| An item may be indexed by multiple graphs, each with an independent lifetime. | |
| KICAD_T | m_structType |
| Run time identification, keep private so it can never be changed after a ctor sets it. | |
| bool | m_isSCH_ITEM |
| bool | m_isBOARD_ITEM |
| VIEW_ITEM_DATA * | m_viewPrivData |
| double | m_forcedTransparency |
| Additional transparency for diff'ing items. | |
Static Private Attributes | |
| static std::unordered_map< TRANSFORM, int > | s_transformToOrientationCache |
Schematic symbol object.
Definition at line 72 of file sch_symbol.h.
|
inherited |
The list of flags used by various compare functions.
Definition at line 743 of file sch_item.h.
|
strong |
| Enumerator | |
|---|---|
| DEFAULT | |
| BLOCK | |
| FORCE | |
Definition at line 848 of file sch_symbol.h.
| SCH_SYMBOL::SCH_SYMBOL | ( | ) |
Definition at line 583 of file sch_symbol.cpp.
References DEFAULT, Init(), m_passthroughMode, m_signalName, SCH_SYMBOL_T, and SYMBOL::SYMBOL().
Referenced by BOOST_AUTO_TEST_CASE(), Clone(), GetDynamicProperties(), GetOrientation(), HasConnectivityChanges(), operator!=(), operator<(), operator=(), operator==(), operator==(), resolveDelegatedPinMapOverride(), ResolveTextVar(), SCH_SYMBOL(), SCH_SYMBOL(), setVariantAttribute(), Similarity(), swapData(), and SyncOtherUnits().
| SCH_SYMBOL::SCH_SYMBOL | ( | const LIB_SYMBOL & | aSymbol, |
| const LIB_ID & | aLibId, | ||
| const SCH_SHEET_PATH * | aSheet, | ||
| int | aUnit, | ||
| int | aBodyStyle = 0, | ||
| const VECTOR2I & | aPosition = VECTOR2I( 0, 0 ), | ||
| EDA_ITEM * | aParent = nullptr ) |
Create schematic symbol from library symbol object.
| aSymbol | is the library symbol to create schematic symbol from. |
| aLibId | is the LIB_ID of alias to create. |
| aSheet | is the schematic sheet the symbol is place into. |
| aUnit | is unit for symbols that have multiple parts per package. |
| aBodyStyle | is the alternate body style for the schematic symbols. |
| aPosition | is the position of the symbol. |
| aParent | is the parent object of the newly created symbol. |
Definition at line 592 of file sch_symbol.cpp.
References DEFAULT, EDA_ITEM::EDA_ITEM(), LIB_SYMBOL::Flatten(), UTIL::GetRefDesPrefix(), UTIL::GetRefDesUnannotated(), Init(), SCH_ITEM::LIB_SYMBOL, SCH_ITEM::m_bodyStyle, SYMBOL::m_excludedFromBoard, SYMBOL::m_excludedFromBOM, SYMBOL::m_excludedFromPosFiles, SYMBOL::m_excludedFromSim, m_lib_id, m_part, m_passthroughMode, m_prefix, m_signalName, SCH_ITEM::m_unit, SCH_SYMBOL_T, SetLibSymbol(), SetRef(), SYMBOL::SYMBOL(), and UpdateFields().
| SCH_SYMBOL::SCH_SYMBOL | ( | const LIB_SYMBOL & | aSymbol, |
| const SCH_SHEET_PATH * | aSheet, | ||
| const PICKED_SYMBOL & | aSel, | ||
| const VECTOR2I & | aPosition = VECTOR2I( 0, 0 ), | ||
| EDA_ITEM * | aParent = nullptr ) |
Definition at line 631 of file sch_symbol.cpp.
References EDA_ITEM::EDA_ITEM(), PICKED_SYMBOL::Fields, SCH_ITEM::LIB_SYMBOL, and SCH_SYMBOL().
| SCH_SYMBOL::SCH_SYMBOL | ( | const SCH_SYMBOL & | aSymbol | ) |
Clone aSymbol into a new schematic symbol object.
All fields are copied as is except for the linked list management pointers which are set to NULL, and the SCH_FIELD's m_Parent pointers which are set to the new object.
| aSymbol | is the schematic symbol to clone. |
Definition at line 646 of file sch_symbol.cpp.
References SCH_ITEM::m_bodyStyle, SYMBOL::m_DNP, m_doNetlist, m_fields, SCH_ITEM::m_fieldsAutoplaced, m_instancePathIndex, m_instances, m_lib_id, EDA_ITEM::m_parent, m_part, m_passthroughMode, m_pinMapOverride, m_pins, m_pos, m_prefix, m_schLibSymbolName, m_signalName, SYMBOL::m_transform, SCH_ITEM::m_unit, EDA_ITEM::m_Uuid, pin, SCH_SYMBOL(), and SYMBOL::SYMBOL().
| SCH_SYMBOL::~SCH_SYMBOL | ( | ) |
Definition at line 697 of file sch_symbol.cpp.
|
inherited |
Add a connection link between this item and another.
Definition at line 774 of file sch_item.cpp.
References m_connected_items, and SCH_ITEM().
Referenced by SCH_LABEL_BASE::UpdateDanglingState(), and CONNECTION_GRAPH::updateItemConnectivity().
Add a field to the symbol.
| aField | is the field to add to this symbol. |
Definition at line 2274 of file sch_symbol.cpp.
References SCH_ITEM::invalidateConnectivity(), and m_fields.
Referenced by SCH_PROPERTIES_PANEL::addBlankField(), BACK_ANNOTATE::applyChangelist(), ORCAD_CONVERTER::applyCisVariants(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_IO_LTSPICE_PARSER::CreateFields(), DIPTRACE::SCH_PARSER::createSymbolInstance(), Deserialize(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), FIELD_CASE_CONFLICT_FIXTURE::makeSymbol(), SCH_DYNAMIC_FIXTURE::makeSymbol(), SCH_IO_ALTIUM::ParseParameter(), EASYPC::SCH_BUILDER::placeFields(), ORCAD_CONVERTER::placePowerSymbol(), ORCAD_CONVERTER::placeSymbolFields(), SCH_SYMBOL_FIELD_PROPERTY::setter(), and UpdateFields().
| void SCH_SYMBOL::AddHierarchicalReference | ( | const KIID_PATH & | aPath, |
| const wxString & | aRef, | ||
| int | aUnit ) |
Add a full hierarchical reference to this symbol.
| aPath | is the hierarchical path (/<sheet timestamp>/<symbol timestamp> like /05678E50/A23EF560). |
| aRef | is the local reference like C45, R56. |
| aUnit | is the unit selection used for symbols with multiple units per package. |
Definition at line 1470 of file sch_symbol.cpp.
References AddHierarchicalReference(), SCH_SYMBOL_INSTANCE::m_Path, SCH_SYMBOL_INSTANCE::m_Reference, and SCH_SYMBOL_INSTANCE::m_Unit.
Referenced by AddHierarchicalReference(), SCH_SHEET_PATH::AddNewSymbolInstances(), AddSheetPathReferenceEntryIfMissing(), KICAD_DIFF::SCH_MERGE_APPLIER::Apply(), ApplySymbolInstance(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_SHEET_PATH::CheckForMissingSymbolInstances(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), SCH_IO_EAGLE::loadModuleInstance(), SCH_IO_PADS::LoadSchematicFile(), SCH_REFERENCE::SCH_REFERENCE(), SCH_SCREEN::SetLegacySymbolInstanceData(), SetRef(), SetUnitSelection(), SCH_EDITOR_CONTROL::updatePastedSymbol(), and SCH_SHEET_LIST::UpdateSymbolInstanceData().
| void SCH_SYMBOL::AddHierarchicalReference | ( | const SCH_SYMBOL_INSTANCE & | aInstance | ) |
Definition at line 1481 of file sch_symbol.cpp.
References KIID_PATH::AsString(), GetField(), SCH_ITEM::invalidateConnectivity(), m_instancePathIndex, m_instances, SCH_SYMBOL_INSTANCE::m_Path, SCH_SYMBOL_INSTANCE::m_Reference, SCH_SYMBOL_INSTANCE::m_Unit, SCH_ITEM::m_unit, EDA_ITEM::m_Uuid, REFERENCE, RemoveInstance(), SCH_FIELD::SetText(), and traceSchSheetPaths.
|
inlineinherited |
Add a rule area to the item's cache.
Definition at line 723 of file sch_item.h.
References m_rule_areas_cache.
Referenced by SCH_RULE_AREA::addContainedItem().
| bool SCH_SYMBOL::AddSheetPathReferenceEntryIfMissing | ( | const KIID_PATH & | aSheetPath | ) |
Add an instance to the alternate references list (m_instances), if this entry does not already exist.
Do nothing if already exists. In symbol lists shared by more than one sheet path, an entry for each sheet path must exist to manage references.
| aSheetPath | is the candidate sheet path of the sheet containing the symbol not the full symbol sheet path. |
Definition at line 3441 of file sch_symbol.cpp.
References AddHierarchicalReference(), GetField(), m_instances, SCH_ITEM::m_unit, and REFERENCE.
Referenced by SCH_SCREEN::EnsureAlternateReferencesExist(), and SCH_IO_ALTIUM::NormalizeRepeatedSheetInstances().
| void SCH_SYMBOL::AddVariant | ( | const SCH_SHEET_PATH & | aInstance, |
| const SCH_SYMBOL_VARIANT & | aVariant ) |
Definition at line 4850 of file sch_symbol.cpp.
References getInstance(), SCH_ITEM::invalidateConnectivity(), VARIANT::m_Name, and SCH_SYMBOL_INSTANCE::m_Variants.
Referenced by ORCAD_CONVERTER::applyCisVariants(), SCH_IO_ALTIUM::LoadSchematicFile(), SetPinMapOverride(), and setVariantAttribute().
|
overridevirtual |
Automatically orient all the fields in the symbol.
| aScreen | is the SCH_SCREEN associated with the current instance of the symbol. Required when aAlgo is AUTOPLACE_MANUAL; optional otherwise. |
| aAlgo | is the field placement algorithm to use. |
Reimplemented from SCH_ITEM.
Definition at line 763 of file autoplace_fields.cpp.
References AUTOPLACE_AUTO, AUTOPLACE_MANUAL, AUTOPLACER::DoAutoplace(), and SCH_ITEM::m_fieldsAutoplaced.
Referenced by SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), SCH_EDIT_TOOL::EditProperties(), PlaceRemoteDownloadedSymbol(), SCH_EDIT_TOOL::Rotate(), and SCH_EDIT_FRAME::SelectUnit().
|
inlinevirtualinherited |
Begin drawing a symbol library draw item at aPosition.
It typically would be called on a left click when a draw tool is selected in the symbol library editor and one of the graphics tools is selected.
| aPosition | The position in drawing coordinates where the drawing was started. May or may not be required depending on the item being drawn. |
Reimplemented in SCH_FIELD, SCH_SHAPE, and SCH_TEXT.
Definition at line 455 of file sch_item.h.
|
static |
Build the local power pin indicator icon shape, at coordinate aPos.
it is currently a set of 3 bezier curves + one filled cirle
| aShapeList | is a std::vector<SCH_SHAPE> to store the set of SCH_SHAPE |
| aPos | is the position of icon |
| aSize | is the size of icon |
| aLineWidth | is the line width used to build shapes |
| aHorizontal | = false for a vertical icon, true for a horizontal icon shape |
Definition at line 5188 of file sch_symbol.cpp.
References BEZIER, CIRCLE, FILLED_SHAPE, LAYER_DEVICE, and NO_FILL.
Referenced by KIGFX::SCH_PAINTER::drawLocalPowerIcon(), and plotLocalPowerIcon().
|
inlinevirtualinherited |
Calculate the attributes of an item at aPosition when it is being edited.
This method gets called by the Draw() method when the item is being edited. This probably should be a pure virtual method but bezier curves are not yet editable in the symbol library editor. Therefore, the default method does nothing.
| aPosition | The current mouse position in drawing coordinates. |
Reimplemented in SCH_FIELD, SCH_PIN, SCH_SHAPE, SCH_SHEET_PIN, and SCH_TEXT.
Definition at line 485 of file sch_item.h.
Referenced by SCH_DRAWING_TOOLS::TwoClickPlace().
|
inlineoverridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 831 of file sch_symbol.h.
References SCH_ITEM::GetLayer(), LAYER_WIRE, SCH_DIRECTIVE_LABEL_T, SCH_GLOBAL_LABEL_T, SCH_HIER_LABEL_T, SCH_ITEM::SCH_ITEM(), SCH_JUNCTION_T, SCH_LABEL_T, SCH_LINE_T, SCH_NO_CONNECT_T, SCH_SYMBOL_T, and EDA_ITEM::Type().
|
inlinestatic |
Definition at line 108 of file sch_symbol.h.
References EDA_ITEM::EDA_ITEM(), SCH_SYMBOL_T, and EDA_ITEM::Type().
| void SCH_SYMBOL::ClearAnnotation | ( | const SCH_SHEET_PATH * | aSheetPath, |
| bool | aResetPrefix ) |
Clear exiting symbol annotation.
For example, IC23 would be changed to IC? and unit number would be reset.
| aSheetPath | is the hierarchical path of the symbol to clear or remove all annotations for this symbol if NULL. | |
| [in] | aResetPrefix | The annotation prefix ('R', 'U', etc.) should be reset to the symbol library prefix. |
Definition at line 3394 of file sch_symbol.cpp.
References GetField(), UTIL::GetRefDesUnannotated(), SCH_FIELD::GetText(), m_instances, m_pins, m_prefix, SCH_SHEET_PATH::Path(), path, pin, REFERENCE, and SCH_FIELD::SetText().
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_SCREEN::ClearAnnotation(), SCH_EDIT_FRAME::DeleteAnnotation(), and SCH_EDITOR_CONTROL::updatePastedSymbol().
|
inlineinherited |
Definition at line 154 of file eda_item.h.
References BRIGHTENED, and ClearFlags().
Referenced by KICAD_DIFF::ConfigureSchDiffCanvasContext(), FOOTPRINT_DIFF_WIDGET::DisplayDiff(), SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), PL_SELECTION_TOOL::unhighlight(), SCH_SELECTION_TOOL::unhighlight(), PCB_SELECTION_TOOL::unhighlightInternal(), and PCB_TEST_SELECTION_TOOL::unhighlightInternal().
| void SCH_SYMBOL::ClearBrightenedPins | ( | ) |
Definition at line 4679 of file sch_symbol.cpp.
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 2554 of file sch_symbol.cpp.
References SCH_ITEM::ClearCaches(), and m_variantSymbolCache.
Referenced by TEST_VARIANT_FIELD_RESOLUTION_FIXTURE::ClearVariants(), SCH_EDIT_TOOL::ClearVariantSymbol(), and SCH_EDIT_TOOL::SetVariantSymbol().
|
inherited |
Clear all connections to this item.
Definition at line 757 of file sch_item.cpp.
References m_connected_items.
Referenced by CONNECTION_GRAPH::updateGenericItemConnectivity(), CONNECTION_GRAPH::updatePinConnectivity(), and CONNECTION_GRAPH::updateSymbolConnectivity().
|
inlineinherited |
Definition at line 270 of file eda_item.h.
References m_customProperties.
|
inlinevirtualinherited |
Reimplemented in LIB_SYMBOL.
Definition at line 178 of file eda_item.h.
References ClearFlags(), and GetEditFlags().
Referenced by BOARD::Add(), FOOTPRINT::Add(), KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), LIB_SYMBOL::ClearEditFlags(), DRAWING_TOOL::drawShape(), SCH_MOVE_TOOL::finalizeMoveOperation(), PL_DRAWING_TOOLS::PlaceItem(), BOARD_COMMIT::Push(), SCH_EDIT_FRAME::PutDataInPreviousState(), BOARD_COMMIT::RevertToCheckpoint(), SCH_ITEM::SwapFlags(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), and FOOTPRINT::UpdateFields().
|
inlineinherited |
Definition at line 160 of file eda_item.h.
References EDA_ITEM_ALL_FLAGS, m_flags, and m_netHighlighted.
Referenced by FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), PNS_KICAD_IFACE::AddItem(), PNS_KICAD_IFACE_GENERATOR::AddItem(), AlignSchematicItemsToGrid(), SCH_MOVE_TOOL::AlignToGrid(), BACK_ANNOTATE::applyChangelist(), PCB_CONTROL::ApplyDesignBlockLayout(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), FOOTPRINT::BuildCourtyardCaches(), PCB_VIA_STACK::BuildMembers(), ClearBrightened(), ClearEditFlags(), ClearSelected(), ClearTempFlags(), SYMBOL_EDITOR_EDIT_TOOL::Copy(), MULTICHANNEL_TOOL::copyRuleAreaContents(), FOOTPRINT_EDITOR_CONTROL::CreateFootprintFromWizard(), SYMBOL_EDITOR_PIN_TOOL::CreateImagePins(), PCB_TOOL_BASE::doInteractiveItemPlacement(), SCH_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), SCH_ITEM::Duplicate(), PCB_TUNING_PATTERN::EditCancel(), PCB_VIA_STACK::EditCancel(), PCB_VIA_STITCH::EditCancel(), PCB_TUNING_PATTERN::EditFinish(), PCB_VIA_STACK::EditFinish(), PCB_VIA_STITCH::EditFinish(), BOARD::ExchangeFootprint(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), SCH_IO_KICAD_SEXPR::Format(), SYMBOL_EDIT_FRAME::GetSymbolFromRedoList(), SYMBOL_EDIT_FRAME::GetSymbolFromUndoList(), SCH_SELECTION_TOOL::GuessSelectionCandidates(), SCH_COLLECTOR::Inspect(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), SCH_IO_PADS::LoadSchematicFile(), SCH_ALIGN_TOOL::moveItem(), FOOTPRINT_EDITOR_CONTROL::NewFootprint(), FOOTPRINT_EDIT_FRAME::OpenProjectFiles(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), PCB_BASE_FRAME::PlaceFootprint(), DRAWING_TOOL::PlaceMicroviaStack(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), SCH_MOVE_TOOL::preprocessBreakOrSliceSelection(), SCH_COMMIT::pushSchEdit(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), PCB_SELECTION_TOOL::RebuildSelection(), PAD::Recombine(), FOOTPRINT_EDIT_FRAME::RefreshLibraryFootprintTab(), GERBVIEW_FRAME::RemapLayers(), SCH_POINT_EDITOR::Reset(), SCH_COMMIT::RevertToCheckpoint(), DRC_TEST_PROVIDER_DISALLOW::Run(), ISSUE22864_FIXTURE::RunAlignmentAndVerify(), ISSUE22864_FIXTURE::RunAlignmentAndVerifyNoSkew(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), HEADLESS_FOOTPRINT_CONTEXT::SaveFootprintInLibrary(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), SCH_IO_KICAD_SEXPR_LIB_CACHE::savePin(), SCH_SELECTION_TOOL::SelectMultiple(), SetIsShownAsBitmap(), PCB_VIA::SetSizeFromRules(), SCH_DRAWING_TOOLS::TwoClickPlace(), SCH_SELECTION_TOOL::unhighlight(), SCH_SHAPE::UpdateHatching(), and SCOPED_FLAGS_CLEANER::~SCOPED_FLAGS_CLEANER().
|
inlineinherited |
Reset the cache of rule areas (called prior to schematic connectivity computation)
Definition at line 718 of file sch_item.h.
References m_rule_areas_cache.
|
inlineinherited |
Definition at line 153 of file eda_item.h.
References ClearFlags(), and SELECTED.
Referenced by PCB_POINT_EDITOR::addCorner(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_DIFF_WIDGET::DisplayDiff(), EDIT_TOOL::Duplicate(), LIB_SYMBOL::LIB_SYMBOL(), ARRAY_TOOL::onDialogClosed(), DRAWING_TOOL::PlaceSubGrid(), SCH_COMMIT::RevertToCheckpoint(), GRAPHIC_EDIT_TOOL::runInteractive(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), SCH_COMMIT::Stage(), PL_SELECTION_TOOL::unhighlight(), SCH_SELECTION_TOOL::unhighlight(), PCB_SELECTION_TOOL::unhighlightInternal(), PCB_TEST_SELECTION_TOOL::unhighlightInternal(), and GERBVIEW_SELECTION_TOOL::unselectVisually().
|
inlinevirtualinherited |
Reimplemented in LIB_SYMBOL.
Definition at line 191 of file eda_item.h.
References ClearFlags(), and GetTempFlags().
Referenced by LIB_SYMBOL::ClearTempFlags(), SCH_EDIT_FRAME::PutDataInPreviousState(), and SCH_ITEM::SwapFlags().
| void SCH_SYMBOL::ClearVariantField | ( | const KIID_PATH & | aPath, |
| const wxString & | aVariantName, | ||
| const wxString & | aFieldName ) |
Definition at line 5012 of file sch_symbol.cpp.
References getInstance(), SCH_ITEM::invalidateConnectivity(), and SCH_SYMBOL_INSTANCE::m_Variants.
Referenced by applySymbolVariants().
| bool SCH_SYMBOL::ClearVariantSymbolOverride | ( | const SCH_SHEET_PATH & | aPath, |
| const wxString & | aVariantName ) |
Remove the alternate-symbol override for a given variant and sheet instance.
Returns false if the variant had no override.
Definition at line 5086 of file sch_symbol.cpp.
References getInstance(), SCH_ITEM::invalidateConnectivity(), SCH_SYMBOL_VARIANT::m_SymbolOverride, SCH_SYMBOL_INSTANCE::m_Variants, and m_variantSymbolCache.
Referenced by applySymbolVariants(), and SCH_EDIT_TOOL::ClearVariantSymbol().
|
overridevirtual |
Create a duplicate of this item with linked list members set to NULL.
The default version will return NULL in release builds and likely crash the program. In debug builds, a warning message indicating the derived class has not implemented cloning. This really should be a pure virtual function. Due to the fact that there are so many objects derived from EDA_ITEM, the decision was made to return NULL until all the objects derived from EDA_ITEM implement cloning. Once that happens, this function should be made pure.
Reimplemented from EDA_ITEM.
Definition at line 835 of file sch_symbol.cpp.
References EDA_ITEM::EDA_ITEM(), and SCH_SYMBOL().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().
|
protectedvirtualinherited |
Provide the draw object specific comparison called by the == and < operators.
The base object sort order which always proceeds the derived object sort order is as follows:
| aOther | A reference to the other SCH_ITEM to compare the arc against. |
| aCompareFlags | The flags used to perform the comparison. |
Reimplemented in LIB_SYMBOL, SCH_FIELD, SCH_PIN, SCH_SHAPE, SCH_TEXT, and SCH_TEXTBOX.
Definition at line 935 of file sch_item.cpp.
References EDA_ITEM::GetPosition(), IsPrivate(), m_bodyStyle, EDA_ITEM::m_customProperties, m_unit, EDA_ITEM::m_Uuid, name, POSITION, SCH_ITEM(), EDA_ITEM::Type(), UNIT, UUID, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by SCH_FIELD::compare(), SCH_PIN::compare(), SCH_SHAPE::compare(), SCH_TEXT::compare(), SCH_ITEM::cmp_items::operator()(), operator<(), operator==(), and SCH_PIN::operator==().
|
inherited |
Retrieve the set of items connected to this item on the given sheet.
Definition at line 766 of file sch_item.cpp.
References empty(), and m_connected_items.
Referenced by addConnections(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CONNECTION_GRAPH::boost_test_update_symbol_connectivity, CONNECTION_GRAPH::buildItemSubGraphs(), SCH_CONNECTIVITY::Dump(), findSingleNetLabelForPin(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inherited |
Retrieve the connection associated with this object in the given sheet.
Definition at line 580 of file sch_item.cpp.
References SCHEMATIC::CurrentSheet(), IsConnectable(), m_connection_map, and Schematic().
Referenced by CONNECTION_SUBGRAPH::Absorb(), CONNECTION_SUBGRAPH::AddItem(), SCH_CONNECTIVITY::AppendConnectionInfo(), SCH_EDITOR_CONTROL::AssignNetclass(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CONNECTION_GRAPH::boost_test_update_generic_connectivity, CONNECTION_GRAPH::boost_test_update_symbol_connectivity, CONNECTION_GRAPH::buildConnectionGraph(), cloneWireConnection(), KIGFX::SCH_PAINTER::draw(), CONNECTION_GRAPH::ercCheckBusToBusConflicts(), CONNECTION_GRAPH::ercCheckBusToBusEntryConflicts(), CONNECTION_SUBGRAPH::ExchangeItem(), SCH_EDITOR_CONTROL::FindNetInInspector(), SCH_DRAWING_TOOLS::findWireLabelDriverName(), CONNECTION_GRAPH::GetBusesNeedingMigration(), GetBusMemberNames(), GetConnectionName(), SCH_PIN::GetMsgPanelInfo(), GetOrInitConnection(), HasBusConnection(), SCH_SELECTION_TOOL::Init(), InitializeConnection(), MatchesNetName(), BUS_UNFOLD_MENU::memberEntries(), SCH_CONNECTIVITY::NETCHAIN_MANAGER::NetKeyForItem(), SCH_TEXT::Plot(), SCH_DRAG_NET_COLLISION_MONITOR::recordItemNet(), ORCAD_CONVERTER::recordNetNameMap(), SCH_EDIT_FRAME::RefreshConnectivity(), CONNECTION_SUBGRAPH::ResolveDrivers(), and SCH_TOOL_BASE< T >::saveCopyInUndoList().
|
inlinevirtualinherited |
Return true if this item should propagate connection info to aItem.
Reimplemented in SCH_BUS_WIRE_ENTRY, SCH_LINE, and SCH_PIN.
Definition at line 628 of file sch_item.h.
References EDA_ITEM::EDA_ITEM().
|
inlinevirtualinherited |
Continue an edit in progress at aPosition.
This is used to perform the next action while drawing an item. This would be called for each additional left click when the mouse is captured while the item is being drawn.
| aPosition | The position of the mouse left click in drawing coordinates. |
Reimplemented in SCH_SHAPE.
Definition at line 467 of file sch_item.h.
| void SCH_SYMBOL::CopyVariant | ( | const KIID_PATH & | aPath, |
| const wxString & | aSourceVariant, | ||
| const wxString & | aNewVariant ) |
Definition at line 5044 of file sch_symbol.cpp.
References getInstance(), SCH_ITEM::invalidateConnectivity(), VARIANT::m_Name, and SCH_SYMBOL_INSTANCE::m_Variants.
Referenced by SCH_SCREEN::CopyVariant(), and CopyVariant().
|
inline |
Definition at line 1067 of file sch_symbol.h.
References CopyVariant(), and SCH_SHEET_PATH::Path().
| void SCH_SYMBOL::DeleteVariant | ( | const KIID_PATH & | aPath, |
| const wxString & | aVariantName ) |
Definition at line 4998 of file sch_symbol.cpp.
References getInstance(), SCH_ITEM::invalidateConnectivity(), and SCH_SYMBOL_INSTANCE::m_Variants.
Referenced by applySymbolVariants(), SCH_SCREEN::DeleteVariant(), and DeleteVariant().
|
inline |
Definition at line 1057 of file sch_symbol.h.
References DeleteVariant(), and SCH_SHEET_PATH::Path().
|
overridevirtual |
Deserializes the given protobuf message into this object.
| aContainer | is an Any which should have a concrete type matching this object |
Reimplemented from SERIALIZABLE.
Definition at line 903 of file sch_symbol.cpp.
References Deserialize().
Referenced by Deserialize(), and UnpackSymbol().
| bool SCH_SYMBOL::Deserialize | ( | const kiapi::schematic::types::SchematicSymbolInstance & | aSymbol | ) |
Definition at line 914 of file sch_symbol.cpp.
References AddField(), ALL_BODY_STYLES, ALL_UNITS, AUTOPLACE_AUTO, AUTOPLACE_NONE, DATASHEET, DESCRIPTION, LIB_SYMBOL::Deserialize(), SCH_FIELD::Deserialize(), FOOTPRINT, FromProtoEnum(), GetAllLibPins(), GetField(), GetFields(), GetGraphicalPins(), LIB_ID::GetLibItemName(), SCH_ITEM::GetParentScreen(), SCH_FIELD::IsMandatory(), SCH_ITEM::LIB_SYMBOL, m_lib_id, m_pins, EDA_ITEM::m_Uuid, name, pin, REFERENCE, RemoveField(), SCH_PIN_T, schIUScale, SetBodyStyle(), SCH_ITEM::SetFieldsAutoplaced(), SetLibSymbol(), SCH_ITEM::SetLocked(), SetMirrorX(), SetMirrorY(), SetOrientationProp(), SetPassthroughMode(), SYMBOL::SetPinNameOffset(), SetPosition(), SetSchSymbolLibraryName(), SetShowPinNames(), SetShowPinNumbers(), kiapi::common::TypeNameFromAny(), kiapi::common::UnpackCustomProperties(), kiapi::common::UnpackDistance(), kiapi::common::UnpackLibId(), kiapi::common::UnpackVector2(), UpdatePins(), USER, and VALUE.
|
inlinevirtualinherited |
Reimplemented in FOOTPRINT.
Definition at line 458 of file eda_item.h.
References GetItemDescription().
Referenced by SELECTION_TOOL::doSelectionMenu().
|
private |
Definition at line 3697 of file sch_symbol.cpp.
References SCHEMATIC::CurrentSheet(), LIB_SYMBOL::GetBodyBoundingBox(), LIB_SYMBOL::GetDummy(), GetEffectiveLibSymbol(), SCH_ITEM::LIB_SYMBOL, SCH_ITEM::m_bodyStyle, m_fields, m_pos, SYMBOL::m_transform, SCH_ITEM::m_unit, BOX2< Vec >::Merge(), BOX2< Vec >::Normalize(), BOX2< Vec >::Offset(), and SCH_ITEM::Schematic().
Referenced by GetBodyAndPinsBoundingBox(), GetBodyBoundingBox(), and GetBoundingBox().
|
inlinevirtualinherited |
Reimplemented in SCH_FIELD, SCH_TEXT, and SCH_TEXTBOX.
Definition at line 348 of file sch_item.h.
|
overrideprivatevirtual |
Provide the object specific test to see if it is connected to aPosition.
| aPosition | is a reference to a VECTOR2I object containing the test position. |
Reimplemented from SCH_ITEM.
Definition at line 4394 of file sch_symbol.cpp.
References ALL_BODY_STYLES, ALL_UNITS, SCH_ITEM::GetBodyStyle(), SCH_ITEM::GetUnit(), m_pins, m_pos, SYMBOL::m_transform, pin, and PT_NC.
| bool SCH_SYMBOL::DoNetList | ( | ) | const |
Definition at line 4419 of file sch_symbol.cpp.
References m_doNetlist.
Referenced by SCH_CONNECTIVITY::ExtractInstanceFacts(), and CONNECTION_SUBGRAPH::ResolveDrivers().
|
inherited |
Routine to create a new copy of given item.
The new object is not put in draw list (not linked).
| addToParentGroup | Indicates whether or not the new item is added to the group (if any) containing the old item. If true, aCommit must be provided. | |
| [out] | aCommit | is the optional commit object for undo/redo operations. |
| aDoClone | (default = false) indicates unique values (such as timestamp and sheet name) should be duplicated. Use only for undo/redo operations. |
Definition at line 191 of file sch_item.cpp.
References BRIGHTENED, EDA_ITEM::ClearFlags(), EDA_ITEM::Clone(), EDA_ITEM::GetParentGroup(), group, EDA_ITEM::m_Uuid, COMMIT::Modify(), NO_RECURSE, RunOnChildren(), SCH_ITEM(), SCH_SYMBOL_T, SELECTED, and EDA_ITEM::Type().
Referenced by SCH_EDIT_FRAME::AddCopyForRepeatItem(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_LINE::BreakAt(), SYMBOL_EDITOR_PIN_TOOL::CreateImagePins(), SCH_GROUP::DeepDuplicate(), SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), CADSTAR_SCH_ARCHIVE_LOADER::loadItemOntoKiCadSheet(), SCH_IO_EAGLE::loadSchematic(), SCH_IO_DATABASE::loadSymbolFromRow(), SCH_LINE::NonGroupAware_BreakAt(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), SCH_EDIT_TOOL::RepeatDrawItem(), SYMBOL_EDITOR_PIN_TOOL::RepeatPin(), SCH_EDIT_FRAME::SaveCopyInUndoList(), SCH_EDIT_FRAME::SaveCopyInUndoList(), and SCH_LINE_WIRE_BUS_TOOL::startSegments().
|
inlinevirtualinherited |
End an object editing action.
This is used to end or abort an edit action in progress initiated by BeginEdit().
Reimplemented in SCH_SHAPE.
Definition at line 474 of file sch_item.h.
| SCH_FIELD * SCH_SYMBOL::FindFieldCaseInsensitive | ( | const wxString & | aFieldName | ) |
Search for a SCH_FIELD with aFieldName.
| aFieldName | is the name of the field to find. |
Definition at line 2312 of file sch_symbol.cpp.
References m_fields.
Referenced by ORCAD_CONVERTER::applyCisVariants(), and NETLIST_EXPORTER_ALLEGRO::getGroupField().
| const SCH_FIELD * SCH_SYMBOL::FindFieldCaseInsensitive | ( | const wxString & | aFieldName | ) | const |
Definition at line 2324 of file sch_symbol.cpp.
References m_fields.
Definition at line 137 of file eda_item.cpp.
References EDA_ITEM(), GetParent(), and Type().
Referenced by BOARD_ITEM::GetBoard(), BOARD_ITEM::GetBoard(), BOARD_ITEM::GetParentFootprint(), SCH_ITEM::GetParentScreen(), SCH_ITEM::GetParentSymbol(), SCH_ITEM::GetParentSymbol(), and SCH_ITEM::Schematic().
|
inherited |
Definition at line 84 of file inspectable_impl.h.
References PROPERTY_BASE::get(), PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), T, TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inherited |
Definition at line 74 of file inspectable.cpp.
References PROPERTY_BASE::getter(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), CLASS_D_DESC::CLASS_D_DESC(), MATCH_PROPERTIES_CATALOG::Copy(), KICAD_DIFF::DiffItemProperties(), PROPERTIES_PANEL::getItemValue(), PCBEXPR_VAR_REF::GetValue(), DIALOG_FIND_BY_PROPERTIES::getVariantAwareValue(), KICAD_DIFF::ItemProperties(), plan(), FOOTPRINT::ResolveTextVar(), SCH_SYMBOL::ResolveTextVar(), and SCHEMATIC::SCHEMATIC().
|
inherited |
Definition at line 72 of file inspectable_impl.h.
References PROPERTY_BASE::get(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), T, TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
| std::vector< SCH_PIN * > SCH_SYMBOL::GetAllLibPins | ( | ) | const |
Definition at line 2636 of file sch_symbol.cpp.
References ALL_BODY_STYLES, ALL_UNITS, and m_part.
Referenced by BOOST_FIXTURE_TEST_CASE(), SIM_LIB_MGR::CaptureModelInput(), LEGACY_POWER_SYMBOLS_TEST_FIXTURE::CheckSymbols(), Deserialize(), SCH_SCREEN::FixLegacyPowerSymbolMismatches(), IsSymbolLikePowerGlobalLabel(), IsSymbolLikePowerLocalLabel(), and ResolveTextVar().
|
overridevirtual |
Return a bounding box for the symbol body and pins but not the fields.
Implements SYMBOL.
Definition at line 3740 of file sch_symbol.cpp.
References doGetBoundingBox().
Referenced by BOOST_AUTO_TEST_CASE(), KIGFX::SCH_PAINTER::draw(), SCH_SELECTION_TOOL::GuessSelectionCandidates(), operator<(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), and PlotDNP().
|
overridevirtual |
Return a bounding box for the symbol body but not the pins or fields.
Implements SYMBOL.
Definition at line 3726 of file sch_symbol.cpp.
References doGetBoundingBox().
Referenced by KIGFX::SCH_PAINTER::draw(), SCH_SELECTION_TOOL::GuessSelectionCandidates(), HitTest(), HitTest(), HitTest(), SCH_EASYEDA_PARSER::ParseSchematic(), and PlotDNP().
|
inlineinherited |
Definition at line 253 of file sch_item.h.
References m_bodyStyle.
Referenced by BOOST_AUTO_TEST_CASE(), CheckDuplicatePins(), SCH_PIN::Clone(), SCH_PIN::compare(), SCH_PIN::ComparisonData(), SCH_EDIT_TOOL::CycleBodyStyle(), SCH_INSPECTION_TOOL::DiffSymbol(), SYMBOL_EDITOR_EDIT_TOOL::DoDelete(), SCH_SYMBOL::doIsConnected(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), SCH_EDIT_TOOL::EditProperties(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), SCH_CONNECTIVITY::ExtractInstanceFacts(), SYMBOL_EDIT_FRAME::FocusOnItem(), PIN_INFO_FORMATTER::Format(), SCH_SYMBOL::GetBodyStyleProp(), SCH_SYMBOL::GetConnectionPoints(), GetMsgPanelInfo(), SCH_SYMBOL::GetPin(), SCH_MOVE_TOOL::handleMoveToolActions(), SCH_COLLECTOR::Inspect(), SCH_SYMBOL::IsPointClickableAnchor(), KIGFX::SCH_PAINTER::isUnitAndConversionShown(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), SCH_SELECTION_TOOL::Main(), SCH_SYMBOL::MapLibPins(), DIALOG_LIB_EDIT_PIN_TABLE::OnAddRow(), SCH_SYMBOL::operator==(), PackSymbol(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), SCH_SYMBOL::Plot(), SCH_SYMBOL::PlotPins(), ORCAD_CONVERTER::recordNetNameMap(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveArc(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveBezier(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveCircle(), SCH_IO_KICAD_LEGACY_LIB_CACHE::savePin(), SCH_IO_KICAD_LEGACY_LIB_CACHE::savePolyLine(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveRectangle(), SCH_IO_KICAD_LEGACY::saveSymbol(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveText(), SCH_SELECTION_TOOL::Selectable(), SCH_EDIT_FRAME::SelectBodyStyle(), SCH_SYMBOL::Serialize(), sort_by_pin_number(), SYMBOL_EDITOR_PIN_TOOL::SynchronizeOtherUnits(), BODY_STYLE_MENU::update(), SCH_POINT_EDITOR::updatePoints(), VariantSymbolPinsMatch(), and SCH_SYMBOL::Visit().
|
overridevirtual |
Return the number of body styles of the symbol.
Implements SYMBOL.
Definition at line 1358 of file sch_symbol.cpp.
References m_part.
Referenced by SCH_EDIT_TOOL::CycleBodyStyle(), IsMultiBodyStyle(), Serialize(), SetBodyStyleProp(), and BODY_STYLE_MENU::update().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 1387 of file sch_symbol.cpp.
References m_part.
Referenced by GetBodyStyleProp(), SetBodyStyleProp(), and BODY_STYLE_MENU::update().
|
inlineoverridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 539 of file sch_symbol.h.
References SCH_ITEM::GetBodyStyle(), and GetBodyStyleDescription().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
overridevirtual |
Return the orthogonal bounding box of this object for display purposes.
This box should be an enclosing perimeter for visible components of this object, and the units should be in the pcb or schematic coordinate system. It is OK to overestimate the size by a few counts.
Reimplemented from EDA_ITEM.
Definition at line 3746 of file sch_symbol.cpp.
References doGetBoundingBox().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), Plot(), and SCH_RULE_AREA::RefreshContainedItemsAndDirectives().
|
inherited |
Names of the bus members of this item's connection, empty when it does not have a bus.
The published connectivity gives the leaf names, so a nested bus is flattened here.
Definition at line 647 of file sch_item.cpp.
References Connection(), ADVANCED_CFG::GetCfg(), SCH_CONNECTION::IsBus(), SCH_CONNECTION::Members(), and publishedConnection().
Referenced by SCH_LINE::Plot().
|
virtualinherited |
Reimplemented in SCH_LABEL_BASE.
Definition at line 827 of file sch_item.cpp.
Referenced by CONNECTION_SUBGRAPH::GetNameForDriver().
|
inlineoverridevirtual |
Return the class name.
Reimplemented from SCH_ITEM.
Definition at line 113 of file sch_symbol.h.
Referenced by operator=().
| std::unordered_set< wxString > SCH_SYMBOL::GetComponentClassNames | ( | const SCH_SHEET_PATH * | aPath | ) | const |
Return the component classes this symbol belongs in.
Definition at line 4806 of file sch_symbol.cpp.
References INTERNAL, m_fields, and SCH_ITEM::m_rule_areas_cache.
Referenced by NETLIST_EXPORTER_XML::getComponentClassNamesForAllSymbolUnits().
|
inherited |
Return the active connection name; absent for missing or stale published rows.
aIgnoreSheet removes only the hierarchy prefix of the canonical name.
Definition at line 629 of file sch_item.cpp.
References Connection(), ADVANCED_CFG::GetCfg(), and publishedConnection().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), KIGFX::SCH_PAINTER::draw(), GetEffectiveNetClass(), SCH_LABEL_BASE::Plot(), SCH_LINE::Plot(), SCH_LABEL_BASE::ResolveTextVar(), SCH_EDITOR_CONTROL::ShowCreateNetChain(), SCH_EDITOR_CONTROL::SimProbe(), NET_CHAIN_MENU::update(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
overridevirtual |
Add all the connection points for this item to aPoints.
Not all schematic items have connection points so the default method does nothing.
Reimplemented from SCH_ITEM.
Definition at line 4098 of file sch_symbol.cpp.
References ALL_BODY_STYLES, ALL_UNITS, SCH_ITEM::GetBodyStyle(), SCH_ITEM::GetUnit(), m_pins, m_pos, SYMBOL::m_transform, and pin.
| void SCH_SYMBOL::GetContextualTextVars | ( | wxArrayString * | aVars | ) | const |
Return the list of system text vars & fields for this symbol.
Definition at line 2797 of file sch_symbol.cpp.
References m_fields.
Referenced by DIALOG_TABLE_PROPERTIES::getContextualTextVars(), DIALOG_TABLECELL_PROPERTIES::getContextualTextVars(), DIALOG_TEXT_PROPERTIES::getContextualTextVars(), and SCH_FIELD::OnScintillaCharAdded().
|
inlineinherited |
Custom user-defined string key/value properties attached to this item.
Keys and values are arbitrary strings; their meaning is defined by the user. The only constraint is that keys may not duplicate a built-in property (or field name, for items that have fields).
Definition at line 242 of file eda_item.h.
References m_customProperties.
Referenced by BOOST_AUTO_TEST_CASE(), KICAD_FORMAT::FormatCustomProperties(), and kiapi::common::PackCustomProperties().
|
inherited |
Definition at line 200 of file eda_item.cpp.
References m_customProperties, m_dynamicCustomPropsCache, and TYPE_HASH.
Referenced by GetDynamicProperties(), FOOTPRINT::GetDynamicProperties(), SCH_SHEET::GetDynamicProperties(), and SCH_SYMBOL::GetDynamicProperties().
|
inherited |
Definition at line 188 of file eda_item.cpp.
References m_customProperties.
Referenced by BOOST_AUTO_TEST_CASE(), customPropertyFunc(), EDA_CUSTOM_PROPERTY::getter(), hasCustomPropertyFunc(), PCB_PROPERTIES_PANEL::onKeyRenamed(), and SCH_PROPERTIES_PANEL::onKeyRenamed().
| wxString SCH_SYMBOL::GetDatasheet | ( | ) | const |
Return the documentation text for the given part alias.
Definition at line 1148 of file sch_symbol.cpp.
References m_part.
Referenced by UpdateFields().
|
inherited |
Definition at line 999 of file sch_item.cpp.
References GetAppSettings(), KIGFX::RENDER_SETTINGS::GetDefaultFont(), and KICAD_FONT_NAME.
Referenced by SCH_FIELD::GetDrawFont(), SCH_TEXT::GetDrawFont(), and SCH_TEXTBOX::GetDrawFont().
|
overridevirtual |
Implements SYMBOL.
Definition at line 1112 of file sch_symbol.cpp.
References m_part.
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
overridevirtual |
Set or clear the 'Do Not Populate' flag.
Reimplemented from SYMBOL.
Definition at line 1913 of file sch_symbol.cpp.
References GetInstance(), SYMBOL::m_DNP, SCH_SYMBOL_INSTANCE::m_Variants, and SCH_SHEET_PATH::Path().
Referenced by BACK_ANNOTATE::applyChangelist(), ORCAD_CONVERTER::applyCisVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), KIGFX::SCH_PAINTER::draw(), GetDNPProp(), GetMsgPanelInfo(), SCH_SYMBOL_VARIANT::HasDifferentials(), SCH_SYMBOL_VARIANT::InitializeAttributes(), PackSymbol(), Plot(), ResolveTextVar(), SCH_IO_KICAD_SEXPR::saveSymbol(), and SyncOtherUnits().
| bool SCH_SYMBOL::GetDNPProp | ( | ) | const |
Definition at line 88 of file sch_symbol.cpp.
References GetDNP(), and SCH_ITEM::Schematic().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
| SCH_ITEM * SCH_SYMBOL::GetDrawItem | ( | const VECTOR2I & | aPosition, |
| KICAD_T | aType = TYPE_NOT_INIT ) |
Return the symbol library item at aPosition that is part of this symbol.
| aPosition | is the schematic position of the symbol library object. |
| aType | is the type of symbol library object to find or any if set to TYPE_NOT_INIT. |
Definition at line 4122 of file sch_symbol.cpp.
References SCHEMATIC::CurrentSheet(), GetEffectiveLibSymbol(), SCH_ITEM::LIB_SYMBOL, LIB_SYMBOL::LocateDrawItem(), SCH_ITEM::m_bodyStyle, m_pos, SYMBOL::m_transform, SCH_ITEM::m_unit, SCH_ITEM::SCH_ITEM(), and SCH_ITEM::Schematic().
Referenced by SCH_SCREEN::GetPin().
|
overridevirtual |
Return dynamically-computed properties specific to this object instance (e.g.
custom fields, pin-map entries). These are NOT registered in PROPERTY_MANAGER and do NOT appear in GetProperties(TYPE_ID).
The returned PROPERTY_BASE* pointers are owned by the object and remain valid until the object is destroyed or its property set changes.
Reimplemented from EDA_ITEM.
Definition at line 710 of file sch_symbol.cpp.
References GetDynamicProperties(), and SCH_ITEM::Schematic().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GetDynamicProperties(), and ResolveTextVar().
| std::vector< PROPERTY_BASE * > SCH_SYMBOL::GetDynamicProperties | ( | const SCH_SHEET_PATH * | aPath | ) | const |
Definition at line 716 of file sch_symbol.cpp.
References EDA_ITEM::GetCustomPropertiesAsInspectables(), GetFields(), GetPins(), SCH_FIELD::GetUntranslatedName(), HasEffectiveAssociatedFootprint(), PROPERTY_MANAGER::Instance(), m_dynamicPropertyCache, name, pin, PIN_MAP_ENTRY_PREFIX, PIN_MAP_FOOTPRINT_PROP, PIN_MAP_MODE_PROP, PIN_MAP_NAME_PROP, SCH_SYMBOL(), and TYPE_HASH.
|
inlineinherited |
Definition at line 170 of file eda_item.h.
References IS_BROKEN, IS_CHANGED, IS_MOVING, IS_NEW, IS_PASTED, m_flags, and STRUCT_DELETED.
Referenced by SCH_EDIT_TOOL::ChangeTextType(), ClearEditFlags(), SCH_EDIT_FRAME::DeleteJunction(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SCH_EDIT_TOOL::editFieldText(), SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), SCH_DRAWING_TOOLS::findWire(), SCH_SYMBOL::GetMsgPanelInfo(), SELECTION_CONDITIONS::IdleSelection(), SYMBOL_EDITOR_EDIT_TOOL::Properties(), SCH_EDIT_FRAME::SelectBodyStyle(), SCH_EDIT_FRAME::SelectUnit(), SYMBOL_EDITOR_EDIT_TOOL::Swap(), and SCH_ITEM::SwapFlags().
| const LIB_SYMBOL * SCH_SYMBOL::GetEffectiveLibSymbol | ( | const SCH_SHEET_PATH * | aPath = nullptr | ) | const |
Return the library symbol to use for rendering and bounding box calculations.
If the current variant has a symbol override and it resolves successfully, returns the alternate symbol. Otherwise returns the base m_part.
| aPath | optional sheet path for variant context. |
Definition at line 4933 of file sch_symbol.cpp.
References SCHEMATIC::GetCurrentVariant(), GetVariantLibSymbol(), SCH_ITEM::LIB_SYMBOL, m_part, and SCH_ITEM::Schematic().
Referenced by doGetBoundingBox(), KIGFX::SCH_PAINTER::draw(), SCH_CONNECTIVITY::ExtractInstanceFacts(), GetDrawItem(), Plot(), and PlotPins().
|
inherited |
Definition at line 733 of file sch_item.cpp.
References GetConnectionName(), PROJECT::GetProjectFile(), SCHEMATIC::IsValid(), PROJECT_FILE::m_NetSettings, name, SCHEMATIC::Project(), and Schematic().
Referenced by SCH_CONNECTIVITY::AppendConnectionInfo(), BOOST_AUTO_TEST_CASE(), SCH_BUS_ENTRY_BASE::GetBusEntryColor(), SCH_BUS_ENTRY_BASE::GetEffectiveLineStyle(), SCH_LINE::GetEffectiveLineStyle(), SCH_JUNCTION::getEffectiveShape(), SCH_FIELD::GetFieldColor(), SCH_JUNCTION::GetJunctionColor(), SCH_LABEL_BASE::GetLabelColor(), SCH_LINE::GetLineColor(), SCH_BUS_BUS_ENTRY::GetPenWidth(), SCH_BUS_WIRE_ENTRY::GetPenWidth(), SCH_LINE::GetPenWidth(), SCH_FIELD::Plot(), SCH_LABEL_BASE::Plot(), SCH_LINE::Plot(), and SCH_LABEL_BASE::ResolveTextVar().
|
inherited |
Definition at line 1021 of file sch_item.cpp.
References KIGFX::RENDER_SETTINGS::GetDefaultPenWidth(), KIGFX::RENDER_SETTINGS::GetMinPenWidth(), EDA_ITEM::GetParent(), GetPenWidth(), LIB_SYMBOL_T, SCH_RENDER_SETTINGS::m_SymbolLineWidth, and EDA_ITEM::Type().
Referenced by KIGFX::SCH_PAINTER::getLineWidth(), SCH_LINE::Plot(), SCH_NO_CONNECT::Plot(), SCH_RULE_AREA::Plot(), SCH_SHAPE::Plot(), SCH_SHEET::Plot(), SCH_TEXTBOX::Plot(), and SCH_PIN::PlotPinType().
|
overridevirtual |
SCH_SYMBOLs don't currently support embedded files, but their LIB_SYMBOL counterparts do.
Reimplemented from EDA_ITEM.
Definition at line 3870 of file sch_symbol.cpp.
References GetLibSymbolRef().
Referenced by BOOST_AUTO_TEST_CASE(), SCH_EDIT_FRAME::RefreshOperatingPointDisplay(), SCH_EDITOR_CONTROL::SimProbe(), and SIMULATOR_FRAME_UI::UpdateTunerValue().
|
overridevirtualinherited |
Reimplemented from EDA_ITEM.
Definition at line 1072 of file sch_item.cpp.
References GetParentSymbol(), and Schematic().
|
overridevirtual |
Add the schematic item end points to aItemList if the item has end points.
The default version doesn't do anything since many of the schematic object cannot be tested for dangling ends. If you add a new schematic item that can have a dangling end ( no connect ), override this method to provide the correct end points.
| aItemList | is the list of DANGLING_END_ITEMS to add to. |
Reimplemented from SCH_ITEM.
Definition at line 3968 of file sch_symbol.cpp.
References ALL_UNITS, GetPinPhysicalPosition(), m_pins, SCH_ITEM::m_unit, pin, and PIN_END.
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 2073 of file sch_symbol.cpp.
References GetInstance(), SYMBOL::m_excludedFromBoard, SCH_SYMBOL_INSTANCE::m_Variants, and SCH_SHEET_PATH::Path().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BACK_ANNOTATE::checkForUnusedSymbols(), NETLIST_EXPORTER_ALLEGRO::extractComponentsInfo(), SCH_CONNECTIVITY::ExtractInstanceFacts(), CONNECTION_SUBGRAPH::GetDriverPriority(), GetExcludedFromBoardProp(), GetMsgPanelInfo(), SCH_SYMBOL_VARIANT::HasDifferentials(), SCH_SYMBOL_VARIANT::InitializeAttributes(), PackSymbol(), ResolveTextVar(), SCH_IO_KICAD_SEXPR::saveSymbol(), SyncOtherUnits(), NETLIST_EXPORTER_CADSTAR::writeNetlist(), NETLIST_EXPORTER_ORCADPCB2::writeNetlist(), and NETLIST_EXPORTER_PADS::writeNetlist().
| bool SCH_SYMBOL::GetExcludedFromBoardProp | ( | ) | const |
Definition at line 124 of file sch_symbol.cpp.
References GetExcludedFromBoard(), and SCH_ITEM::Schematic().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
overridevirtual |
Reimplemented from SYMBOL.
Definition at line 2022 of file sch_symbol.cpp.
References GetInstance(), SYMBOL::m_excludedFromBOM, SCH_SYMBOL_INSTANCE::m_Variants, and SCH_SHEET_PATH::Path().
Referenced by BACK_ANNOTATE::applyChangelist(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GetExcludedFromBOMProp(), GetMsgPanelInfo(), SCH_SYMBOL_VARIANT::HasDifferentials(), SCH_SYMBOL_VARIANT::InitializeAttributes(), PackSymbol(), ResolveTextVar(), SCH_IO_KICAD_SEXPR::saveSymbol(), and SyncOtherUnits().
| bool SCH_SYMBOL::GetExcludedFromBOMProp | ( | ) | const |
Definition at line 100 of file sch_symbol.cpp.
References GetExcludedFromBOM(), and SCH_ITEM::Schematic().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 2100 of file sch_symbol.cpp.
References GetInstance(), SYMBOL::m_excludedFromPosFiles, SCH_SYMBOL_INSTANCE::m_Variants, and SCH_SHEET_PATH::Path().
Referenced by BACK_ANNOTATE::applyChangelist(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GetExcludedFromPosFilesProp(), SCH_SYMBOL_VARIANT::HasDifferentials(), SCH_SYMBOL_VARIANT::InitializeAttributes(), PackSymbol(), ResolveTextVar(), SCH_IO_KICAD_SEXPR::saveSymbol(), and SyncOtherUnits().
| bool SCH_SYMBOL::GetExcludedFromPosFilesProp | ( | ) | const |
Definition at line 136 of file sch_symbol.cpp.
References GetExcludedFromPosFiles(), and SCH_ITEM::Schematic().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
overridevirtual |
Reimplemented from SYMBOL.
Definition at line 2047 of file sch_symbol.cpp.
References GetInstance(), SYMBOL::m_excludedFromSim, SCH_SYMBOL_INSTANCE::m_Variants, and SCH_SHEET_PATH::Path().
Referenced by BACK_ANNOTATE::applyChangelist(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), KIGFX::SCH_PAINTER::draw(), GetExcludedFromSimProp(), GetMsgPanelInfo(), SCH_SYMBOL_VARIANT::HasDifferentials(), SCH_SYMBOL_VARIANT::InitializeAttributes(), PackSymbol(), ResolveTextVar(), and SCH_IO_KICAD_SEXPR::saveSymbol().
| bool SCH_SYMBOL::GetExcludedFromSimProp | ( | ) | const |
Definition at line 112 of file sch_symbol.cpp.
References GetExcludedFromSim(), and SCH_ITEM::Schematic().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
| SCH_FIELD * SCH_SYMBOL::GetField | ( | const wxString & | aFieldName | ) |
Return a field in this symbol.
| aFieldName | is the untranslated name of the field. |
Definition at line 2235 of file sch_symbol.cpp.
References FindField(), and m_fields.
| const SCH_FIELD * SCH_SYMBOL::GetField | ( | const wxString & | aFieldName | ) | const |
Definition at line 2241 of file sch_symbol.cpp.
References FindField(), and m_fields.
Definition at line 2229 of file sch_symbol.cpp.
References FindField(), and m_fields.
Return a mandatory field in this symbol.
The const version will return nullptr if the field is not found; non-const version will create the field.
Definition at line 2219 of file sch_symbol.cpp.
References FindField(), and m_fields.
Referenced by activeAssociatedFootprint(), SCH_PROPERTIES_PANEL::addBlankField(), AddHierarchicalReference(), SCH_IO_EAGLE::addImplicitConnections(), SCH_SHEET_PATH::AddNewSymbolInstances(), AddSheetPathReferenceEntryIfMissing(), NETLIST_EXPORTER_XML::addSymbolFields(), BACK_ANNOTATE::applyChangelist(), ORCAD_CONVERTER::applyCisVariants(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::ApplyFieldSettings(), DIALOG_RESOLVE_FIELD_CASE_CONFLICTS::applyResolutions(), SCH_EDITOR_CONTROL::AssignFootprints(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EASYPC::SCH_BUILDER::buildSymbols(), SCH_SHEET_PATH::CheckForMissingSymbolInstances(), LEGACY_POWER_SYMBOLS_TEST_FIXTURE::CheckSymbols(), ClearAnnotation(), NETLIST_EXPORTER_SPICE::collectMergedSimPins(), NETLIST_EXPORTER_SPICE::collectUnitPinMaps(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateCustomFields(), SCH_IO_LTSPICE_PARSER::CreateFields(), SCH_IO_LTSPICE_PARSER::CreatePowerSymbol(), DIPTRACE::SCH_PARSER::createSymbolInstance(), Deserialize(), SCH_INSPECTION_TOOL::DiffSymbol(), SCH_EDIT_TOOL::EditField(), DIPTRACE_SCH_IMPORT_FIXTURE::FieldHorizJustify(), DIPTRACE_SCH_IMPORT_FIXTURE::FieldPosForRefdes(), NETLIST_EXPORTER_SPICE::getDecomposition(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::getFieldResolvedLiveValue(), GetFieldText(), DIPTRACE_SCH_IMPORT_FIXTURE::GetFieldValueForRefdes(), GetFootprintFieldText(), DIPTRACE_SCH_IMPORT_FIXTURE::GetFootprintForRefdes(), SCH_PIN::GetItemDescription(), GetItemDescription(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValueForVariant(), GetMsgPanelInfo(), GetRef(), POWER_SEARCH_HANDLER::getResultCell(), SYMBOL_SEARCH_HANDLER::getResultCell(), GetValue(), DIALOG_CHANGE_SYMBOLS::isMatch(), ISSUE21821_FIXTURE::ISSUE21821_FIXTURE(), SCH_IO_EAGLE::loadSchematic(), SCH_IO_PADS::LoadSchematicFile(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), FIELD_CASE_CONFLICT_FIXTURE::makeSymbol(), SCH_DYNAMIC_FIXTURE::makeSymbol(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_IO_ALTIUM::NormalizeRepeatedSheetInstances(), SCH_PROPERTIES_PANEL::onKeyRenamed(), SCH_PROPERTIES_PANEL::onNewItemLeftBlank(), SCH_IO_ALTIUM::ParseComponent(), SCH_IO_ALTIUM::ParseDesignator(), SCH_IO_ALTIUM::ParseParameter(), SCH_IO_ALTIUM::ParsePowerPort(), EASYPC::SCH_BUILDER::placeFields(), ORCAD_CONVERTER::placeInstance(), ORCAD_CONVERTER::placePowerSymbol(), ORCAD_CONVERTER::placeSymbolFields(), PlotLocalPowerIconShape(), SCH_EDITOR_CONTROL::processCmpToFootprintLinkFile(), BACK_ANNOTATE::processNetNameChange(), SCH_FOOTPRINT_FIELD_RECONCILER::Reconcile(), DIPTRACE_SCH_IMPORT_FIXTURE::RefValueFieldSeparation(), SCH_PROPERTIES_PANEL::removeField(), SCH_IO_KICAD_LEGACY::saveSymbol(), SCH_REFERENCE::SCH_REFERENCE(), SCH_EDIT_FRAME::SendSelectItemsToPcb(), Serialize(), SetFieldText(), SetFootprintFieldText(), SetRef(), SCH_SYMBOL_FIELD_PROPERTY::setter(), SetValueFieldText(), SCH_INSPECTION_TOOL::ShowDatasheet(), SCH_BASE_FRAME::ShowFindReplaceDialog(), SyncOtherUnits(), DIALOG_LABEL_PROPERTIES::TransferDataToWindow(), SCH_SHEET_PATH::UpdateAllScreenReferences(), UpdateFields(), SCH_EDITOR_CONTROL::updatePastedSymbol(), UpdatePrefix(), SCH_SHEET_LIST::UpdateSymbolInstanceData(), DIPTRACE_SCH_IMPORT_FIXTURE::ValueFieldAngleDegrees(), SCH_SYMBOL_FIELD_PROPERTY::ValueForInstance(), Visit(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inline |
Return a reference to the vector holding the symbol's fields.
Definition at line 461 of file sch_symbol.h.
References m_fields.
Referenced by Deserialize(), GetDynamicProperties(), operator==(), operator==(), Plot(), and Serialize().
|
inline |
Definition at line 462 of file sch_symbol.h.
References m_fields.
|
overridevirtual |
Populate a std::vector with SCH_FIELDs, sorted in ordinal order.
| aVector | is the vector to populate. |
| aVisibleOnly | is used to add only the fields that are visible and contain text. |
Implements SYMBOL.
Definition at line 2247 of file sch_symbol.cpp.
References m_fields.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), BACK_ANNOTATE::applyChangelist(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SIM_LIB_MGR::CaptureModelInput(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateCustomFields(), DetectFieldCaseConflicts(), SCH_INSPECTION_TOOL::DiffSymbol(), KIGFX::SCH_PAINTER::draw(), SCH_CONNECTIVITY::ExtractInstanceFacts(), SCH_SCREEN::HasSymbolFieldNamesWithWhiteSpace(), EESCHEMA_JOBS_HANDLER::JobExportBom(), DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_FIND_REPLACE_TOOL::nextMatch(), DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsAdded(), DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsChanged(), operator==(), operator==(), SCH_IO_ALTIUM::ParseComponent(), EASYPC::SCH_BUILDER::placeFields(), ORCAD_CONVERTER::placeInstance(), ORCAD_CONVERTER::placeSymbolFields(), NETLIST_EXPORTER_SPICE::ReadSchematicAndLibraries(), SCH_IO_KICAD_LEGACY::saveSymbol(), SCH_IO_KICAD_SEXPR::saveSymbol(), POWER_SEARCH_HANDLER::Search(), SYMBOL_SEARCH_HANDLER::Search(), SCH_SELECTION_TOOL::SelectMultiple(), ERC_TESTER::TestFieldNameWhitespace(), DIALOG_CHANGE_SYMBOLS::updateFieldsList(), SIMULATOR_FRAME_UI::UpdateTunerValue(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inlineinherited |
Return whether the fields have been automatically placed.
Definition at line 673 of file sch_item.h.
References m_fieldsAutoplaced.
Referenced by SCH_EDIT_TOOL::editFieldText(), SCH_EDIT_TOOL::EditProperties(), packLabel(), SCH_EDIT_TOOL::Rotate(), SCH_IO_KICAD_SEXPR::saveSheet(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCH_IO_KICAD_SEXPR::saveText(), SCH_EDIT_FRAME::SelectUnit(), SCH_GLOBALLABEL::Serialize(), SCH_SHEET::Serialize(), and SCH_SYMBOL::Serialize().
| wxString SCH_SYMBOL::GetFieldText | ( | const wxString & | aFieldName, |
| const SCH_SHEET_PATH * | aPath = nullptr, | ||
| const wxString & | aVariantName = wxEmptyString ) const |
Definition at line 1691 of file sch_symbol.cpp.
References FOOTPRINT, LIB_SYMBOL::GetField(), GetField(), GetFootprintFieldText(), SCH_FIELD::GetId(), getInstance(), GetRef(), SCH_FIELD::GetText(), GetVariantLibSymbol(), SCH_ITEM::LIB_SYMBOL, VARIANT::m_Fields, SCH_SYMBOL_INSTANCE::m_Variants, RAW_VALUE, and REFERENCE.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_FIELD::GetText(), and NETLIST_EXPORTER_XML::makeSymbols().
|
inlineinherited |
Definition at line 167 of file eda_item.h.
References m_flags.
Referenced by BACK_ANNOTATE::applyChangelist(), BuildBoardPolygonOutlines(), checkCourtyardCloses(), collidesWithArea(), PCB_TABLE::DeleteMarkedCells(), SCH_TABLE::DeleteMarkedCells(), doConvertOutlineToPolygon(), PL_EDIT_TOOL::DoDelete(), PCB_TOOL_BASE::doInteractiveItemPlacement(), doIntersectsAreaFunc(), KIGFX::SCH_PAINTER::draw(), PCB_TUNING_PATTERN::EditCancel(), PCB_VIA_STITCH::EditCancel(), PCB_TUNING_PATTERN::EditFinish(), PCB_VIA_STITCH::EditFinish(), enclosedByAreaFunc(), DRC_ENGINE::EvalRules(), PCB_SELECTION_TOOL::FilterCollectorForHierarchy(), SCH_SELECTION_TOOL::FilterCollectorForHierarchy(), findNext(), DRC_ITEM::GetViolationLayers(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), LIB_SYMBOL::LIB_SYMBOL(), CONVERT_TOOL::makePolysFromChainedSegs(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), LIB_SYMBOL::operator=(), BOARD_COMMIT::Push(), PAD::Recombine(), DRC_TEST_PROVIDER_CONNECTIVITY::Run(), SCH_EDIT_FRAME::SaveCopyInUndoList(), SCH_IO_KICAD_SEXPR::saveTable(), PAD::SetAttribute(), PCB_VIA::SetBottomLayer(), BOARD_CONNECTED_ITEM::SetLayer(), PCB_VIA::SetLayerPair(), PAD::SetLayerSet(), BOARD_CONNECTED_ITEM::SetNetCode(), PCB_VIA::SetTopLayer(), DS_DATA_ITEM::SyncDrawItems(), DS_DATA_ITEM_BITMAP::SyncDrawItems(), DS_DATA_ITEM_POLYGONS::SyncDrawItems(), CONNECTIVITY_DATA::TestTrackEndpointDangling(), PCB_TUNING_PATTERN::Update(), PCB_VIA_STACK::Update(), and PCB_VIA_STITCH::Update().
|
inlinevirtualinherited |
Similar to GetPosition() but allows items to return their visual center rather than their anchor.
Reimplemented in BOARD, PCB_ARC, PCB_SHAPE, and PCB_TRACK.
Definition at line 355 of file eda_item.h.
References GetPosition().
Referenced by SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), and test::DRC_TEST_PROVIDER_DIFF_PAIR_COUPLING::Run().
|
inherited |
Definition at line 1012 of file sch_item.cpp.
References KIFONT::METRICS::Default(), and Schematic().
Referenced by ORCAD_CONVERTER::applyMultilineSpacing(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_FIELD::getFontMetrics(), SCH_TEXT::getFontMetrics(), SCH_TEXTBOX::getFontMetrics(), SCH_FIELD::GetRenderCache(), SCH_FIELD::Plot(), SCH_LABEL_BASE::Plot(), SCH_TEXT::Plot(), SCH_TEXTBOX::Plot(), SCH_PIN::PlotPinTexts(), and SCH_PIN::validateExtentsCache().
| const wxString SCH_SYMBOL::GetFootprintFieldText | ( | const SCH_SHEET_PATH * | aPath, |
| RESOLUTION_CONTEXT | aContext, | ||
| const wxString & | aVariantName = wxEmptyString ) const |
Definition at line 2205 of file sch_symbol.cpp.
References FOOTPRINT, GetField(), and SCH_FIELD::GetShownText().
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GetFieldText(), ResolveTextVar(), SCH_REFERENCE::SCH_REFERENCE(), ERC_TESTER::TestPinMap(), NETLIST_EXPORTER_ALLEGRO::toAllegroPackages(), NETLIST_EXPORTER_CADSTAR::writeNetlist(), NETLIST_EXPORTER_ORCADPCB2::writeNetlist(), and NETLIST_EXPORTER_PADS::writeNetlist().
|
inlineinherited |
Definition at line 167 of file view_item.h.
References m_forcedTransparency.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::getRenderColor(), EDA_ITEM::operator=(), ZONE_PAINTER::PCB_PAINTER(), and LIB_SYMBOL::SetParent().
|
virtualinherited |
Reimplemented in PCB_SHAPE, PCB_TABLECELL, PCB_TEXTBOX, PCB_TRACK, PCB_TUNING_PATTERN, PCB_VIA_STACK, PCB_VIA_STITCH, SCH_DIRECTIVE_LABEL, SCH_FIELD, SCH_GLOBALLABEL, SCH_HIERLABEL, SCH_LABEL, SCH_LINE, SCH_PIN, SCH_RULE_AREA, SCH_SHEET_PIN, SCH_TEXT, and ZONE.
Definition at line 565 of file eda_item.cpp.
References GetTypeDesc().
Referenced by API_HANDLER_BOARD::createItemForType(), API_HANDLER_SCH::createItemForType(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), and PROPERTIES_PANEL::rebuildProperties().
| size_t SCH_SYMBOL::GetFullPinCount | ( | ) | const |
Definition at line 2645 of file sch_symbol.cpp.
References m_part.
|
overridevirtual |
Implements SYMBOL.
Definition at line 2709 of file sch_symbol.cpp.
References ALL_BODY_STYLES, ALL_UNITS, m_pins, and pin.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), Deserialize(), CONNECTION_GRAPH::ExtractAffectedItems(), SCH_EDITOR_CONTROL::Paste(), ORCAD_CONVERTER::placePowerSymbol(), SCHEMATIC::RecalculateConnections(), SCH_RULE_AREA::RefreshContainedItemsAndDirectives(), SCH_EDIT_FRAME::SaveSymbolToSchematic(), and SCH_EDITOR_CONTROL::updatePastedSheet().
| bool SCH_SYMBOL::GetInstance | ( | SCH_SYMBOL_INSTANCE & | aInstance, |
| const KIID_PATH & | aSheetPath, | ||
| bool | aTestFromEnd = false ) const |
Definition at line 1396 of file sch_symbol.cpp.
References m_instancePathIndex, and m_instances.
Referenced by SCH_SHEET_PATH::AddNewSymbolInstances(), KICAD_DIFF::SCH_MERGE_APPLIER::Apply(), ApplySymbolInstance(), applySymbolVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_SHEET_PATH::CheckForMissingSymbolInstances(), SCH_CONNECTIVITY::ExtractVariantSymbolFact(), GetDNP(), GetExcludedFromBoard(), GetExcludedFromBOM(), GetExcludedFromPosFiles(), GetExcludedFromSim(), GetPinMapOverride(), GetVariant(), NETLIST_EXPORTER_XML::makeSymbols(), PackSymbol(), SCH_IO_KICAD_SEXPR::saveSymbol(), and SCH_REFERENCE::SCH_REFERENCE().
|
private |
Definition at line 5239 of file sch_symbol.cpp.
References m_instancePathIndex, and m_instances.
Referenced by AddVariant(), ClearVariantField(), ClearVariantSymbolOverride(), CopyVariant(), DeleteVariant(), GetFieldText(), GetVariantLibSymbol(), RenameVariant(), SetFieldText(), SetInstanceProjectName(), SetPinMapOverride(), SetValueFieldText(), setVariantAttribute(), and SetVariantSymbolOverride().
|
private |
Definition at line 5248 of file sch_symbol.cpp.
References m_instancePathIndex, and m_instances.
|
inlineprivate |
Definition at line 1094 of file sch_symbol.h.
References getInstance(), and SCH_SHEET_PATH::Path().
Referenced by getInstance().
|
inlineprivate |
Definition at line 1095 of file sch_symbol.h.
References getInstance(), and SCH_SHEET_PATH::Path().
Referenced by getInstance().
|
inline |
Definition at line 133 of file sch_symbol.h.
References m_instances.
Referenced by SCH_SHEET_PATH::AddNewSymbolInstances(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_SHEET_PATH::CheckForMissingSymbolInstances(), SCH_SCREEN::CopyVariant(), SCH_SCREEN::DeleteVariant(), TEST_VARIANT_FIELD_RESOLUTION_FIXTURE::GetMutableInstance(), SCHEMATIC::GetSchematicsSharedByMultipleProjects(), DIALOG_CHANGE_SYMBOLS::getSymbolReferences(), SCH_SCREEN::GetVariantNames(), SCH_SCREEN::HasInstanceDataFromOtherProjects(), SCH_IO_EAGLE::loadModuleInstance(), SCH_EDITOR_CONTROL::Paste(), SCH_SCREEN::PruneOrphanedSymbolInstances(), PrunePastedSymbolInstances(), SCH_SCREEN::RenameVariant(), SCH_IO_KICAD_LEGACY::saveSymbol(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCH_SCREEN::SetLegacySymbolInstanceData(), SCH_EDITOR_CONTROL::setPastedSymbolInstances(), SymbolHasSheetInstances(), and SCH_EDITOR_CONTROL::updatePastedSymbol().
|
overridevirtual |
Return a user-visible description string of this item.
This description is used in disambiguation menus, the message panel, ERC/DRC reports, etc.
The default version of this function raises an assertion in the debug mode and returns a string to indicate that it was not overridden to provide the object specific text.
| aUnitsProvider | is the UNITS_PROVIDER object to handle item units. |
| aFull | is a flag to get the extend (full) description. |
Reimplemented from EDA_ITEM.
Definition at line 4139 of file sch_symbol.cpp.
References _, KIUI::EllipsizeMenuText(), GetField(), GetLibId(), and REFERENCE.
|
overridevirtual |
Implements SYMBOL.
Definition at line 1130 of file sch_symbol.cpp.
References m_part.
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
inlineinherited |
Return the layer this item is on.
Definition at line 353 of file sch_item.h.
References m_layer.
Referenced by SCH_IO_GEDA::addBusEntries(), SCH_IO_GEDA::addJunctions(), JUNCTION_HELPERS::AnalyzePoint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_CONNECTIVITY::NETCHAIN_MANAGER::buildBridgeAdjacency(), ISSUE22864_FIXTURE::BuildPositionToWiresMap(), SCH_BUS_BUS_ENTRY::CanConnect(), SCH_BUS_WIRE_ENTRY::CanConnect(), CanConnect(), SCH_LABEL_BASE::CanConnect(), SCH_LINE::CanConnect(), SCH_NO_CONNECT::CanConnect(), SCH_SHEET::CanConnect(), SCH_SYMBOL::CanConnect(), collectImportedUuids(), SCH_BUS_WIRE_ENTRY::ConnectionPropagatesTo(), SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), EE_GRAPHIC_TOOL::drawManagedShape(), SCH_CONNECTIVITY::Dump(), CONNECTION_GRAPH::ercCheckBusToNetConflicts(), CONNECTION_GRAPH::ercCheckDanglingWireEndpoints(), CONNECTION_GRAPH::ercCheckFloatingWires(), SCH_CONNECTIVITY::ExtractScreenFacts(), SCH_LINE::GetFriendlyName(), SCH_BUS_ENTRY_BASE::GetMsgPanelInfo(), SCH_LINE::GetMsgPanelInfo(), GetNetNavigatorItemText(), SCH_LINE::IsBus(), SCH_LINE::IsGraphicLine(), SCH_LINE::IsWire(), SCH_SCREEN::MarkConnections(), SCH_LINE::MergeOverlap(), SCH_BUS_ENTRY_BASE::operator<(), SCH_JUNCTION::operator<(), SCH_LINE::operator<(), SCH_TEXT::operator<(), SCH_TEXTBOX::operator<(), SCH_BUS_ENTRY_BASE::operator==(), SCH_LINE::operator==(), SCH_TEXT::operator==(), SCH_BITMAP::Plot(), SCH_FIELD::Plot(), SCH_JUNCTION::Plot(), SCH_LINE::Plot(), SCH_SCREEN::Plot(), ORCAD_CONVERTER::rememberInterfaceLabelSource(), ISSUE22864_FIXTURE::RunAlignmentAndVerify(), ISSUE22864_FIXTURE::RunAlignmentAndVerifyNoSkew(), safeConnectivityLabelPosition(), SCH_IO_KICAD_LEGACY::saveBusEntry(), SCH_IO_KICAD_LEGACY::saveLine(), SCH_IO_KICAD_SEXPR::saveLine(), SCH_IO_KICAD_LEGACY::saveText(), SCH_LINE::Serialize(), SCH_BUS_ENTRY_BASE::Similarity(), SCH_LINE::Similarity(), SCH_TEXT::Similarity(), SCH_EDIT_FRAME::TrimWire(), CONNECTION_GRAPH::updateGenericItemConnectivity(), CONNECTION_GRAPH::updateItemConnectivity(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inlineoverridevirtual |
Implements SYMBOL.
Definition at line 163 of file sch_symbol.h.
References m_lib_id.
Referenced by SCH_SCREEN::Append(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_SCREENS::ChangeSymbolLibNickname(), CollectOtherUnits(), SCH_REFERENCE::CompareLibId(), SCH_INSPECTION_TOOL::DiffSymbol(), SCH_EDIT_TOOL::EditProperties(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), SCH_IO_KICAD_SEXPR::Format(), GetItemDescription(), SCH_SCREENS::GetLibNicknames(), SCH_SCREEN::getLibSymbolNameMatches(), GetMsgPanelInfo(), SYMBOL_SEARCH_HANDLER::getResultCell(), GetSameSymbolMultiUnitSelection(), DIALOG_CHANGE_SYMBOLS::getSymbolReferences(), GetUnplacedUnitsForSymbol(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), HasConnectivityChanges(), SCH_SCREENS::HasNoFullyDefinedLibIds(), DIALOG_CHANGE_SYMBOLS::isMatch(), IsUnannotatedUnitOccupied(), SCH_IO_CADSTAR_ARCHIVE::LoadSchematicFile(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), NETLIST_EXPORTER_XML::makeSymbols(), operator==(), SCH_DRAWING_TOOLS::PlaceSymbol(), DIALOG_CHANGE_SYMBOLS::processMatchingSymbols(), SYMBOL_IMPORT_RECONCILER::Reconcile(), ReconcileLegacyCacheSymbols(), DIALOG_SYMBOL_REMAP::remapSymbolsToLibTable(), DIALOG_SYMBOL_REMAP::remapSymbolToLibTable(), SCH_IO_KICAD_LEGACY::saveSymbol(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCHEMATIC::SCHEMATIC(), SCH_EDIT_FRAME::SelectUnit(), SCH_EDIT_TOOL::SetVariantSymbol(), Similarity(), sort_by_libid(), sort_by_libid(), SCH_EDIT_TOOL::Swap(), ERC_TESTER::TestLibSymbolIssues(), ERC_TESTER::TestVariantSymbols(), DIALOG_FIELD_PROPERTIES::UpdateField(), and DIALOG_CHANGE_SYMBOLS::updateFieldsList().
| std::vector< SCH_PIN * > SCH_SYMBOL::GetLibPins | ( | ) | const |
Populate a vector with all the pins from the library object that match the current unit and bodyStyle.
Definition at line 2627 of file sch_symbol.cpp.
References SCH_ITEM::m_bodyStyle, m_part, and SCH_ITEM::m_unit.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), NETLIST_EXPORTER_ALLEGRO::extractComponentsInfo(), SCH_SCREEN::GetPin(), DIPTRACE_SCH_IMPORT_FIXTURE::LibPinCountForRefdesUnitOnSheet(), and DIPTRACE_SCH_IMPORT_FIXTURE::LibPinNamesForRefdesUnitOnSheet().
|
inline |
Definition at line 182 of file sch_symbol.h.
References m_part.
Referenced by activeAssociatedFootprint(), SCH_IO_EAGLE::addImplicitConnections(), SCH_SCREEN::Append(), SCH_SHEET_PATH::AppendMultiUnitSymbol(), SCH_SHEET_PATH::AppendSymbol(), BACK_ANNOTATE::applyChangelist(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), LEGACY_POWER_SYMBOLS_TEST_FIXTURE::CheckSymbols(), NETLIST_EXPORTER_SPICE::collectMergedSimPins(), NETLIST_EXPORTER_SPICE::collectUnitPinMaps(), DIPTRACE_SCH_IMPORT_FIXTURE::CountFilledPolysForRefdes(), DIPTRACE_SCH_IMPORT_FIXTURE::CountOpenPolysWithPointCountForRefdes(), DIPTRACE_SCH_IMPORT_FIXTURE::CountSymbolShapes(), NETLIST_EXPORTER_BASE::CreatePinList(), DIALOG_FIELD_PROPERTIES::DIALOG_FIELD_PROPERTIES(), SCH_INSPECTION_TOOL::DiffSymbol(), KIGFX::SCH_PAINTER::draw(), SCH_EDITOR_CONTROL::ExportSymbolsToLibrary(), SCH_CONNECTIVITY::ExtractPinMapFacts(), FIELDS_GRID_TABLE::FIELDS_GRID_TABLE(), ORCAD_CONVERTER::finalizeNativePowerPackages(), SCH_SCREEN::FixLegacyPowerSymbolMismatches(), NETLIST_EXPORTER_SPICE::getDecomposition(), GetEmbeddedFiles(), getFootprintChooserSymbolNetlist(), NETLIST_EXPORTER_ALLEGRO::getGroupField(), SCH_SCREEN::GetPin(), GetSameSymbolMultiUnitSelection(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), HasEffectiveAssociatedFootprint(), highlightNet(), IsSymbolLikePowerGlobalLabel(), IsSymbolLikePowerLocalLabel(), PCAD_SCH_IMPORT_FIXTURE::LibSymbolForRefdes(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbol(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_SYMBOL_PIN_MAP_NAME_PROPERTY::MapNames(), Matches(), SIM_MODEL::MigrateSimModel(), PackSymbol(), DIPTRACE_SCH_IMPORT_FIXTURE::PinOrientationCounts(), ORCAD_CONVERTER::placeInstance(), NETLIST_EXPORTER_SPICE::readModel(), SCH_EDIT_FRAME::RefreshOperatingPointDisplay(), SCH_PROPERTIES_PANEL::SCH_PROPERTIES_PANEL(), SCH_EDIT_FRAME::SelectBodyStyle(), SCH_EDIT_TOOL::SetVariantSymbol(), SCH_INSPECTION_TOOL::ShowDatasheet(), DIPTRACE_SCH_IMPORT_FIXTURE::ShowsPinNames(), SCHEMATIC::SyncLibSymbolPinMaps(), ERC_TESTER::TestDuplicatePinNets(), ERC_TESTER::TestLibSymbolIssues(), ERC_TESTER::TestPinMap(), ERC_TESTER::TestVariantSymbols(), NETLIST_EXPORTER_ALLEGRO::toAllegroPackages(), SYMBOL_UNIT_MENU::update(), CONNECTION_GRAPH::updateSymbolConnectivity(), SIMULATOR_FRAME_UI::UpdateTunerValue(), and NETLIST_EXPORTER_ORCADPCB2::writeNetlist().
|
inline |
Definition at line 183 of file sch_symbol.h.
References m_part.
|
inherited |
Definition at line 990 of file sch_item.cpp.
References ARC_LOW_DEF_MM, Schematic(), and schIUScale.
Referenced by SCH_SHAPE::getMaxError(), and SCH_SHAPE::Plot().
|
overridevirtual |
Return a pointer to an image to be used in menus.
The default version returns the right arrow image. Override this function to provide object specific menu images.
Reimplemented from EDA_ITEM.
Definition at line 3864 of file sch_symbol.cpp.
References add_component.
|
inline |
Definition at line 334 of file sch_symbol.h.
References GetOrientation(), and SYM_MIRROR_X.
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC(), and Serialize().
|
inline |
Definition at line 351 of file sch_symbol.h.
References GetOrientation(), and SYM_MIRROR_Y.
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC(), and Serialize().
|
overridevirtual |
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
| aFrame | is the EDA_DRAW_FRAME that displays the message panel |
| aList | is the list to populate. |
Reimplemented from SCH_ITEM.
Definition at line 3752 of file sch_symbol.cpp.
References _, DESCRIPTION, KIUI::EllipsizeStatusText(), FOOTPRINT, SCH_EDIT_FRAME::GetCurrentSheet(), SCHEMATIC::GetCurrentVariant(), GetDNP(), LIB_SYMBOL::GetDummy(), EDA_ITEM::GetEditFlags(), GetExcludedFromBoard(), GetExcludedFromBOM(), GetExcludedFromSim(), GetField(), GetLibId(), LIB_ID::GetLibNickname(), GetRef(), m_lib_id, m_part, SCH_ITEM::Schematic(), UnescapeString(), and VALUE.
|
inline |
Definition at line 865 of file sch_symbol.h.
References m_signalName.
Referenced by BOOST_FIXTURE_TEST_CASE().
| int SCH_SYMBOL::GetNextFieldOrdinal | ( | ) | const |
Return the next ordinal for a user field for this symbol.
Definition at line 2268 of file sch_symbol.cpp.
References m_fields, and NextFieldOrdinal().
|
overridevirtual |
Get the display symbol orientation.
Because there are different ways to have a given orientation/mirror, the orientation/mirror is not necessary what the user does. For example: a mirrorV then a mirrorH returns no mirror but a rotate. This function finds a rotation and a mirror value SYM_MIRROR_X because this is the first mirror option tested. This can differs from the orientation made by an user. A SYM_MIRROR_Y is returned as a SYM_MIRROR_X with an orientation 180 because they are equivalent.
Reimplemented from SYMBOL.
Definition at line 3624 of file sch_symbol.cpp.
References SYMBOL::GetTransform(), SYMBOL::m_transform, s_transformToOrientationCache, SCH_SYMBOL(), SetOrientation(), EDA_ITEM::SetParentGroup(), SYM_MIRROR_X, SYM_MIRROR_Y, SYM_NORMAL, SYM_ORIENT_0, SYM_ORIENT_180, SYM_ORIENT_270, and SYM_ORIENT_90.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), KIGFX::SCH_PAINTER::draw(), GetMirrorX(), GetMirrorY(), GetOrientationProp(), GetPinSpinStyle(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), SCH_SELECTION_TOOL::Main(), orientLabel(), SCH_IO_KICAD_SEXPR::saveSymbol(), SetMirrorX(), SetMirrorY(), SetOrientationProp(), and SCH_EDIT_TOOL::Swap().
|
inline |
Definition at line 305 of file sch_symbol.h.
References GetOrientation(), SYM_MIRROR_X, SYM_MIRROR_Y, SYM_NORMAL, SYM_ORIENT_0, SYM_ORIENT_180, SYM_ORIENT_270, SYM_ORIENT_90, SYMBOL_ANGLE_0, SYMBOL_ANGLE_180, SYMBOL_ANGLE_270, and SYMBOL_ANGLE_90.
Referenced by BOOST_AUTO_TEST_CASE(), SCH_SYMBOL_DESC::SCH_SYMBOL_DESC(), and Serialize().
|
inherited |
Definition at line 813 of file sch_item.cpp.
References Connection(), CONNECTION_GRAPH, InitializeConnection(), and IsConnectable().
Referenced by BOOST_AUTO_TEST_CASE(), CONNECTION_SUBGRAPH::ExchangeItem(), and RESOLVE_DRIVERS_FIXTURE::MakeLabel().
|
inlineinherited |
Definition at line 112 of file eda_item.h.
References EDA_ITEM(), and m_parent.
Referenced by SCH_EDIT_TOOL::AutoplaceFields(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_GROUP_TOOL::canGroupItem(), DIALOG_FIELD_PROPERTIES::DIALOG_FIELD_PROPERTIES(), EDIT_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_EDIT_TOOL::EditField(), SCH_EDIT_TOOL::editFieldText(), SCHEMATIC_TEXT_VAR_ADAPTER::ExtractSourceKeys(), ORCAD_CONVERTER::finalizeNativePowerPackages(), findParent(), SCH_IO_KICAD_SEXPR::Format(), getClosestGroup(), SCH_TABLECELL::GetColumn(), SCH_TABLECELL::GetColumnWidth(), SCH_ITEM::GetEffectivePenWidth(), SCH_FIELD::GetFieldColor(), getInferredSymbols(), SCH_SHEET::GetNoConnects(), SCH_TABLECELL::GetParentGroup(), SCH_TABLECELL::GetRow(), SCH_TABLECELL::GetRowHeight(), SCH_ALIGN_TOOL::GetSelections(), SCH_TABLECELL::GetShownText(), SCH_SELECTION_TOOL::GuessSelectionCandidates(), SCH_SELECTION_TOOL::highlight(), SCH_FIELD::HitTest(), SCH_FIELD::HitTest(), SCH_FIELD::HitTest(), SCH_ITEM::invalidateConnectivity(), IsGeneratedTableCell(), SCH_PIN::IsStacked(), SCH_EDIT_TOOL::JustifyText(), CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), SCH_SELECTION_TOOL::Main(), SCH_EDIT_TOOL::Mirror(), SCH_MOVE_TOOL::moveItem(), SCH_EDIT_FRAME::onNetNavigatorSelection(), SCH_FIELD::OnScintillaCharAdded(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), PCB_GROUP_TOOL::PickNewMember(), SCH_GROUP_TOOL::PickNewMember(), SCH_MOVE_TOOL::prepareMoveOperation(), SCH_MOVE_TOOL::prepareSelection(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), SCH_EDIT_TOOL::Properties(), SYMBOL_EDITOR_EDIT_TOOL::Properties(), BOARD_COMMIT::Push(), SCH_EDIT_FRAME::PutDataInPreviousState(), PCB_SELECTION_TOOL::RebuildSelection(), SCH_BASE_FRAME::RefreshZoomDependentItems(), SCH_SELECTION_TOOL::RequestSelection(), SCH_COMMIT::RevertToCheckpoint(), SCH_EDIT_TOOL::Rotate(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCHEMATIC::SCHEMATIC(), SCH_SCREEN::Schematic(), SCH_SHEET::SearchHierarchy(), PCB_SELECTION_TOOL::select(), SCH_TABLECELL::SetColumnWidth(), SCH_LABEL_BASE::SetLabelShape(), SCH_TABLECELL::SetRowHeight(), SCH_EDIT_TOOL::Swap(), SYMBOL_EDITOR_EDIT_TOOL::Swap(), SCH_ITEM::SwapItemData(), SCH_EDIT_TOOL::SwapPins(), ToProto(), SCHEMATIC_TEXT_VAR_ADAPTER::trackedItem(), DIALOG_FOOTPRINT_FIELDS_TABLE::TransferDataToWindow(), DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow(), BOARD_COMMIT::undoLevelItem(), SCH_COMMIT::undoLevelItem(), SCH_SELECTION_TOOL::unhighlight(), KIGFX::SCH_VIEW::Update(), DIALOG_FIELD_PROPERTIES::UpdateField(), SCH_BASE_FRAME::UpdateItem(), SCH_PROPERTIES_PANEL::valueChanged(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inlinevirtualinherited |
Reimplemented in PCB_TABLECELL, and SCH_TABLECELL.
Definition at line 116 of file eda_item.h.
References m_group.
Referenced by EDA_GROUP::AddItem(), KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), MULTICHANNEL_TOOL::AutogenerateRuleAreas(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_DATA_TEST_CASE_F(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), MULTICHANNEL_TOOL::copyRuleAreaContents(), EDIT_TOOL::DeleteItems(), DIALOG_CLEANUP_TRACKS_AND_VIAS::doCleanup(), EDIT_TOOL::doMoveSelection(), BOARD_ITEM::Duplicate(), PCB_TABLE::Duplicate(), SCH_ITEM::Duplicate(), BOARD::ExchangeFootprint(), PCB_SELECTION_TOOL::FilterCollectorForHierarchy(), TRACKS_CLEANER::filterItem(), MULTICHANNEL_TOOL::GeneratePotentialRuleAreas(), GENERATOR_TOOL::GENERATOR_TOOL(), getClosestGroup(), getClosestGroup(), PCB_TABLECELL::GetParentGroup(), SCH_TABLECELL::GetParentGroup(), GetParentGroupId(), API_HANDLER_BOARD::handleCreateUpdateItemsInternal(), isExpandableMicrovia(), isInTuningPattern(), BOARD_ITEM::IsLocked(), SCH_ITEM::IsLocked(), PCB_SELECTION_TOOL::isWithinEnteredGroup(), memberOfGroupFunc(), BOARD_EDITOR_CONTROL::modifyLockSelected(), BOARD::Move(), PCB_CONTROL::Paste(), SCH_EDITOR_CONTROL::Paste(), SCH_MOVE_TOOL::prepareMoveOperation(), BOARD_COMMIT::Push(), SCH_COMMIT::pushSchEdit(), BOARD::Remove(), PNS_KICAD_IFACE::RemoveItem(), BOARD_COMMIT::RemoveOrDiscard(), PCB_EDIT_FRAME::SaveSelectionAsDesignBlock(), SCH_EDIT_FRAME::SaveSelectionAsDesignBlock(), PCB_SELECTION_TOOL::Selectable(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), COMMIT::Stage(), BOARD_ITEM::SwapItemData(), PNS_KICAD_IFACE_BASE::syncArc(), PNS_KICAD_IFACE_BASE::syncTrack(), PNS_KICAD_IFACE_BASE::syncVia(), DIALOG_GROUP_PROPERTIES::TransferDataFromWindow(), PCB_SELECTION_TOOL::unrouteSegment(), PCB_EDIT_FRAME::UpdateDesignBlockFromSelection(), SCH_EDIT_FRAME::UpdateDesignBlockFromSelection(), BOARD_NETLIST_UPDATER::updateFootprintGroup(), BOARD_NETLIST_UPDATER::updateGroups(), DIALOG_GLOBAL_EDIT_TEARDROPS::visitItem(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem(), PCB_GROUP::WithinScope(), and SCH_GROUP::WithinScope().
|
inherited |
Definition at line 232 of file eda_item.cpp.
References GetParentGroup(), group, and niluuid.
Referenced by ITEM_PICKER::SetItem(), and ITEM_PICKER::SetLink().
|
inherited |
Definition at line 308 of file sch_item.cpp.
References EDA_ITEM::findParent(), and SCH_SCREEN_T.
Referenced by SCH_SHEET::AddPin(), AutoPlaceSheetPins(), BOOST_DATA_TEST_CASE_F(), SCH_LABEL_BASE::cacheShownText(), SCH_SHEET::CleanupSheet(), SCH_SHEET::Deserialize(), SCH_SYMBOL::Deserialize(), invalidateConnectivity(), operator=(), SCH_SHEET::RemovePin(), SCH_COMMIT::Stage(), SwapItemData(), unpackLabel(), and SCH_SYMBOL::UpdatePins().
|
inherited |
Definition at line 362 of file sch_item.cpp.
References EDA_ITEM::findParent(), LIB_SYMBOL, LIB_SYMBOL_T, and SCH_SYMBOL_T.
|
inherited |
Definition at line 350 of file sch_item.cpp.
References EDA_ITEM::findParent(), LIB_SYMBOL, LIB_SYMBOL_T, and SCH_SYMBOL_T.
Referenced by addCreateNetChainBetweenPinsIfApplicable(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_CONNECTIVITY::NETCHAIN_MANAGER::buildBridgeAdjacency(), SCH_GROUP_TOOL::canGroupItem(), SCH_PIN::compare(), compareDrivers(), SCH_PIN::ComparisonData(), SYMBOL_EDITOR_PIN_TOOL::CreateImagePins(), SCH_EDITOR_CONTROL::CreateNetChainBetweenPins(), DIALOG_FIELD_PROPERTIES::DIALOG_FIELD_PROPERTIES(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_EDIT_TOOL::EditField(), SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), CONNECTION_GRAPH::ercCheckNoConnects(), NETLIST_EXPORTER_ALLEGRO::extractComponentsInfo(), SCH_SELECTION_TOOL::FilterCollectorForHierarchy(), PIN_INFO_FORMATTER::Format(), GetBodyStyleDescription(), SCH_PIN::GetDefaultNetName(), CONNECTION_SUBGRAPH::GetDriverPriority(), SCH_PIN::GetEffectivePadNumber(), SCH_PIN::GetEffectivePadNumber(), GetEmbeddedFonts(), SCH_FIELD::GetFullText(), SCH_PIN::GetItemDescription(), SCH_PROPERTIES_PANEL::getItemValue(), GetMsgPanelInfo(), SCH_PIN::GetMsgPanelInfo(), SCH_PIN::GetPinRoot(), SCH_PIN::GetPosition(), KIGFX::SCH_PAINTER::getRenderColor(), GetUnitDisplayName(), SCH_PIN::IsGlobalPower(), SCH_PIN::IsLocalPower(), SCH_FIELD::IsLocked(), SCH_PIN::IsLocked(), SCH_PIN::MirrorHorizontally(), SCH_PIN::MirrorVertically(), NETLIST_EXPORTER_ALLEGRO::NET_NODE::operator<(), orientLabel(), SCH_PIN::Plot(), BACK_ANNOTATE::processNetNameChange(), ORCAD_CONVERTER::recordNetNameMap(), SCH_PIN::Replace(), NETLIST_EXPORTER_BASE::resolvePadNumbers(), SCH_PIN::Rotate(), SCH_EDIT_FRAME::SaveSelectionAsDesignBlock(), SCH_ITEM_DESC::SCH_ITEM_DESC(), SetBodyStyleProp(), SCH_SHAPE::SetFilled(), SetUnitString(), SCH_EDITOR_CONTROL::SimProbe(), SCH_EDIT_FRAME::UpdateDesignBlockFromSelection(), PIN_INFO_FORMATTER::UpdatePin(), and SCH_PROPERTIES_PANEL::valueChanged().
|
inline |
Definition at line 855 of file sch_symbol.h.
References m_passthroughMode.
Referenced by HasConnectivityChanges(), SCH_IO_KICAD_SEXPR::saveSymbol(), and Serialize().
|
inlinevirtualinherited |
Reimplemented in SCH_BUS_BUS_ENTRY, SCH_BUS_ENTRY_BASE, SCH_BUS_WIRE_ENTRY, SCH_DIRECTIVE_LABEL, SCH_FIELD, SCH_LINE, SCH_NO_CONNECT, SCH_PIN, SCH_SHAPE, SCH_SHEET, SCH_SHEET_PIN, and SCH_TEXT.
Definition at line 372 of file sch_item.h.
Referenced by SCH_DRAG_NET_COLLISION_MONITOR::collectDisconnectedMarkers(), EE_RTREE::contains(), GetEffectivePenWidth(), EE_RTREE::insert(), and EE_RTREE::remove().
Return the SCH_PIN object found at aPosition.
| aPosition | is the position of the pin to fetch. |
Definition at line 2606 of file sch_symbol.cpp.
References ALL_BODY_STYLES, ALL_UNITS, SCH_ITEM::GetBodyStyle(), SCH_ITEM::GetUnit(), m_pins, and pin.
| SCH_PIN * SCH_SYMBOL::GetPin | ( | const wxString & | number | ) | const |
Find a symbol pin by number.
| number | is the number of the pin to find. |
Definition at line 2561 of file sch_symbol.cpp.
Referenced by BACK_ANNOTATE::applyChangelist(), BACK_ANNOTATE::applyPinSwaps(), SCH_SELECTION_TOOL::autostartEvent(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CONNECTION_GRAPH::ercCheckNoConnects(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), MapLibPins(), operator==(), SCH_EDIT_FRAME::RefreshOperatingPointDisplay(), ResolveTextVar(), and CONNECTION_GRAPH::updateSymbolConnectivity().
Definition at line 2651 of file sch_symbol.cpp.
References m_pinMap.
| SCH_PIN * SCH_SYMBOL::GetPinByEffectivePadNumber | ( | const wxString & | aPadNumber, |
| const SCH_SHEET_PATH * | aSheet, | ||
| const wxString & | aVariantName = wxEmptyString ) const |
Find the pin whose effective footprint pad number (issue #2282) is aPadNumber on aSheet, expanding bracketed stacked targets.
This is the reverse of pin-to-pad resolution, used by cross-probe (PCB pad -> schematic pin).
Definition at line 2573 of file sch_symbol.cpp.
References ExpandStackedPinNotation(), m_pins, pad, and pin.
Referenced by SCH_EDITOR_CONTROL::FindSymbolAndItem().
| PIN_MAP_INSTANCE_OVERRIDE SCH_SYMBOL::GetPinMapOverride | ( | const SCH_SHEET_PATH * | aInstance = nullptr, |
| const wxString & | aVariantName = wxEmptyString ) const |
A DELEGATE_TO_UNIT_1 override is resolved here by returning unit 1's override, so callers never have to special-case multi-unit delegation.
Definition at line 1960 of file sch_symbol.cpp.
References GetInstance(), m_pinMapOverride, SCH_SYMBOL_INSTANCE::m_Variants, SCH_SHEET_PATH::Path(), resolveDelegatedPinMapOverride(), and result.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_SYMBOL_VARIANT::InitializeAttributes(), PackSymbol(), resolveDelegatedPinMapOverride(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCH_SYMBOL_PIN_MAP_MODE_PROPERTY::setter(), SCH_SYMBOL_PIN_MAP_NAME_PROPERTY::setter(), SyncOtherUnits(), SCH_SYMBOL_PIN_MAP_MODE_PROPERTY::ValueForInstance(), and SCH_SYMBOL_PIN_MAP_NAME_PROPERTY::ValueForInstance().
|
inlineinherited |
Definition at line 163 of file symbol.h.
References m_pinNameOffset.
Referenced by BOOST_AUTO_TEST_CASE(), LIB_SYMBOL::GetPinNamesInsideProp(), PIN_LAYOUT_CACHE::GetPinNumberInfo(), LIB_SYMBOL_DESC::LIB_SYMBOL_DESC(), SCH_PIN::Plot(), SCH_IO_KICAD_LEGACY_LIB_CACHE::SaveSymbol(), SCH_IO_KICAD_SEXPR_LIB_CACHE::SaveSymbol(), LIB_SYMBOL::Serialize(), SCH_SYMBOL::Serialize(), and LIB_SYMBOL::SetPinNamesInsideProp().
Definition at line 4036 of file sch_symbol.cpp.
References SCH_PIN::GetPosition(), m_pos, SYMBOL::m_transform, SCH_PIN_T, and EDA_ITEM::Type().
Referenced by SCH_IO_EAGLE::addImplicitConnections(), SCH_IO_EAGLE::checkConnections(), GetEndPoints(), and SCH_SCREEN::GetPin().
| std::vector< SCH_PIN * > SCH_SYMBOL::GetPins | ( | const SCH_SHEET_PATH * | aSheet | ) |
Definition at line 2686 of file sch_symbol.cpp.
References ALL_UNITS, SCHEMATIC::CurrentSheet(), GetUnitSelection(), m_pins, SCH_ITEM::m_unit, pin, and SCH_ITEM::Schematic().
| std::vector< const SCH_PIN * > SCH_SYMBOL::GetPins | ( | const SCH_SHEET_PATH * | aSheet | ) | const |
Retrieve a list of the SCH_PINs for the given sheet path.
Since a symbol can have a different unit on a different instance of a sheet, this list returns the subset of pins that exist on a given sheet.
Definition at line 2663 of file sch_symbol.cpp.
References ALL_UNITS, SCHEMATIC::CurrentSheet(), GetUnitSelection(), m_pins, SCH_ITEM::m_unit, pin, and SCH_ITEM::Schematic().
Referenced by BACK_ANNOTATE::applyChangelist(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_DATA_TEST_CASE_F(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CONNECTION_GRAPH::boost_test_update_generic_connectivity, CONNECTION_GRAPH::boost_test_update_symbol_connectivity, SIM_LIB_MGR::CaptureModelInput(), CollectBackannotatePcbNets(), NETLIST_EXPORTER_BASE::CreatePinList(), CONNECTION_GRAPH::ExchangeItem(), TEST_ISSUE22286_FIXTURE::FindPinByNumber(), findSymbolsAndPins(), SCH_PIN::GetDefaultNetName(), GetDynamicProperties(), SCH_SCREEN::GetLabelOrientationForPoint(), GetSameSymbolMultiUnitSelection(), DIALOG_CREATE_NET_CHAIN::highlightChainNets(), highlightNet(), SCH_IO_PADS::LoadSchematicFile(), RESOLVE_DRIVERS_FIXTURE::MakePin(), DIPTRACE_SCH_IMPORT_FIXTURE::MaxPinCountForRefdes(), SCH_FIND_REPLACE_TOOL::nextMatch(), DIALOG_CREATE_NET_CHAIN::OnFindPathClicked(), PackSymbol(), ORCAD_CONVERTER::placeInstance(), SCH_COMMIT::pushSchEdit(), SCH_EDIT_FRAME::PutDataInPreviousState(), SCH_CONNECTIVITY::NETCHAIN_MANAGER::rebuild(), CONNECTION_GRAPH::Recalculate(), ORCAD_CONVERTER::recordNetNameMap(), SCH_EDIT_FRAME::RefreshOperatingPointDisplay(), SCH_CONNECTIVITY::NETCHAIN_MANAGER::resolveTerminals(), ResolveTextVar(), SCH_COMMIT::RevertToCheckpoint(), SCH_SELECTION_TOOL::SelectMultiple(), ERC_TESTER::TestDuplicatePinNets(), ERC_TESTER::TestFourWayJunction(), ERC_TESTER::TestGroundPins(), ERC_TESTER::TestNoConnectPins(), ERC_TESTER::TestOffGridEndpoints(), ERC_TESTER::TestPinMap(), ERC_TESTER::TestStackedPinNotation(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), CONNECTION_GRAPH::updateSymbolConnectivity(), and SCH_SYMBOL_PIN_MAP_ENTRY_PROPERTY::ValueForInstance().
| std::vector< SCH_PIN * > SCH_SYMBOL::GetPinsByNumber | ( | const wxString & | aNumber | ) | const |
Find all symbol pins with the given number.
This is useful for symbols that intentionally have multiple pins with the same number, such as jumper symbols where duplicate pin numbers are internally connected.
| aNumber | is the number of the pins to find. |
Definition at line 2592 of file sch_symbol.cpp.
Referenced by BOOST_FIXTURE_TEST_CASE().
|
inlineoverridevirtual |
Reimplemented from EDA_ITEM.
Definition at line 895 of file sch_symbol.h.
References m_pos.
Referenced by BACK_ANNOTATE::applyChangelist(), ORCAD_CONVERTER::applyCisVariants(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::ApplyFieldSettings(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateCustomFields(), SCH_INSPECTION_TOOL::DiffSymbol(), KIGFX::SCH_PAINTER::draw(), SCH_CONNECTIVITY::ExtractInstanceFacts(), SCH_CONNECTIVITY::ExtractPinMapFacts(), DIPTRACE_SCH_IMPORT_FIXTURE::FieldPosForRefdes(), SCH_FIELD::GetPosition(), GetRelativePosition(), POWER_SEARCH_HANDLER::getResultCell(), SYMBOL_SEARCH_HANDLER::getResultCell(), GetX(), GetY(), HasConnectivityChanges(), SCH_IO_PADS::LoadSchematicFile(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), ERC_TESTER::multiUnitSources(), DIALOG_ERC::OnRunERCClick(), operator==(), ORCAD_CONVERTER::placePowerSymbol(), ORCAD_CONVERTER::placeSymbolFields(), SCH_IO_KICAD_LEGACY::saveSymbol(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCH_REFERENCE::SCH_REFERENCE(), Serialize(), SCH_FIELD::SetPosition(), Similarity(), SyncOtherUnits(), ERC_TESTER::TestLibSymbolIssues(), and ERC_TESTER::TestVariantSymbols().
|
inline |
Definition at line 238 of file sch_symbol.h.
References m_prefix.
Referenced by SIM_LIB_MGR::CaptureModelInput(), SCH_IO_KICAD_LEGACY::saveSymbol(), and SCH_IO_KICAD_SEXPR::saveSymbol().
|
inline |
Definition at line 678 of file sch_symbol.h.
References m_pins.
Referenced by ORCAD_CONVERTER::assignPinUuids(), ORCAD_CONVERTER::assignRemainingUuids(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), and SCH_IO_KICAD_SEXPR::saveSymbol().
|
inline |
Definition at line 679 of file sch_symbol.h.
References m_pins.
|
overridevirtual |
Implements SYMBOL.
Definition at line 1507 of file sch_symbol.cpp.
References GetField(), UTIL::GetRefDesUnannotated(), SCH_FIELD::GetText(), GetUnitCount(), m_instancePathIndex, m_instances, m_prefix, SCH_SYMBOL_INSTANCE::m_Reference, SCH_SYMBOL_INSTANCE::m_Unit, EDA_ITEM::m_Uuid, SCH_SHEET_PATH::Path(), path, REFERENCE, SCH_SHEET_PATH::size(), SubReference(), and traceSchSymbolRef.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), SIMULATOR_FRAME_UI::AddTuner(), SCH_EDIT_FRAME::AnnotateSymbols(), SCH_SHEET_PATH::AppendMultiUnitSymbol(), SCH_SHEET_PATH::AppendSymbol(), KICAD_DIFF::SCH_MERGE_APPLIER::Apply(), BACK_ANNOTATE::applyChangelist(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SIM_LIB_MGR::CaptureModelInput(), TEST_SCH_REFERENCE_LIST_FIXTURE::checkAnnotation(), checkConnectivity(), collectImportedRefs(), NETLIST_EXPORTER_SPICE::collectMergedSimPins(), NETLIST_EXPORTER_SPICE::collectUnitPinMaps(), SCHEMATIC::ConvertKIIDsToRefs(), SCHEMATIC::ConvertRefsToKIIDs(), DIPTRACE_SCH_IMPORT_FIXTURE::CountFilledPolysForRefdes(), DIPTRACE_SCH_IMPORT_FIXTURE::CountOpenPolysWithPointCountForRefdes(), DIPTRACE_SCH_IMPORT_FIXTURE::CountSymbolsForRefdesOnSheet(), DIPTRACE_SCH_IMPORT_FIXTURE::CountSymbolShapes(), NETLIST_EXPORTER_BASE::CreatePinList(), DetectFieldCaseConflicts(), NETLIST_EXPORTER_ALLEGRO::extractComponentsInfo(), SCHEMATIC_TEXT_VAR_ADAPTER::ExtractSourceKeys(), DIPTRACE_SCH_IMPORT_FIXTURE::FieldHorizJustify(), DIPTRACE_SCH_IMPORT_FIXTURE::FieldPosForRefdes(), NETLIST_EXPORTER_BASE::findAllUnitsOfSymbol(), findConvertedSymbol(), NETLIST_EXPORTER_BASE::findNextSymbol(), findPrimaryUnit(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), TEST_ISSUE22286_FIXTURE::FindSymbolByRef(), NETLIST_EXPORTER_XML::getComponentClassNamesForAllSymbolUnits(), DIALOG_TABLE_PROPERTIES::getContextualTextVars(), DIALOG_TABLECELL_PROPERTIES::getContextualTextVars(), DIALOG_TEXT_PROPERTIES::getContextualTextVars(), NETLIST_EXPORTER_SPICE::getDecomposition(), SCH_PIN::GetDefaultNetName(), GetFieldText(), DIPTRACE_SCH_IMPORT_FIXTURE::GetFieldValueForRefdes(), DIPTRACE_SCH_IMPORT_FIXTURE::GetFootprintForRefdes(), GetMsgPanelInfo(), TEST_VARIANT_FIELD_RESOLUTION_FIXTURE::GetR1(), GetRefProp(), POWER_SEARCH_HANDLER::getResultCell(), SYMBOL_SEARCH_HANDLER::getResultCell(), GetSameSymbolMultiUnitSelection(), DIPTRACE_SCH_IMPORT_FIXTURE::GetSheetNameForRefdes(), TEST_AUTOPLACE_FIELDS_FIXTURE::GetSymbolByRef(), GetSymbolReferences(), GetUnplacedUnitsForSymbol(), HasConnectivityChanges(), DIALOG_EDIT_SYMBOLS_LIBID::initDlg(), DIALOG_CHANGE_SYMBOLS::isMatch(), DIPTRACE_SCH_IMPORT_FIXTURE::LibPinCountForRefdesUnitOnSheet(), DIPTRACE_SCH_IMPORT_FIXTURE::LibPinNamesForRefdesUnitOnSheet(), PCAD_SCH_IMPORT_FIXTURE::LibSymbolForRefdes(), SCH_IO_ALTIUM::LoadSchematicFile(), TEST_SCH_REFERENCE_LIST_FIXTURE::loadTestCase(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_EDIT_FRAME::mapExistingAnnotation(), SCH_FIELD::Matches(), DIPTRACE_SCH_IMPORT_FIXTURE::MaxPinCountForRefdes(), ERC_TESTER::multiUnitSources(), DIPTRACE_SCH_IMPORT_FIXTURE::PinOrientationCounts(), Plot(), NETLIST_EXPORTER_SPICE::readModel(), NETLIST_EXPORTER_SPICE::readRefName(), NETLIST_EXPORTER_SPICE::ReadSchematicAndLibraries(), SCH_REFERENCE_LIST::ReannotateByOptions(), ORCAD_CONVERTER::recordNetNameMap(), SCH_EDIT_FRAME::RefreshOperatingPointDisplay(), DIPTRACE_SCH_IMPORT_FIXTURE::RefValueFieldSeparation(), SCH_FIELD::Replace(), SCHEMATIC::resolveCrossReference(), resolveDelegatedPinMapOverride(), ResolveTextVar(), SCH_EDIT_FRAME::SaveSymbolToSchematic(), SCH_REFERENCE::SCH_REFERENCE(), SCHEMATIC::SCHEMATIC(), SCH_EDIT_FRAME::SelectUnit(), DIPTRACE_SCH_IMPORT_FIXTURE::ShowsPinNames(), SCH_EDITOR_CONTROL::SimProbe(), PCAD_SCH_IMPORT_FIXTURE::SymbolForRefdesUnit(), SyncOtherUnits(), terminalNetName(), ERC_TESTER::TestDuplicatePinNets(), DIPTRACE_SCH_IMPORT_FIXTURE::UnitCountForRefdes(), DIPTRACE_SCH_IMPORT_FIXTURE::UnitsForRefdesOnSheet(), SCH_SHEET_PATH::UpdateAllScreenReferences(), DIALOG_FIELD_PROPERTIES::UpdateField(), DIPTRACE_SCH_IMPORT_FIXTURE::ValueFieldAngleDegrees(), NETLIST_EXPORTER_CADSTAR::writeNetlist(), NETLIST_EXPORTER_ORCADPCB2::writeNetlist(), and NETLIST_EXPORTER_PADS::writeNetlist().
| wxString SCH_SYMBOL::GetRefProp | ( | ) | const |
Definition at line 63 of file sch_symbol.cpp.
References GetRef(), and SCH_ITEM::Schematic().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
protectedinherited |
Definition at line 46 of file sch_item.cpp.
References PLOTTER::RenderSettings().
Referenced by LIB_SYMBOL::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_FIELD::Plot(), SCH_LINE::Plot(), SCH_NO_CONNECT::Plot(), SCH_PIN::Plot(), SCH_RULE_AREA::Plot(), SCH_SHAPE::Plot(), SCH_SHEET::Plot(), SCH_SYMBOL::Plot(), SCH_TEXT::Plot(), SCH_TEXTBOX::Plot(), SCH_SYMBOL::PlotDNP(), LIB_SYMBOL::PlotFields(), SCH_SYMBOL::PlotPins(), SCH_PIN::PlotPinTexts(), and SCH_PIN::PlotPinType().
|
inlineinherited |
Definition at line 143 of file eda_item.h.
References m_rolloverPos.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), and KIGFX::SCH_PAINTER::draw().
|
inlineinherited |
Get the cache of rule areas enclosing this item.
Definition at line 733 of file sch_item.h.
References m_rule_areas_cache.
Referenced by BOOST_AUTO_TEST_CASE(), CONNECTION_SUBGRAPH::GetNetclassesForDriver(), and NETLIST_EXPORTER_XML::getSheetComponentClasses().
| wxString SCH_SYMBOL::GetSchSymbolLibraryName | ( | ) | const |
Definition at line 1085 of file sch_symbol.cpp.
References m_lib_id, and m_schLibSymbolName.
Referenced by SCH_SCREEN::Append(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), NETLIST_EXPORTER_BASE::findNextSymbol(), SCH_IO_KICAD_SEXPR::Format(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), NETLIST_EXPORTER_XML::makeSymbols(), Matches(), SCH_EDITOR_CONTROL::Paste(), SCH_SCREEN::PruneUnusedLibSymbol(), SCH_COMMIT::pushSchEdit(), SCH_SCREEN::Remove(), SCH_COMMIT::RevertToCheckpoint(), SCH_IO_KICAD_SEXPR::saveSymbol(), Serialize(), and SCHEMATIC::SyncLibSymbolPinMaps().
|
overridevirtual |
Implements SYMBOL.
Definition at line 1121 of file sch_symbol.cpp.
References m_part.
Referenced by SYMBOL_SEARCH_HANDLER::getResultCell(), NETLIST_EXPORTER_XML::makeSymbols(), Matches(), and ResolveTextVar().
|
overridevirtual |
Implements SYMBOL.
Definition at line 1139 of file sch_symbol.cpp.
References m_part.
Referenced by Matches(), and ResolveTextVar().
|
overridevirtual |
Reimplemented from SYMBOL.
Definition at line 4691 of file sch_symbol.cpp.
References m_part.
Referenced by BOOST_AUTO_TEST_CASE(), and Serialize().
|
overridevirtual |
Reimplemented from SYMBOL.
Definition at line 4704 of file sch_symbol.cpp.
References m_part.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and Serialize().
|
inlinevirtualinherited |
Return the coordinates that should be used for sorting this element visually compared to other elements.
For instance, for lines the midpoint might be a better sorting point than either end.
Reimplemented in SCH_LINE.
Definition at line 364 of file eda_item.h.
References GetPosition().
|
inlineinherited |
Definition at line 314 of file sch_item.h.
References m_storedPos.
Referenced by SCH_MOVE_TOOL::updateStoredPositions().
|
inlinevirtualinherited |
Reimplemented in SCH_BUS_ENTRY_BASE, SCH_LINE, and SCH_SHAPE.
Definition at line 691 of file sch_item.h.
Referenced by DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem().
|
inline |
Definition at line 165 of file sch_symbol.h.
References m_lib_id.
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
inlineinherited |
Definition at line 183 of file eda_item.h.
References CANDIDATE, CONNECTIVITY_CANDIDATE, IS_LINKED, m_flags, SELECTED_BY_DRAG, SELECTION_CANDIDATE, and SKIP_STRUCT.
Referenced by ClearTempFlags(), and SCH_ITEM::SwapFlags().
|
inlineinherited |
Definition at line 248 of file symbol.h.
References m_transform.
|
inlineinherited |
Definition at line 247 of file symbol.h.
References m_transform.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_CONNECTIVITY::ExtractInstanceFacts(), SCH_FIELD::GetDrawRotation(), SCH_SYMBOL::GetOrientation(), SCH_FIELD::GetPosition(), GetRelativePosition(), SCH_SELECTION_TOOL::GuessSelectionCandidates(), SCH_MOVE_TOOL::moveItem(), SCH_SYMBOL::operator==(), EASYPC::SCH_BUILDER::placeFields(), ORCAD_CONVERTER::placeInstance(), ORCAD_CONVERTER::placePowerSymbol(), ORCAD_CONVERTER::placeSymbolFields(), SCH_SYMBOL::Plot(), SCH_SYMBOL::PlotLocalPowerIconShape(), SCH_SYMBOL::PlotPins(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), SCH_IO_KICAD_LEGACY::saveSymbol(), and SCH_FIELD::SetPosition().
|
inherited |
Return a translated description of the type for this EDA_ITEM for display in user facing messages.
Definition at line 556 of file eda_item.cpp.
References ENUM_MAP< T >::Instance(), and Type().
Referenced by EDIT_TOOL::doMoveSelection(), and GetFriendlyName().
|
inlineinherited |
Definition at line 243 of file sch_item.h.
References m_unit.
Referenced by SCH_IO_EAGLE::addImplicitConnections(), SCH_SHEET_PATH::AddNewSymbolInstances(), SCH_EDIT_FRAME::AnnotateSymbols(), BACK_ANNOTATE::applyChangelist(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CheckDuplicatePins(), SCH_SHEET_PATH::CheckForMissingSymbolInstances(), SCH_PIN::Clone(), NETLIST_EXPORTER_SPICE::collectUnitPinMaps(), SCH_PIN::compare(), SCH_PIN::ComparisonData(), countMatchingPins(), SYMBOL_EDITOR_PIN_TOOL::CreateImagePins(), SCH_EDIT_FRAME::DeleteAnnotation(), SCH_INSPECTION_TOOL::DiffSymbol(), SYMBOL_EDITOR_EDIT_TOOL::DoDelete(), SCH_SYMBOL::doIsConnected(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), SCH_EDIT_TOOL::EditProperties(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), ORCAD_CONVERTER::finalizeNativePowerPackages(), RESCUE_CACHE_CANDIDATE::FindRescues(), RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::FindRescues(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), CADSTAR_SCH_ARCHIVE_LOADER::fixUpLibraryPins(), SYMBOL_EDIT_FRAME::FocusOnItem(), PIN_INFO_FORMATTER::Format(), SCH_SYMBOL::GetConnectionPoints(), GetMsgPanelInfo(), SCH_SYMBOL::GetPin(), SCH_COLLECTOR::Inspect(), SCH_SYMBOL::IsPointClickableAnchor(), KIGFX::SCH_PAINTER::isUnitAndConversionShown(), DIPTRACE_SCH_IMPORT_FIXTURE::LibPinCountForRefdesUnitOnSheet(), DIPTRACE_SCH_IMPORT_FIXTURE::LibPinNamesForRefdesUnitOnSheet(), SCH_IO_PADS::LoadSchematicFile(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), SCH_SYMBOL::MapLibPins(), DIALOG_LIB_EDIT_PIN_TABLE::OnAddRow(), SCH_SYMBOL::operator==(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), SCH_SYMBOL::Plot(), SCH_SYMBOL::PlotPins(), DIALOG_CHANGE_SYMBOLS::processSymbols(), CONNECTION_GRAPH::Recalculate(), ORCAD_CONVERTER::recordNetNameMap(), SCH_SYMBOL::resolveDelegatedPinMapOverride(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveArc(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveBezier(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveCircle(), SCH_IO_KICAD_LEGACY_LIB_CACHE::savePin(), SCH_IO_KICAD_LEGACY_LIB_CACHE::savePolyLine(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveRectangle(), SCH_IO_KICAD_LEGACY::saveSymbol(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveText(), SCH_REFERENCE::SCH_REFERENCE(), SCHEMATIC::SCHEMATIC(), SCH_SELECTION_TOOL::Selectable(), SCH_EDIT_FRAME::SelectUnit(), PIN_TABLE_DATA_MODEL::SetValue(), sort_by_pin_number(), stableDriverIdentity(), PCAD_SCH_IMPORT_FIXTURE::SymbolForRefdesUnit(), SYMBOL_EDITOR_PIN_TOOL::SynchronizeOtherUnits(), DIALOG_FIELD_PROPERTIES::TransferDataToWindow(), DIPTRACE_SCH_IMPORT_FIXTURE::UnitsForRefdesOnSheet(), SYMBOL_UNIT_MENU::update(), DIALOG_FIELD_PROPERTIES::UpdateField(), SCH_EDITOR_CONTROL::updatePastedSymbol(), SCH_POINT_EDITOR::updatePoints(), VariantSymbolPinsMatch(), and SCH_SYMBOL::Visit().
|
overridevirtual |
Return the number of units per package of the symbol.
Implements SYMBOL.
Definition at line 1349 of file sch_symbol.cpp.
References m_part.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), SCH_EDIT_FRAME::AnnotateSymbols(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_EDIT_FRAME::DeleteAnnotation(), NETLIST_EXPORTER_XML::getComponentClassNamesForAllSymbolUnits(), GetRef(), GetUnplacedUnitsForSymbol(), DIALOG_EDIT_SYMBOLS_LIBID::initDlg(), IsMultiUnit(), SCH_FIELD::Matches(), SyncOtherUnits(), DIALOG_FIELD_PROPERTIES::TransferDataToWindow(), and DIPTRACE_SCH_IMPORT_FIXTURE::UnitCountForRefdes().
|
overridevirtual |
Return the display name for a given unit aUnit.
Reimplemented from SCH_ITEM.
Definition at line 1376 of file sch_symbol.cpp.
References _, m_part, and SubReference().
Referenced by DIALOG_FIELD_PROPERTIES::TransferDataToWindow(), and SYMBOL_UNIT_MENU::update().
| int SCH_SYMBOL::GetUnitProp | ( | ) | const |
Definition at line 75 of file sch_symbol.cpp.
References GetUnitSelection(), and SCH_ITEM::Schematic().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
| int SCH_SYMBOL::GetUnitSelection | ( | const SCH_SHEET_PATH * | aSheet | ) | const |
Return the instance-specific unit selection for the given sheet path.
Definition at line 1839 of file sch_symbol.cpp.
References m_instancePathIndex, m_instances, SCH_ITEM::m_unit, SCH_SHEET_PATH::Path(), and path.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), SCH_EDIT_FRAME::AnnotateSymbols(), BACK_ANNOTATE::applyChangelist(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), KIGFX::SCH_PAINTER::draw(), SCH_CONNECTIVITY::ExtractInstanceFacts(), NETLIST_EXPORTER_XML::getComponentClassNamesForAllSymbolUnits(), GetPins(), GetPins(), GetUnitProp(), HasConnectivityChanges(), SCH_FIELD::Matches(), CONNECTION_GRAPH::Recalculate(), ORCAD_CONVERTER::recordNetNameMap(), ResolveTextVar(), SCH_REFERENCE::SCH_REFERENCE(), SyncOtherUnits(), and SCH_SHEET_PATH::UpdateAllScreenReferences().
|
virtualinherited |
Definition at line 269 of file sch_item.cpp.
References GetUnitDisplayName(), and m_unit.
Referenced by SCH_ITEM_DESC::SCH_ITEM_DESC().
|
overridevirtual |
Implements SYMBOL.
Definition at line 2131 of file sch_symbol.cpp.
References ExpandTextVars(), LIB_SYMBOL::GetField(), GetField(), SCH_FIELD::GetName(), SCH_FIELD::GetShownText(), SCH_FIELD::GetText(), GetVariant(), GetVariantLibSymbol(), SCH_ITEM::LIB_SYMBOL, ResolveTextVar(), and VALUE.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), SCH_EDIT_FRAME::AnnotateSymbols(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_EDIT_FRAME::DeleteAnnotation(), SCH_CONNECTIVITY::ExtractInstanceFacts(), SCH_PIN::GetDefaultNetName(), GetValueProp(), HasConnectivityChanges(), ResolveTextVar(), SCH_REFERENCE::SCH_REFERENCE(), SyncOtherUnits(), NETLIST_EXPORTER_ALLEGRO::toAllegroPackages(), NETLIST_EXPORTER_CADSTAR::writeNetlist(), NETLIST_EXPORTER_ORCADPCB2::writeNetlist(), and NETLIST_EXPORTER_PADS::writeNetlist().
| wxString SCH_SYMBOL::GetValueProp | ( | ) | const |
Definition at line 69 of file sch_symbol.cpp.
References GetValue(), RAW_VALUE, and SCH_ITEM::Schematic().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
| std::optional< SCH_SYMBOL_VARIANT > SCH_SYMBOL::GetVariant | ( | const SCH_SHEET_PATH & | aInstance, |
| const wxString & | aVariantName ) const |
Definition at line 4838 of file sch_symbol.cpp.
References GetInstance(), SCH_SYMBOL_INSTANCE::m_Variants, and SCH_SHEET_PATH::Path().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_EDIT_TOOL::ClearVariantSymbol(), DIALOG_SYMBOL_PROPERTIES::DIALOG_SYMBOL_PROPERTIES(), GetValue(), SCH_EDIT_TOOL::Init(), and SYMBOL_FIELDS_EDITOR_GRID_TRICKS::showFieldsTablePopupMenu().
| LIB_SYMBOL * SCH_SYMBOL::GetVariantLibSymbol | ( | const wxString & | aVariantName, |
| const SCH_SHEET_PATH & | aPath ) const |
Resolve the alternate library symbol for a given variant.
Looks up the variant's symbol override and resolves the LIB_ID through the project's symbol library adapter. Returns nullptr if the variant has no override or if the LIB_ID cannot be resolved.
| aVariantName | the variant to resolve. |
| aPath | the sheet path for this instance. |
Definition at line 4863 of file sch_symbol.cpp.
References empty(), LIB_ID::Format(), getInstance(), SCH_ITEM::LIB_SYMBOL, SYMBOL_LIBRARY_ADAPTER::LoadSymbol(), m_lib_id, m_part, SCH_SYMBOL_VARIANT::m_SymbolOverride, SCH_SYMBOL_INSTANCE::m_Variants, m_variantSymbolCache, SCH_ITEM::Schematic(), PROJECT_SCH::SymbolLibAdapter(), and ValidateVariantSymbolCompatibility().
Referenced by GetEffectiveLibSymbol(), GetFieldText(), getFootprintChooserSymbolNetlist(), GetValue(), NETLIST_EXPORTER_XML::makeSymbols(), and SetFieldText().
|
inline |
Definition at line 898 of file sch_symbol.h.
References GetPosition(), and VECTOR2< T >::x.
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC(), and SetY().
|
inline |
Definition at line 901 of file sch_symbol.h.
References GetPosition(), and VECTOR2< T >::y.
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC(), and SetX().
| bool SCH_SYMBOL::HasBrightenedPins | ( | ) |
Definition at line 4667 of file sch_symbol.cpp.
|
inherited |
Definition at line 720 of file sch_item.cpp.
References Connection(), ADVANCED_CFG::GetCfg(), SCH_CONNECTION::IsBus(), and publishedConnection().
Referenced by KIGFX::SCH_PAINTER::draw(), SCH_LABEL_BASE::Plot(), and SCH_EDITOR_CONTROL::SimProbe().
|
inlinevirtualinherited |
Reimplemented in SCH_LABEL_BASE.
Definition at line 663 of file sch_item.h.
Referenced by CONNECTION_SUBGRAPH::GetNameForDriver().
|
overridevirtual |
Check if aItem has connectivity changes against this object.
This provides granular per object connectivity change testing to prevent the need to rebuild the CONNECTION_GRAPH when object properties that have nothing to do with the schematic connectivity changes i.e. color, thickness, fill type. etc.
| aItem | is the item to test for connectivity changes. |
| aInstance | is the instance to test for connectivity changes. This parameter is only meaningful for SCH_SYMBOL objects. |
Reimplemented from SCH_ITEM.
Definition at line 4045 of file sch_symbol.cpp.
References FOR_NETNAME, GetLibId(), GetPassthroughMode(), GetPosition(), GetRef(), GetUnitSelection(), GetValue(), HasConnectivityChanges(), IsPower(), m_pins, pin, SCH_ITEM::SCH_ITEM(), and SCH_SYMBOL().
Referenced by HasConnectivityChanges().
|
inlineinherited |
Definition at line 269 of file eda_item.h.
References m_customProperties.
Referenced by KICAD_FORMAT::FormatCustomProperties().
|
overridevirtual |
Implements SYMBOL.
Definition at line 1367 of file sch_symbol.cpp.
References m_part.
Referenced by BODY_STYLE_MENU::update().
| bool SCH_SYMBOL::HasEffectiveAssociatedFootprint | ( | ) | const |
Definition at line 702 of file sch_symbol.cpp.
References GetLibSymbolRef().
Referenced by GetDynamicProperties(), and SCH_PROPERTIES_PANEL::getSinglePinMappedSymbol().
|
inlineinherited |
Definition at line 168 of file eda_item.h.
References m_flags.
Referenced by PCB_CONTROL::ApplyDesignBlockLayout(), BOOST_AUTO_TEST_CASE(), BOARD::BulkRemoveStaleTeardrops(), GRAPHICS_CLEANER::cleanupShapes(), PCB_BASE_EDIT_FRAME::ClearListAndDeleteItems(), SYMBOL_EDIT_FRAME::ClearUndoORRedoList(), SCH_EDIT_TOOL::DoDelete(), SCH_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_FIND_REPLACE_TOOL::FindNext(), SCH_MOVE_TOOL::findTargetSheet(), PCB_TUNING_PATTERN::Flip(), SYMBOL_EDIT_FRAME::freeTransientUndoCommands(), SCH_MOVE_TOOL::getConnectedDragItems(), SCH_MOVE_TOOL::getConnectedItems(), FOOTPRINT::IsConflicting(), ZONE::IsConflicting(), SCH_SCREEN::MarkConnections(), PCB_TUNING_PATTERN::Mirror(), PCB_TUNING_PATTERN::Move(), MoveSchematicItem(), SCH_MOVE_TOOL::orthoLineDrag(), SCH_MOVE_TOOL::performItemMove(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), GERBVIEW_FRAME::RemapLayers(), SCH_POINT_EDITOR::Reset(), PCB_TUNING_PATTERN::Rotate(), SCH_EDIT_TOOL::Rotate(), ISSUE22864_FIXTURE::RunAlignmentAndVerify(), ISSUE22864_FIXTURE::RunAlignmentAndVerifyNoSkew(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), PCB_SELECTION_TOOL::selectAllConnectedShapes(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), SCH_SELECTION_TOOL::SelectMultiple(), PCB_VIA::SetSizeFromRules(), SCH_COMMIT::Stage(), TRACKS_CLEANER::testTrackEndpointIsNode(), SCH_MOVE_TOOL::trimDanglingLines(), SCH_FIND_REPLACE_TOOL::UpdateFind(), and PCB_TUNING_PATTERN::ViewDraw().
|
inlinevirtualinherited |
Indicates that a hypertext link is currently active.
(Note that the default implementation here only handles the simple case.)
Reimplemented in SCH_TEXT, and SCH_TEXTBOX.
Definition at line 346 of file sch_item.h.
References HasHypertext(), and EDA_ITEM::IsRollover().
Referenced by SCH_SELECTION_TOOL::Main().
|
inlinevirtualinherited |
Indicates that the item has at least one hypertext action.
This could be a URL assigned to the item as a whole, or one (or more) urls within the text of the item.
Reimplemented in SCH_FIELD, SCH_TEXT, and SCH_TEXTBOX.
Definition at line 340 of file sch_item.h.
Referenced by HasHoveredHypertext(), and RenderAsBitmap().
|
inlinevirtualinherited |
Check if this schematic item has line stoke properties.
Reimplemented in SCH_BUS_ENTRY_BASE, SCH_LINE, and SCH_SHAPE.
Definition at line 689 of file sch_item.h.
Referenced by DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem().
|
inherited |
Definition at line 241 of file eda_item.cpp.
References EDA_ITEM(), and group.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and SCH_MOVE_TOOL::getConnectedDragItems().
|
overridevirtual |
Test if aRect intersects this item.
| aRect | A reference to a BOX2I object containing the rectangle to test. |
| aContained | Set to true to test for containment instead of an intersection. |
| aAccuracy | Increase aRect by this amount. |
Reimplemented from EDA_ITEM.
Definition at line 4369 of file sch_symbol.cpp.
References BOX2< Vec >::Contains(), GetBodyBoundingBox(), BOX2< Vec >::Inflate(), BOX2< Vec >::Intersects(), EDA_ITEM::m_flags, SKIP_STRUCT, and STRUCT_DELETED.
|
overridevirtual |
Test if aPoly intersects this item.
| aPoly | A reference to a SHAPE_LINE_CHAIN object containing the polygon or polyline to test. |
| aContained | Set to true to test for containment instead of an intersection. |
Reimplemented from EDA_ITEM.
Definition at line 4385 of file sch_symbol.cpp.
References KIGEOM::BoxHitTest(), GetBodyBoundingBox(), EDA_ITEM::m_flags, SKIP_STRUCT, and STRUCT_DELETED.
|
overridevirtual |
Test if aPosition is inside or on the boundary of this item.
| aPosition | A reference to a VECTOR2I object containing the coordinates to test. |
| aAccuracy | Increase the item bounding box by this amount. |
Reimplemented from EDA_ITEM.
Definition at line 4357 of file sch_symbol.cpp.
References BOX2< Vec >::Contains(), GetBodyBoundingBox(), and BOX2< Vec >::Inflate().
Definition at line 803 of file sch_symbol.cpp.
References BASE, DATASHEET, DEFAULT, DESCRIPTION, FOOTPRINT, GetDefaultFieldName(), LAYER_DEVICE, LAYER_FIELDS, LAYER_REFERENCEPART, LAYER_VALUEPART, SCH_ITEM::m_bodyStyle, m_doNetlist, m_fields, SCH_ITEM::m_layer, m_passthroughMode, m_pos, m_prefix, m_signalName, SYMBOL::m_transform, SCH_ITEM::m_unit, REFERENCE, UNTRANSLATED, and VALUE.
Referenced by SCH_SYMBOL(), and SCH_SYMBOL().
|
inherited |
Create a new connection object associated with this object.
| [in] | aPath | is the sheet path to initialize. |
| [in] | aGraph | is the connection graph to initialize. |
Definition at line 790 of file sch_item.cpp.
References Connection(), CONNECTION_GRAPH, m_connection_map, SCH_CONNECTION::Reset(), SCH_CONNECTION::SetGraph(), and SCH_CONNECTION::SetSheet().
Referenced by cloneWireConnection(), GetOrInitConnection(), and CONNECTION_GRAPH::updateGenericItemConnectivity().
|
protectedinherited |
Bump the parent screen's connectivity revision when this item, or the item owning it as a child, is on its draw list.
Call it from each setter that changes captured state.
| aChangedType | is passed to SCH_SCREEN::BumpConnectivityRevision(). |
Definition at line 323 of file sch_item.cpp.
References SCH_SCREEN::BumpConnectivityRevision(), SCH_SCREEN::CheckIfOnDrawList(), EDA_ITEM::GetParent(), GetParentScreen(), NO_RECURSE, and SCH_ITEM().
Referenced by SCH_LABEL_BASE::AddField(), SCH_SHEET::AddField(), SCH_SYMBOL::AddField(), SCH_LABEL_BASE::AddFields(), SCH_SYMBOL::AddHierarchicalReference(), SCH_SHEET::AddVariant(), SCH_SYMBOL::AddVariant(), SCH_LABEL_BASE::cacheShownText(), SCH_SHEET::ClearVariantField(), SCH_SYMBOL::ClearVariantField(), SCH_SYMBOL::ClearVariantSymbolOverride(), SCH_SHEET::CopyVariant(), SCH_SYMBOL::CopyVariant(), SCH_SHEET::DeleteVariant(), SCH_SYMBOL::DeleteVariant(), SCH_LABEL_BASE::Move(), SCH_FIELD::operator=(), SCH_SYMBOL::RemoveField(), SCH_SYMBOL::RemoveInstance(), SCH_SHEET::RenameVariant(), SCH_SYMBOL::RenameVariant(), SetConnectivityDirty(), SCH_LABEL_BASE::SetFields(), SCH_SHEET::SetFieldText(), SCH_SYMBOL::SetFieldText(), SCH_FIELD::SetName(), SCH_SYMBOL::SetRef(), SCH_FIELD::SetText(), SCH_SYMBOL::SetUnitSelection(), SCH_SHEET::setVariantAttribute(), SCH_SYMBOL::setVariantAttribute(), and SCH_SYMBOL::SetVariantSymbolOverride().
| bool SCH_SYMBOL::IsAnnotated | ( | const SCH_SHEET_PATH * | aSheet | ) | const |
Check if the symbol has a valid annotation (reference) for the given sheet path.
| aSheet | is the sheet path to test. |
Definition at line 1766 of file sch_symbol.cpp.
References m_instances, SCH_SHEET_PATH::Path(), and path.
Referenced by SCH_EDIT_FRAME::DeleteAnnotation(), SCH_EDIT_FRAME::mapExistingAnnotation(), SCH_EDIT_FRAME::SaveSymbolToSchematic(), SyncOtherUnits(), and DIALOG_FIELD_PROPERTIES::UpdateField().
|
inlineinherited |
Definition at line 98 of file view_item.h.
References m_isBOARD_ITEM.
Referenced by KIGFX::PCB_VIEW::Add(), PCB_GROUP_TOOL::canGroupItem(), EDIT_TOOL::doMoveSelection(), KIGFX::PCB_PAINTER::Draw(), EDA_ITEM::EDA_ITEM(), PCB_BASE_FRAME::FocusOnItem(), PCB_PROPERTIES_PANEL::getPropertyFromEvent(), KIGFX::PCB_PAINTER::HasUniformColor(), PCB_SELECTION_TOOL::highlightInternal(), PCB_TEST_SELECTION_TOOL::highlightInternal(), GENERAL_COLLECTOR::Inspect(), BOARD::Move(), PCB_GRID_HELPER::nearestAnchor(), PCB_GRID_HELPER::OnBoardItemRemoved(), PCB_CONTROL::Paste(), DRAWING_TOOL::PlaceImportedGraphics(), BOARD_COMMIT::Push(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), KIGFX::PCB_VIEW::Remove(), PCB_GRID_HELPER::ResolveSnap(), BOARD_COMMIT::RevertToCheckpoint(), GRAPHIC_EDIT_TOOL::runInteractive(), PCB_SELECTION_TOOL::select(), PCB_SELECTION_TOOL::SelectAll(), PCB_EDIT_FRAME::SetPageSettings(), PCB_BASE_FRAME::SetPlotSettings(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), BOARD_COMMIT::Stage(), EDIT_TOOL::Swap(), BOARD_COMMIT::undoLevelItem(), PCB_SELECTION_TOOL::unhighlightInternal(), PCB_TEST_SELECTION_TOOL::unhighlightInternal(), PCB_SELECTION_TOOL::UnselectAll(), KIGFX::PCB_VIEW::Update(), KIGFX::PCB_VIEW::UpdateCollidingItems(), EDIT_TOOL::updateModificationPoint(), and DIALOG_POSITION_RELATIVE::UpdatePickedItem().
|
inlineinherited |
Definition at line 136 of file eda_item.h.
References BRIGHTENED, m_flags, and m_netHighlighted.
Referenced by KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), KIGFX::DS_RENDER_SETTINGS::GetColor(), KIGFX::SCH_PAINTER::getLineWidth(), KIGFX::SCH_PAINTER::getRenderColor(), and ZONE_PAINTER::PCB_PAINTER().
|
inlineoverridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 826 of file sch_symbol.h.
|
inherited |
Test the item to see if it is connected to aPoint.
| aPoint | is a reference to a VECTOR2I object containing the coordinates to test. |
Definition at line 571 of file sch_item.cpp.
References doIsConnected(), EDA_ITEM::m_flags, SKIP_STRUCT, and STRUCT_DELETED.
Referenced by JUNCTION_HELPERS::AnalyzePoint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_MOVE_TOOL::getConnectedItems(), SCH_SCREEN::IsTerminalPoint(), and SCH_SCREEN::MarkConnections().
|
inlineinherited |
Definition at line 630 of file sch_item.h.
References m_connectivity_dirty.
Referenced by BOOST_AUTO_TEST_CASE(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_BUS_ENTRY_BASE::GetBusEntryColor(), SCH_BUS_ENTRY_BASE::GetEffectiveLineStyle(), SCH_LINE::GetEffectiveLineStyle(), SCH_JUNCTION::getEffectiveShape(), SCH_FIELD::GetFieldColor(), SCH_JUNCTION::GetJunctionColor(), SCH_LABEL_BASE::GetLabelColor(), SCH_LINE::GetLineColor(), SCH_BUS_ENTRY_BASE::GetMsgPanelInfo(), SCH_JUNCTION::GetMsgPanelInfo(), SCH_LABEL_BASE::GetMsgPanelInfo(), SCH_LINE::GetMsgPanelInfo(), SCH_PIN::GetMsgPanelInfo(), SCH_BUS_BUS_ENTRY::GetPenWidth(), SCH_BUS_WIRE_ENTRY::GetPenWidth(), SCH_LINE::GetPenWidth(), SCH_COMMIT::pushSchEdit(), recalculateIfStale(), and SCH_TOOL_BASE< T >::saveCopyInUndoList().
|
inlinevirtualinherited |
Reimplemented in SCH_BUS_ENTRY_BASE, SCH_DIRECTIVE_LABEL, SCH_LABEL_BASE, SCH_LINE, and SCH_PIN.
Definition at line 538 of file sch_item.h.
|
inlinevirtualinherited |
Test if aPt is an end point of this schematic object.
| aPt | is the coordinate to test for an end point. |
| true | if aPt is an end point. |
| false | if aPt is not an end point. |
Reimplemented in SCH_LINE, and SCH_SHAPE.
Definition at line 536 of file sch_item.h.
Referenced by SCH_SCREEN::MarkConnections().
|
inlineinherited |
Definition at line 135 of file eda_item.h.
References ENTERED, and m_flags.
Referenced by KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), and KIGFX::SCH_PAINTER::draw().
|
inlineinherited |
Definition at line 233 of file eda_item.h.
References m_forceVisible.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_FIELD::Plot(), and SCH_FIND_REPLACE_TOOL::UpdateFind().
|
overridevirtual |
Implements SYMBOL.
Definition at line 4783 of file sch_symbol.cpp.
References m_part.
Referenced by BOOST_AUTO_TEST_CASE(), IsPower(), and IsSymbolLikePowerGlobalLabel().
|
inherited |
Definition at line 144 of file sch_item.cpp.
References SCH_BITMAP_T, SCH_BUS_BUS_ENTRY_T, SCH_BUS_WIRE_ENTRY_T, SCH_DIRECTIVE_LABEL_T, SCH_FIELD_T, SCH_GLOBAL_LABEL_T, SCH_GROUP_T, SCH_HIER_LABEL_T, SCH_JUNCTION_T, SCH_LABEL_T, SCH_LINE_T, SCH_NO_CONNECT_T, SCH_PIN_T, SCH_RULE_AREA_T, SCH_SHAPE_T, SCH_SHEET_PIN_T, SCH_SHEET_T, SCH_SYMBOL_T, SCH_TABLE_T, SCH_TEXT_T, SCH_TEXTBOX_T, and EDA_ITEM::Type().
Referenced by SCH_GROUP_TOOL::canGroupItem(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SCH_MOVE_TOOL::prepareMoveOperation(), SCH_COMMIT::pushSchEdit(), SCH_EDIT_TOOL::RepeatDrawItem(), SCH_EDIT_FRAME::SaveSelectionAsDesignBlock(), and SCH_EDIT_FRAME::UpdateDesignBlockFromSelection().
|
overridevirtual |
Implements SYMBOL.
Definition at line 4774 of file sch_symbol.cpp.
References m_part.
Referenced by IsPower(), IsSymbolLikePowerLocalLabel(), and ResolveTextVar().
|
overridevirtualinherited |
Reimplemented from EDA_ITEM.
Reimplemented in SCH_PIN, and SCH_SHEET_PIN.
Definition at line 179 of file sch_item.cpp.
References EDA_ITEM::GetParentGroup(), group, and m_isLocked.
Referenced by SCH_SELECTION_TOOL::FilterSelectionForLockedItems(), SCH_ALIGN_TOOL::GetSelections(), SCH_FIELD::IsLocked(), SCH_PIN::IsLocked(), SCH_SHEET_PIN::IsLocked(), packLabel(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), SCH_IO_KICAD_SEXPR::saveBitmap(), SCH_IO_KICAD_SEXPR::saveBusEntry(), SCH_IO_KICAD_SEXPR::saveGroup(), SCH_IO_KICAD_SEXPR::saveJunction(), SCH_IO_KICAD_SEXPR::saveLine(), SCH_IO_KICAD_SEXPR::saveNoConnect(), SCH_IO_KICAD_SEXPR::saveRuleArea(), SCH_IO_KICAD_SEXPR::saveShape(), SCH_IO_KICAD_SEXPR::saveSheet(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCH_IO_KICAD_SEXPR::saveTable(), SCH_IO_KICAD_SEXPR::saveText(), SCH_IO_KICAD_SEXPR::saveTextBox(), SCH_ITEM_DESC::SCH_ITEM_DESC(), SCH_BITMAP::Serialize(), SCH_BUS_ENTRY_BASE::Serialize(), SCH_GLOBALLABEL::Serialize(), SCH_GROUP::Serialize(), SCH_JUNCTION::Serialize(), SCH_LINE::Serialize(), SCH_NO_CONNECT::Serialize(), SCH_RULE_AREA::Serialize(), SCH_SHAPE::Serialize(), SCH_SHEET::Serialize(), SCH_SHEET_PIN::Serialize(), SCH_SYMBOL::Serialize(), SCH_TABLE::Serialize(), SCH_TEXT::Serialize(), and SCH_TEXTBOX::Serialize().
| bool SCH_SYMBOL::IsMissingLibSymbol | ( | ) | const |
Check to see if the library symbol is set to the dummy library symbol.
When the library symbol is missing (which technically should not happen now that the library symbols are cached in the schematic file), a dummy library symbol is substituted for the missing symbol as an indicator that something is amiss. The dummy symbol cannot be edited so a check for this symbol must be performed before attempting to edit the library symbol with the library editor or it will crash KiCad.
Definition at line 1052 of file sch_symbol.cpp.
References m_part.
Referenced by SCH_EDIT_TOOL::EditProperties(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsAdded(), DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsChanged(), POWER_SEARCH_HANDLER::Search(), and SYMBOL_SEARCH_HANDLER::Search().
|
inlineinherited |
Definition at line 130 of file eda_item.h.
References IS_CHANGED, and m_flags.
Referenced by PCB_EDIT_FRAME::OpenProjectFiles().
|
overridevirtual |
Return true for items which are moved with the anchor point at mouse cursor and false for items moved with no reference to anchor.
Usually return true for small items (labels, junctions) and false for items which can be large (hierarchical sheets, symbols).
Reimplemented from SCH_ITEM.
Definition at line 1058 of file sch_symbol.cpp.
References m_pins, m_pos, pin, and schIUScale.
|
inlineinherited |
Definition at line 132 of file eda_item.h.
References IS_MOVING, and m_flags.
Referenced by SCH_EDIT_TOOL::AutoplaceFields(), SCH_PIN::CalcEdit(), PCB_GRID_HELPER::computeAnchors(), EDIT_TOOL::doMoveSelection(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), PCB_SHAPE::isMoving(), SCH_SHAPE::isMoving(), SCH_EDIT_TOOL::JustifyText(), SCH_EDIT_TOOL::Mirror(), SYMBOL_EDITOR_EDIT_TOOL::Mirror(), PCB_BASE_FRAME::PlaceFootprint(), SCH_SELECTION_TOOL::RequestSelection(), SCH_EDIT_TOOL::Rotate(), SYMBOL_EDITOR_EDIT_TOOL::Rotate(), SCH_EDIT_TOOL::Swap(), SYMBOL_EDITOR_EDIT_TOOL::Swap(), and SCH_SHAPE::UpdateHatching().
|
inlineoverridevirtual |
Implements SYMBOL.
Definition at line 264 of file sch_symbol.h.
References GetBodyStyleCount().
Referenced by BODY_STYLE_MENU::update().
|
inlineoverridevirtual |
Implements SYMBOL.
Definition at line 255 of file sch_symbol.h.
References GetUnitCount().
Referenced by PlaceRemoteDownloadedSymbol().
|
inherited |
Net highlighting must not clear brightening owned by find or picker tools.
Definition at line 125 of file eda_item.cpp.
References m_netHighlighted.
Referenced by KIGFX::SCH_PAINTER::draw(), and setNetHighlight().
|
inlineinherited |
Definition at line 131 of file eda_item.h.
References IS_NEW, and m_flags.
Referenced by SCH_EDIT_TOOL::CycleBodyStyle(), EDIT_TOOL::doMoveSelection(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), PCB_TUNING_PATTERN::EditStart(), PCB_VIA_STACK::EditStart(), PCB_VIA_STITCH::EditStart(), SCH_MOVE_TOOL::finalizeMoveOperation(), SYMBOL_EDITOR_DRAWING_TOOLS::Init(), SCH_LINE_WIRE_BUS_TOOL::IsDrawingLineWireOrBus(), SCH_SCREEN::IsTerminalPoint(), PL_EDIT_TOOL::Main(), PL_POINT_EDITOR::Main(), SCH_MOVE_TOOL::Main(), SCH_POINT_EDITOR::Main(), PCB_BASE_FRAME::PlaceFootprint(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), SCH_MOVE_TOOL::prepareMoveOperation(), SCH_SELECTION_TOOL::select(), SCH_MOVE_TOOL::startMoveOperation(), PCB_TUNING_PATTERN::Update(), and PCB_TUNING_PATTERN::ViewDraw().
|
overridevirtual |
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 4717 of file sch_symbol.cpp.
References ALL_BODY_STYLES, ALL_UNITS, SCH_ITEM::GetBodyStyle(), SCH_ITEM::GetUnit(), m_pins, and pin.
|
overridevirtual |
Implements SYMBOL.
Definition at line 4792 of file sch_symbol.cpp.
References IsGlobalPower(), and IsLocalPower().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_DATA_TEST_CASE_F(), NETLIST_EXPORTER_BASE::CreatePinList(), SCH_EDIT_TOOL::EditField(), HasConnectivityChanges(), DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsAdded(), DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsChanged(), ResolveTextVar(), POWER_SEARCH_HANDLER::Search(), SYMBOL_SEARCH_HANDLER::Search(), SCH_SHEET::SymbolCount(), and SCH_EDITOR_CONTROL::UpdateNetHighlighting().
|
inlineinherited |
Definition at line 259 of file sch_item.h.
References m_private.
Referenced by LIB_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), BOOST_AUTO_TEST_CASE(), LIB_SYMBOL::Compare(), compare(), SCH_PIN::compare(), SCH_PIN::ComparisonData(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_CONNECTIVITY::ExtractLibraryFieldFact(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::getFieldResolvedLiveValue(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::getFieldResolvedLiveValue(), FIELDS_GRID_TABLE::GetFieldRow(), FIELDS_GRID_TABLE::GetMandatoryRowCount(), GetMsgPanelInfo(), FIELDS_GRID_TABLE::GetValue(), FIELDS_GRID_TABLE::GetValueAsBool(), FIELDS_GRID_TABLE::getVisibleRowCount(), SCH_FIELD::HasSameContent(), SCH_RULE_AREA::Plot(), SCH_SHAPE::Plot(), SCH_TEXT::Plot(), SCH_TEXTBOX::Plot(), DIALOG_CHANGE_SYMBOLS::processSymbols(), EE_GRID_HELPER::queryVisible(), SCH_IO_KICAD_SEXPR::saveField(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveField(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveSymbolDrawItem(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveText(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveTextBox(), SCH_ITEM_DESC::SCH_ITEM_DESC(), SCH_FIELD::Serialize(), SCH_SHAPE::ViewGetLayers(), and SCH_TEXT::ViewGetLayers().
|
inlineoverridevirtual |
Override this method in any derived object that supports test find and replace.
Reimplemented from EDA_ITEM.
Definition at line 893 of file sch_symbol.h.
|
inlineinherited |
Definition at line 142 of file eda_item.h.
References m_isRollover.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), and SCH_ITEM::HasHoveredHypertext().
|
inlineinherited |
Definition at line 97 of file view_item.h.
References m_isSCH_ITEM.
Referenced by SCH_GROUP_TOOL::canGroupItem(), KIGFX::SCH_VIEW::DisplaySheet(), EDA_ITEM::EDA_ITEM(), SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), SCH_PROPERTIES_PANEL::getPropertyFromEvent(), EE_GRID_HELPER::ResolveSnap(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), and KIGFX::SCH_VIEW::Update().
|
inlineinherited |
Definition at line 134 of file eda_item.h.
References m_flags, and SELECTED.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_EDIT_TOOL::ChangeTextType(), SCH_DRAG_NET_COLLISION_MONITOR::collectDisconnectedMarkers(), KIGFX::PCB_PAINTER::Draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::drawItemBoundingBox(), DS_PROXY_UNDO_ITEM::DS_PROXY_UNDO_ITEM(), SCH_SELECTION_TOOL::expandConnectionWithGraph(), SCH_MOVE_TOOL::findTargetSheet(), RENDER_3D_OPENGL::get3dModelsFromFootprint(), KIGFX::DS_RENDER_SETTINGS::GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), SCH_MOVE_TOOL::getConnectedDragItems(), KIGFX::SCH_PAINTER::getLineWidth(), KIGFX::SCH_PAINTER::getRenderColor(), SCH_ALIGN_TOOL::GetSelections(), DIALOG_CHANGE_SYMBOLS::isMatch(), DIALOG_EXCHANGE_FOOTPRINTS::isMatch(), SCH_LINE::MergeOverlap(), SCH_EDIT_TOOL::Mirror(), EDIT_TOOL::MoveExact(), SCH_MOVE_TOOL::moveItem(), KIGFX::SCH_PAINTER::nonCached(), DIALOG_ZONE_MANAGER::OnDeleteClick(), SCH_MOVE_TOOL::orthoLineDrag(), ZONE_PAINTER::PCB_PAINTER(), SCH_MOVE_TOOL::prepareMoveOperation(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), BOARD_COMMIT::Push(), SCH_COMMIT::pushSchEdit(), PCB_SELECTION_TOOL::RebuildSelection(), SCH_SELECTION_TOOL::RebuildSelection(), SCH_DRAG_NET_COLLISION_MONITOR::recordOriginalConnections(), SCH_MOVE_TOOL::recordRedundantJunctions(), RENDER_3D_OPENGL::renderPlaceholderForFootprint(), SCH_FIND_REPLACE_TOOL::ReplaceAll(), SCH_COMMIT::RevertToCheckpoint(), SCH_EDIT_TOOL::Rotate(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), CLIPBOARD_IO::SaveSelection(), SCH_IO_KICAD_SEXPR::saveTable(), GERBVIEW_SELECTION_TOOL::select(), PCB_SELECTION_TOOL::select(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), SCH_EDIT_FRAME::SelectBodyStyle(), PCB_SELECTION_TOOL::SelectColumns(), SCH_SELECTION_TOOL::SelectColumns(), SCH_SELECTION_TOOL::SelectMultiple(), GERBVIEW_SELECTION_TOOL::selectPoint(), PCB_SELECTION_TOOL::SelectRows(), SCH_SELECTION_TOOL::SelectRows(), SCH_COMMIT::Stage(), PCB_SELECTION_TOOL::toggleTableCellSelection(), DIALOG_TABLE_PROPERTIES::TransferDataToWindow(), GERBVIEW_SELECTION_TOOL::unselect(), PCB_VIA_STITCH::Update(), SCH_FIND_REPLACE_TOOL::UpdateFind(), SCH_SYMBOL::updatePins(), PCB_TUNING_PATTERN::ViewDraw(), PCB_FIELD::ViewGetLOD(), DIALOG_GLOBAL_EDIT_TEARDROPS::visitItem(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), and DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem().
|
inlineinherited |
Definition at line 206 of file eda_item.h.
References IS_SHOWN_AS_BITMAP, and m_flags.
| bool SCH_SYMBOL::IsSymbolLikePowerGlobalLabel | ( | ) | const |
Definition at line 4738 of file sch_symbol.cpp.
References GetAllLibPins(), GetLibSymbolRef(), IsGlobalPower(), and PT_POWER_IN.
Referenced by DIALOG_LABEL_PROPERTIES::TransferDataToWindow().
| bool SCH_SYMBOL::IsSymbolLikePowerLocalLabel | ( | ) | const |
Definition at line 4756 of file sch_symbol.cpp.
References GetAllLibPins(), GetLibSymbolRef(), IsLocalPower(), and PT_POWER_IN.
Referenced by KIGFX::SCH_PAINTER::draw(), Plot(), and DIALOG_LABEL_PROPERTIES::TransferDataToWindow().
|
inlineoverridevirtualinherited |
Check whether the item is one of the listed types.
| aScanTypes | List of item types |
Reimplemented from EDA_ITEM.
Reimplemented in SCH_LABEL_BASE, and SCH_LINE.
Definition at line 185 of file sch_item.h.
References EDA_ITEM::IsType(), LAYER_BUS, LAYER_NOTES, LAYER_WIRE, m_layer, SCH_ITEM_LOCATE_BUS_T, SCH_ITEM_LOCATE_GRAPHIC_LINE_T, SCH_ITEM_LOCATE_WIRE_T, SCH_LINE_T, and EDA_ITEM::Type().
Referenced by SCH_EDIT_TOOL::AutoplaceFields(), SCH_DRAG_NET_COLLISION_MONITOR::collectDisconnectedMarkers(), SCH_DRAWING_TOOLS::findWireLabelDriverName(), KIGFX::SCH_PAINTER::getLineWidth(), KIGFX::SCH_PAINTER::getRenderColor(), SCH_SELECTION_TOOL::Init(), SCH_FIELD::IsType(), SCH_LABEL_BASE::IsType(), SCH_LINE::IsType(), SCH_SELECTION_TOOL::RequestSelection(), GROUP_SEARCH_HANDLER::Search(), LABEL_SEARCH_HANDLER::Search(), SCH_EDITOR_CONTROL::ShowCreateNetChain(), ToProto(), SCHEMATIC_TEXT_VAR_ADAPTER::trackedItem(), NET_CHAIN_MENU::update(), SCH_EDIT_FRAME::UpdateHopOveredWires(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inlinestaticinherited |
This changes first parameter to avoid the DList and use the main queue instead.
Definition at line 401 of file eda_item.h.
References CONTINUE, EDA_ITEM(), QUIT, and Visit().
Referenced by BOARD::Visit(), FOOTPRINT::Visit(), and GERBER_FILE_IMAGE::Visit().
|
inlinestaticinherited |
Change first parameter to avoid the DList and use std::vector instead.
Definition at line 421 of file eda_item.h.
References CONTINUE, EDA_ITEM(), QUIT, and Visit().
|
staticprotectedinherited |
Get the scale at which aWhatIu would be drawn at the same size as aThresholdIu on screen.
This is useful when a level-of-detail is defined in terms of a threshold size (i.e. 'only draw X when it will be bigger than Y size on screen').
E.g. if aWhatIu is 1000 and aThresholdIu is 100, then the item will be the same size as the threshold at 0.1 scale. Returning that 0.1 as the LoD will hide the item when the scale is less than 0.1 - i.e. smaller than the threshold.
Because even at zoom 1.0, 1mm in KiCad may not be exactly 1mm on a physical screen, the threshold may not be exact in practice.
Definition at line 35 of file view_item.cpp.
References KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), KIGFX::RENDER_SETTINGS::IsPrinting(), LOD_HIDE, LOD_SHOW, and VIEW.
Referenced by GERBER_DRAW_ITEM::ViewGetLOD(), PAD::ViewGetLOD(), PCB_TRACK::ViewGetLOD(), PCB_VIA::ViewGetLOD(), and SCH_LINE::ViewGetLOD().
| std::vector< SCH_PIN * > SCH_SYMBOL::MapLibPins | ( | const std::vector< SCH_PIN * > & | aLibPins, |
| bool | aByNumber ) const |
Map pins of an effective library symbol to this symbol's instance pins.
Base symbol pins are matched through the pin map. Pins from a variant alternate symbol are not in the pin map, so each occurrence is matched by number, unit, body style, and position.
| aLibPins | pins of the effective library symbol, in drawing order. |
| aByNumber | true when aLibPins belong to a variant alternate symbol. |
Definition at line 4952 of file sch_symbol.cpp.
References SCH_ITEM::GetBodyStyle(), LIB_SYMBOL::GetGraphicalPins(), GetPin(), SCH_ITEM::GetUnit(), SCH_ITEM::LIB_SYMBOL, m_part, and VariantSymbolPinsMatch().
Referenced by BOOST_AUTO_TEST_CASE(), KIGFX::SCH_PAINTER::draw(), Plot(), and PlotPins().
|
protectedinherited |
Compare aText against search criteria in aSearchData.
This is a helper function for simplify derived class logic.
| aText | A reference to a wxString object containing the string to test. |
| aSearchData | The criteria to search against. |
Definition at line 318 of file eda_item.cpp.
References CTX_SEARCH, EDA_COMBINED_MATCHER::Find(), EDA_SEARCH_DATA::findString, flag, IsReplaceable(), isWordChar(), EDA_SEARCH_DATA::matchCase, EDA_SEARCH_DATA::matchMode, next(), PERMISSIVE, REGEX, EDA_SEARCH_DATA::regex, EDA_SEARCH_DATA::regex_string, EDA_SEARCH_DATA::searchAndReplace, text, WHOLEWORD, and WILDCARD.
|
overridevirtual |
Compare the item against the search criteria in aSearchData.
The base class returns false since many of the objects derived from EDA_ITEM do not have any text to search.
| aSearchData | A reference to a wxFindReplaceData object containing the search criteria. |
| aAuxData | A pointer to optional data required for the search or NULL if not used. |
Reimplemented from EDA_ITEM.
Definition at line 3934 of file sch_symbol.cpp.
References FOR_GUI, GetLibSymbolRef(), GetSchSymbolLibraryName(), GetShownDescription(), GetShownKeyWords(), EDA_ITEM::Matches(), SCH_FIELD_T, SCH_ITEM::SCH_ITEM(), and EDA_SEARCH_DATA::searchMetadata.
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_FIELD::Matches().
|
inherited |
Match aSearchData against the connection of this item on aSheet.
A bus matches when one of its members matches. An item without a connection never matches, which is also what a search finds while connectivity is out of date.
Definition at line 676 of file sch_item.cpp.
References SCH_CONNECTION::AllMembers(), Connection(), ADVANCED_CFG::GetCfg(), SCH_CONNECTION::GetNetName(), SCH_CONNECTION::IsBus(), SCH_CONNECTIVITY::BUS_MEMBERS::leaves, EDA_ITEM::Matches(), SCH_CONNECTIVITY::NET_VIEW::Members(), and publishedConnection().
Referenced by SCH_LABEL_BASE::Matches(), and SCH_PIN::Matches().
|
overridevirtual |
Mirror item horizontally about aCenter.
Reimplemented from SCH_ITEM.
Definition at line 3879 of file sch_symbol.cpp.
References m_fields, m_pos, MIRROR(), SetOrientation(), SYM_MIRROR_Y, and VECTOR2< T >::x.
|
overridevirtual |
Mirror item vertically about aCenter.
Reimplemented from SCH_ITEM.
Definition at line 3897 of file sch_symbol.cpp.
References m_fields, m_pos, MIRROR(), SetOrientation(), SYM_MIRROR_X, and VECTOR2< T >::y.
|
inlineoverridevirtual |
Move the item by aMoveVector to a new position.
Reimplemented from SCH_ITEM.
Definition at line 789 of file sch_symbol.h.
References m_fields, and m_pos.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_DATA_TEST_CASE_F(), BOOST_FIXTURE_TEST_CASE(), SCH_IO_LTSPICE_PARSER::CreateKicadSYMBOLs(), SCH_IO_LTSPICE_PARSER::CreatePowerSymbol(), and SetPosition().
| bool SCH_SYMBOL::operator!= | ( | const SCH_SYMBOL & | aSymbol | ) | const |
Definition at line 4307 of file sch_symbol.cpp.
References SCH_SYMBOL().
|
inherited |
Test if another item is less than this object.
| aItem | - Item to compare against. |
Definition at line 479 of file eda_item.cpp.
References EDA_ITEM(), and KIGFX::VIEW_ITEM::GetClass().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 4217 of file sch_symbol.cpp.
References BOX2< Vec >::GetArea(), GetBodyAndPinsBoundingBox(), m_pos, m_prefix, m_schLibSymbolName, EDA_ITEM::m_Uuid, SCH_ITEM::SCH_ITEM(), SCH_SYMBOL(), EDA_ITEM::Type(), VECTOR2< T >::x, and VECTOR2< T >::y.
| SCH_SYMBOL & SCH_SYMBOL::operator= | ( | const SCH_SYMBOL & | aItem | ) |
Definition at line 4313 of file sch_symbol.cpp.
References GetClass(), SCH_ITEM::m_bodyStyle, m_doNetlist, m_fields, m_instancePathIndex, m_instances, m_lib_id, m_part, m_passthroughMode, m_pinMapOverride, m_pos, m_prefix, m_signalName, SYMBOL::m_transform, SCH_ITEM::m_unit, m_variantSymbolCache, SYMBOL::operator=(), SCH_SYMBOL(), EDA_ITEM::Type(), and UpdatePins().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 5108 of file sch_symbol.cpp.
References SCH_ITEM::GetBodyStyle(), GetFields(), GetFields(), GetLibId(), GetPosition(), SYMBOL::GetTransform(), SCH_ITEM::GetUnit(), SYMBOL::m_DNP, SYMBOL::m_excludedFromBoard, SYMBOL::m_excludedFromBOM, SYMBOL::m_excludedFromPosFiles, SYMBOL::m_excludedFromSim, m_pins, m_schLibSymbolName, SCH_ITEM::SCH_ITEM(), SCH_SYMBOL(), and EDA_ITEM::Type().
| bool SCH_SYMBOL::operator== | ( | const SCH_SYMBOL & | aSymbol | ) | const |
Definition at line 4245 of file sch_symbol.cpp.
References GetFields(), GetFields(), GetPin(), m_doNetlist, m_passthroughMode, m_pins, m_prefix, m_schLibSymbolName, m_signalName, REFERENCE, and SCH_SYMBOL().
|
overridevirtual |
Plot the item to aPlotter.
| [in] | aPlotter | is the PLOTTER object to plot to. |
| aBackground | a poor-man's Z-order. The routine will get called twice, first with aBackground true and then with aBackground false. | |
| [in] | aPlotOpts | are the options that control the plot output. |
| aUnit | is which unit to print. | |
| aBodyStyle | is which body style to print. | |
| aOffset | is a relative offset. | |
| aDimmed | to reduce brightness of item. |
Reimplemented from SCH_ITEM.
Definition at line 4425 of file sch_symbol.cpp.
References _, PLOTTER::Bookmark(), SCHEMATIC::CurrentSheet(), dummy, PLOTTER::EndBlock(), FOR_CANVAS, FOR_GUI, SCH_ITEM::GetBodyStyle(), GetBoundingBox(), SCHEMATIC::GetCurrentVariant(), GetDNP(), LIB_SYMBOL::GetDrawItems(), GetEffectiveLibSymbol(), GetFields(), LIB_SYMBOL::GetGraphicalPins(), LIB_SYMBOL::GetKeyWords(), GetRef(), SCH_ITEM::getRenderSettings(), SCH_PIN::GetShape(), LIB_SYMBOL::GetShownKeyWords(), SCH_PIN::GetShownName(), SYMBOL::GetTransform(), SCH_PIN::GetType(), SCH_ITEM::GetUnit(), PLOTTER::HyperlinkMenu(), IS_DANGLING, SCH_PIN::IsDangling(), LIB_SYMBOL::IsPower(), IsSymbolLikePowerLocalLabel(), SCH_ITEM::LIB_SYMBOL, m_fields, m_part, SCH_PLOT_OPTS::m_PDFPropertyPopups, m_pos, SCH_RENDER_SETTINGS::m_ShowDNPMarkers, SCH_RENDER_SETTINGS::m_Transform, MapLibPins(), LIB_SYMBOL::Plot(), PlotDNP(), PlotLocalPowerIconShape(), SCH_ITEM::SCH_ITEM(), SCH_ITEM::Schematic(), EDA_ITEM::SetFlags(), SCH_PIN::SetName(), SCH_PIN::SetShape(), SCH_PIN::SetType(), PLOTTER::StartBlock(), text, USER, and VALUE.
| void SCH_SYMBOL::PlotDNP | ( | PLOTTER * | aPlotter | ) | const |
Plot the red 'X' over the symbol.
This is separated to allow it being used from the screen plot function, overlapping the pins
Definition at line 4537 of file sch_symbol.cpp.
References DEFAULT_LINE_WIDTH_MILS, GetBodyAndPinsBoundingBox(), GetBodyBoundingBox(), BOX2< Vec >::GetEnd(), BOX2< Vec >::GetHeight(), KIGFX::RENDER_SETTINGS::GetLayerColor(), BOX2< Vec >::GetOrigin(), SCH_ITEM::getRenderSettings(), BOX2< Vec >::GetWidth(), BOX2< Vec >::GetX(), BOX2< Vec >::GetY(), BOX2< Vec >::Inflate(), KiROUND(), LAYER_DNP_MARKER, schIUScale, PLOTTER::SetColor(), PLOTTER::ThickSegment(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Plot().
| void SCH_SYMBOL::PlotLocalPowerIconShape | ( | PLOTTER * | aPlotter | ) | const |
Plot the local power pin indicator icon shape.
| aPlotter | the PLOTTER object used to draw the icon |
Definition at line 4588 of file sch_symbol.cpp.
References ANGLE_HORIZONTAL, ANGLE_VERTICAL, BOX2< Vec >::GetBottom(), SCH_FIELD::GetBoundingBox(), GetField(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetLeft(), BOX2< Vec >::GetRight(), EDA_TEXT::GetTextAngle(), SYMBOL::GetTransform(), BOX2< Vec >::GetWidth(), EDA_ANGLE::IsHorizontal(), plotLocalPowerIcon(), and VALUE.
Referenced by Plot().
| void SCH_SYMBOL::PlotPins | ( | PLOTTER * | aPlotter, |
| bool | aDnp ) const |
Plot just the symbol pins.
This is separated to match the GAL display order. The pins are ALSO plotted with the symbol group. This replotting allows us to ensure that they are shown above other elements in the schematic.
| aPlotter | is the PLOTTER object used to plot pins. |
| aDnp | includes "do not populate" indicators when true. |
Definition at line 4626 of file sch_symbol.cpp.
References SCHEMATIC::CurrentSheet(), SCH_ITEM::GetBodyStyle(), GetEffectiveLibSymbol(), LIB_SYMBOL::GetGraphicalPins(), SCH_ITEM::getRenderSettings(), SCH_PIN::GetShape(), SCH_PIN::GetShownName(), SYMBOL::GetTransform(), SCH_PIN::GetType(), SCH_ITEM::GetUnit(), SCH_ITEM::LIB_SYMBOL, m_part, m_pos, SCH_RENDER_SETTINGS::m_Transform, MapLibPins(), SCH_PIN::Plot(), SCH_ITEM::Schematic(), SCH_PIN::SetName(), SCH_PIN::SetShape(), and SCH_PIN::SetType().
|
private |
Definition at line 1460 of file sch_symbol.cpp.
References m_instancePathIndex, and m_instances.
Referenced by RemoveInstance().
|
privateinherited |
Graph membership belongs to this item identity and must not propagate to clones.
Definition at line 126 of file sch_item.cpp.
References m_connectivityOwners.
Referenced by CONNECTION_GRAPH::Merge().
|
inherited |
Remove custom properties whose keys collide with an existing field or built-in property name (matched case-insensitively).
Returns the keys removed, if any.
Definition at line 168 of file eda_item.cpp.
References _HKI, PROPERTY_MANAGER::Instance(), m_customProperties, and RemoveCustomProperty().
|
inherited |
Definition at line 161 of file eda_item.cpp.
References m_customProperties, and m_dynamicCustomPropsCache.
Referenced by PCB_PROPERTIES_PANEL::onKeyRenamed(), SCH_PROPERTIES_PANEL::onKeyRenamed(), RemoveConflictingCustomProperties(), and SCH_PROPERTIES_PANEL::removeCustomProperty().
| void SCH_SYMBOL::RemoveField | ( | const wxString & | aFieldName | ) |
Remove a user field from the symbol.
This will remove it from all variants.
| aFieldName | is the user fieldName to remove. |
Definition at line 2284 of file sch_symbol.cpp.
References SCH_ITEM::invalidateConnectivity(), m_fields, and m_instances.
Referenced by BACK_ANNOTATE::applyChangelist(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), DIALOG_RESOLVE_FIELD_CASE_CONFLICTS::applyResolutions(), BOOST_AUTO_TEST_CASE(), Deserialize(), ORCAD_CONVERTER::placeSymbolFields(), RemoveField(), and SCH_PROPERTIES_PANEL::removeField().
|
inline |
Definition at line 483 of file sch_symbol.h.
References SCH_FIELD::GetName(), and RemoveField().
| void SCH_SYMBOL::RemoveInstance | ( | const KIID_PATH & | aInstancePath | ) |
Definition at line 1430 of file sch_symbol.cpp.
References KIID_PATH::AsString(), SCH_ITEM::invalidateConnectivity(), m_instances, EDA_ITEM::m_Uuid, rebuildInstancePathIndex(), and traceSchSheetPaths.
| void SCH_SYMBOL::RemoveInstance | ( | const SCH_SHEET_PATH & | aInstancePath | ) |
Definition at line 1424 of file sch_symbol.cpp.
References SCH_SHEET_PATH::Path(), and RemoveInstance().
Referenced by AddHierarchicalReference(), SCH_SCREEN::PruneOrphanedSymbolInstances(), PrunePastedSymbolInstances(), RemoveInstance(), and SCH_SHEET_PATH::RemoveSymbolInstances().
|
inlineinherited |
Remove a specific rule area from the item's cache.
Definition at line 728 of file sch_item.h.
References m_rule_areas_cache.
| void SCH_SYMBOL::RenameVariant | ( | const KIID_PATH & | aPath, |
| const wxString & | aOldName, | ||
| const wxString & | aNewName ) |
Definition at line 5025 of file sch_symbol.cpp.
References getInstance(), SCH_ITEM::invalidateConnectivity(), VARIANT::m_Name, and SCH_SYMBOL_INSTANCE::m_Variants.
Referenced by SCH_SCREEN::RenameVariant(), and RenameVariant().
|
inline |
Definition at line 1062 of file sch_symbol.h.
References SCH_SHEET_PATH::Path(), and RenameVariant().
|
overridevirtualinherited |
Reimplemented from EDA_ITEM.
Definition at line 1044 of file sch_item.cpp.
References BITMAP_FONT_SIZE_THRESHOLD, HasHypertext(), and text.
Referenced by KIGFX::SCH_PAINTER::draw(), and KIGFX::SCH_PAINTER::draw().
|
inlinevirtualinherited |
Perform a text replace using the find and replace criteria in aSearchData on items that support text find and replace.
This function must be overridden for items that support text replace.
| aSearchData | A reference to a wxFindReplaceData object containing the search and replace criteria. |
| aAuxData | A pointer to optional data required for the search or NULL if not used. |
Reimplemented in SCH_FIELD, SCH_LABEL_BASE, SCH_PIN, SCH_SHEET_PIN, SCH_TEXT, and SCH_TEXTBOX.
Definition at line 511 of file eda_item.h.
|
staticinherited |
Perform a text replace on aText using the find and replace criteria in aSearchData on items that support text find and replace.
| aSearchData | A reference to a wxFindReplaceData object containing the search and replace criteria. |
| aText | A reference to a wxString object containing the text to be replaced. |
Definition at line 396 of file eda_item.cpp.
References EDA_SEARCH_DATA::findString, flag, isWordChar(), EDA_SEARCH_DATA::matchCase, EDA_SEARCH_DATA::matchMode, next(), REGEX, EDA_SEARCH_DATA::regex, EDA_SEARCH_DATA::regex_string, EDA_SEARCH_DATA::replaceString, result, text, and WHOLEWORD.
Referenced by EDA_TEXT::Replace(), SCH_FIELD::Replace(), SCH_PIN::Replace(), SCH_FIND_REPLACE_TOOL::ReplaceAll(), and SCH_FIND_REPLACE_TOOL::ReplaceAndFindNext().
|
private |
Return unit 1's pin-map override for a unit that delegates to it (issue #2282).
Definition at line 1981 of file sch_symbol.cpp.
References GetPinMapOverride(), GetRef(), SCH_ITEM::GetUnit(), PIN_MAP_INSTANCE_OVERRIDE::IsDelegate(), SCH_ITEM::SCH_ITEM(), SCH_SYMBOL(), SCH_SYMBOL_T, and SCH_ITEM::Schematic().
Referenced by GetPinMapOverride().
|
inherited |
Definition at line 446 of file sch_item.cpp.
References SCH_CONNECTIVITY::INPUT_TEXT_SCOPE::Active(), GetDNP(), and m_rule_areas_cache.
Referenced by BOOST_AUTO_TEST_CASE(), SYMBOL_SEARCH_HANDLER::getResultCell(), NETLIST_EXPORTER_XML::makeSymbols(), and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
inherited |
Definition at line 410 of file sch_item.cpp.
References SCH_CONNECTIVITY::INPUT_TEXT_SCOPE::Active(), GetExcludedFromBoard(), and m_rule_areas_cache.
Referenced by SYMBOL_SEARCH_HANDLER::getResultCell(), NETLIST_EXPORTER_XML::makeListOfNets(), and NETLIST_EXPORTER_XML::makeSymbols().
|
inherited |
Definition at line 392 of file sch_item.cpp.
References SCH_CONNECTIVITY::INPUT_TEXT_SCOPE::Active(), GetExcludedFromBOM(), and m_rule_areas_cache.
Referenced by SYMBOL_SEARCH_HANDLER::getResultCell(), NETLIST_EXPORTER_XML::makeListOfNets(), NETLIST_EXPORTER_XML::makeSymbols(), and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
inherited |
Definition at line 428 of file sch_item.cpp.
References SCH_CONNECTIVITY::INPUT_TEXT_SCOPE::Active(), GetExcludedFromPosFiles(), and m_rule_areas_cache.
Referenced by SYMBOL_SEARCH_HANDLER::getResultCell(), and NETLIST_EXPORTER_XML::makeSymbols().
|
inherited |
Definition at line 374 of file sch_item.cpp.
References SCH_CONNECTIVITY::INPUT_TEXT_SCOPE::Active(), GetExcludedFromSim(), and m_rule_areas_cache.
Referenced by SYMBOL_SEARCH_HANDLER::getResultCell(), NETLIST_EXPORTER_XML::makeSymbols(), NETLIST_EXPORTER_SPICE::ReadSchematicAndLibraries(), and SCH_EDIT_FRAME::RefreshOperatingPointDisplay().
|
inherited |
Definition at line 471 of file sch_item.cpp.
References labelTypes, LIB_SYMBOL, LIB_SYMBOL_T, EDA_ITEM::m_parent, path, SCHEMATIC::Project(), LIB_SYMBOL::ResolveTextVar(), SCH_LABEL_BASE::ResolveTextVar(), SCH_SHEET::ResolveTextVar(), SCH_SYMBOL::ResolveTextVar(), ResolveTextVars(), SCH_SHEET_T, SCH_SYMBOL_T, Schematic(), and PROJECT::TextVarResolver().
|
inherited |
Definition at line 464 of file sch_item.cpp.
References SCHEMATIC::GetCurrentVariant(), ResolveText(), and Schematic().
Referenced by KIGFX::SCH_PAINTER::getRenderColor(), SCH_FIELD::GetShownText(), NETLIST_EXPORTER_XML::makeSymbols(), LIB_SYMBOL::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_FIELD::Plot(), SCH_JUNCTION::Plot(), SCH_LABEL_BASE::Plot(), SCH_LINE::Plot(), SCH_NO_CONNECT::Plot(), SCH_RULE_AREA::Plot(), SCH_SHAPE::Plot(), SCH_SHEET::Plot(), SCH_TABLE::Plot(), SCH_TEXT::Plot(), SCH_TEXTBOX::Plot(), SCH_PIN::PlotPinTexts(), SCH_PIN::PlotPinType(), and ResolveText().
| bool SCH_SYMBOL::ResolveTextVar | ( | const SCH_SHEET_PATH * | aPath, |
| wxString * | token, | ||
| const wxString & | aVariantName, | ||
| int | aDepth = 0 ) const |
Resolve any references to system tokens supported by the symbol with variant support.
| aPath | the sheet path for context. |
| token | the token to resolve (modified in place with the result). |
| aVariantName | optional variant name to resolve field values for a specific variant. |
| aDepth | a counter to limit recursion and circular references. |
Definition at line 2846 of file sch_symbol.cpp.
References SCH_CONNECTIVITY::INPUT_TEXT_SCOPE::Active(), ALL_UNITS, SIM_LIB_MGR::CreateModel(), INSPECTABLE::Get(), GetAllLibPins(), SCH_PIN::GetAlt(), SCH_SHEET_PATH::GetDNP(), GetDNP(), GetDynamicProperties(), SCH_SHEET_PATH::GetExcludedFromBoard(), GetExcludedFromBoard(), SCH_SHEET_PATH::GetExcludedFromBOM(), GetExcludedFromBOM(), GetExcludedFromPosFiles(), SCH_SHEET_PATH::GetExcludedFromSim(), GetExcludedFromSim(), GetFootprintFieldText(), SCH_PIN::GetName(), SCH_PIN::GetNumber(), GetPin(), GetPins(), PROPERTY_MANAGER::GetProperty(), GetRef(), GetShownDescription(), GetShownKeyWords(), KICAD_DIFF::DIFF_VALUE::GetType(), GetUnitSelection(), GetValue(), PROPERTY_MANAGER::Instance(), INTERNAL, PROPERTY_MANAGER::IsAvailableFor(), IsLocalPower(), IsPower(), SCH_SHEET_PATH::Last(), m_fields, m_lib_id, m_part, MILS, model, name, KICAD_DIFF::DIFF_VALUE::NONE, path, pin, RAW_VALUE, REFERENCE, SPICE_ITEM::refName, SCH_SHEET::ResolveTextVar(), result, SCH_ITEM::SCH_ITEM(), SCH_SYMBOL(), SCH_SYMBOL_T, SCH_ITEM::Schematic(), schIUScale, SIM_LIB_MGR::SetFilesStack(), SubReference(), KICAD_DIFF::DIFF_VALUE::ToDisplayString(), TYPE_HASH, and KICAD_DIFF::WxAnyToDiffValue().
| bool SCH_SYMBOL::ResolveTextVar | ( | const SCH_SHEET_PATH * | aPath, |
| wxString * | token, | ||
| int | aDepth = 0 ) const |
Resolve any references to system tokens supported by the symbol.
| aPath | the sheet path for context. |
| token | the token to resolve (modified in place with the result). |
| aDepth | a counter to limit recursion and circular references. |
Definition at line 2835 of file sch_symbol.cpp.
References SCHEMATIC::GetCurrentVariant(), ResolveTextVar(), and SCH_ITEM::Schematic().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), KIGFX::SCH_PAINTER::expandLibItemTextVars(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::getFieldResolvedLiveValue(), GetValue(), SCHEMATIC::resolveCrossReference(), SCH_ITEM::ResolveText(), ResolveTextVar(), and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::resolveTextVars().
|
overridevirtual |
Rotate the item around aCenter 90 degrees in the clockwise direction.
Reimplemented from SCH_ITEM.
Definition at line 3915 of file sch_symbol.cpp.
References ANGLE_270, ANGLE_90, m_fields, m_pos, RotatePoint(), SetOrientation(), SYM_ROTATE_CLOCKWISE, SYM_ROTATE_COUNTERCLOCKWISE, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by SCH_EDIT_TOOL::Rotate().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 2544 of file sch_symbol.cpp.
References m_fields, m_pins, pin, and SCH_ITEM::SCH_ITEM().
Referenced by SCH_MARKER::FromProto(), and SCH_EDITOR_CONTROL::UpdateNetHighlighting().
|
inherited |
Search the item hierarchy to find a SCHEMATIC.
Every SCH_ITEM that lives on a SCH_SCREEN should be parented to either that screen or another SCH_ITEM on the same screen (for example, pins to their symbols).
Every SCH_SCREEN should be parented to the SCHEMATIC.
Definition at line 302 of file sch_item.cpp.
References EDA_ITEM::findParent(), and SCHEMATIC_T.
Referenced by addConnections(), SCH_CONNECTIVITY::AppendConnectionInfo(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), AutoPlaceSheetPins(), SCH_SELECTION_TOOL::autostartEvent(), SCH_EDIT_TOOL::ChangeTextType(), Connection(), SCH_DRAWING_TOOLS::createNewSheetPin(), SCH_MARKER::Deserialize(), SCH_GROUP::DeserializeGroup(), DIALOG_FIELD_PROPERTIES::DIALOG_FIELD_PROPERTIES(), DIALOG_SIM_MODEL< T >::DIALOG_SIM_MODEL(), SCH_SYMBOL::doGetBoundingBox(), SCH_FIELD::DoHypertextAction(), KIGFX::SCH_PAINTER::draw(), FIELDS_GRID_TABLE::FIELDS_GRID_TABLE(), FIELDS_GRID_TABLE::FIELDS_GRID_TABLE(), FIELDS_GRID_TABLE::FIELDS_GRID_TABLE(), SCH_SHEET::findSelf(), SCH_MARKER::GetColorLayer(), SCH_SHEET::GetContextualTextVars(), SCH_SHEET::GetDNPProp(), SCH_SYMBOL::GetDNPProp(), SCH_SYMBOL::GetDrawItem(), SCH_SYMBOL::GetDynamicProperties(), SCH_SYMBOL::GetEffectiveLibSymbol(), GetEffectiveNetClass(), SCH_JUNCTION::getEffectiveShape(), SCH_SHAPE::GetEffectiveWidth(), GetEmbeddedFonts(), SCH_SYMBOL::GetExcludedFromBoardProp(), SCH_SHEET::GetExcludedFromBOMProp(), SCH_SYMBOL::GetExcludedFromBOMProp(), SCH_SYMBOL::GetExcludedFromPosFilesProp(), SCH_SHEET::GetExcludedFromSimProp(), SCH_SYMBOL::GetExcludedFromSimProp(), GetFontMetrics(), SCH_LABEL_BASE::GetIntersheetRefs(), ERC_ITEM::getItemDescription(), SCH_PROPERTIES_PANEL::getItemValue(), SCH_LABEL_BASE::GetLabelBoxExpansion(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValueForVariant(), GetMaxError(), SCH_LINE::GetMsgPanelInfo(), SCH_SHEET::GetMsgPanelInfo(), SCH_SYMBOL::GetMsgPanelInfo(), SCH_DIRECTIVE_LABEL::GetPenWidth(), SCH_LINE::GetPenWidth(), SCH_NO_CONNECT::GetPenWidth(), SCH_SHEET::GetPenWidth(), SCH_SHEET_PIN::GetPenWidth(), SCH_SYMBOL::GetPins(), SCH_SYMBOL::GetPins(), SCH_SYMBOL::GetRefProp(), GetSameSymbolMultiUnitSelection(), SCH_MARKER::GetSeverity(), SCH_FIELD::GetShownText(), SCH_LABEL_BASE::GetShownText(), SCH_TABLECELL::GetShownText(), SCH_TEXT::GetShownText(), SCH_TEXT::GetShownText(), SCH_TEXTBOX::GetShownText(), SCH_SHEET_FIELD_PROPERTY::getter(), SCH_TEXT::GetTextOffset(), SCH_SYMBOL::GetUnitProp(), GetUnplacedUnitsForSymbol(), SCH_SYMBOL::GetValueProp(), SCH_SYMBOL::GetVariantLibSymbol(), SCH_PIN::HitTest(), SCH_SHEET::IsTopLevelSheet(), SCH_LABEL_BASE::IsType(), SCH_SHEET::IsVirtualRootSheet(), SCH_POINT_EDITOR::makePointsAndBehavior(), BUS_UNFOLD_MENU::memberEntries(), SIM_MODEL::MigrateSimModel(), SCH_CONNECTIVITY::NETCHAIN_MANAGER::NetKeyForItem(), SCH_FIELD::OnScintillaCharAdded(), PackSheet(), PackSymbol(), SCH_SHEET_PATH::PathHumanReadable(), PIN_LAYOUT_CACHE::PIN_LAYOUT_CACHE(), LIB_SYMBOL::Plot(), SCH_BUS_ENTRY_BASE::Plot(), SCH_FIELD::Plot(), SCH_JUNCTION::Plot(), SCH_LABEL_BASE::Plot(), SCH_LINE::Plot(), SCH_NO_CONNECT::Plot(), SCH_RULE_AREA::Plot(), SCH_SHAPE::Plot(), SCH_SHEET::Plot(), SCH_SYMBOL::Plot(), SCH_TABLE::Plot(), SCH_TEXT::Plot(), SCH_TEXTBOX::Plot(), SCH_SYMBOL::PlotPins(), SCH_PIN::PlotPinTexts(), SCH_PIN::PlotPinType(), publishedConnection(), SCH_COMMIT::pushSchEdit(), SCH_SYMBOL::resolveDelegatedPinMapOverride(), ResolveText(), ResolveText(), SCH_GLOBALLABEL::ResolveTextVar(), SCH_LABEL_BASE::ResolveTextVar(), SCH_SHEET::ResolveTextVar(), SCH_SYMBOL::ResolveTextVar(), SCH_SYMBOL::ResolveTextVar(), SCH_COMMIT::RevertToCheckpoint(), SCH_FIELD::SCH_FIELD(), SCH_EDIT_FRAME::SelectUnit(), SCH_SHEET::SetDNPProp(), SCH_SYMBOL::SetDNPProp(), SCH_SYMBOL::SetExcludedFromBoardProp(), SCH_SHEET::SetExcludedFromBOMProp(), SCH_SYMBOL::SetExcludedFromBOMProp(), SCH_SYMBOL::SetExcludedFromPosFilesProp(), SCH_SHEET::SetExcludedFromSimProp(), SCH_SYMBOL::SetExcludedFromSimProp(), SCH_SYMBOL::SetRef(), SCH_SYMBOL::SetRefProp(), SCH_SHEET_FIELD_PROPERTY::setter(), SCH_SYMBOL_FIELD_PROPERTY::setter(), SCH_SYMBOL_PIN_MAP_MODE_PROPERTY::setter(), SCH_SYMBOL_PIN_MAP_NAME_PROPERTY::setter(), SCH_SYMBOL::SetUnitProp(), SCH_SYMBOL::SetValueProp(), SCH_INSPECTION_TOOL::ShowDatasheet(), SCH_EDITOR_CONTROL::SimTune(), SCH_SYMBOL::SubReference(), SCH_SYMBOL::SyncOtherUnits(), ToProto(), DIALOG_TABLE_PROPERTIES::TransferDataFromWindow(), DIALOG_TABLE_PROPERTIES::TransferDataToWindow(), SCH_SHEET_PATH::UpdateAllScreenReferences(), DIALOG_FIELD_PROPERTIES::UpdateField(), DIALOG_FIELD_PROPERTIES::UpdateField(), SCH_PROPERTIES_PANEL::valueChanged(), and SCH_MARKER::ViewGetLayers().
|
overridevirtual |
Serializes this object to the given Any message.
The Any message's concrete type will be specific to the object in question.
| aContainer | will be filled with a message describing this object |
Reimplemented from SERIALIZABLE.
Definition at line 841 of file sch_symbol.cpp.
References Serialize().
Referenced by PackSymbol(), and Serialize().
| void SCH_SYMBOL::Serialize | ( | kiapi::schematic::types::SchematicSymbolInstance & | aSymbol | ) | const |
Definition at line 849 of file sch_symbol.cpp.
References AUTOPLACE_NONE, DATASHEET, DESCRIPTION, FOOTPRINT, SCH_ITEM::GetBodyStyle(), GetBodyStyleCount(), GetField(), GetFields(), SCH_ITEM::GetFieldsAutoplaced(), GetMirrorX(), GetMirrorY(), GetOrientationProp(), GetPassthroughMode(), SYMBOL::GetPinNameOffset(), GetPosition(), GetSchSymbolLibraryName(), GetShowPinNames(), GetShowPinNumbers(), SCH_ITEM::IsLocked(), m_part, EDA_ITEM::m_Uuid, kiapi::common::PackCustomProperties(), kiapi::common::PackDistance(), kiapi::common::PackLibId(), kiapi::common::PackVector2(), LIB_ID::Parse(), REFERENCE, schIUScale, SCH_FIELD::Serialize(), ToProtoEnum(), UseLibIdLookup(), and VALUE.
|
inherited |
Definition at line 48 of file inspectable_impl.h.
References PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_MANAGER::PropertyChanged(), PROPERTY_BASE::set(), T, TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inherited |
Definition at line 31 of file inspectable_impl.h.
References PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_MANAGER::PropertyChanged(), PROPERTY_BASE::set(), T, TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inherited |
Definition at line 28 of file inspectable.cpp.
References PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_MANAGER::PropertyChanged(), PROPERTY_BASE::setter(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
Referenced by KICAD_DIFF::ApplyPropertyResolutions(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_PROPERTIES_PANEL::valueChanged(), and SCH_PROPERTIES_PANEL::valueChanged().
|
inherited |
Definition at line 45 of file inspectable.cpp.
References PROPERTY_BASE::GetChoices(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_MANAGER::PropertyChanged(), PROPERTY_BASE::set(), TYPE_HASH, PROPERTY_MANAGER::TypeCast(), and PROPERTY_BASE::TypeHash().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 1337 of file sch_symbol.cpp.
References SCH_ITEM::m_bodyStyle, and UpdatePins().
Referenced by Deserialize(), SCH_IO_ALTIUM::ParseComponent(), SCH_EDIT_FRAME::SelectBodyStyle(), and SetBodyStyleProp().
|
inlineoverridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 544 of file sch_symbol.h.
References GetBodyStyleCount(), GetBodyStyleDescription(), and SetBodyStyle().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
inlineinherited |
Definition at line 151 of file eda_item.h.
References BRIGHTENED, and SetFlags().
Referenced by KICAD_DIFF::ConfigureSchDiffCanvasContext(), KIGFX::SCH_PAINTER::draw(), SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), PCB_BASE_FRAME::FocusOnItems(), PL_SELECTION_TOOL::highlight(), SCH_SELECTION_TOOL::highlight(), PCB_SELECTION_TOOL::highlightInternal(), and PCB_TEST_SELECTION_TOOL::highlightInternal().
|
inherited |
Update the connection graph for all connections in this item.
Definition at line 604 of file sch_item.cpp.
References CONNECTION_GRAPH, m_connection_map, and path.
Referenced by CONNECTION_GRAPH::Merge().
|
inherited |
Set the dirty flag.
Setting it also bumps the parent screen revision for a connectivity source, so an edit outside SCH_COMMIT can use this call. Clearing it does not bump. The bump follows the draw list check of invalidateConnectivity().
Definition at line 314 of file sch_item.cpp.
References invalidateConnectivity(), SCH_SCREEN::IsConnectivitySource(), m_connectivity_dirty, and EDA_ITEM::Type().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_LINE::BreakAt(), SCH_EDIT_TOOL::editFieldText(), SCH_MOVE_TOOL::getConnectedDragItems(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), SCH_IO_PADS::LoadSchematicFile(), SCH_LINE::NonGroupAware_BreakAt(), DIALOG_MIGRATE_BUSES::onAcceptClicked(), SCH_MOVE_TOOL::orthoLineDrag(), SCH_EDITOR_CONTROL::Paste(), SCH_EDIT_FRAME::PutDataInPreviousState(), SCH_CONNECTIVITY::FACADE::Recalculate(), SCH_COMMIT::RevertToCheckpoint(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), SCH_SYMBOL::SetPassthroughMode(), and SCH_SYMBOL::SetUnitSelection().
|
inlineinherited |
Definition at line 247 of file eda_item.h.
References m_customProperties, and SetCustomProperty().
Referenced by kiapi::common::UnpackCustomProperties().
|
inlineinherited |
Definition at line 255 of file eda_item.h.
References m_customProperties.
Referenced by SCH_PROPERTIES_PANEL::addBlankCustomProperty(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB_PROPERTIES_PANEL::onKeyRenamed(), SCH_PROPERTIES_PANEL::onKeyRenamed(), PCB_IO_KICAD_SEXPR_PARSER::parseCustomProperty(), SCH_IO_KICAD_SEXPR_PARSER::parseCustomProperty(), SetCustomProperties(), and EDA_CUSTOM_PROPERTY::setter().
|
overridevirtual |
Reimplemented from SYMBOL.
Definition at line 1907 of file sch_symbol.cpp.
References SYMBOL::m_DNP, VARIANT::m_DNP, and setVariantAttribute().
Referenced by BACK_ANNOTATE::applyChangelist(), applySymbolVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ORCAD_CONVERTER::placeInstance(), SetDNPProp(), and UnpackSymbol().
| void SCH_SYMBOL::SetDNPProp | ( | bool | aEnable | ) |
Definition at line 94 of file sch_symbol.cpp.
References SCH_ITEM::Schematic(), and SetDNP().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 2065 of file sch_symbol.cpp.
References VARIANT::m_ExcludedFromBoard, SYMBOL::m_excludedFromBoard, and setVariantAttribute().
Referenced by applySymbolVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EASYPC::SCH_BUILDER::buildSymbols(), ORCAD_CONVERTER::placeInstance(), SetExcludedFromBoardProp(), and UnpackSymbol().
| void SCH_SYMBOL::SetExcludedFromBoardProp | ( | bool | aEnable | ) |
Definition at line 130 of file sch_symbol.cpp.
References SCH_ITEM::Schematic(), and SetExcludedFromBoard().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
overridevirtual |
Set or clear the exclude from schematic bill of materials flag.
Reimplemented from SYMBOL.
Definition at line 2015 of file sch_symbol.cpp.
References VARIANT::m_ExcludedFromBOM, SYMBOL::m_excludedFromBOM, and setVariantAttribute().
Referenced by BACK_ANNOTATE::applyChangelist(), applySymbolVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), EASYPC::SCH_BUILDER::buildSymbols(), SetExcludedFromBOMProp(), and UnpackSymbol().
| void SCH_SYMBOL::SetExcludedFromBOMProp | ( | bool | aEnable | ) |
Definition at line 106 of file sch_symbol.cpp.
References SCH_ITEM::Schematic(), and SetExcludedFromBOM().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 2092 of file sch_symbol.cpp.
References VARIANT::m_ExcludedFromPosFiles, SYMBOL::m_excludedFromPosFiles, and setVariantAttribute().
Referenced by BACK_ANNOTATE::applyChangelist(), applySymbolVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SetExcludedFromPosFilesProp(), and UnpackSymbol().
| void SCH_SYMBOL::SetExcludedFromPosFilesProp | ( | bool | aEnable | ) |
Definition at line 142 of file sch_symbol.cpp.
References SCH_ITEM::Schematic(), and SetExcludedFromPosFiles().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
overridevirtual |
Set or clear the exclude from simulation flag.
Reimplemented from SYMBOL.
Definition at line 2040 of file sch_symbol.cpp.
References VARIANT::m_ExcludedFromSim, SYMBOL::m_excludedFromSim, and setVariantAttribute().
Referenced by BACK_ANNOTATE::applyChangelist(), applySymbolVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SetExcludedFromSimProp(), and UnpackSymbol().
| void SCH_SYMBOL::SetExcludedFromSimProp | ( | bool | aEnable | ) |
Definition at line 118 of file sch_symbol.cpp.
References SCH_ITEM::Schematic(), and SetExcludedFromSim().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
inlineinherited |
Definition at line 674 of file sch_item.h.
References m_fieldsAutoplaced.
Referenced by BOOST_AUTO_TEST_CASE(), SCH_SHEET::Deserialize(), SCH_SYMBOL::Deserialize(), SCH_EDIT_TOOL::JustifyText(), SCH_EDIT_TOOL::Mirror(), SCH_MOVE_TOOL::moveItem(), SCH_IO_KICAD_SEXPR_PARSER::parseSchText(), SCH_EDIT_TOOL::Rotate(), unpackLabel(), and DIALOG_FIELD_PROPERTIES::UpdateField().
| void SCH_SYMBOL::SetFieldText | ( | const wxString & | aFieldName, |
| const wxString & | aFieldText, | ||
| const SCH_SHEET_PATH * | aPath = nullptr, | ||
| const wxString & | aVariantName = wxEmptyString ) |
Definition at line 1614 of file sch_symbol.cpp.
References GetField(), SCH_FIELD::GetId(), getInstance(), SCH_FIELD::GetText(), GetVariantLibSymbol(), SCH_SYMBOL_VARIANT::InitializeAttributes(), SCH_ITEM::invalidateConnectivity(), SCH_ITEM::LIB_SYMBOL, VARIANT::m_Fields, SCH_SYMBOL_INSTANCE::m_Variants, REFERENCE, SetRef(), and SCH_FIELD::SetText().
Referenced by applySymbolVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_FIELD::SetText(), and DIALOG_FIELD_PROPERTIES::UpdateField().
|
inlineinherited |
Definition at line 158 of file eda_item.h.
References m_flags.
Referenced by SCH_IO_EAGLE::addBusEntries(), PCB_BASE_FRAME::AddFootprintToBoard(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), SCH_IO_ALTIUM::AddTextBox(), AlignSchematicItemsToGrid(), BACK_ANNOTATE::applyChangelist(), PCB_CONTROL::ApplyDesignBlockLayout(), BOARD_BOUNDING_BOX::BOARD_BOUNDING_BOX(), BOARD_BOUNDING_BOX::BOARD_BOUNDING_BOX(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_LINE_WIRE_BUS_TOOL::BreakSegment(), FOOTPRINT::BuildCourtyardCaches(), PCB_VIA_STACK::BuildMembers(), SCH_EDIT_TOOL::ChangeTextType(), GRAPHICS_CLEANER::cleanupShapes(), ConnectBoardShapes(), SCH_IO_ALTIUM::CreateAliases(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateBusWires(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateHierarchicalSheet(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateHierLabel(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateJunctions(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateNetLabels(), PCB_TUNING_PATTERN::CreateNew(), SCH_DRAWING_TOOLS::createNewLabel(), SCH_DRAWING_TOOLS::createNewText(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateWires(), SCH_EDIT_FRAME::DeleteJunction(), doConvertOutlineToPolygon(), SCH_EDIT_TOOL::DoDelete(), SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), PCB_TOOL_BASE::doInteractiveItemPlacement(), EDIT_TOOL::doMoveSelection(), SCH_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), DRAWING_TOOL::DrawBarcode(), DRAWING_TOOL::DrawLine(), DRAWING_TOOL::DrawRectangle(), DRAWING_TOOL::drawShape(), SCH_DRAWING_TOOLS::DrawSheet(), EDIT_TOOL::Duplicate(), PCB_TUNING_PATTERN::EditStart(), PCB_VIA_STACK::EditStart(), PCB_VIA_STITCH::EditStart(), SCH_SELECTION_TOOL::EnterGroup(), PAD_TOOL::explodePad(), SCH_MOVE_TOOL::getConnectedDragItems(), SYMBOL_EDIT_FRAME::GetSymbolFromRedoList(), SYMBOL_EDIT_FRAME::GetSymbolFromUndoList(), SCH_SELECTION_TOOL::GuessSelectionCandidates(), SCH_DRAWING_TOOLS::ImportSheet(), SCH_COLLECTOR::Inspect(), SCH_IO_PADS::LoadSchematicFile(), BOARD_COMMIT::MakeImage(), CONVERT_TOOL::makePolysFromChainedSegs(), CONVERT_TOOL::makePolysFromClosedGraphics(), CONVERT_TOOL::makePolysFromOpenGraphics(), SCH_SCREEN::MarkConnections(), TRACKS_CLEANER::mergeCollinearSegments(), SCH_MOVE_TOOL::moveItem(), SYMBOL_EDITOR_MOVE_TOOL::moveItem(), ROUTER_TOOL::onViaStackCommand(), KIGFX::ORIGIN_VIEWITEM::ORIGIN_VIEWITEM(), SCH_MOVE_TOOL::orthoLineDrag(), SCH_IO_ALTIUM::ParseBezier(), SCH_IO_ALTIUM::ParseBus(), SCH_IO_ALTIUM::ParseBusEntry(), SCH_IO_ALTIUM::ParseHarnessEntry(), SCH_IO_ALTIUM::ParseJunction(), SCH_IO_ALTIUM::ParseLabel(), SCH_IO_ALTIUM::ParseLine(), SCH_IO_ALTIUM::ParseNetLabel(), SCH_IO_ALTIUM::ParseNoERC(), SCH_IO_ALTIUM::ParsePieChart(), SCH_IO_ALTIUM::ParsePolygon(), SCH_IO_ALTIUM::ParsePolyline(), SCH_IO_ALTIUM::ParsePortHelper(), SCH_IO_ALTIUM::ParseRectangle(), SCH_IO_ALTIUM::ParseRoundRectangle(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), SCH_IO_ALTIUM::ParseSheetSymbol(), SCH_IO_ALTIUM::ParseSignalHarness(), SCH_IO_ALTIUM::ParseWire(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), PCB_BOARD_OUTLINE::PCB_BOARD_OUTLINE(), BOARD_EDITOR_CONTROL::PlaceFootprint(), PL_DRAWING_TOOLS::PlaceItem(), DRAWING_TOOL::PlaceMicroviaStack(), SCH_SYMBOL::Plot(), PlotFootprintToSVG(), SCH_MOVE_TOOL::prepareMoveOperation(), SCH_MOVE_TOOL::preprocessBreakOrSliceSelection(), BACK_ANNOTATE::processNetNameChange(), BOARD_COMMIT::Push(), SYMBOL_EDIT_FRAME::PushSymbolToUndoList(), SYMBOL_EDITOR_TABS_TEST_FIXTURE::pushTransientCommand(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), SCH_EDIT_FRAME::PutDataInPreviousState(), PCB_SELECTION_TOOL::RebuildSelection(), GERBVIEW_FRAME::RemapLayers(), BOARD::Remove(), FOOTPRINT::Remove(), PCB_TUNING_PATTERN::Remove(), SCH_COMMIT::RemovedForCleanup(), SCH_EDIT_TOOL::RepeatDrawItem(), SCH_EDIT_TOOL::Rotate(), DRC_TEST_PROVIDER_DISALLOW::Run(), ISSUE22864_FIXTURE::RunAlignmentAndVerify(), ISSUE22864_FIXTURE::RunAlignmentAndVerifyNoSkew(), DRAWING_TOOL::runSimpleShapeDraw(), SCH_EDIT_FRAME::SaveCopyInUndoList(), CLIPBOARD_IO::SaveSelection(), SCH_IO_KICAD_SEXPR::saveTable(), PCB_SELECTION_TOOL::selectAllConnectedShapes(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), SCH_SELECTION_TOOL::SelectMultiple(), SetBrightened(), SetIsShownAsBitmap(), SetModified(), SetSelected(), PCB_VIA::SetSizeFromRules(), SCH_DRAWING_TOOLS::SingleClickPlace(), SCH_LINE_WIRE_BUS_TOOL::startSegments(), SCH_ITEM::SwapFlags(), DS_DATA_ITEM::SyncDrawItems(), DS_DATA_ITEM_BITMAP::SyncDrawItems(), SCH_DRAWING_TOOLS::TwoClickPlace(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), SCH_SHAPE::UpdateHatching(), and ROUTER_TOOL::updateSizesAfterRouterEvent().
| void SCH_SYMBOL::SetFootprintFieldText | ( | const wxString & | aFootprint | ) |
Definition at line 2213 of file sch_symbol.cpp.
References FOOTPRINT, GetField(), and SCH_FIELD::SetText().
Referenced by BACK_ANNOTATE::applyChangelist(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::ApplyPartAttributes(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), DIPTRACE::SCH_PARSER::createSymbolInstance(), SCH_IO_ALTIUM::ParseImplementation(), ORCAD_CONVERTER::placeSymbolFields(), SCH_EDITOR_CONTROL::processCmpToFootprintLinkFile(), SCH_FOOTPRINT_FIELD_RECONCILER::Reconcile(), and SCH_SHEET_LIST::UpdateSymbolInstanceData().
|
inlineinherited |
Definition at line 162 of file view_item.h.
References m_forcedTransparency.
Referenced by FOOTPRINT_DIFF_WIDGET::onSlider(), EDA_ITEM::operator=(), and LIB_SYMBOL::SetParent().
|
inlineinherited |
Set and clear force visible flag used to force the item to be drawn even if it's draw attribute is set to not visible.
| aEnable | True forces the item to be drawn. False uses the item's visibility setting to determine if the item is to be drawn. |
Definition at line 232 of file eda_item.h.
References m_forceVisible.
Referenced by SCH_FIND_REPLACE_TOOL::FindNext(), and SCH_FIND_REPLACE_TOOL::UpdateFind().
| bool SCH_SYMBOL::SetInstanceProjectName | ( | const KIID_PATH & | aSheetPath, |
| const wxString & | aProjectName ) |
Set the owning project of the instance stored for aSheetPath.
| aSheetPath | is the full sheet path of the instance to reassign. |
| aProjectName | is the name of the project that now owns the instance. |
Definition at line 3459 of file sch_symbol.cpp.
References getInstance(), and SCH_SYMBOL_INSTANCE::m_ProjectName.
Referenced by PrunePastedSymbolInstances().
|
inlineinherited |
Definition at line 144 of file eda_item.h.
References m_isRollover, and m_rolloverPos.
Referenced by SCH_SELECTION_TOOL::Main().
|
inlineinherited |
Definition at line 198 of file eda_item.h.
References ClearFlags(), IS_SHOWN_AS_BITMAP, and SetFlags().
|
inlinevirtualinherited |
Reimplemented in SCH_BUS_ENTRY_BASE, SCH_FIELD, SCH_JUNCTION, SCH_LABEL_BASE, and SCH_LINE.
Definition at line 666 of file sch_item.h.
References SCH_ITEM().
Referenced by SCH_EDITOR_CONTROL::Paste().
|
inlineinherited |
Definition at line 354 of file sch_item.h.
References m_layer.
Referenced by SCH_LINE_WIRE_BUS_TOOL::AddJunction(), PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems(), SCH_IO_LTSPICE_PARSER::CreateWire(), LIB_SYMBOL::Deserialize(), SCH_BUS_ENTRY_BASE::Deserialize(), SCH_LINE::Deserialize(), SCH_MOVE_TOOL::getConnectedDragItems(), CADSTAR_SCH_ARCHIVE_LOADER::loadBusses(), SCH_IO_EAGLE::loadFrame(), CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), CADSTAR_SCH_ARCHIVE_LOADER::loadShapeVertices(), JUNCTION_HELPERS::PreviewJunctions(), SCH_GROUP::SCH_GROUP(), SCH_GROUP::SCH_GROUP(), SCH_GROUP::SCH_GROUP(), SCH_NO_CONNECT::SCH_NO_CONNECT(), SCH_RULE_AREA::SCH_RULE_AREA(), SCH_SHAPE::SCH_SHAPE(), SCH_TABLE::SCH_TABLE(), and SCH_FIELD::setId().
| void SCH_SYMBOL::SetLibId | ( | const LIB_ID & | aName | ) |
Definition at line 1079 of file sch_symbol.cpp.
References m_lib_id.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_SCREENS::ChangeSymbolLibNickname(), TEST_ANNOTATION_UNITS_CONFLICTS::createTestReference(), TEST_ANNOTATION_UNITS_INTEGRATION::createTestReference(), TEST_REFDES_TRACKER_UNITS::createTestReference(), ORCAD_CONVERTER::finalizeNativePowerPackages(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), SCH_IO_CADSTAR_ARCHIVE::LoadSchematicFile(), SCH_IO_PADS::LoadSchematicFile(), SCH_IO_ALTIUM::ParseComponent(), SCH_IO_ALTIUM::ParsePowerPort(), ReconcileLegacyCacheSymbols(), and DIALOG_SYMBOL_REMAP::remapSymbolToLibTable().
| void SCH_SYMBOL::SetLibSymbol | ( | LIB_SYMBOL * | aLibSymbol | ) |
Set this schematic symbol library symbol reference to aLibSymbol.
The schematic symbol object owns aLibSymbol and the pin list will be updated accordingly. The LIB_SYMBOL object can be null to clear the library symbol link as well as the pin map. If the LIB_SYMBOL object is not null, it must be a root symbol. Otherwise an assertion will be raised in debug builds and the library symbol will be cleared. The new file format will no longer require a cache library so all library symbols must be valid.
| aLibSymbol | is the library symbol to associate with this schematic symbol. |
Definition at line 1094 of file sch_symbol.cpp.
References LIB_SYMBOL::IsRoot(), SCH_ITEM::LIB_SYMBOL, m_part, m_pins, m_variantSymbolCache, pin, and UpdatePins().
Referenced by SCH_SCREEN::Append(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EASYPC::SCH_BUILDER::buildSymbols(), DIPTRACE::SCH_PARSER::createSymbolInstance(), Deserialize(), ORCAD_CONVERTER::finalizeNativePowerPackages(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), SCH_IO_PADS::LoadSchematicFile(), SCH_IO_ALTIUM::ParsePowerPort(), SCH_EDITOR_CONTROL::Paste(), and SCH_SYMBOL().
|
inlineoverridevirtualinherited |
Reimplemented from EDA_ITEM.
Definition at line 262 of file sch_item.h.
References m_isLocked.
Referenced by SCH_BITMAP::Deserialize(), SCH_BUS_ENTRY_BASE::Deserialize(), SCH_JUNCTION::Deserialize(), SCH_LINE::Deserialize(), SCH_NO_CONNECT::Deserialize(), SCH_RULE_AREA::Deserialize(), SCH_SHAPE::Deserialize(), SCH_SHEET::Deserialize(), SCH_SHEET_PIN::Deserialize(), SCH_SYMBOL::Deserialize(), SCH_TABLE::Deserialize(), SCH_TEXT::Deserialize(), SCH_TEXTBOX::Deserialize(), SCH_GROUP::DeserializeGroup(), SCH_IO_KICAD_SEXPR_PARSER::parseEllipseBody(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), SCH_IO_KICAD_SEXPR_PARSER::parseSchTextBoxContent(), SCH_EDITOR_CONTROL::Paste(), SCH_ITEM_DESC::SCH_ITEM_DESC(), and unpackLabel().
|
inline |
Definition at line 322 of file sch_symbol.h.
References GetOrientation(), SetOrientation(), and SYM_MIRROR_X.
Referenced by Deserialize(), and SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
inline |
Definition at line 339 of file sch_symbol.h.
References GetOrientation(), SetOrientation(), and SYM_MIRROR_Y.
Referenced by Deserialize(), and SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
inherited |
Definition at line 260 of file eda_item.cpp.
References IS_CHANGED, m_parent, and SetFlags().
Referenced by PCB_EDIT_FRAME::OpenProjectFiles(), SCH_IO_ALTIUM::ParseASCIISchematic(), and SCH_IO_ALTIUM::ParseFileHeader().
|
inlinenoexcept |
Definition at line 866 of file sch_symbol.h.
References m_signalName.
Referenced by SCH_CONNECTIVITY::NETCHAIN_MANAGER::setSymbolName().
|
inherited |
Definition at line 131 of file eda_item.cpp.
References m_netHighlighted.
Referenced by KIGFX::SCH_PAINTER::draw(), and setNetHighlight().
| void SCH_SYMBOL::SetOrientation | ( | int | aOrientation | ) |
Compute the new transform matrix based on aOrientation for the symbol which is applied to the current transform.
| aOrientation | is the orientation to apply to the transform. |
Definition at line 3471 of file sch_symbol.cpp.
References SYMBOL::m_transform, SetOrientation(), SYM_MIRROR_X, SYM_MIRROR_Y, SYM_NORMAL, SYM_ORIENT_0, SYM_ORIENT_180, SYM_ORIENT_270, SYM_ORIENT_90, SYM_ROTATE_CLOCKWISE, SYM_ROTATE_COUNTERCLOCKWISE, TRANSFORM::x1, TRANSFORM::x2, TRANSFORM::y1, and TRANSFORM::y2.
Referenced by BOOST_AUTO_TEST_CASE(), SCH_IO_LTSPICE_PARSER::CreatePowerSymbol(), GetOrientation(), ORCAD_CONVERTER::instantiateSymbol(), SCH_IO_PADS::LoadSchematicFile(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbol(), SCH_EDIT_TOOL::Mirror(), MirrorHorizontally(), MirrorVertically(), SCH_IO_ALTIUM::ParseComponent(), SCH_IO_ALTIUM::ParsePowerPort(), Rotate(), SCH_IO_LTSPICE_PARSER::RotateMirror(), SetMirrorX(), SetMirrorY(), SetOrientation(), SetOrientationProp(), and SCH_EDIT_TOOL::Swap().
|
inline |
Orientation/mirroring access for property manager.
Definition at line 296 of file sch_symbol.h.
References GetOrientation(), SetOrientation(), SYM_MIRROR_X, and SYM_MIRROR_Y.
Referenced by Deserialize(), and SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
virtualinherited |
Reimplemented in LIB_SYMBOL, NETINFO_ITEM, and PCB_POINT.
Definition at line 153 of file eda_item.cpp.
References EDA_ITEM(), and m_parent.
Referenced by BOARD::Add(), FOOTPRINT::Add(), PCB_TABLE::AddCell(), SCH_TABLE::AddCell(), LIB_SYMBOL::AddDrawItem(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), BOARD_NETLIST_UPDATER::addNewFootprint(), SCH_SHEET::AddPin(), PAD::AddPrimitive(), SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), SCHEMATIC::AddTopLevelSheet(), SCH_SCREEN::Append(), PADSTACK::AppendPrimitives(), KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), CONNECTION_GRAPH::boost_test_update_generic_connectivity, CONNECTION_GRAPH::boost_test_update_symbol_connectivity, CADSTAR_SCH_ARCHIVE_LOADER::copySymbolItems(), SPRINT_LAYOUT_PARSER::CreateBoard(), FOOTPRINT_EDITOR_CONTROL::CreateFootprintFromWizard(), CreateGeneratorForType(), SCH_DRAWING_TOOLS::createNewLabel(), SCH_DRAWING_TOOLS::createNewText(), PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems(), LIB_SYMBOL_LIBRARY_MANAGER::CreateSymbol(), FIELDS_GRID_TABLE::DetachFields(), FOOTPRINT_EDITOR_CONTROL::editFootprintPropertiesFromLibrary(), SCHEMATIC::ensureVirtualRoot(), FOOTPRINT_LIBRARY_ADAPTER::enumerateLibrary(), BOARD::ExchangeFootprint(), PAD_TOOL::explodePad(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), LIB_SYMBOL::Flatten(), PCB_IO_KICAD_SEXPR::FootprintSave(), DISPLAY_FOOTPRINTS_FRAME::GetFootprint(), CADSTAR_SCH_ARCHIVE_LOADER::getKiCadSchText(), API_HANDLER_BOARD::handleCreateUpdateItemsInternal(), API_HANDLER_SYMBOL::handleCreateUpdateItemsInternal(), PCB_TABLE::InsertCell(), SCH_TABLE::InsertCell(), LIB_SYMBOL::LIB_SYMBOL(), LTSPICE_SCHEMATIC::Load(), SCH_IO_KICAD_LEGACY_LIB_CACHE::loadAliases(), PCB_IO_GEDA::loadBoard(), CADSTAR_SCH_ARCHIVE_LOADER::loadChildSheets(), SCH_IO_KICAD_LEGACY::loadHierarchy(), SCH_IO_KICAD_SEXPR::loadHierarchy(), SCH_IO_DATABASE::loadSymbolFromRow(), SCH_IO_EAGLE::loadSymbolPolyLine(), SCH_IO_EAGLE::loadSymbolRectangle(), SCH_IO_EAGLE::loadSymbolWire(), FOOTPRINT_EDITOR_CONTROL::NewFootprint(), PCB_POINT_EDITOR::OnSelectionChange(), LIB_SYMBOL::operator=(), SCH_IO_KICAD_SEXPR_PARSER::parseLibSymbol(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), PCB_CONTROL::Paste(), SCH_EDITOR_CONTROL::Paste(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), pasteFootprintItemsToFootprintEditor(), BOARD_EDITOR_CONTROL::PlaceFootprint(), DRAWING_TOOL::PlaceMicroviaStack(), PlaceRemoteDownloadedSymbol(), PlotFootprintToSVG(), FOOTPRINT_EDIT_FRAME::prepareFootprintTabHandoff(), BACK_ANNOTATE::processNetNameChange(), KI_TEST::ReadSchematicFromStream(), PAD::Recombine(), FOOTPRINT_EDIT_FRAME::RefreshLibraryFootprintTab(), SCH_IO_LIB_CACHE::removeSymbol(), SCH_EDIT_TOOL::RepeatDrawItem(), FOOTPRINT_LIBRARY_ADAPTER::SaveFootprint(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), CLIPBOARD_IO::SaveSelection(), SCH_EDIT_FRAME::SaveSelectionAsDesignBlock(), SCH_SHEET_PIN::SCH_SHEET_PIN(), FIELDS_GRID_TABLE::SetFieldInherited(), LIB_SYMBOL::SetFields(), PCB_POINT::SetParent(), SCH_DRAWING_TOOLS::SingleClickPlace(), SCH_LINE_WIRE_BUS_TOOL::startSegments(), FOOTPRINT::swapData(), PCB_BARCODE::swapData(), PCB_TABLE::swapData(), SCH_LABEL_BASE::swapData(), SCH_SHEET::swapData(), SCH_SYMBOL::swapData(), SCH_TABLE::swapData(), BOARD_ITEM::SwapItemData(), SCH_ITEM::SwapItemData(), SCH_SYMBOL::SyncOtherUnits(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), SCH_DRAWING_TOOLS::TwoClickPlace(), SCH_EDIT_FRAME::UpdateDesignBlockFromSelection(), FOOTPRINT::UpdateFields(), and PCB_IO_SPRINT_LAYOUT::~PCB_IO_SPRINT_LAYOUT().
|
inlinevirtualinherited |
Definition at line 115 of file eda_item.h.
References m_group.
Referenced by EDA_GROUP::AddItem(), KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), BOOST_AUTO_TEST_CASE(), MULTICHANNEL_TOOL::copyRuleAreaContents(), FOOTPRINT_LIBRARY_ADAPTER::enumerateLibrary(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), PCB_IO_KICAD_SEXPR::FootprintSave(), GENDRILL_WRITER_BASE::genDrillMapFile(), SCH_SYMBOL::GetOrientation(), API_HANDLER_BOARD::handleCreateUpdateItemsInternal(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), EDA_GROUP::RemoveItem(), FOOTPRINT_LIBRARY_ADAPTER::SaveFootprint(), CLIPBOARD_IO::SaveSelection(), PCB_EDIT_FRAME::saveSelectionToDesignBlock(), PCB_GROUP::swapChildOwnership(), SCH_GROUP::swapData(), and BOARD_ITEM::SwapItemData().
|
inline |
Definition at line 856 of file sch_symbol.h.
References m_passthroughMode, and SCH_ITEM::SetConnectivityDirty().
Referenced by BOOST_AUTO_TEST_CASE(), and Deserialize().
| void SCH_SYMBOL::SetPinMapOverride | ( | const PIN_MAP_INSTANCE_OVERRIDE & | aOverride, |
| const SCH_SHEET_PATH * | aInstance = nullptr, | ||
| const wxString & | aVariantName = wxEmptyString ) |
Set the per-instance pin-to-pad map override (issue #2282).
Mirrors SetDNP: with no sheet/variant the base override is set; otherwise the override is stored on the variant record for the sheet path.
Definition at line 1930 of file sch_symbol.cpp.
References AddVariant(), getInstance(), SCH_SYMBOL_VARIANT::InitializeAttributes(), PIN_MAP_INSTANCE_OVERRIDE::IsDefault(), SCH_SYMBOL_VARIANT::m_PinMapOverride, m_pinMapOverride, SCH_SYMBOL_INSTANCE::m_Variants, and SCH_SHEET_PATH::PathHumanReadable().
Referenced by applySymbolVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PIN_MAP_OVERRIDE_FIXTURE::placeSymbol(), SCH_SYMBOL_PIN_MAP_MODE_PROPERTY::setter(), SCH_SYMBOL_PIN_MAP_NAME_PROPERTY::setter(), and UnpackSymbol().
|
inlineinherited |
Set the offset in mils of the pin name text from the pin symbol.
Set the offset to 0 to draw the pin name above the pin symbol.
| aOffset | - The offset in mils. |
Definition at line 162 of file symbol.h.
References m_pinNameOffset.
Referenced by BOOST_AUTO_TEST_CASE(), PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems(), LIB_SYMBOL::Deserialize(), SCH_SYMBOL::Deserialize(), LIB_SYMBOL_DESC::LIB_SYMBOL_DESC(), and LIB_SYMBOL::SetPinNamesInsideProp().
|
inlineoverridevirtual |
Reimplemented from EDA_ITEM.
Definition at line 896 of file sch_symbol.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), Deserialize(), SCH_IO_PADS::LoadSchematicFile(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbol(), SCH_IO_ALTIUM::ParseComponent(), SCH_IO_ALTIUM::ParsePowerPort(), ORCAD_CONVERTER::placePowerSymbol(), SetX(), and SetY().
|
inline |
Definition at line 239 of file sch_symbol.h.
References m_prefix.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), and UpdatePrefix().
|
inlineinherited |
Definition at line 252 of file symbol.h.
References m_previewBodyStyle.
|
inlineinherited |
Definition at line 251 of file symbol.h.
References m_previewUnit.
|
inlineinherited |
Definition at line 258 of file sch_item.h.
References m_private.
Referenced by SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), BOOST_AUTO_TEST_CASE(), LIB_SYMBOL::Deserialize(), SCH_FIELD::Deserialize(), DIALOG_CHANGE_SYMBOLS::processSymbols(), SCH_ITEM_DESC::SCH_ITEM_DESC(), FIELDS_GRID_TABLE::SetValue(), FIELDS_GRID_TABLE::SetValueAsBool(), and SCH_SYMBOL::UpdateFields().
| void SCH_SYMBOL::SetRef | ( | const SCH_SHEET_PATH * | aSheet, |
| const wxString & | aReference ) |
Set the reference for the given sheet path for this symbol.
| aSheet | is the hierarchical path of the reference. |
| aReference | is the new reference for the symbol. |
Definition at line 1579 of file sch_symbol.cpp.
References AddHierarchicalReference(), GetField(), UTIL::GetRefDesPrefix(), SCH_FIELD::GetText(), SCH_ITEM::invalidateConnectivity(), m_doNetlist, m_instancePathIndex, m_instances, m_pins, m_prefix, SCH_ITEM::m_unit, SCH_SHEET_PATH::Path(), path, pin, REFERENCE, SCH_ITEM::Schematic(), and SCH_FIELD::SetText().
Referenced by BACK_ANNOTATE::applyChangelist(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::ApplyPartAttributes(), ApplySymbolInstance(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CONNECTION_GRAPH::boost_test_update_generic_connectivity, EASYPC::SCH_BUILDER::buildSymbols(), SCH_IO_LTSPICE_PARSER::CreateFields(), SCH_IO_LTSPICE_PARSER::CreatePowerSymbol(), DIPTRACE::SCH_PARSER::createSymbolInstance(), SCH_IO_PADS::LoadSchematicFile(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbol(), RESOLVE_DRIVERS_FIXTURE::MakePin(), SCH_IO_ALTIUM::NormalizeRepeatedSheetInstances(), SCH_IO_ALTIUM::ParseDesignator(), SCH_IO_ALTIUM::ParsePowerPort(), ORCAD_CONVERTER::placeInstance(), ORCAD_CONVERTER::placePowerSymbol(), SCH_EDIT_FRAME::PutDataInPreviousState(), SCH_FIELD::Replace(), SCH_COMMIT::RevertToCheckpoint(), SCH_REFERENCE::SCH_REFERENCE(), SCH_SYMBOL(), SCHEMATIC::SCHEMATIC(), SetFieldText(), SetRefProp(), DIALOG_FIELD_PROPERTIES::UpdateField(), and UpdateFields().
| void SCH_SYMBOL::SetRefProp | ( | const wxString & | aRef | ) |
Definition at line 1563 of file sch_symbol.cpp.
References REFERENCE, SCH_ITEM::Schematic(), SetRef(), and validator.
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC(), and SCH_PROPERTIES_PANEL::valueChanged().
|
inline |
The name of the symbol in the schematic library symbol list.
The name of the schematic symbol list entry can vary from the item name in the LIB_ID object because the library symbol may have changed so a new name has to be generated but the original symbol library link has to be preserved in order to update it from the library at some point in the future. If this name is empty, then the library item name from LIB_ID is used.
Definition at line 178 of file sch_symbol.h.
References m_schLibSymbolName.
Referenced by SCH_SCREEN::Append(), Deserialize(), ORCAD_CONVERTER::finalizeNativePowerPackages(), and API_HANDLER_SCH::handleCreateUpdateItemsInternal().
|
inlineinherited |
Definition at line 150 of file eda_item.h.
References SELECTED, and SetFlags().
Referenced by BOOST_AUTO_TEST_CASE(), PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems(), KIGFX::SCH_PAINTER::draw(), PL_SELECTION_TOOL::highlight(), SCH_SELECTION_TOOL::highlight(), PCB_SELECTION_TOOL::highlightInternal(), PCB_TEST_SELECTION_TOOL::highlightInternal(), SCH_LINE::MergeOverlap(), DRAWING_TOOL::PlaceSubGrid(), DS_PROXY_UNDO_ITEM::Restore(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), GERBVIEW_SELECTION_TOOL::selectVisually(), and SCH_COMMIT::Stage().
|
overridevirtual |
Set or clear the pin name visibility flag.
Reimplemented from SYMBOL.
Definition at line 4697 of file sch_symbol.cpp.
References m_part.
Referenced by Deserialize().
|
overridevirtual |
Set or clear the pin number visibility flag.
Reimplemented from SYMBOL.
Definition at line 4710 of file sch_symbol.cpp.
References m_part.
Referenced by Deserialize().
|
inlineinherited |
Definition at line 315 of file sch_item.h.
References m_storedPos.
Referenced by SCH_MOVE_TOOL::prepareMoveOperation(), and SCH_MOVE_TOOL::updateStoredPositions().
|
inlinevirtualinherited |
Reimplemented in SCH_BUS_ENTRY_BASE, SCH_LINE, and SCH_SHAPE.
Definition at line 693 of file sch_item.h.
Referenced by DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem().
|
inlineinherited |
Definition at line 249 of file symbol.h.
References m_transform.
Referenced by EASYPC::SCH_BUILDER::buildSymbols().
|
inlinevirtualinherited |
Definition at line 242 of file sch_item.h.
References m_unit.
Referenced by SCH_IO_ALTIUM::AddLibTextBox(), addOrcadSymbolHatch(), ORCAD_CONVERTER::addSymbolArc(), ORCAD_CONVERTER::addSymbolPin(), ORCAD_CONVERTER::addSymbolPrimitive(), EE_GRAPHIC_TOOL::applySymbolEditorFlags(), ApplySymbolInstance(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), PADS_SCH::PADS_SCH_SYMBOL_BUILDER::BuildMultiUnitConnectorSymbol(), PADS_SCH::PADS_SCH_SYMBOL_BUILDER::BuildMultiUnitSymbol(), CADSTAR_SCH_ARCHIVE_LOADER::copySymbolItems(), SYMBOL_EDITOR_PIN_TOOL::CreateImagePins(), PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems(), PADS_SCH::PADS_SCH_SYMBOL_BUILDER::createSymbolText(), LIB_SYMBOL::Deserialize(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), SYMBOL_EDITOR_EDIT_TOOL::ExplodeStackedPin(), ORCAD_CONVERTER::finalizeNativePowerPackages(), SCH_IO_KICAD_LEGACY_LIB_CACHE::loadArc(), SCH_IO_KICAD_LEGACY_LIB_CACHE::loadBezier(), CADSTAR_SCH_ARCHIVE_LOADER::loadLibrarySymbolShapeVertices(), SCH_IO_KICAD_LEGACY_LIB_CACHE::loadPolyLine(), SCH_IO_KICAD_LEGACY_LIB_CACHE::loadRect(), SCH_IO_PADS::LoadSchematicFile(), CADSTAR_SCH_ARCHIVE_LOADER::loadSymbolGateAndPartFields(), SCH_IO_EAGLE::loadSymbolPolyLine(), SCH_IO_EAGLE::loadSymbolRectangle(), SCH_IO_EAGLE::loadSymbolWire(), CADSTAR_SCH_ARCHIVE_LOADER::loadSymdef(), SCH_IO_KICAD_LEGACY_LIB_CACHE::loadText(), DIALOG_LIB_EDIT_PIN_TABLE::OnAddRow(), SCH_IO_ALTIUM::ParseArc(), SCH_IO_ALTIUM::ParseBezier(), SCH_IO_ALTIUM::ParseComponent(), SCH_IO_ALTIUM::ParseEllipse(), SCH_IO_ALTIUM::ParseEllipticalArc(), SCH_IO_ALTIUM::ParseLabel(), SCH_IO_ALTIUM::ParseLine(), SCH_IO_ALTIUM::ParsePieChart(), SCH_IO_ALTIUM::ParsePolygon(), SCH_IO_ALTIUM::ParsePolyline(), SCH_IO_ALTIUM::ParseRectangle(), SCH_IO_ALTIUM::ParseRoundRectangle(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), SCH_DRAWING_TOOLS::PlaceSymbol(), ISSUE24107_FIXTURE::placeUnit(), CONNECTION_GRAPH::Recalculate(), SCH_EDIT_FRAME::SelectUnit(), SCH_SYMBOL::SetUnitProp(), PIN_TABLE_DATA_MODEL::SetValue(), SCH_SHEET_PATH::UpdateAllScreenReferences(), DIALOG_FIELD_PROPERTIES::UpdateField(), SCH_EDITOR_CONTROL::updatePastedSymbol(), and PIN_INFO_FORMATTER::UpdatePin().
| void SCH_SYMBOL::SetUnitProp | ( | int | aUnit | ) |
Definition at line 81 of file sch_symbol.cpp.
References SCH_ITEM::Schematic(), SCH_ITEM::SetUnit(), and SetUnitSelection().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
| void SCH_SYMBOL::SetUnitSelection | ( | const SCH_SHEET_PATH * | aSheet, |
| int | aUnitSelection ) |
Set the selected unit of this symbol on one sheet.
Definition at line 1852 of file sch_symbol.cpp.
References AddHierarchicalReference(), UTIL::GetRefDesUnannotated(), SCH_ITEM::invalidateConnectivity(), m_instancePathIndex, m_instances, m_prefix, SCH_SHEET_PATH::Path(), and path.
Referenced by ApplySymbolInstance(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), ORCAD_CONVERTER::finalizeNativePowerPackages(), ORCAD_CONVERTER::placeInstance(), ORCAD_CONVERTER::placePowerSymbol(), SCH_DRAWING_TOOLS::PlaceSymbol(), ISSUE24107_FIXTURE::placeUnit(), SCH_EDIT_FRAME::SelectUnit(), SetUnitProp(), and DIALOG_FIELD_PROPERTIES::UpdateField().
| void SCH_SYMBOL::SetUnitSelection | ( | int | aUnitSelection | ) |
Set the selected unit of this symbol for all sheets.
Definition at line 2119 of file sch_symbol.cpp.
References m_instances, and SCH_ITEM::SetConnectivityDirty().
|
virtualinherited |
Definition at line 247 of file sch_item.cpp.
References _HKI, GetParentSymbol(), and m_unit.
Referenced by SCH_ITEM_DESC::SCH_ITEM_DESC().
| void SCH_SYMBOL::SetValueFieldText | ( | const wxString & | aValue, |
| const SCH_SHEET_PATH * | aInstance = nullptr, | ||
| const wxString & | aVariantName = wxEmptyString ) |
Definition at line 2175 of file sch_symbol.cpp.
References GetField(), getInstance(), SCH_FIELD::GetName(), SCH_SYMBOL_VARIANT::InitializeAttributes(), VARIANT::m_Fields, SCH_SYMBOL_INSTANCE::m_Variants, SCH_FIELD::SetText(), and VALUE.
Referenced by BACK_ANNOTATE::applyChangelist(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::ApplyPartAttributes(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), CONNECTION_GRAPH::boost_test_update_symbol_connectivity, EASYPC::SCH_BUILDER::buildSymbols(), SCH_IO_LTSPICE_PARSER::CreateFields(), SCH_IO_LTSPICE_PARSER::CreatePowerSymbol(), SCH_SCREEN::FixLegacyPowerSymbolMismatches(), SCH_IO_PADS::LoadSchematicFile(), SCH_IO_ALTIUM::ParsePowerPort(), ORCAD_CONVERTER::placePowerSymbol(), ORCAD_CONVERTER::placeSymbolFields(), SetValueProp(), UpdateFields(), and SCH_SHEET_LIST::UpdateSymbolInstanceData().
| void SCH_SYMBOL::SetValueProp | ( | const wxString & | aValue | ) |
Definition at line 1572 of file sch_symbol.cpp.
References SCHEMATIC::GetCurrentVariant(), SCH_ITEM::Schematic(), and SetValueFieldText().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
private |
Definition at line 1869 of file sch_symbol.cpp.
References AddVariant(), getInstance(), SCH_SYMBOL_VARIANT::InitializeAttributes(), SCH_ITEM::invalidateConnectivity(), SCH_SYMBOL_INSTANCE::m_Variants, SCH_SHEET_PATH::PathHumanReadable(), and SCH_SYMBOL().
Referenced by SetDNP(), SetExcludedFromBoard(), SetExcludedFromBOM(), SetExcludedFromPosFiles(), and SetExcludedFromSim().
| void SCH_SYMBOL::SetVariantSymbolOverride | ( | const SCH_SHEET_PATH & | aPath, |
| const wxString & | aVariantName, | ||
| const LIB_ID & | aLibId ) |
Set the alternate-symbol override for a given variant and sheet instance.
Creates the variant if it does not already exist.
Definition at line 5062 of file sch_symbol.cpp.
References getInstance(), SCH_SYMBOL_VARIANT::InitializeAttributes(), SCH_ITEM::invalidateConnectivity(), SCH_SYMBOL_INSTANCE::m_Variants, and m_variantSymbolCache.
Referenced by applySymbolVariants(), and SCH_EDIT_TOOL::SetVariantSymbol().
|
inline |
Definition at line 899 of file sch_symbol.h.
References GetY(), and SetPosition().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
inline |
Definition at line 902 of file sch_symbol.h.
References GetX(), and SetPosition().
Referenced by SCH_SYMBOL_DESC::SCH_SYMBOL_DESC().
|
overridevirtual |
Return a measure of how likely the other object is to represent the same object.
The scale runs from 0.0 (definitely different objects) to 1.0 (same)
Reimplemented from SCH_ITEM.
Definition at line 5171 of file sch_symbol.cpp.
References GetLibId(), GetPosition(), SCH_ITEM::SCH_ITEM(), SCH_SYMBOL(), and EDA_ITEM::Type().
|
inlineinherited |
Calculate the boilerplate similarity for all LIB_ITEMs without preventing the use above of a pure virtual function that catches at compile time when a new object has not been fully implemented.
Definition at line 398 of file sch_item.h.
References m_bodyStyle, m_private, m_unit, and SCH_ITEM().
Referenced by SCH_FIELD::Similarity(), SCH_PIN::Similarity(), SCH_SHAPE::Similarity(), SCH_TEXT::Similarity(), and SCH_TEXTBOX::Similarity().
|
inlinestaticinherited |
Helper function to be used by the C++ STL sort algorithm for sorting a STL container of EDA_ITEM pointers.
| aLeft | The left hand item to compare. |
| aRight | The right hand item to compare. |
Definition at line 540 of file eda_item.h.
References EDA_ITEM().
| wxString SCH_SYMBOL::SubReference | ( | int | aUnit, |
| bool | aAddSeparator = true ) const |
Definition at line 1807 of file sch_symbol.cpp.
References LIB_SYMBOL::LetterSubReference(), m_part, and SCH_ITEM::Schematic().
Referenced by SCH_EDIT_FRAME::AnnotateSymbols(), SCH_REFERENCE_LIST::CheckAnnotation(), SCH_EDIT_FRAME::DeleteAnnotation(), SCH_REFERENCE::GetCanonicalRef(), SCH_REFERENCE::GetFullRef(), GetRef(), GetUnitDisplayName(), SCH_FIELD::Matches(), and ResolveTextVar().
|
overrideprotectedvirtual |
Swap the internal data structures aItem with the schematic item.
Obviously, aItem must have the same type than me.
| aItem | The item to swap the data structures with. |
Reimplemented from SCH_ITEM.
Definition at line 2738 of file sch_symbol.cpp.
References SCH_ITEM::LIB_SYMBOL, SYMBOL::m_DNP, m_doNetlist, SYMBOL::m_excludedFromBoard, SYMBOL::m_excludedFromBOM, SYMBOL::m_excludedFromPosFiles, SYMBOL::m_excludedFromSim, m_fields, m_instancePathIndex, m_instances, m_lib_id, m_part, m_passthroughMode, m_pinMapOverride, m_pins, m_pos, m_prefix, m_schLibSymbolName, m_signalName, SYMBOL::m_transform, m_variantSymbolCache, pin, SCH_ITEM::SCH_ITEM(), SCH_SYMBOL(), SCH_SYMBOL_T, EDA_ITEM::SetParent(), EDA_ITEM::Type(), and UpdatePins().
|
inherited |
Swap the non-temp and non-edit flags.
Definition at line 870 of file sch_item.cpp.
References EDA_ITEM::ClearEditFlags(), EDA_ITEM::ClearTempFlags(), EDA_ITEM::GetEditFlags(), EDA_ITEM::GetTempFlags(), EDA_ITEM::m_flags, SCH_ITEM(), and EDA_ITEM::SetFlags().
Referenced by SwapItemData().
|
inherited |
Swap data between aItem and aImage.
aItem and aImage should have the same type.
Used in undo and redo commands to swap values between an item and its copy. Only values like layer, size .. which are modified by editing are swapped.
| aImage | the item image which contains data to swap. |
Definition at line 840 of file sch_item.cpp.
References EDA_ITEM::EDA_ITEM(), EDA_ITEM::GetParent(), GetParentScreen(), m_bodyStyle, EDA_ITEM::m_customProperties, m_fieldsAutoplaced, m_isLocked, m_layer, m_private, m_unit, SCH_ITEM(), EDA_ITEM::SetParent(), swapData(), SwapFlags(), and EDA_ITEM::Type().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), API_HANDLER_SYMBOL::handleCreateUpdateItemsInternal(), SCH_EDIT_FRAME::PutDataInPreviousState(), SCH_COMMIT::RemovedForCleanup(), and SCH_COMMIT::RevertToCheckpoint().
| void SCH_SYMBOL::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 multi-unit parts.
| aSourceSheet | the sheet instance of the unit to sync to. |
| aCommit | is the SCH_COMMIT object for undo/redo actions. |
| aProperty | if present, the single property to sync. (Otherwise the include/exclude flags, alternate pin assignments, and all fields bar the reference will be synced.) |
| aVariantName | is the name of the variant to use. An empty string is the default variant. |
Definition at line 2402 of file sch_symbol.cpp.
References _HKI, CollectOtherUnits(), GetDNP(), GetExcludedFromBoard(), GetExcludedFromBOM(), GetExcludedFromPosFiles(), GetField(), SCH_FIELD::GetName(), GetPinMapOverride(), GetPosition(), GetRef(), GetUnitCount(), GetUnitSelection(), GetValue(), IsAnnotated(), SCH_FIELD::IsMandatory(), m_fields, m_lib_id, m_pins, EDA_ITEM::m_Uuid, COMMIT::Modify(), PROPERTY_BASE::Name(), EDA_TEXT::Offset(), RAW_VALUE, REFERENCE, SCH_SYMBOL(), SCH_ITEM::Schematic(), EDA_ITEM::SetParent(), SCH_FIELD::SetText(), updatePins(), and VALUE.
Referenced by ISSUE24943_FIXTURE::sync(), and SCH_PROPERTIES_PANEL::valueChanged().
|
inlineinherited |
Returns the type of object.
This attribute should never be changed after a ctor sets it, so there is no public "setter" method.
Definition at line 110 of file eda_item.h.
References m_structType.
Referenced by BOARD::Add(), CN_CLUSTER::Add(), CN_CONNECTIVITY_ALGO::Add(), FOOTPRINT::Add(), KIGFX::PCB_VIEW::Add(), SCH_PROPERTIES_PANEL::addBlankField(), PCB_GRID_HELPER::AddConstructionItems(), PCB_POINT_EDITOR::addCorner(), ODB_MATRIX_ENTITY::AddDrillMatrixLayer(), CONNECTION_SUBGRAPH::AddItem(), addItemPolysWithEndings(), addItemPolysWithEndings(), addItemPolysWithEndings(), DRC_TEST_PROVIDER_SOLDER_MASK::addItemToRTrees(), ZONE_FILLER::addKnockout(), ZONE_FILLER::addKnockout(), SCH_SHEET::AddPin(), FEATURES_MANAGER::AddText(), SCH_BASE_FRAME::AddToScreen(), FEATURES_MANAGER::AddTrack(), affectsDrillModel(), PCB_GRID_HELPER::Align(), SCH_SCREEN::Append(), BOARD_CONSTRAINT_ADAPTER::Apply(), KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), PCB_CONTROL::ApplyDesignBlockLayout(), CADSTAR_SCH_ARCHIVE_LOADER::applyTextSettings(), PNS::TOPOLOGY::AssembleTuningPath(), SCH_LABEL_BASE::AutoplaceFields(), SCH_EDIT_FRAME::AutoRotateItem(), SCH_SELECTION_TOOL::autostartEvent(), bindDimensionEndpoints(), BoardItemIntersectable(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), ZONE_FILLER::buildCopperItemClearances(), TEARDROP_MANAGER::buildCrossingStub(), EXPORTER_STEP::buildGraphic3DShape(), SCH_SCREENS::buildScreenList(), EXPORTER_STEP::buildTrack3DShape(), BOARD_INSPECTION_TOOL::calculateSelectionRatsnest(), PCB_POINT_EDITOR::CanAddCorner(), PCB_POINT_EDITOR::CanChamferCorner(), SCH_BUS_BUS_ENTRY::CanConnect(), SCH_BUS_WIRE_ENTRY::CanConnect(), SCH_JUNCTION::CanConnect(), SCH_LABEL_BASE::CanConnect(), SCH_LINE::CanConnect(), SCH_NO_CONNECT::CanConnect(), SCH_SHEET::CanConnect(), SCH_SYMBOL::CanConnect(), SCH_GROUP_TOOL::canGroupItem(), PCB_POINT_EDITOR::CanRemoveCorner(), PCB_POINT_EDITOR::chamferCorner(), SCH_EDIT_TOOL::ChangeTextType(), KI_TEST::CheckFootprint(), KI_TEST::CheckFpShape(), KI_TEST::CheckFpZone(), CheckItemDRCViolation(), DRC_TEST_PROVIDER_SOLDER_MASK::checkItemMask(), DRC_TEST_PROVIDER_MATCHED_LENGTH::checkReturnPath(), CN_VISITOR::checkZoneItemConnection(), BOARD::ClassOf(), BOARD_CONNECTED_ITEM::ClassOf(), FOOTPRINT::ClassOf(), LIB_SYMBOL::ClassOf(), NETINFO_ITEM::ClassOf(), PAD::ClassOf(), PCB_ARC::ClassOf(), PCB_BARCODE::ClassOf(), PCB_CONSTRAINT::ClassOf(), PCB_DIM_ALIGNED::ClassOf(), PCB_DIM_CENTER::ClassOf(), PCB_DIM_LEADER::ClassOf(), PCB_DIM_ORTHOGONAL::ClassOf(), PCB_DIM_RADIAL::ClassOf(), PCB_DRILL_CHART::ClassOf(), PCB_DRILL_MAP::ClassOf(), PCB_FIELD::ClassOf(), PCB_GENERATOR::ClassOf(), PCB_GRID_ITEM::ClassOf(), PCB_GROUP::ClassOf(), PCB_MARKER::ClassOf(), PCB_POINT::ClassOf(), PCB_REFERENCE_IMAGE::ClassOf(), PCB_SHAPE::ClassOf(), PCB_TABLE::ClassOf(), PCB_TABLECELL::ClassOf(), PCB_TARGET::ClassOf(), PCB_TEXTBOX::ClassOf(), PCB_TRACK::ClassOf(), PCB_VIA::ClassOf(), SCH_BITMAP::ClassOf(), SCH_BUS_BUS_ENTRY::ClassOf(), SCH_BUS_WIRE_ENTRY::ClassOf(), SCH_DIRECTIVE_LABEL::ClassOf(), SCH_FIELD::ClassOf(), SCH_GLOBALLABEL::ClassOf(), SCH_GROUP::ClassOf(), SCH_HIERLABEL::ClassOf(), SCH_JUNCTION::ClassOf(), SCH_LABEL::ClassOf(), SCH_LINE::ClassOf(), SCH_MARKER::ClassOf(), SCH_NO_CONNECT::ClassOf(), SCH_PIN::ClassOf(), SCH_SCREEN::ClassOf(), SCH_SHEET::ClassOf(), SCH_SHEET_PIN::ClassOf(), SCH_SYMBOL::ClassOf(), SCH_TABLE::ClassOf(), SCH_TABLECELL::ClassOf(), SCH_TEXT::ClassOf(), SCH_TEXTBOX::ClassOf(), ZONE::ClassOf(), MOCK_BOARD_ITEM::Clone(), TEST_EDA_ITEM::Clone(), CONNECTION_GRAPH::collectAllDriverValues(), collectFootprints(), collectImportedUuids(), SCHEMATIC_TEXT_VAR_ADAPTER::collectKeys(), PCB_SELECTION_TOOL::CollectMultiple(), collidesWithArea(), LIB_SYMBOL::compare(), SCH_FIELD::compare(), SCH_ITEM::compare(), SCH_TEXT::compare(), SCH_TEXTBOX::compare(), compareDrivers(), TEARDROP_MANAGER::computeAnchorPoints(), EE_GRID_HELPER::computeAnchors(), PCB_GRID_HELPER::computeAnchors(), PCB_GRID_HELPER::computeAnchors(), ComputeBoardStatistics(), TEARDROP_MANAGER::computeChordThroughShape(), TEARDROP_MANAGER::computeCurvedForRectShape(), TEARDROP_MANAGER::computeTeardropPolygon(), SCH_BUS_WIRE_ENTRY::ConnectionPropagatesTo(), SCH_LINE::ConnectionPropagatesTo(), ConstraintItemAnchors(), EE_RTREE::contains(), BOARD::ConvertKIIDsToCrossReferences(), SCHEMATIC::ConvertKIIDsToRefs(), SYMBOL_EDITOR_EDIT_TOOL::ConvertStackedPins(), SYMBOL_EDITOR_EDIT_TOOL::Copy(), FOOTPRINT::CopyFrom(), PAD::CopyFrom(), PCB_ARC::CopyFrom(), PCB_CONSTRAINT::CopyFrom(), PCB_DIM_ALIGNED::CopyFrom(), PCB_DIM_CENTER::CopyFrom(), PCB_DIM_LEADER::CopyFrom(), PCB_DIM_ORTHOGONAL::CopyFrom(), PCB_DIM_RADIAL::CopyFrom(), PCB_FIELD::CopyFrom(), PCB_POINT::CopyFrom(), PCB_REFERENCE_IMAGE::CopyFrom(), PCB_SHAPE::CopyFrom(), PCB_TABLE::CopyFrom(), PCB_TEXT::CopyFrom(), PCB_TEXTBOX::CopyFrom(), PCB_TRACK::CopyFrom(), PCB_VIA::CopyFrom(), ZONE::CopyFrom(), PAD_TOOL::copyPadSettings(), MULTICHANNEL_TOOL::copyRuleAreaContents(), FOOTPRINT::CoverageRatio(), PNS_KICAD_IFACE::createBoardItem(), CreateItemForType(), BOARD_ADAPTER::createLayers(), CONVERT_TOOL::CreateLines(), PCB_BASE_FRAME::CreateNewFootprint(), ZONE_CREATE_HELPER::createNewZone(), BOARD_ADAPTER::createTrackWithMargin(), SCH_INSPECTION_TOOL::CrossProbe(), SCH_SCREEN::DeleteItem(), API_HANDLER_SCH::deleteItemsInternal(), API_HANDLER_SYMBOL::deleteItemsInternal(), SCH_BUS_ENTRY_BASE::Deserialize(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_FIELD_PROPERTIES::DIALOG_FIELD_PROPERTIES(), DIALOG_GROUP_PROPERTIES::DIALOG_GROUP_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), KICAD_DIFF::PCB_DIFFER::diffProperties(), KICAD_DIFF::DiffSymbolElements(), DimensionEndpointsBound(), DimensionHasValueMode(), PCB_DRAW_PANEL_GAL::DisplayBoard(), SCH_EDIT_TOOL::DoDelete(), APPEARANCE_CONTROLS::doesBoardItemNeedRebuild(), DIALOG_GLOBAL_DELETION::DoGlobalDeletions(), EDIT_TOOL::doMoveSelection(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SELECTION_TOOL::doSelectionMenu(), KIGFX::PCB_PAINTER::Draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), DRAWING_TOOL::DrawDimension(), KIGFX::SCH_PAINTER::drawItemBoundingBox(), SCH_DRAWING_TOOLS::DrawSheet(), CONNECTION_SUBGRAPH::driverName(), CN_ITEM::Dump(), SCH_CONNECTIVITY::Dump(), EDIT_TOOL::Duplicate(), SCH_ITEM::Duplicate(), FOOTPRINT::DuplicateItem(), EDA_ITEM_DESC::EDA_ITEM_DESC(), EDA_TEXT_DESC::EDA_TEXT_DESC(), SCH_EDIT_TOOL::EditField(), SCH_EDIT_TOOL::editFieldText(), SCH_EDIT_TOOL::EditProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextBoxProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextProperties(), enclosedByAreaFunc(), SCH_SELECTION_TOOL::EnterGroup(), CONNECTION_GRAPH::ercCheckBusToBusConflicts(), CONNECTION_GRAPH::ercCheckBusToBusEntryConflicts(), CONNECTION_GRAPH::ercCheckBusToNetConflicts(), CONNECTION_GRAPH::ercCheckDanglingWireEndpoints(), CONNECTION_GRAPH::ercCheckFloatingWires(), CONNECTION_GRAPH::ercCheckLabels(), CONNECTION_GRAPH::ercCheckMultipleDrivers(), CONNECTION_GRAPH::ercCheckNoConnects(), DRC_ENGINE::EvalRules(), DRC_RULE_CONDITION::EvaluateFor(), DRC_ENGINE::EvalZoneConnection(), CONNECTION_GRAPH::ExchangeItem(), CONNECTION_SUBGRAPH::ExchangeItem(), SCH_SELECTION_TOOL::expandConnectionWithGraph(), SYMBOL_EDITOR_EDIT_TOOL::ExplodeStackedPin(), extractDiffPairCoupledItems(), SCH_CONNECTIVITY::ExtractInstanceFacts(), SCH_CONNECTIVITY::ExtractScreenFacts(), SCH_CONNECTIVITY::ExtractTextChecks(), FabItemLess(), MATCH_PROPERTIES_CATALOG::Family(), PCB_SELECTION_TOOL::FilterCollectorForFreePads(), BOARD_INSPECTION_TOOL::filterCollectorForInspection(), PCB_SELECTION_TOOL::FilterCollectorForMarkers(), PCB_SELECTION_TOOL::FilterCollectorForTableCells(), PCB_PROPERTIES_PANEL::filterOutReadOnlyGenChildren(), ORCAD_CONVERTER::finalizeNetNames(), TEARDROP_MANAGER::findAnchorPointsOnTrack(), MULTICHANNEL_TOOL::findComponentsInRuleArea(), PCB_SELECTION_TOOL::FindItem(), PNS::TOPOLOGY::findLinesFromVia(), NETLIST_EXPORTER_BASE::findNextSymbol(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), MULTICHANNEL_TOOL::findOtherItemsInRuleArea(), findParent(), MULTICHANNEL_TOOL::findRoutingInRuleArea(), FindSnapGraphic(), FindSnapPad(), FindSnapTrack(), findTableCell(), DRC_TOOL::FixDRCErrorMenuText(), SCH_IO_ALTIUM::fixupSymbolPinNameNumbers(), flashingFor(), flattenGroups(), EDIT_TOOL::Flip(), PCB_SHAPE::Flip(), PCB_IO_KICAD_SEXPR::Format(), SCH_IO_KICAD_LEGACY::Format(), SCH_IO_KICAD_SEXPR::Format(), SCH_IO_KICAD_SEXPR::Format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::formatGeneratedTableExtras(), SCH_MARKER::FromProto(), PCB_IO_IPC2581::generateDrillLayers(), BOARD_ITEM::GetBoard(), BOARD_ITEM::GetBoard(), GetBoardItemWidth(), PCB_TRACK::GetBoundingBox(), SCH_LABEL_BASE::GetBoundingBox(), getBoundingBox(), DRC_ENGINE::GetCachedOwnClearance(), getClosestGroup(), getClosestGroup(), KIGFX::DS_RENDER_SETTINGS::GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), SCH_MOVE_TOOL::getConnectedDragItems(), SCH_MOVE_TOOL::getConnectedItems(), CONNECTIVITY_DATA::GetConnectedPadsAndVias(), CONNECTION_GRAPH::getDefaultConnection(), CONNECTION_SUBGRAPH::GetDriverPriority(), SCH_ITEM::GetEffectivePenWidth(), PCBEXPR_CONTEXT::GetEffectiveType(), getFieldFunc(), PCB_TRACK::GetFriendlyName(), PCB_GROUP_TOOL::getGroupFromItem(), SCH_GROUP_TOOL::getGroupFromItem(), PCB_SHAPE::getHatchingKnockouts(), getInferredSymbols(), PCB_TRACK::GetItemDescription(), EE_GRID_HELPER::GetItemGrid(), PCB_GRID_HELPER::GetItemGrid(), PCB_PROPERTIES_PANEL::getItemValue(), SCH_PROPERTIES_PANEL::getItemValue(), BOARD_ITEM::GetLayer(), PL_EDITOR_FRAME::GetLayoutFromRedoList(), PL_EDITOR_FRAME::GetLayoutFromUndoList(), PCB_SHAPE::GetLibraryBezierC1(), PCB_SHAPE::GetLibraryBezierC2(), PCB_SHAPE::GetLibraryPolyShape(), getMinDist(), PCB_DIMENSION_BASE::GetMsgPanelInfo(), PCB_TRACK::GetMsgPanelInfo(), SCH_LABEL_BASE::GetMsgPanelInfo(), SCH_SCREEN::GetNeededJunctions(), CONNECTION_SUBGRAPH::GetNetclassesForDriver(), CONNECTIVITY_DATA::GetNetItems(), GetNetNavigatorItemText(), LAYER_UTILS::GetOrphanedFootprintLayers(), SCH_SYMBOL::GetPinPhysicalPosition(), KIGFX::SCH_PAINTER::getRenderColor(), SCH_RULE_AREA::GetResolvedNetclasses(), GROUP_SEARCH_HANDLER::getResultCell(), LABEL_SEARCH_HANDLER::getResultCell(), TEXT_SEARCH_HANDLER::getResultCell(), GetSchItemAsText(), ALIGN_DISTRIBUTE_TOOL::GetSelections(), SCH_PROPERTIES_PANEL::getSinglePinMappedSymbol(), CONVERT_TOOL::getStartEndPoints(), KIGFX::SCH_PAINTER::getTextThickness(), GetTypeDesc(), PCBEXPR_COMPONENT_CLASS_REF::GetValue(), PCBEXPR_VAR_REF::GetValue(), DIALOG_FIND_BY_PROPERTIES::getVariantAwareValue(), TEARDROP_MANAGER::GetWidth(), PCB_SELECTION_TOOL::grabUnconnected(), GraphicEditShape(), graphicNetCode(), PCB_SELECTION_TOOL::GuessSelectionCandidates(), SCH_SELECTION_TOOL::GuessSelectionCandidates(), API_HANDLER_BOARD::handleCreateUpdateItemsInternal(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), API_HANDLER_SYMBOL::handleCreateUpdateItemsInternal(), API_HANDLER_BOARD::handleFlipItems(), API_HANDLER_BOARD::handleGetBoundingBox(), API_HANDLER_SCH::handleGetItems(), API_HANDLER_SCH::handleGetItemsById(), hasComponentClassFunc(), hash_fp_item(), hashDimension(), BOARD::HasItemsOnLayer(), KIGFX::PCB_PAINTER::HasUniformColor(), SCH_SELECTION_TOOL::highlight(), BOARD_INSPECTION_TOOL::HighlightItem(), BOARD_INSPECTION_TOOL::highlightNet(), highlightNet(), SCH_FIELD::HitTest(), SCH_FIELD::HitTest(), SCH_LABEL_BASE::HitTest(), SCH_LABEL_BASE::HitTest(), SCH_LABEL_BASE::HitTest(), PCB_SELECTION_TOOL::hitTestDistance(), EE_GRAPHIC_TOOL::ImportGraphics(), PCB_POINT_EDITOR::Init(), PCB_SELECTION_TOOL::Init(), SCH_EDIT_TOOL::Init(), SCH_POINT_EDITOR::Init(), SCH_SELECTION_TOOL::Init(), ODB_LAYER_ENTITY::InitAuxilliaryData(), ODB_LAYER_ENTITY::InitDrillData(), DRC_ENGINE::InitializeClearanceCache(), ROUTER_TOOL::InlineBreakTrack(), ROUTER_TOOL::InlineDrag(), DRC_RTREE::Insert(), EE_RTREE::insert(), GENERAL_COLLECTOR::Inspect(), SCH_COLLECTOR::Inspect(), TEST_COLLECTOR::Inspect(), BOARD_INSPECTION_TOOL::InspectConstraints(), BOARD_INSPECTION_TOOL::InspectDRCError(), isBlindBuriedViaFunc(), isBlindVia(), isBuriedVia(), CONNECTIVITY_DATA::IsConnectedOnLayer(), SCH_SCREEN::IsConnectivitySource(), isCopper(), SCH_LINE_WIRE_BUS_TOOL::IsDrawingLineWireOrBus(), PCB_SELECTION_TOOL::isExpandableGraphicShape(), ALLEGRO::BOARD_BUILDER::GRAPHIC_DEDUP::IsFirst(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), CADSTAR_PCB_ARCHIVE_LOADER::isFootprint(), PCB_TABLE::IsGenerated(), IsGeneratedTableCell(), isGraphicItemForDrop(), BOARD_ITEM::IsGroupableType(), SCH_ITEM::IsGroupableType(), PNS_PCBNEW_RULE_RESOLVER::IsKeepout(), isKeepoutZone(), PCB_PROPERTIES_PANEL::isKeyEditable(), SCH_PROPERTIES_PANEL::isKeyEditable(), isMaskAperture(), isMicroVia(), isNoGeometryItem(), PNS_PCBNEW_RULE_RESOLVER::IsNonPlatedSlot(), isNPTHPad(), isNPTHPadWithNoCopper(), PCB_TRACK::IsNull(), BOARD_ITEM::IsOnCopperLayer(), PCB_SELECTION_TOOL::isOnVisibleFootprintSide(), SCH_LINE::IsParallel(), isPlatedFunc(), TEARDROP_MANAGER::IsRound(), KICAD_DIFF::isSheetItem(), isStackedViaFunc(), PNS::ROUTER::isStartingPointRoutable(), SCH_ITEM::IsType(), TEARDROP_MANAGER::IsUniformlyRound(), ItemHasDRCViolation(), itemHasEditableCorners(), itemIsIncludedByFilter(), DIALOG_FIND_BY_PROPERTIES::itemMatchesPropertyCriteria(), PCB_SELECTION_TOOL::itemPassesFilter(), SCH_SELECTION_TOOL::itemPassesFilter(), SCH_EDIT_TOOL::JustifyText(), EE_GRID_HELPER::layoutBounds(), PCB_GRID_HELPER::layoutBounds(), EE_GRID_HELPER::layoutPins(), CADSTAR_SCH_ARCHIVE_LOADER::loadHierarchicalSheetPins(), CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), PCB_SELECTION_TOOL::Main(), SCH_SELECTION_TOOL::Main(), EDIT_POINTS_FACTORY::Make(), PCB_POINT_EDITOR::makePoints(), SCH_POINT_EDITOR::makePointsAndBehavior(), CONVERT_TOOL::makePolysFromChainedSegs(), GENERATOR_TOOL::MakeViaStackFromSelection(), CONNECTIVITY_DATA::MarkItemNetAsDirty(), CN_CONNECTIVITY_ALGO::markItemNetAsDirty(), DRC_TEST_PROVIDER_SOLDER_MASK::maskApertureBridgeExcluded(), memberKey(), memberOfGroupFunc(), memberOfSheetFunc(), memberOfSheetOrChildrenFunc(), SCH_LINE::MergeOverlap(), PCB_GROUP::Mirror(), SCH_EDIT_TOOL::Mirror(), SYMBOL_EDITOR_EDIT_TOOL::Mirror(), PNS_KICAD_IFACE::modifyBoardItem(), BOARD_EDITOR_CONTROL::modifyLockSelected(), SCH_MOVE_TOOL::moveItem(), MoveSchematicItem(), moveSelectionBy(), SCH_SELECTION_TOOL::narrowSelection(), BOARD::noteDrillModelChange(), ARRAY_TOOL::onDialogClosed(), DIALOG_DRC::OnDRCItemSelected(), FOOTPRINT_EDIT_FRAME::OnEditItemRequest(), PCB_EDIT_FRAME::OnEditItemRequest(), DIALOG_GENERATORS::OnItemSelected(), PCB_PROPERTIES_PANEL::onKeyRenamed(), SCH_PROPERTIES_PANEL::onKeyRenamed(), EDA_3D_CANVAS::OnLeftUp(), EDA_3D_CANVAS::OnMouseMove(), SCH_EDIT_FRAME::onNetNavigatorSelection(), PCB_PROPERTIES_PANEL::onNewItemLeftBlank(), DIALOG_GENERATORS::OnRebuildTypeClick(), PCB_POINT_EDITOR::OnSelectionChange(), ALLEGRO::BOARD_BUILDER::GRAPHIC_KEY_EQ::operator()(), ALLEGRO::BOARD_BUILDER::GRAPHIC_KEY_HASH::operator()(), BOARD::cmp_drawings::operator()(), BOARD::cmp_items::operator()(), BOARD_ITEM::ptr_cmp::operator()(), CN_VISITOR::operator()(), FOOTPRINT::cmp_drawings::operator()(), KI_TEST::kitest_cmp_drawings::operator()(), PCB_SHAPE::cmp_drawings::operator()(), PCB_TRACK::cmp_tracks::operator()(), SCH_BUS_ENTRY_BASE::operator<(), SCH_FIELD::operator<(), SCH_ITEM::operator<(), SCH_JUNCTION::operator<(), SCH_LINE::operator<(), SCH_SHEET::operator<(), SCH_SYMBOL::operator<(), SCH_TABLE::operator<(), SCH_TEXT::operator<(), SCH_TEXTBOX::operator<(), PCB_REFERENCE_IMAGE::operator=(), SCH_BITMAP::operator=(), SCH_ITEM::operator=(), SCH_SHEET::operator=(), SCH_SYMBOL::operator=(), BOARD::operator==(), FOOTPRINT::operator==(), PAD::operator==(), PCB_ARC::operator==(), PCB_ARC::operator==(), PCB_CONSTRAINT::operator==(), PCB_DIMENSION_BASE::operator==(), PCB_DRILL_CHART::operator==(), PCB_DRILL_MAP::operator==(), PCB_FIELD::operator==(), PCB_GRID_ITEM::operator==(), PCB_GROUP::operator==(), PCB_POINT::operator==(), PCB_REFERENCE_IMAGE::operator==(), PCB_SHAPE::operator==(), PCB_SHAPE::operator==(), PCB_TABLE::operator==(), PCB_TABLECELL::operator==(), PCB_TARGET::operator==(), PCB_TEXT::operator==(), PCB_TEXTBOX::operator==(), PCB_TRACK::operator==(), PCB_VIA::operator==(), PCB_VIA::operator==(), SCH_BITMAP::operator==(), SCH_BUS_ENTRY_BASE::operator==(), SCH_FIELD::operator==(), SCH_FIELD::operator==(), SCH_GROUP::operator==(), SCH_ITEM::operator==(), SCH_JUNCTION::operator==(), SCH_LINE::operator==(), SCH_NO_CONNECT::operator==(), SCH_PIN::operator==(), SCH_SHAPE::operator==(), SCH_SHEET::operator==(), SCH_SHEET_PIN::operator==(), SCH_SYMBOL::operator==(), SCH_TABLE::operator==(), SCH_TABLECELL::operator==(), SCH_TEXT::operator==(), SCH_TEXTBOX::operator==(), ZONE::operator==(), ZONE::operator==(), API_HANDLER_SCH::packSchItem(), PCB_IO_KICAD_SEXPR_PARSER::parseGeneratedTableExtra(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_SHAPE(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), SCH_IO_KICAD_SEXPR_PARSER::parseSchField(), PCB_CONTROL::Paste(), SCH_EDITOR_CONTROL::Paste(), ZONE_PAINTER::PCB_PAINTER(), PCB_GROUP_TOOL::PickNewMember(), SCH_GROUP_TOOL::PickNewMember(), SCH_DRAWING_TOOLS::PlaceNextSymbolUnit(), SCH_LABEL_BASE::Plot(), BRDITEMS_PLOTTER::PlotBoardGraphicItem(), SCH_MOVE_TOOL::prepareMoveOperation(), SCH_MOVE_TOOL::prepareSelection(), OUTSET_ROUTINE::ProcessItem(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::processItem(), BACK_ANNOTATE::processNetNameChange(), CONNECTION_GRAPH::processSubGraphs(), BOARD_COMMIT::propagateDamage(), EDIT_TOOL::Properties(), SCH_EDIT_TOOL::Properties(), SYMBOL_EDITOR_EDIT_TOOL::Properties(), PCB_SELECTION_TOOL::pruneObscuredSelectionCandidates(), BOARD_COMMIT::Push(), SCH_COMMIT::pushSchEdit(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), SCH_EDIT_FRAME::PutDataInPreviousState(), EE_GRID_HELPER::queryVisible(), PCB_GRID_HELPER::queryVisible(), BOARD_REANNOTATE_TOOL::ReannotateDuplicates(), PCB_SELECTION_TOOL::RebuildSelection(), SCH_CONNECTIVITY::FACADE::Recalculate(), SCHEMATIC::RecalculateConnections(), refOfSolid(), SCH_MOVE_TOOL::refreshSelectionTraits(), SCH_BASE_FRAME::RefreshZoomDependentItems(), GENERATOR_TOOL::RegenerateSelected(), PCB_CONTROL::rehatchBoardItem(), BOARD::Remove(), CN_CONNECTIVITY_ALGO::Remove(), FOOTPRINT::Remove(), KIGFX::PCB_VIEW::Remove(), SCH_SCREEN::Remove(), EE_RTREE::remove(), BOARD::RemoveAllItemsOnLayer(), PCB_POINT_EDITOR::removeCorner(), LIB_SYMBOL::RemoveDrawItem(), SCH_PROPERTIES_PANEL::removeField(), SCH_BASE_FRAME::RemoveFromScreen(), CONNECTION_GRAPH::RemoveItem(), CONNECTION_SUBGRAPH::RemoveItem(), PNS_KICAD_IFACE::RemoveItem(), SCH_SHEET::RemovePin(), SCH_EDIT_TOOL::RepeatDrawItem(), SCH_FIND_REPLACE_TOOL::ReplaceAll(), BOARD_INSPECTION_TOOL::reportClearance(), SCH_SELECTION_TOOL::RequestSelection(), KI_TEST::RequireBoardItemWithTypeAndId(), CONNECTION_GRAPH::resolveAllDrivers(), ResolveConstrainableItem(), SCHEMATIC::resolveCrossReference(), SCHEMATIC::ResolveERCExclusions(), EE_GRID_HELPER::ResolveSnap(), PCB_GRID_HELPER::ResolveSnap(), BOARD::ResolveTextVar(), SCH_LABEL_BASE::ResolveTextVar(), DS_PROXY_UNDO_ITEM::Restore(), BOARD_COMMIT::RevertToCheckpoint(), SCH_COMMIT::RevertToCheckpoint(), PL_EDITOR_FRAME::RollbackFromUndo(), EDIT_TOOL::Rotate(), SCH_EDIT_TOOL::Rotate(), DRC_TEST_PROVIDER_CONNECTIVITY::Run(), DRC_TEST_PROVIDER_DISALLOW::Run(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::Run(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::Run(), DRC_TEST_PROVIDER_SILK_CLEARANCE::Run(), DRC_TEST_PROVIDER_TRACK_ANGLE::Run(), DRC_TEST_PROVIDER_TRACK_SEGMENT_LENGTH::Run(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveField(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveField(), SCH_IO_KICAD_LEGACY_LIB_CACHE::savePin(), SCH_IO_KICAD_SEXPR_LIB_CACHE::savePin(), CLIPBOARD_IO::SaveSelection(), SCH_IO_KICAD_SEXPR::saveShape(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveSymbolDrawItem(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveText(), SCH_IO_KICAD_SEXPR::saveText(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveText(), SCH_IO_KICAD_SEXPR::saveTextBox(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveTextBox(), SCH_FIELD::SCH_FIELD(), SCH_SCREEN::Schematic(), POWER_SEARCH_HANDLER::Search(), SYMBOL_SEARCH_HANDLER::Search(), TEXT_SEARCH_HANDLER::Search(), PCB_SELECTION_TOOL::select(), PCB_SELECTION_TOOL::Selectable(), SCH_SELECTION_TOOL::Selectable(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), SCH_SELECTION_TOOL::SelectConnection(), selectionSpecFromItem(), PCB_SELECTION_TOOL::selectSameSheet(), PCB_SELECTION_TOOL::selectUnconnected(), PCB_EDIT_FRAME::SendCrossProbeItem(), PCB_EDIT_FRAME::SendSelectItemsToSch(), SCH_BUS_ENTRY_BASE::Serialize(), PCB_POINT_EDITOR::setAltConstraint(), SCH_ITEM::SetConnectivityDirty(), ITEM_PICKER::SetItem(), SCH_LABEL_BASE::SetLabelShape(), PCB_BASE_FRAME::SetPlotSettings(), SCH_MOVE_TOOL::setupItemsForDrag(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), PCB_EDIT_FRAME::ShowFindDialog(), SCH_BASE_FRAME::ShowFindReplaceDialog(), FOOTPRINT::Similarity(), LIB_SYMBOL::Similarity(), PAD::Similarity(), PCB_ARC::Similarity(), PCB_BOARD_OUTLINE::Similarity(), PCB_CONSTRAINT::Similarity(), PCB_DIMENSION_BASE::Similarity(), PCB_DRILL_CHART::Similarity(), PCB_DRILL_MAP::Similarity(), PCB_FIELD::Similarity(), PCB_GRID_ITEM::Similarity(), PCB_GROUP::Similarity(), PCB_POINT::Similarity(), PCB_REFERENCE_IMAGE::Similarity(), PCB_SHAPE::Similarity(), PCB_TABLE::Similarity(), PCB_TABLECELL::Similarity(), PCB_TARGET::Similarity(), PCB_TEXT::Similarity(), PCB_TEXTBOX::Similarity(), PCB_TRACK::Similarity(), PCB_VIA::Similarity(), SCH_BITMAP::Similarity(), SCH_BUS_ENTRY_BASE::Similarity(), SCH_FIELD::Similarity(), SCH_GROUP::Similarity(), SCH_JUNCTION::Similarity(), SCH_LINE::Similarity(), SCH_NO_CONNECT::Similarity(), SCH_PIN::Similarity(), SCH_SHAPE::Similarity(), SCH_SHEET::Similarity(), SCH_SHEET_PIN::Similarity(), SCH_SYMBOL::Similarity(), SCH_TABLE::Similarity(), SCH_TABLECELL::Similarity(), SCH_TEXT::Similarity(), SCH_TEXTBOX::Similarity(), ZONE::Similarity(), SCH_EDITOR_CONTROL::SimProbe(), SCH_EDITOR_CONTROL::SimTune(), stableDriverIdentity(), SCH_COMMIT::Stage(), ALLEGRO::BOARD_BUILDER::stampIds(), PNS::LINE_PLACER::Start(), EDIT_TOOL::Swap(), SCH_EDIT_TOOL::Swap(), SYMBOL_EDITOR_EDIT_TOOL::Swap(), FOOTPRINT::swapData(), PAD::swapData(), PCB_ARC::swapData(), PCB_BARCODE::swapData(), PCB_CONSTRAINT::swapData(), PCB_DIM_ALIGNED::swapData(), PCB_DIM_CENTER::swapData(), PCB_DIM_LEADER::swapData(), PCB_DIM_ORTHOGONAL::swapData(), PCB_DIM_RADIAL::swapData(), PCB_DRILL_CHART::swapData(), PCB_DRILL_MAP::swapData(), PCB_FIELD::swapData(), PCB_GENERATED_TABLE::swapData(), PCB_GRID_ITEM::swapData(), PCB_GROUP::swapData(), PCB_MARKER::swapData(), PCB_POINT::swapData(), PCB_REFERENCE_IMAGE::swapData(), PCB_TABLE::swapData(), PCB_TABLECELL::swapData(), PCB_TARGET::swapData(), PCB_TEXT::swapData(), PCB_TEXTBOX::swapData(), PCB_TRACK::swapData(), PCB_TUNING_PATTERN::swapData(), PCB_VIA::swapData(), PCB_VIA_STITCH::swapData(), SCH_BITMAP::swapData(), SCH_FIELD::swapData(), SCH_GROUP::swapData(), SCH_JUNCTION::swapData(), SCH_NO_CONNECT::swapData(), SCH_PIN::swapData(), SCH_SHEET::swapData(), SCH_SHEET_PIN::swapData(), SCH_SYMBOL::swapData(), SCH_TABLE::swapData(), ZONE::swapData(), EDIT_TOOL::SwapGateNets(), SCH_ITEM::SwapItemData(), EDIT_TOOL::SwapPadNets(), SCH_EDIT_TOOL::SwapPins(), PNS_KICAD_IFACE_BASE::syncGraphicalItem(), PCB_SHAPE::syncLibCoords(), PNS_KICAD_IFACE_BASE::syncTextItem(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::testAgainstEdge(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testGraphicClearances(), DRC_TEST_PROVIDER_HOLE_TO_HOLE::testHoleAgainstHole(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstZones(), DRC_TEST_PROVIDER_SOLDER_MASK::testMaskItemAgainstZones(), ERC_TESTER::TestMissingNetclasses(), ERC_TESTER::TestNoConnectPins(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadClearances(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testSingleLayerItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackClearances(), CONNECTIVITY_DATA::TestTrackEndpointDangling(), PANEL_SETUP_LAYERS::TransferDataFromWindow(), DIALOG_FIELD_PROPERTIES::TransferDataToWindow(), DIALOG_FOOTPRINT_FIELDS_TABLE::TransferDataToWindow(), DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow(), PCB_SHAPE::transformFp(), PCB_TRACK::TransformShapeToPolygon(), SCH_LINE_WIRE_BUS_TOOL::TrimOverLappingWires(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), BOARD_COMMIT::undoLevelItem(), undoListContainsShapesOrFootprints(), SCH_SELECTION_TOOL::unhighlight(), unpackLabel(), PCB_SELECTION_TOOL::unrouteSegment(), PCB_SELECTION_TOOL::unrouteSelected(), KIGFX::PCB_VIEW::Update(), KIGFX::SCH_VIEW::Update(), NET_CHAIN_MENU::update(), SCH_SHEET_PATH::UpdateAllScreenReferences(), PCB_EDIT_FRAME::UpdateDesignBlockFromSelection(), SCH_EDIT_FRAME::UpdateDesignBlockFromSelection(), DIALOG_FIELD_PROPERTIES::UpdateField(), CONNECTION_GRAPH::updateGenericItemConnectivity(), SCH_BASE_FRAME::UpdateItem(), PCB_POINT_EDITOR::updateItem(), PL_POINT_EDITOR::updateItem(), PCB_CONTROL::UpdateMessagePanel(), EDIT_TOOL::updateModificationPoint(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), PL_POINT_EDITOR::updatePoints(), SCH_MOVE_TOOL::updateStoredPositions(), DIALOG_CREATE_NET_CHAIN::validateAndCreate(), PCB_PROPERTIES_PANEL::valueChanged(), SCH_PROPERTIES_PANEL::valueChanged(), PCB_PROPERTIES_PANEL::valueChanging(), SCH_BUS_ENTRY_BASE::ViewGetLayers(), SYMBOL::ViewGetLayers(), GERBER_DRAW_ITEM::Visit(), PCB_GENERATED_TABLE::Visit(), PCB_GROUP::Visit(), PCB_TRACK::Visit(), SCH_GROUP::Visit(), SCH_SHEET::Visit(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), and DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem().
|
overridevirtual |
Test if the symbol's dangling state has changed for all pins.
As a side effect, actually update the dangling status for all pins.
| aItemListByType | is list of all DANGLING_END_ITEM items to be tested. |
| aItemListByPos | |
| aPath | is the sheet path instance to be tested. |
Reimplemented from SCH_ITEM.
Definition at line 3984 of file sch_symbol.cpp.
References DANGLING_END_ITEM_HELPER::get_lower_pos(), DANGLING_END_ITEM::GetParent(), DANGLING_END_ITEM::GetType(), JUNCTION_END, LABEL_END, m_pins, m_pos, SYMBOL::m_transform, NO_CONNECT_END, pin, PIN_END, SHEET_LABEL_END, and WIRE_END.
| void SCH_SYMBOL::UpdateFields | ( | const SCH_SHEET_PATH * | aPath, |
| bool | aUpdateStyle, | ||
| bool | aUpdateRef, | ||
| bool | aUpdateOtherFields, | ||
| bool | aResetRef, | ||
| bool | aResetOtherFields ) |
Restore fields to the original library values.
| aPath | is the sheet path instance for variable substitution purposes. |
| aUpdateStyle | selects whether fields should update the position and text attributes. |
| aUpdateRef | selects whether the reference field should be updated. |
| aUpdateOtherFields | selects whether non-reference fields should be updated. |
| aResetRef | selects whether the reference should be reset to the library value. |
| aResetOtherFields | selects whether non-reference fields should be reset to library values. |
Definition at line 2336 of file sch_symbol.cpp.
References AddField(), DATASHEET, GetDatasheet(), GetField(), SCH_FIELD::ImportValues(), m_part, m_pos, REFERENCE, SCH_ITEM::SetPrivate(), SetRef(), SCH_FIELD::SetText(), EDA_TEXT::SetTextPos(), SetValueFieldText(), UnescapeString(), USER, and VALUE.
Referenced by SCH_SYMBOL().
| void SCH_SYMBOL::UpdatePins | ( | ) |
Updates the cache of SCH_PIN objects for each pin.
Definition at line 1157 of file sch_symbol.cpp.
References SCH_ITEM::GetParentScreen(), and updatePins().
Referenced by BACK_ANNOTATE::applyPinSwaps(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CONNECTION_GRAPH::boost_test_update_generic_connectivity, CONNECTION_GRAPH::boost_test_update_symbol_connectivity, Deserialize(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbol(), RESOLVE_DRIVERS_FIXTURE::MakePin(), operator=(), PIN_MAP_OVERRIDE_FIXTURE::placeSymbol(), SCH_EDIT_FRAME::PutDataInPreviousState(), SCH_COMMIT::RevertToCheckpoint(), SetBodyStyle(), SetLibSymbol(), swapData(), and SCH_EDIT_TOOL::SwapPins().
|
private |
Definition at line 1166 of file sch_symbol.cpp.
References ALL_UNITS, EDA_ITEM::IsSelected(), SCH_ITEM::m_bodyStyle, m_part, m_pinMap, m_pins, name, and pin.
Referenced by SyncOtherUnits(), and UpdatePins().
| void SCH_SYMBOL::UpdatePrefix | ( | ) |
Set the prefix based on the current reference designator.
Definition at line 1780 of file sch_symbol.cpp.
References GetField(), SCH_FIELD::GetText(), REFERENCE, and SetPrefix().
Referenced by SCH_SHEET_LIST::UpdateSymbolInstanceData().
|
inline |
Definition at line 180 of file sch_symbol.h.
References m_schLibSymbolName.
Referenced by SCH_IO_KICAD_SEXPR::Format(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_IO_KICAD_SEXPR::saveSymbol(), and Serialize().
|
overridevirtualinherited |
The view bounds of text that shows a net name must match the drawing, so this reads connectivity inside a SCH_CONNECTIVITY::RENDER_SCOPE.
Reimplemented from EDA_ITEM.
Reimplemented in SCH_PIN.
Definition at line 557 of file sch_item.cpp.
References EDA_ITEM::ViewBBox().
|
inlinevirtualinherited |
Draw the parts of the object belonging to layer aLayer.
An alternative way for drawing objects if there is no KIGFX::PAINTER assigned for the view or if the PAINTER doesn't know how to paint this particular implementation of VIEW_ITEM. The preferred way of drawing is to design an appropriate PAINTER object, the method below is intended only for quick hacks and debugging purposes.
| aLayer | is the current drawing layer. |
| aView | is a pointer to the VIEW device we are drawing on. |
Reimplemented in CONSTRAINT_BADGE_ITEM, DS_PROXY_VIEW_ITEM, EDIT_POINTS, KIGFX::ANCHOR_DEBUG, KIGFX::CONSTRUCTION_GEOM, KIGFX::ORIGIN_VIEWITEM, KIGFX::PREVIEW::ARC_ASSISTANT, KIGFX::PREVIEW::BEZIER_ASSISTANT, KIGFX::PREVIEW::ELLIPSE_ASSISTANT, KIGFX::PREVIEW::RULER_ITEM, KIGFX::PREVIEW::SELECTION_AREA, KIGFX::PREVIEW::SIMPLE_OVERLAY_ITEM, KIGFX::PREVIEW::TWO_POINT_ASSISTANT, KIGFX::SNAP_INDICATOR, KIGFX::VIEW_GROUP, KIGFX::VIEW_OVERLAY, MY_DRAWING, PCB_TUNING_PATTERN, PCB_VIA_STITCH, RATSNEST_VIEW_ITEM, RECT_RADIUS_TEXT_ITEM, ROUTER_PREVIEW_ITEM, ROUTER_STATUS_VIEW_ITEM, TUNING_STATUS_VIEW_ITEM, and VIEW_OVERLAY.
Definition at line 123 of file view_item.h.
References VIEW.
Referenced by KIGFX::VIEW::draw(), and KIGFX::VIEW::updateItemGeometry().
|
overridevirtualinherited |
Return the layers the item is drawn on (which may be more than its "home" layer)
Reimplemented from SCH_ITEM.
Definition at line 24 of file symbol.cpp.
References LAYER_DANGLING, LAYER_DEVICE, LAYER_DEVICE_BACKGROUND, LAYER_FIELDS, LAYER_NOTES_BACKGROUND, LAYER_OP_CURRENTS, LAYER_PRIVATE_NOTES, LAYER_REFERENCEPART, LAYER_SELECTION_SHADOWS, LAYER_SHAPES_BACKGROUND, LAYER_VALUEPART, LIB_SYMBOL_T, SCH_SYMBOL_T, and EDA_ITEM::Type().
|
inlinevirtualinherited |
Return the level of detail (LOD) of the item.
A level of detail is the minimal VIEW scale that is sufficient for an item to be shown on a given layer.
Use LOD_HIDE and LOD_SHOW constants to hide or show the item unconditionally.
Use lodScaleForThreshold() to calculate the LOD scale for when the item passes a certain threshold size on screen.
| aLayer | is the current drawing layer. |
| aView | is a pointer to the VIEW device we are drawing on. |
Reimplemented in FOOTPRINT, GERBER_DRAW_ITEM, PAD, PCB_BARCODE, PCB_DIMENSION_BASE, PCB_FIELD, PCB_GRID_ITEM, PCB_GROUP, PCB_POINT, PCB_REFERENCE_IMAGE, PCB_SHAPE, PCB_TABLE, PCB_TEXT, PCB_TEXTBOX, PCB_TRACK, PCB_VIA, SCH_GROUP, SCH_LINE, and ZONE.
Definition at line 151 of file view_item.h.
References LOD_SHOW, and VIEW.
Referenced by PCB_GRID_HELPER::computeAnchors(), PNS_KICAD_IFACE::IsItemVisible(), KIGFX::VIEW::DRAW_ITEM_VISITOR::operator()(), EE_GRID_HELPER::queryVisible(), and PCB_GRID_HELPER::queryVisible().
|
inlineinherited |
Definition at line 157 of file view_item.h.
References m_viewPrivData.
Referenced by KIGFX::VIEW::Add(), KIGFX::VIEW::draw(), KIGFX::VIEW::HasItem(), KIGFX::VIEW::Hide(), KIGFX::VIEW::invalidateItem(), KIGFX::VIEW::IsHiddenOnOverlay(), KIGFX::VIEW::IsVisible(), KIGFX::VIEW::CLEAR_LAYER_CACHE_VISITOR::operator()(), KIGFX::VIEW::DRAW_ITEM_VISITOR::operator()(), KIGFX::VIEW::RECACHE_ITEM_VISITOR::operator()(), KIGFX::VIEW::UPDATE_COLOR_VISITOR::operator()(), KIGFX::VIEW::UPDATE_DEPTH_VISITOR::operator()(), KIGFX::VIEW::SetVisible(), KIGFX::VIEW::Update(), KIGFX::VIEW::updateItemColor(), KIGFX::VIEW::updateItemGeometry(), and KIGFX::VIEW::updateLayers().
|
overridevirtual |
May be re-implemented for each derived class in order to handle all the types given by its member data.
Implementations should call inspector->Inspect() on types in aScanTypes, and may use IterateForward() to do so on lists of such data.
| aInspector | An INSPECTOR instance to use in the inspection. |
| aTestData | Arbitrary data used by the inspector. |
| aScanTypes | Which KICAD_T types are of interest and the order in which they should be processed. |
Reimplemented from EDA_ITEM.
Definition at line 4147 of file sch_symbol.cpp.
References ALL_BODY_STYLES, ALL_UNITS, CONTINUE, DATASHEET, FOOTPRINT, SCH_ITEM::GetBodyStyle(), GetField(), SCH_ITEM::GetUnit(), m_fields, m_part, m_pins, pin, QUIT, REFERENCE, SCH_FIELD_LOCATE_DATASHEET_T, SCH_FIELD_LOCATE_FOOTPRINT_T, SCH_FIELD_LOCATE_REFERENCE_T, SCH_FIELD_LOCATE_VALUE_T, SCH_FIELD_T, SCH_LOCATE_ANY_T, SCH_PIN_T, SCH_SYMBOL_LOCATE_POWER_T, SCH_SYMBOL_T, and VALUE.
|
inlineinherited |
Definition at line 159 of file eda_item.h.
References m_flags.
Referenced by SCH_SELECTION_TOOL::SelectMultiple().
|
staticconstexprprotectedinherited |
Return this constant from ViewGetLOD() to hide the item unconditionally.
Definition at line 176 of file view_item.h.
Referenced by lodScaleForThreshold(), KIGFX::VIEW_GROUP::ViewDraw(), FOOTPRINT::ViewGetLOD(), PAD::ViewGetLOD(), PCB_BARCODE::ViewGetLOD(), PCB_DIMENSION_BASE::ViewGetLOD(), PCB_FIELD::ViewGetLOD(), PCB_GRID_ITEM::ViewGetLOD(), PCB_GROUP::ViewGetLOD(), PCB_POINT::ViewGetLOD(), PCB_REFERENCE_IMAGE::ViewGetLOD(), PCB_SHAPE::ViewGetLOD(), PCB_TABLE::ViewGetLOD(), PCB_TEXT::ViewGetLOD(), PCB_TEXTBOX::ViewGetLOD(), PCB_TRACK::ViewGetLOD(), PCB_VIA::ViewGetLOD(), SCH_GROUP::ViewGetLOD(), SCH_LINE::ViewGetLOD(), and ZONE::ViewGetLOD().
|
staticconstexprprotectedinherited |
Return this constant from ViewGetLOD() to show the item unconditionally.
Definition at line 181 of file view_item.h.
Referenced by lodScaleForThreshold(), FOOTPRINT::ViewGetLOD(), GERBER_DRAW_ITEM::ViewGetLOD(), ViewGetLOD(), PAD::ViewGetLOD(), PCB_BARCODE::ViewGetLOD(), PCB_DIMENSION_BASE::ViewGetLOD(), PCB_FIELD::ViewGetLOD(), PCB_GRID_ITEM::ViewGetLOD(), PCB_GROUP::ViewGetLOD(), PCB_POINT::ViewGetLOD(), PCB_REFERENCE_IMAGE::ViewGetLOD(), PCB_SHAPE::ViewGetLOD(), PCB_TABLE::ViewGetLOD(), PCB_TEXT::ViewGetLOD(), PCB_TEXTBOX::ViewGetLOD(), PCB_TRACK::ViewGetLOD(), PCB_VIA::ViewGetLOD(), SCH_GROUP::ViewGetLOD(), SCH_LINE::ViewGetLOD(), and ZONE::ViewGetLOD().
|
protectedinherited |
Definition at line 840 of file sch_item.h.
Referenced by SCH_PIN::Clone(), compare(), SCH_SYMBOL::doGetBoundingBox(), GetBodyStyle(), GetBodyStyleProp(), SCH_SYMBOL::GetDrawItem(), SCH_SYMBOL::GetLibPins(), SCH_SYMBOL::Init(), operator=(), SCH_SYMBOL::operator=(), SCH_ITEM(), SCH_ITEM(), SCH_SYMBOL::SCH_SYMBOL(), SCH_SYMBOL::SCH_SYMBOL(), SetBodyStyle(), SCH_SYMBOL::SetBodyStyle(), LIB_SYMBOL::SetBodyStyleCount(), SetBodyStyleProp(), SimilarityBase(), SwapItemData(), and SCH_SYMBOL::updatePins().
|
protectedinherited |
Store pointers to other items that are connected to this one, per sheet.
Definition at line 847 of file sch_item.h.
Referenced by AddConnectionTo(), ClearConnectedItems(), ConnectedItems(), and SCH_LABEL_BASE::IsType().
|
protectedinherited |
Store connectivity information, per sheet.
Definition at line 850 of file sch_item.h.
Referenced by Connection(), InitializeConnection(), SetConnectionGraph(), and ~SCH_ITEM().
|
protectedinherited |
Definition at line 852 of file sch_item.h.
Referenced by IsConnectivityDirty(), SCH_LINE::MergeOverlap(), operator=(), SCH_ITEM(), SCH_ITEM(), and SetConnectivityDirty().
|
privateinherited |
An item may be indexed by multiple graphs, each with an independent lifetime.
Definition at line 861 of file sch_item.h.
Referenced by registerConnectivityOwner(), and ~SCH_ITEM().
|
protectedinherited |
Definition at line 617 of file eda_item.h.
Referenced by ClearCustomProperties(), SCH_ITEM::compare(), GetCustomProperties(), GetCustomPropertiesAsInspectables(), GetCustomProperty(), HasCustomProperties(), operator=(), SCH_ITEM::operator=(), RemoveConflictingCustomProperties(), RemoveCustomProperty(), SetCustomProperties(), SetCustomProperty(), LIB_SYMBOL::SetParent(), PCB_BARCODE::swapData(), PCB_REFERENCE_IMAGE::swapData(), PCB_SHAPE::swapData(), PCB_TABLE::swapData(), and SCH_ITEM::SwapItemData().
|
protectedinherited |
True if symbol is set to 'Do Not Populate'.
Definition at line 278 of file symbol.h.
Referenced by LIB_SYMBOL::Compare(), LIB_SYMBOL::ComparisonAttributes(), SCH_SYMBOL::GetDNP(), GetDNP(), operator=(), SCH_SYMBOL::operator==(), SCH_SYMBOL::SCH_SYMBOL(), SCH_SYMBOL::SetDNP(), SetDNP(), SCH_SYMBOL::swapData(), SYMBOL(), and SYMBOL().
|
private |
True if the symbol should appear in netlist.
Definition at line 1129 of file sch_symbol.h.
Referenced by DoNetList(), Init(), operator=(), operator==(), SCH_SYMBOL(), SetRef(), and swapData().
|
mutableprotectedinherited |
Per-key cache of dynamic property descriptors for m_customProperties, owned by this object.
Mirrors the per-object field-property caches used by FOOTPRINT / SCH_SYMBOL / SCH_SHEET; entries linger after a key is removed but are simply not enumerated.
Definition at line 623 of file eda_item.h.
Referenced by GetCustomPropertiesAsInspectables(), and RemoveCustomProperty().
|
mutableprivate |
Per-object cache of dynamic property descriptors for custom fields and effective pin-map entries, keyed by descriptor name and populated lazily.
Definition at line 1125 of file sch_symbol.h.
Referenced by GetDynamicProperties().
|
protectedinherited |
Definition at line 276 of file symbol.h.
Referenced by LIB_SYMBOL::Compare(), LIB_SYMBOL::ComparisonAttributes(), SCH_SYMBOL::GetExcludedFromBoard(), GetExcludedFromBoard(), operator=(), SCH_SYMBOL::operator==(), SCH_SYMBOL::SCH_SYMBOL(), SCH_SYMBOL::SetExcludedFromBoard(), SetExcludedFromBoard(), LIB_SYMBOL::Similarity(), SCH_SYMBOL::swapData(), SYMBOL(), and SYMBOL().
|
protectedinherited |
Definition at line 275 of file symbol.h.
Referenced by LIB_SYMBOL::Compare(), LIB_SYMBOL::ComparisonAttributes(), SCH_SYMBOL::GetExcludedFromBOM(), GetExcludedFromBOM(), operator=(), SCH_SYMBOL::operator==(), SCH_SYMBOL::SCH_SYMBOL(), SCH_SYMBOL::SetExcludedFromBOM(), SetExcludedFromBOM(), LIB_SYMBOL::Similarity(), SCH_SYMBOL::swapData(), SYMBOL(), and SYMBOL().
|
protectedinherited |
Definition at line 277 of file symbol.h.
Referenced by LIB_SYMBOL::Compare(), LIB_SYMBOL::ComparisonAttributes(), SCH_SYMBOL::GetExcludedFromPosFiles(), GetExcludedFromPosFiles(), operator=(), SCH_SYMBOL::operator==(), SCH_SYMBOL::SCH_SYMBOL(), SCH_SYMBOL::SetExcludedFromPosFiles(), SetExcludedFromPosFiles(), LIB_SYMBOL::Similarity(), SCH_SYMBOL::swapData(), SYMBOL(), and SYMBOL().
|
protectedinherited |
Definition at line 274 of file symbol.h.
Referenced by LIB_SYMBOL::Compare(), LIB_SYMBOL::ComparisonAttributes(), SCH_SYMBOL::GetExcludedFromSim(), GetExcludedFromSim(), operator=(), SCH_SYMBOL::operator==(), SCH_SYMBOL::SCH_SYMBOL(), SCH_SYMBOL::SetExcludedFromSim(), SetExcludedFromSim(), LIB_SYMBOL::Similarity(), SCH_SYMBOL::swapData(), SYMBOL(), and SYMBOL().
|
private |
Variable length list of fields.
Definition at line 1120 of file sch_symbol.h.
Referenced by AddField(), doGetBoundingBox(), FindFieldCaseInsensitive(), FindFieldCaseInsensitive(), GetComponentClassNames(), GetContextualTextVars(), GetField(), GetField(), GetField(), GetField(), GetFields(), GetFields(), GetFields(), GetNextFieldOrdinal(), Init(), MirrorHorizontally(), MirrorVertically(), Move(), operator=(), Plot(), RemoveField(), ResolveTextVar(), Rotate(), RunOnChildren(), SCH_SYMBOL(), swapData(), SyncOtherUnits(), and Visit().
|
protectedinherited |
Definition at line 842 of file sch_item.h.
Referenced by LIB_SYMBOL::AutoplaceFields(), SCH_DIRECTIVE_LABEL::AutoplaceFields(), SCH_LABEL_BASE::AutoplaceFields(), SCH_SHEET::AutoplaceFields(), SCH_SYMBOL::AutoplaceFields(), GetFieldsAutoplaced(), operator=(), SCH_SHEET::Resize(), SCH_SHEET::Rotate(), SCH_LABEL_BASE::Rotate90(), SCH_ITEM(), SCH_ITEM(), SCH_SHEET::SCH_SHEET(), SCH_SHEET::SCH_SHEET(), SCH_SYMBOL::SCH_SYMBOL(), SetFieldsAutoplaced(), and SwapItemData().
|
protectedinherited |
Definition at line 608 of file eda_item.h.
Referenced by ClearFlags(), DS_DRAW_ITEM_BASE::DS_DRAW_ITEM_BASE(), EDA_ITEM(), EDA_ITEM(), EDA_ITEM(), SCH_PIN::GetBoundingBox(), GetEditFlags(), GetFlags(), PCB_TRACK::GetMsgPanelInfoBase_Common(), SCH_LINE::GetSelectedPoints(), GetTempFlags(), HasFlag(), SCH_FIELD::HitTest(), SCH_FIELD::HitTest(), SCH_JUNCTION::HitTest(), SCH_JUNCTION::HitTest(), SCH_LINE::HitTest(), SCH_LINE::HitTest(), SCH_PIN::HitTest(), SCH_PIN::HitTest(), SCH_SHAPE::HitTest(), SCH_SHAPE::HitTest(), SCH_SYMBOL::HitTest(), SCH_SYMBOL::HitTest(), SCH_TEXT::HitTest(), SCH_TEXT::HitTest(), ZONE::InitDataFromSrcInCopyCtor(), IsBrightened(), SCH_ITEM::IsConnected(), IsEntered(), IsModified(), IsMoving(), IsNew(), IsSelected(), IsShownAsBitmap(), SCH_LINE::MirrorHorizontally(), SCH_LINE::MirrorVertically(), operator=(), PCB_SHAPE::operator==(), SCH_LINE::Rotate(), SetFlags(), LIB_SYMBOL::Similarity(), PCB_SHAPE::Similarity(), PCB_REFERENCE_IMAGE::swapData(), PCB_SHAPE::swapData(), SCH_ITEM::SwapFlags(), SCH_PIN::ViewBBox(), and XorFlags().
|
privateinherited |
Additional transparency for diff'ing items.
Definition at line 206 of file view_item.h.
Referenced by GetForcedTransparency(), KIGFX::VIEW::DRAW_ITEM_VISITOR::operator()(), SetForcedTransparency(), and VIEW_ITEM().
|
protectedinherited |
Definition at line 614 of file eda_item.h.
Referenced by EDA_ITEM(), EDA_ITEM(), ZONE::InitDataFromSrcInCopyCtor(), IsForceVisible(), operator=(), PCB_SHAPE::operator==(), SetForceVisible(), LIB_SYMBOL::SetParent(), PCB_SHAPE::Similarity(), PCB_REFERENCE_IMAGE::swapData(), and PCB_SHAPE::swapData().
|
protectedinherited |
The group this item belongs to, if any. No ownership implied.
Definition at line 610 of file eda_item.h.
Referenced by EDA_ITEM(), EDA_ITEM(), EDA_ITEM(), GetParentGroup(), operator=(), SCH_LINE::SCH_LINE(), and SetParentGroup().
|
private |
Index from an instance's sheet path to its position in m_instances for O(1) lookups.
Maintained by AddHierarchicalReference() and RemoveInstance().
Definition at line 1153 of file sch_symbol.h.
Referenced by AddHierarchicalReference(), GetInstance(), getInstance(), getInstance(), GetRef(), GetUnitSelection(), operator=(), rebuildInstancePathIndex(), SCH_SYMBOL(), SetRef(), SetUnitSelection(), and swapData().
|
private |
Define the hierarchical path and reference of the symbol.
This allows support for multiple references to a single sub-sheet.
Definition at line 1147 of file sch_symbol.h.
Referenced by AddHierarchicalReference(), AddSheetPathReferenceEntryIfMissing(), ClearAnnotation(), GetInstance(), getInstance(), getInstance(), GetInstances(), GetRef(), GetUnitSelection(), IsAnnotated(), operator=(), rebuildInstancePathIndex(), RemoveField(), RemoveInstance(), SCH_SYMBOL(), SetRef(), SetUnitSelection(), SetUnitSelection(), and swapData().
|
privateinherited |
Definition at line 204 of file view_item.h.
Referenced by IsBOARD_ITEM(), and VIEW_ITEM().
|
protectedinherited |
Definition at line 857 of file sch_item.h.
Referenced by IsLocked(), operator=(), SCH_ITEM(), SCH_ITEM(), SetLocked(), and SwapItemData().
|
protectedinherited |
Definition at line 613 of file eda_item.h.
Referenced by EDA_ITEM(), EDA_ITEM(), IsRollover(), operator=(), SetIsRollover(), and LIB_SYMBOL::SetParent().
|
privateinherited |
Definition at line 203 of file view_item.h.
Referenced by IsSCH_ITEM(), and VIEW_ITEM().
|
protectedinherited |
Definition at line 838 of file sch_item.h.
Referenced by CanConnect(), SCH_LINE::CanConnect(), SCH_LINE::doIsConnected(), SCH_LINE::GetItemDescription(), GetLayer(), SCH_TEXTBOX::GetLegacyTextMargin(), SCH_LINE::GetMenuImage(), SCH_TEXT::GetMsgPanelInfo(), SCH_LINE::GetPenWidth(), SCH_SYMBOL::Init(), SCH_LINE::IsConnectable(), IsType(), SCH_LINE::IsType(), SCH_TEXT::MirrorHorizontally(), SCH_TEXT::MirrorVertically(), operator=(), SCH_BUS_ENTRY_BASE::Plot(), SCH_LABEL_BASE::Plot(), SCH_RULE_AREA::Plot(), SCH_SHAPE::Plot(), SCH_TABLE::Plot(), SCH_TEXT::Plot(), SCH_TEXTBOX::Plot(), SCH_BITMAP::SCH_BITMAP(), SCH_BUS_BUS_ENTRY::SCH_BUS_BUS_ENTRY(), SCH_BUS_WIRE_ENTRY::SCH_BUS_WIRE_ENTRY(), SCH_BUS_WIRE_ENTRY::SCH_BUS_WIRE_ENTRY(), SCH_DIRECTIVE_LABEL::SCH_DIRECTIVE_LABEL(), SCH_GLOBALLABEL::SCH_GLOBALLABEL(), SCH_HIERLABEL::SCH_HIERLABEL(), SCH_ITEM(), SCH_ITEM(), SCH_JUNCTION::SCH_JUNCTION(), SCH_LABEL::SCH_LABEL(), SCH_LINE::SCH_LINE(), SCH_PIN::SCH_PIN(), SCH_PIN::SCH_PIN(), SCH_PIN::SCH_PIN(), SCH_PIN::SCH_PIN(), SCH_SHEET::SCH_SHEET(), SCH_SHEET::SCH_SHEET(), SCH_SHEET_PIN::SCH_SHEET_PIN(), SCH_TEXT::SCH_TEXT(), SCH_TEXTBOX::SCH_TEXTBOX(), SetLayer(), SwapItemData(), SCH_JUNCTION::ViewGetLayers(), SCH_LINE::ViewGetLayers(), SCH_SHAPE::ViewGetLayers(), and SCH_TEXT::ViewGetLayers().
|
private |
Name and library the symbol was loaded from, i.e. 74xx:74LS00.
Definition at line 1105 of file sch_symbol.h.
Referenced by Deserialize(), GetLibId(), GetMsgPanelInfo(), GetSchSymbolLibraryName(), GetSymbolIDAsString(), GetVariantLibSymbol(), operator=(), ResolveTextVar(), SCH_SYMBOL(), SCH_SYMBOL(), SetLibId(), swapData(), and SyncOtherUnits().
|
protectedinherited |
Definition at line 615 of file eda_item.h.
Referenced by ClearFlags(), IsBrightened(), IsNetHighlighted(), operator=(), SetNetHighlighted(), and LIB_SYMBOL::SetParent().
|
protectedinherited |
Owner.
Definition at line 609 of file eda_item.h.
Referenced by PCB_BOARD_OUTLINE::CopyPros(), SCH_FIELD::Deserialize(), SCH_FIELD::DoHypertextAction(), EDA_ITEM(), EDA_ITEM(), EDA_ITEM(), SCH_FIELD::GetBoundingBox(), SCH_FIELD::GetDefaultLayer(), SCH_FIELD::GetDrawRotation(), SCH_FIELD::GetMenuImage(), PAD::GetMsgPanelInfo(), PCB_DIMENSION_BASE::GetMsgPanelInfo(), SCH_FIELD::GetName(), BOARD_ITEM::GetParent(), GetParent(), SCH_SHEET_PIN::GetParent(), BOARD_ITEM::GetParentAsString(), SCH_FIELD::GetParentPosition(), SCH_FIELD::GetPosition(), SCH_TEXT::GetShownText(), SCH_FIELD::GetText(), SCH_FIELD::getUnescapedText(), SCH_FIELD::GetUntranslatedName(), SCH_FIELD::HitTest(), SCH_FIELD::IsLocked(), SCH_PIN::IsStacked(), SCH_FIELD::Matches(), BOARD_BOUNDING_BOX::operator=(), operator=(), PAD::operator==(), PCB_BOARD_OUTLINE::operator==(), SCH_FIELD::operator==(), SCH_FIELD::Plot(), SCH_LABEL_BASE::Plot(), SCH_FIELD::Replace(), SCH_ITEM::ResolveText(), SCH_LABEL_BASE::ResolveTextVar(), SCH_FIELD::SCH_FIELD(), SCH_SYMBOL::SCH_SYMBOL(), SCH_FIELD::Serialize(), SetModified(), SetParent(), SCH_FIELD::SetPosition(), SCH_FIELD::SetText(), PAD::Similarity(), PCB_BOARD_OUTLINE::Similarity(), PCB_REFERENCE_IMAGE::swapData(), and PCB_SHAPE::swapData().
|
private |
A flattened copy of the LIB_SYMBOL from the PROJECT object's libraries.
Definition at line 1127 of file sch_symbol.h.
Referenced by GetAllLibPins(), GetBodyStyleCount(), GetBodyStyleDescription(), GetDatasheet(), GetDescription(), GetEffectiveLibSymbol(), GetFullPinCount(), GetKeyWords(), GetLibPins(), GetLibSymbolRef(), GetLibSymbolRef(), GetMsgPanelInfo(), GetShownDescription(), GetShownKeyWords(), GetShowPinNames(), GetShowPinNumbers(), GetUnitCount(), GetUnitDisplayName(), GetVariantLibSymbol(), HasDeMorganBodyStyles(), IsGlobalPower(), IsLocalPower(), IsMissingLibSymbol(), IsNormal(), MapLibPins(), operator=(), Plot(), PlotPins(), ResolveTextVar(), SCH_SYMBOL(), SCH_SYMBOL(), Serialize(), SetLibSymbol(), SetShowPinNames(), SetShowPinNumbers(), SubReference(), swapData(), UpdateFields(), updatePins(), and Visit().
|
private |
Definition at line 1131 of file sch_symbol.h.
Referenced by GetPassthroughMode(), Init(), operator=(), operator==(), SCH_SYMBOL(), SCH_SYMBOL(), SCH_SYMBOL(), SetPassthroughMode(), and swapData().
Library pin pointer : SCH_PIN indices.
Definition at line 1136 of file sch_symbol.h.
Referenced by GetPin(), and updatePins().
|
private |
Base (no-variant) pin-to-pad map override applied when no variant override exists for the sheet path (issue #2282).
Definition at line 1140 of file sch_symbol.h.
Referenced by GetPinMapOverride(), operator=(), SCH_SYMBOL(), SetPinMapOverride(), and swapData().
|
protectedinherited |
The offset in mils to draw the pin name.
Set to 0 to draw the pin name above the pin.
Definition at line 269 of file symbol.h.
Referenced by LIB_SYMBOL::Compare(), LIB_SYMBOL::ComparisonAttributes(), GetPinNameOffset(), LIB_SYMBOL::LIB_SYMBOL(), operator=(), SetPinNameOffset(), LIB_SYMBOL::Similarity(), SYMBOL(), and SYMBOL().
|
private |
A copy of SCH_PIN objects from the library symbol.
Definition at line 1135 of file sch_symbol.h.
Referenced by ClearAnnotation(), ClearBrightenedPins(), Deserialize(), doIsConnected(), GetConnectionPoints(), GetEndPoints(), GetGraphicalPins(), GetPin(), GetPin(), GetPinByEffectivePadNumber(), GetPins(), GetPins(), GetPinsByNumber(), GetRawPins(), GetRawPins(), HasBrightenedPins(), HasConnectivityChanges(), IsMovableFromAnchorPoint(), IsPointClickableAnchor(), operator==(), operator==(), RunOnChildren(), SCH_SYMBOL(), SetLibSymbol(), SetRef(), swapData(), SyncOtherUnits(), UpdateDanglingState(), updatePins(), and Visit().
|
private |
Definition at line 1104 of file sch_symbol.h.
Referenced by doGetBoundingBox(), doIsConnected(), GetConnectionPoints(), GetDrawItem(), GetPinPhysicalPosition(), GetPosition(), Init(), IsMovableFromAnchorPoint(), MirrorHorizontally(), MirrorVertically(), Move(), operator<(), operator=(), Plot(), PlotPins(), Rotate(), SCH_SYMBOL(), SetPosition(), swapData(), UpdateDanglingState(), and UpdateFields().
|
private |
C, R, U, Q etc - the first character(s) which typically indicate what the symbol is.
Determined, upon placement, from the library symbol. Created upon file load, by the first non-digits in the reference fields.
Definition at line 1106 of file sch_symbol.h.
Referenced by ClearAnnotation(), GetPrefix(), GetRef(), Init(), operator<(), operator=(), operator==(), SCH_SYMBOL(), SCH_SYMBOL(), SetPrefix(), SetRef(), SetUnitSelection(), and swapData().
|
protectedinherited |
Definition at line 281 of file symbol.h.
Referenced by LIB_SYMBOL::GetBodyAndPinsBoundingBox(), LIB_SYMBOL::GetBodyBoundingBox(), and SetPreviewBodyStyle().
|
protectedinherited |
Definition at line 280 of file symbol.h.
Referenced by LIB_SYMBOL::GetBodyAndPinsBoundingBox(), LIB_SYMBOL::GetBodyBoundingBox(), and SetPreviewUnit().
|
protectedinherited |
Definition at line 841 of file sch_item.h.
Referenced by IsPrivate(), SCH_FIELD::operator=(), operator=(), SCH_FIELD::SCH_FIELD(), SCH_ITEM(), SCH_ITEM(), SetPrivate(), SimilarityBase(), and SwapItemData().
|
protectedinherited |
Definition at line 612 of file eda_item.h.
Referenced by GetRolloverPos(), and SetIsRollover().
|
protectedinherited |
Store pointers to rule areas which this item is contained within.
Definition at line 855 of file sch_item.h.
Referenced by AddRuleAreaToCache(), ClearRuleAreasCache(), SCH_SYMBOL::GetComponentClassNames(), GetRuleAreaCache(), RemoveRuleAreaFromCache(), ResolveDNP(), ResolveExcludedFromBoard(), ResolveExcludedFromBOM(), ResolveExcludedFromPosFiles(), ResolveExcludedFromSim(), and ~SCH_ITEM().
|
private |
The name used to look up a symbol in the symbol library embedded in a schematic.
By default this is the same as LIB_ID::GetLibItemName(). However, schematics allow for multiple variants of the same library symbol. Set this member in order to preserve the link to the original symbol library. If empty, LIB_ID::GetLibItemName() should be used.
Definition at line 1118 of file sch_symbol.h.
Referenced by GetSchSymbolLibraryName(), operator<(), operator==(), operator==(), SCH_SYMBOL(), SetSchSymbolLibraryName(), swapData(), and UseLibIdLookup().
|
protectedinherited |
Definition at line 271 of file symbol.h.
Referenced by LIB_SYMBOL::Compare(), LIB_SYMBOL::ComparisonAttributes(), GetShowPinNames(), operator=(), SetShowPinNames(), LIB_SYMBOL::Similarity(), SYMBOL(), and SYMBOL().
|
protectedinherited |
Definition at line 272 of file symbol.h.
Referenced by LIB_SYMBOL::Compare(), LIB_SYMBOL::ComparisonAttributes(), GetShowPinNumbers(), operator=(), SetShowPinNumbers(), LIB_SYMBOL::Similarity(), SYMBOL(), and SYMBOL().
|
private |
Definition at line 1133 of file sch_symbol.h.
Referenced by GetNetChainName(), Init(), operator=(), operator==(), SCH_SYMBOL(), SCH_SYMBOL(), SCH_SYMBOL(), SetNetChainName(), and swapData().
|
protectedinherited |
Definition at line 843 of file sch_item.h.
Referenced by GetStoredPos(), and SetStoredPos().
|
privateinherited |
Run time identification, keep private so it can never be changed after a ctor sets it.
Definition at line 605 of file eda_item.h.
Referenced by EDA_ITEM(), EDA_ITEM(), EDA_ITEM(), IsType(), and Type().
|
protectedinherited |
The rotation/mirror transformation.
Definition at line 267 of file symbol.h.
Referenced by SCH_SYMBOL::doGetBoundingBox(), SCH_SYMBOL::doIsConnected(), SCH_SYMBOL::GetConnectionPoints(), SCH_SYMBOL::GetDrawItem(), SCH_SYMBOL::GetOrientation(), SCH_SYMBOL::GetPinPhysicalPosition(), GetTransform(), GetTransform(), SCH_SYMBOL::Init(), SCH_SYMBOL::operator=(), SCH_SYMBOL::SCH_SYMBOL(), SCH_SYMBOL::SetOrientation(), SetTransform(), SCH_SYMBOL::swapData(), and SCH_SYMBOL::UpdateDanglingState().
|
protectedinherited |
Definition at line 839 of file sch_item.h.
Referenced by SCH_SYMBOL::AddHierarchicalReference(), SCH_SYMBOL::AddSheetPathReferenceEntryIfMissing(), SCH_PIN::Clone(), compare(), SCH_SYMBOL::doGetBoundingBox(), SCH_SYMBOL::GetDrawItem(), SCH_SYMBOL::GetEndPoints(), SCH_SYMBOL::GetLibPins(), SCH_SYMBOL::GetPins(), SCH_SYMBOL::GetPins(), GetUnit(), SCH_SYMBOL::GetUnitSelection(), GetUnitString(), SCH_SYMBOL::Init(), operator=(), SCH_SYMBOL::operator=(), SCH_ITEM(), SCH_ITEM(), SCH_SYMBOL::SCH_SYMBOL(), SCH_SYMBOL::SCH_SYMBOL(), SCH_SYMBOL::SetRef(), SetUnit(), LIB_SYMBOL::SetUnitCount(), SetUnitString(), SimilarityBase(), and SwapItemData().
|
inherited |
Definition at line 599 of file eda_item.h.
Referenced by addConnections(), SCH_RULE_AREA::addContainedItem(), PCB_POINT_EDITOR::addCorner(), SCH_RULE_AREA::addDirective(), SCH_SYMBOL::AddHierarchicalReference(), RC_ITEM::AddItem(), SCHEMATIC::AdoptContent(), SCH_EDIT_FRAME::AnnotateSymbols(), SCH_CONNECTIVITY::AppendConnectionInfo(), KICAD_DIFF::SCH_MERGE_APPLIER::Apply(), SCH_EDITOR_CONTROL::AssignNetclass(), bindDimensionEndpoints(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), HOVER_PICKER::Brighten(), SCH_SHEET_LIST::BuildSheetList(), BOARD::BulkRemoveStaleTeardrops(), BOARD::CacheAndReturnItemById(), BOARD::CacheItemById(), PCB_POINT_EDITOR::chamferCorner(), SCH_SHEET_PATH::CheckForMissingSymbolInstances(), SCH_SHEET_PATH::Cmp(), DRC_TEST_PROVIDER_SOLDER_MASK::collectBridge(), collectConstraintCluster(), CollectConstraintScopeIds(), collectImportedUuids(), SCH_ITEM::compare(), SCH_SHAPE::compare(), SCH_INSPECTION_TOOL::CompareSchematicWithHistory(), PCB_IO_IPC2581::componentName(), KICAD_DIFF::ConfigureSchDiffCanvasContext(), constraintMemberForEditPoint(), SCHEMATIC::ConvertRefsToKIIDs(), SCH_EDIT_TABLE_TOOL::copyCell(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::createActualDerivedSymbol(), ORCAD_CONVERTER::createBlockSheet(), createTopLevelSheet(), ORCAD_CONVERTER::createTopLevelSheets(), PCB_GROUP::DeepDuplicate(), SCH_BITMAP::Deserialize(), SCH_BUS_ENTRY_BASE::Deserialize(), SCH_JUNCTION::Deserialize(), SCH_LINE::Deserialize(), SCH_NO_CONNECT::Deserialize(), SCH_PIN::Deserialize(), SCH_RULE_AREA::Deserialize(), SCH_SHAPE::Deserialize(), SCH_SHEET::Deserialize(), SCH_SHEET_PIN::Deserialize(), SCH_SYMBOL::Deserialize(), SCH_TABLE::Deserialize(), SCH_TEXT::Deserialize(), SCH_TEXTBOX::Deserialize(), SCH_GROUP::DeserializeGroup(), CONSTRAINT_EDIT_TOOL::DiagnoseAfterMove(), BOARD_INSPECTION_TOOL::DiffFootprint(), KICAD_DIFF::PCB_DIFFER::diffFootprintChildren(), SCH_INSPECTION_TOOL::DiffSymbol(), DimensionEndpointsBound(), ZONE_FILLER_TOOL::DirtyZone(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::PCB_PAINTER::drawDrillSymbol(), EDIT_TOOL::Duplicate(), FOOTPRINT::Duplicate(), LIB_SYMBOL::Duplicate(), SCH_ITEM::Duplicate(), SYMBOL_EDITOR_EDIT_TOOL::Duplicate(), EDA_ITEM(), CONNECTION_GRAPH::ercCheckBusToNetConflicts(), CONNECTION_GRAPH::ercCheckNoConnects(), BOARD::ExchangeFootprint(), PAD_TOOL::explodePad(), NETLIST_EXPORTER_ALLEGRO::extractComponentsInfo(), SCH_CONNECTIVITY::ExtractInstanceFacts(), SCH_CONNECTIVITY::ExtractPinMapFacts(), SCHEMATIC_TEXT_VAR_ADAPTER::ExtractSourceKeys(), SCH_CONNECTIVITY::ExtractVariantSymbolFact(), FabItemLess(), BOARD::FillItemMap(), SCH_SHEET_LIST::FillItemMap(), ORCAD_CONVERTER::finalizeNetNames(), FindDimensionLengthConstraint(), SCH_EDITOR_CONTROL::FindNetInInspector(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), MULTICHANNEL_TOOL::findOtherItemsInRuleArea(), MULTICHANNEL_TOOL::findRoutingInRuleArea(), KIGIT_PCB_MERGE::findSetDifferences(), findSingleNetLabelForPin(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), SCH_DRAWING_TOOLS::findWireLabelDriverName(), SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), PCB_BASE_FRAME::FocusOnItems(), SCH_IO_KICAD_SEXPR::Format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), SCH_MARKER::FromProto(), BOARD::GetCachedItemById(), DRC_ENGINE::GetCachedOwnClearance(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getDataStoreKey(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::getDataStoreKey(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::getDataStoreKey(), SCH_PIN::GetDefaultNetName(), WIDGET_DIFF_CANVAS::getItemId(), RC_ITEM::GetJsonViolation(), PAD::GetMsgPanelInfo(), DIALOG_BOARD_REANNOTATE::GetNewRefDes(), SCH_SYMBOL::GetRef(), GetSymbolReferences(), PCB_MARKER::GetUUID(), SCH_MARKER::GetUUID(), API_HANDLER_SYMBOL::handleCreateUpdateItemsInternal(), hashConstraint(), SCH_SHEET::HasPinIdentityChanges(), ZONE::HigherPriority(), DRC_ENGINE::InitializeClearanceCache(), SCH_SHEET_PATH::IsContainedWithin(), SCH_LABEL_BASE::IsType(), SCH_SHEET::IsVirtualRootSheet(), NETLIST_EXPORTER_BASE::itemNetName(), EESCHEMA_JOBS_HANDLER::JobImport(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), DRC_ENGINE::loadImplicitRules(), EESCHEMA_HELPERS::LoadSchematic(), SCH_IO_PADS::LoadSchematicFile(), SCH_EDIT_FRAME::LoadSheetFromFile(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), KICAD_DIFF::PCB_DIFFER::makeDescriptor(), NETLIST_EXPORTER_XML::makeSymbols(), ISSUE24290_FIXTURE::makeTopLevelSheet(), SCH_EDIT_FRAME::mapExistingAnnotation(), MatchPendingStackExpansion(), BUS_UNFOLD_MENU::memberEntries(), ORCAD_CONVERTER::minimizeNetLabels(), ERC_TESTER::multiUnitSources(), SCH_CONNECTIVITY::NAVIGATION_QUERY::NetItems(), SCH_CONNECTIVITY::NETCHAIN_MANAGER::NetKeyForItem(), DIALOG_CREATE_NET_CHAIN::OnFindPathClicked(), SCH_EDIT_FRAME::OpenProjectFiles(), BOARD::cmp_drawings::operator()(), BOARD::cmp_items::operator()(), BOARD_ITEM::ptr_cmp::operator()(), CompareByUuid::operator()(), FOOTPRINT::cmp_drawings::operator()(), FOOTPRINT::cmp_pads::operator()(), FOOTPRINT::cmp_zones::operator()(), PCB_POINT::cmp_points::operator()(), PCB_SHAPE::cmp_drawings::operator()(), PCB_TRACK::cmp_tracks::operator()(), ERC_SCH_PIN_CONTEXT::operator<(), SCH_SYMBOL::operator<(), ERC_SCH_PIN_CONTEXT::operator==(), PAD::operator==(), SCH_FIELD::operator==(), packLabel(), PackSymbol(), PAD::PAD(), SCH_IO_KICAD_SEXPR_PARSER::parseEllipseBody(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), SCH_IO_KICAD_SEXPR_PARSER::parseSchTextBoxContent(), SCH_EDITOR_CONTROL::Paste(), SCH_SHEET_PATH::PathAsString(), PCB_VIA::PCB_VIA(), KICAD_DIFF::PcbDiffItemId(), ORCAD_CONVERTER::placeFolder(), BACK_ANNOTATE::processNetNameChange(), processTextItem(), publishedConnection(), SCH_SHEET_PATH::push_back(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), NETLIST_EXPORTER_SPICE::ReadSchematicAndLibraries(), BOARD::RebindItemUuid(), SCH_CONNECTIVITY::NETCHAIN_MANAGER::rebuild(), PCB_GENERATED_TABLE::RebuildCells(), ORCAD_CONVERTER::recordNetNameMap(), SCH_MOVE_TOOL::recordRedundantJunctions(), SCH_EDIT_FRAME::RefreshConnectivity(), BOARD::Remove(), PCB_POINT_EDITOR::removeCorner(), SCH_RULE_AREA::RemoveDirective(), SCH_SYMBOL::RemoveInstance(), SCH_RULE_AREA::RemoveItem(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::RemoveSymbol(), CONSTRAINT_OVERLAY::render(), SCH_SCREENS::ReplaceDuplicateTimeStamps(), ReSolveAfterShapeResize(), PCB_IO_KICAD_SEXPR_PARSER::resolveConstraints(), PCB_IO_KICAD_SEXPR_PARSER::resolveGroups(), BOARD::ResolveItem(), SCH_SHEET_PATH::ResolveItem(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::resolveSilkDisposition(), EE_GRID_HELPER::ResolveSnap(), PCB_GRID_HELPER::ResolveSnap(), DRC_TEST_PROVIDER_SILK_CLEARANCE::Run(), SCH_IO_KICAD_SEXPR::saveBitmap(), SCH_IO_KICAD_SEXPR::saveBusEntry(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), SCH_IO_KICAD_SEXPR::saveGroup(), SCH_IO_KICAD_SEXPR::saveJunction(), SCH_IO_KICAD_SEXPR::saveLine(), SCH_IO_KICAD_SEXPR::saveNoConnect(), SCH_EDIT_FRAME::SaveProject(), SCH_IO_KICAD_SEXPR::saveShape(), SCH_IO_KICAD_LEGACY::saveSheet(), SCH_IO_KICAD_SEXPR::saveSheet(), SCH_IO_KICAD_LEGACY::saveSymbol(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCH_IO_KICAD_SEXPR::saveTable(), SCH_IO_KICAD_SEXPR::saveText(), SCH_IO_KICAD_SEXPR::saveTextBox(), SCH_PIN::SCH_PIN(), SCH_REFERENCE::SCH_REFERENCE(), SCH_SHEET::SCH_SHEET(), SCH_SYMBOL::SCH_SYMBOL(), FOOTPRINT::Serialize(), PAD::Serialize(), PCB_ARC::Serialize(), PCB_BARCODE::Serialize(), PCB_CONSTRAINT::Serialize(), PCB_DIMENSION_BASE::Serialize(), PCB_DRILL_MAP::Serialize(), PCB_GRID_ITEM::Serialize(), PCB_GROUP::Serialize(), PCB_POINT::Serialize(), PCB_REFERENCE_IMAGE::Serialize(), PCB_SHAPE::Serialize(), PCB_TABLE::Serialize(), PCB_TEXT::Serialize(), PCB_TEXTBOX::Serialize(), PCB_TRACK::Serialize(), PCB_TUNING_PATTERN::Serialize(), PCB_VIA::Serialize(), PCB_VIA_STACK::Serialize(), PCB_VIA_STITCH::Serialize(), SCH_BITMAP::Serialize(), SCH_BUS_ENTRY_BASE::Serialize(), SCH_GLOBALLABEL::Serialize(), SCH_GROUP::Serialize(), SCH_JUNCTION::Serialize(), SCH_LINE::Serialize(), SCH_NO_CONNECT::Serialize(), SCH_PIN::Serialize(), SCH_RULE_AREA::Serialize(), SCH_SHAPE::Serialize(), SCH_SHEET::Serialize(), SCH_SHEET_PIN::Serialize(), SCH_SYMBOL::Serialize(), SCH_TABLE::Serialize(), SCH_TEXT::Serialize(), SCH_TEXTBOX::Serialize(), ZONE::Serialize(), PAD::SetAttribute(), PCB_VIA::SetBottomLayer(), SetDimensionValueMode(), RC_ITEM::SetItems(), BOARD_CONNECTED_ITEM::SetLayer(), PCB_VIA::SetLayerPair(), PAD::SetLayerSet(), BOARD_CONNECTED_ITEM::SetNetCode(), SCH_EDITOR_CONTROL::setPastedSymbolInstances(), CONSTRAINT_EDIT_TOOL::setSelectedConstraint(), SCHEMATIC::SetSheetNumberAndCount(), TEARDROP_MANAGER::setTeardropPriorities(), NETINFO_ITEM::SetTerminal(), PCB_VIA::SetTopLayer(), BOARD_ITEM::SetUuid(), BOARD_ITEM::SetUuidDirect(), LIB_SYMBOL::Similarity(), PAD::Similarity(), PCB_DIMENSION_BASE::Similarity(), PCB_FIELD::Similarity(), SCH_BITMAP::Similarity(), SCH_BUS_ENTRY_BASE::Similarity(), SCH_FIELD::Similarity(), SCH_JUNCTION::Similarity(), SCH_LABEL_BASE::Similarity(), SCH_LINE::Similarity(), SCH_NO_CONNECT::Similarity(), SCH_PIN::Similarity(), SCH_SHAPE::Similarity(), SCH_TEXT::Similarity(), SCH_TEXTBOX::Similarity(), SCH_DRAWING_TOOLS::SingleClickPlace(), SCH_SHEET_LIST::SortByHierarchicalPageNumbers(), stableDriverIdentity(), SCH_SYMBOL::SyncOtherUnits(), SCH_SHEET::SyncUuidToScreen(), TEARDROP_MANAGER::teardropUuid(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::testAgainstEdge(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testGraphicClearances(), testGroupEqual(), DRC_TEST_PROVIDER_HOLE_TO_HOLE::testHoleAgainstHole(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), ERC_TESTER::TestLibSymbolIssues(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadClearances(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testSingleLayerItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackClearances(), ERC_TESTER::TestVariantSymbols(), ToProto(), DIALOG_LABEL_PROPERTIES::TransferDataFromWindow(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), unpackLabel(), NET_CHAIN_MENU::update(), REPLACE_TERMINAL_PAD_MENU::update(), CONSTRAINT_EDIT_TOOL::updateConstraintMsgPanel(), BOARD_NETLIST_UPDATER::updateFootprintGroup(), PCB_POINT_EDITOR::updateItem(), PCB_CONTROL::UpdateMessagePanel(), PL_EDITOR_CONTROL::UpdateMessagePanel(), SCH_INSPECTION_TOOL::UpdateMessagePanel(), BOARD_NETLIST_UPDATER::UpdateNetlist(), SCH_EDITOR_CONTROL::updatePastedSheet(), SCH_EDITOR_CONTROL::updatePastedSymbol(), SCH_API_SAVE::UpdateProjectFile(), BOARD::UpdateRatsnestExclusions(), DIALOG_FOOTPRINT_FIELDS_TABLE::updateSelectionItems(), DIALOG_SYMBOL_FIELDS_TABLE::updateSelectionItems(), SCH_SHEET_LIST::UpdateSymbolInstanceData(), PCB_DIMENSION_BASE::ViewGetLOD(), PCB_SHAPE::ViewGetLOD(), NETLIST_EXPORTER_CADSTAR::writeNetlist(), NETLIST_EXPORTER_ORCADPCB2::writeNetlist(), and NETLIST_EXPORTER_PADS::writeNetlist().
|
mutableprivate |
Definition at line 1155 of file sch_symbol.h.
Referenced by ClearCaches(), ClearVariantSymbolOverride(), GetVariantLibSymbol(), operator=(), SetLibSymbol(), SetVariantSymbolOverride(), and swapData().
|
privateinherited |
Definition at line 205 of file view_item.h.
Referenced by KIGFX::VIEW::Add(), KIGFX::VIEW::OnDestroy(), KIGFX::VIEW::unlinkItem(), KIGFX::VIEW::updateBbox(), KIGFX::VIEW::updateLayers(), VIEW_ITEM(), viewPrivData(), and ~VIEW_ITEM().
|
staticprivate |
Definition at line 1158 of file sch_symbol.h.
Referenced by GetOrientation().