![]() |
KiCad PCB EDA Suite
|
Schematic symbol object. More...
#include <sch_symbol.h>
Public Member Functions | |
SCH_SYMBOL (const wxPoint &pos=wxPoint(0, 0), SCH_ITEM *aParent=nullptr) | |
SCH_SYMBOL (const LIB_SYMBOL &aSymbol, const LIB_ID &aLibId, const SCH_SHEET_PATH *aSheet, int unit, int convert=0, const wxPoint &pos=wxPoint(0, 0)) | |
Create schematic symbol from library symbol object. More... | |
SCH_SYMBOL (const LIB_SYMBOL &aSymbol, const SCH_SHEET_PATH *aSheet, const PICKED_SYMBOL &aSel, const wxPoint &pos=wxPoint(0, 0)) | |
SCH_SYMBOL (const SCH_SYMBOL &aSymbol) | |
Clone aSymbol into a new schematic symbol object. More... | |
~SCH_SYMBOL () | |
wxString | GetClass () const override |
Return the class name. More... | |
const std::vector< SYMBOL_INSTANCE_REFERENCE > & | GetInstanceReferences () |
void | ViewGetLayers (int aLayers[], int &aCount) const override |
Return the layers the item is drawn on (which may be more than its "home" layer) More... | |
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. More... | |
void | SetLibId (const LIB_ID &aName) |
const LIB_ID & | GetLibId () const |
void | SetSchSymbolLibraryName (const wxString &aName) |
The name of the symbol in the schematic library symbol list. More... | |
wxString | GetSchSymbolLibraryName () const |
bool | UseLibIdLookup () const |
std::unique_ptr< LIB_SYMBOL > & | GetLibSymbolRef () |
const std::unique_ptr< LIB_SYMBOL > & | GetLibSymbolRef () const |
void | SetLibSymbol (LIB_SYMBOL *aLibSymbol) |
Set this schematic symbol library symbol reference to aLibSymbol. More... | |
wxString | GetDescription () const |
Return information about the aliased parts. More... | |
wxString | GetDatasheet () const |
Return the documentation text for the given part alias. More... | |
int | GetUnit () const |
void | UpdatePins () |
Updates the cache of SCH_PIN objects for each pin. More... | |
void | SetUnit (int aUnit) |
Change the unit number to aUnit. More... | |
void | UpdateUnit (int aUnit) |
Change the unit number to aUnit without setting any internal flags. More... | |
int | GetConvert () const |
void | SetConvert (int aConvert) |
wxString | GetPrefix () const |
void | SetPrefix (const wxString &aPrefix) |
TRANSFORM & | GetTransform () |
const TRANSFORM & | GetTransform () const |
void | SetTransform (const TRANSFORM &aTransform) |
int | GetUnitCount () const |
Return the number of units per package of the symbol. More... | |
void | SetOrientation (int aOrientation) |
Compute the new transform matrix based on aOrientation for the symbol which is applied to the current transform. More... | |
int | GetOrientation () |
Get the display symbol orientation. More... | |
void | GetContextualTextVars (wxArrayString *aVars) const |
Return the list of system text vars & fields for this symbol. More... | |
bool | ResolveTextVar (wxString *token, int aDepth=0) const |
Resolve any references to system tokens supported by the symbol. More... | |
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. More... | |
void | ClearAnnotation (const SCH_SHEET_PATH *aSheetPath) |
Clear exiting symbol annotation. More... | |
bool | AddSheetPathReferenceEntryIfMissing (const KIID_PATH &aSheetPath) |
Add an instance to the alternate references list (m_instanceReferences), if this entry does not already exist. More... | |
bool | ReplaceInstanceSheetPath (const KIID_PATH &aOldSheetPath, const KIID_PATH &aNewSheetPath) |
Replace aOldSheetPath with aNewSheetPath in the instance list. More... | |
const EDA_RECT | GetBoundingBox () const override |
Return the orthogonal bounding box of this object for display purposes. More... | |
EDA_RECT | GetBodyBoundingBox () const |
Return a bounding box for the symbol body but not the pins or fields. More... | |
EDA_RECT | GetBodyAndPinsBoundingBox () const |
Return a bounding box for the symbol body and pins but not the fields. More... | |
SCH_FIELD * | GetField (MANDATORY_FIELD_T aFieldType) |
Return a mandatory field in this symbol. More... | |
const SCH_FIELD * | GetField (MANDATORY_FIELD_T aFieldNdx) const |
SCH_FIELD * | GetFieldById (int aFieldId) |
Return a field in this symbol. More... | |
wxString | GetFieldText (const wxString &aFieldName, SCH_EDIT_FRAME *aFrame) const |
Search for a field named aFieldName and returns text associated with this field. More... | |
void | GetFields (std::vector< SCH_FIELD * > &aVector, bool aVisibleOnly) |
Populate a std::vector with SCH_FIELDs. More... | |
std::vector< SCH_FIELD > & | GetFields () |
Return a vector of fields from the symbol. More... | |
const std::vector< SCH_FIELD > & | GetFields () const |
SCH_FIELD * | AddField (const SCH_FIELD &aField) |
Add a field to the symbol. More... | |
void | RemoveField (const wxString &aFieldName) |
Remove a user field from the symbol. More... | |
SCH_FIELD * | FindField (const wxString &aFieldName, bool aIncludeDefaultFields=true) |
Search for a SCH_FIELD with aFieldName. More... | |
void | SetFields (const SCH_FIELDS &aFields) |
Set multiple schematic fields. More... | |
void | UpdateFields (const SCH_SHEET_PATH *aPath, bool aUpdateStyle, bool aUpdateRef, bool aUpdateOtherFields, bool aResetRef, bool aResetOtherFields) |
Restore fields to the original library values. More... | |
int | GetFieldCount () const |
Return the number of fields in this symbol. More... | |
void | AutoplaceFields (SCH_SCREEN *aScreen, bool aManual) override |
Automatically orient all the fields in the symbol. More... | |
void | RunOnChildren (const std::function< void(SCH_ITEM *)> &aFunction) override |
SCH_PIN * | GetPin (const wxString &number) const |
Find a symbol pin by number. More... | |
void | GetLibPins (std::vector< LIB_PIN * > &aPinsList) const |
Populate a vector with all the pins from the library object. More... | |
SCH_PIN * | GetPin (LIB_PIN *aLibPin) |
std::vector< SCH_PIN * > | GetPins (const SCH_SHEET_PATH *aSheet=nullptr) const |
Retrieve a list of the SCH_PINs for the given sheet path. More... | |
std::vector< std::unique_ptr< SCH_PIN > > & | GetRawPins () |
void | Print (const RENDER_SETTINGS *aSettings, const wxPoint &aOffset) override |
Print a symbol. More... | |
void | SwapData (SCH_ITEM *aItem) override |
Swap the internal data structures aItem with the schematic item. More... | |
const wxString | GetRef (const SCH_SHEET_PATH *aSheet, bool aIncludeUnit=false) const |
Return the reference for the given sheet path. More... | |
void | SetRef (const SCH_SHEET_PATH *aSheet, const wxString &aReference) |
Set the reference for the given sheet path for this symbol. More... | |
bool | IsAnnotated (const SCH_SHEET_PATH *aSheet) |
Check if the symbol has a valid annotation (reference) for the given sheet path. More... | |
void | AddHierarchicalReference (const KIID_PATH &aPath, const wxString &aRef, int aUnit, const wxString &aValue=wxEmptyString, const wxString &aFootprint=wxEmptyString) |
Add a full hierarchical reference to this symbol. More... | |
int | GetUnitSelection (const SCH_SHEET_PATH *aSheet) const |
Return the instance-specific unit selection for the given sheet path. More... | |
void | SetUnitSelection (const SCH_SHEET_PATH *aSheet, int aUnitSelection) |
Set the selected unit of this symbol on one sheet. More... | |
void | SetUnitSelection (int aUnitSelection) |
Set the selected unit of this symbol for all sheets. More... | |
const wxString | GetValue (const SCH_SHEET_PATH *sheet, bool aResolve) const |
Return the instance-specific value for the given sheet path. More... | |
void | SetValue (const SCH_SHEET_PATH *sheet, const wxString &aValue) |
void | SetValue (const wxString &aValue) |
Set the value for all instances (the default GUI behavior). More... | |
const wxString | GetFootprint (const SCH_SHEET_PATH *sheet, bool aResolve) const |
Return the instance-specific footprint assignment for the given sheet path. More... | |
void | SetFootprint (const SCH_SHEET_PATH *sheet, const wxString &aFootprint) |
void | SetFootprint (const wxString &aFootprint) |
Set the value for all instances (the default GUI behavior). More... | |
void | Move (const wxPoint &aMoveVector) override |
Move the item by aMoveVector to a new position. More... | |
void | MirrorHorizontally (int aCenter) override |
Mirror item horizontally about aCenter. More... | |
void | MirrorVertically (int aCenter) override |
Mirror item vertically about aCenter. More... | |
void | Rotate (const wxPoint &aCenter) override |
Rotate the item around aCenter 90 degrees in the clockwise direction. More... | |
bool | Matches (const wxFindReplaceData &aSearchData, void *aAuxData) const override |
Compare the item against the search criteria in aSearchData. More... | |
void | GetEndPoints (std::vector< DANGLING_END_ITEM > &aItemList) override |
Add the schematic item end points to aItemList if the item has end points. More... | |
bool | UpdateDanglingState (std::vector< DANGLING_END_ITEM > &aItemList, const SCH_SHEET_PATH *aPath=nullptr) override |
Test if the symbol's dangling state has changed for all pins. More... | |
wxPoint | GetPinPhysicalPosition (const LIB_PIN *Pin) const |
bool | IsConnectable () const override |
bool | CanConnect (const SCH_ITEM *aItem) const override |
bool | IsInNetlist () const |
std::vector< wxPoint > | GetConnectionPoints () const override |
Add all the connection points for this item to aPoints. More... | |
SEARCH_RESULT | Visit (INSPECTOR inspector, void *testData, const KICAD_T scanTypes[]) override |
May be re-implemented for each derived class in order to handle all the types given by its member data. More... | |
LIB_ITEM * | GetDrawItem (const wxPoint &aPosition, KICAD_T aType=TYPE_NOT_INIT) |
Return the symbol library item at aPosition that is part of this symbol. More... | |
wxString | GetSelectMenuText (EDA_UNITS aUnits) const override |
Return the text to display to be used in the selection clarification context menu when multiple items are found at the current cursor position. More... | |
BITMAPS | GetMenuImage () const override |
Return a pointer to an image to be used in menus. More... | |
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_ITEM &aItem) |
bool | IsReplaceable () const override |
Override this method in any derived object that supports test find and replace. More... | |
wxPoint | GetPosition () const override |
void | SetPosition (const wxPoint &aPosition) override |
bool | HitTest (const wxPoint &aPosition, int aAccuracy=0) const override |
Test if aPosition is inside or on the boundary of this item. More... | |
bool | HitTest (const EDA_RECT &aRect, bool aContained, int aAccuracy=0) const override |
Test if aRect intersects this item. More... | |
void | Plot (PLOTTER *aPlotter) const override |
Plot the schematic item to aPlotter. More... | |
EDA_ITEM * | Clone () const override |
Create a duplicate of this item with linked list members set to NULL. More... | |
void | ClearBrightenedPins () |
bool | HasBrightenedPins () |
bool | GetIncludeInBom () const |
void | SetIncludeInBom (bool aIncludeInBom) |
bool | GetIncludeOnBoard () const |
void | SetIncludeOnBoard (bool aIncludeOnBoard) |
bool | IsPointClickableAnchor (const wxPoint &aPos) const override |
SCH_ITEM * | Duplicate (bool doClone=false) const |
Routine to create a new copy of given item. More... | |
wxPoint & | GetStoredPos () |
void | SetStoredPos (const wxPoint &aPos) |
SCHEMATIC * | Schematic () const |
Searches the item hierarchy to find a SCHEMATIC. More... | |
virtual bool | IsLocked () const |
virtual void | SetLocked (bool aLocked) |
Set the 'lock' status to aLocked for of this item. More... | |
virtual bool | IsHypertext () const |
Allow items to support hypertext actions when hovered/clicked. More... | |
virtual void | DoHypertextMenu (EDA_DRAW_FRAME *aFrame) |
SCH_LAYER_ID | GetLayer () const |
Return the layer this item is on. More... | |
void | SetLayer (SCH_LAYER_ID aLayer) |
Set the layer this item is on. More... | |
virtual int | GetPenWidth () const |
virtual bool | IsDangling () const |
void | ClearConnections () |
Clears all of the connection items from the list. More... | |
bool | IsConnected (const wxPoint &aPoint) const |
Test the item to see if it is connected to aPoint. More... | |
SCH_CONNECTION * | Connection (const SCH_SHEET_PATH *aSheet=nullptr) const |
Retrieve the connection associated with this object in the given sheet. More... | |
SCH_ITEM_SET & | ConnectedItems (const SCH_SHEET_PATH &aPath) |
Retrieve the set of items connected to this item on the given sheet. More... | |
void | AddConnectionTo (const SCH_SHEET_PATH &aPath, SCH_ITEM *aItem) |
Add a connection link between this item and another. More... | |
SCH_CONNECTION * | InitializeConnection (const SCH_SHEET_PATH &aPath, CONNECTION_GRAPH *aGraph) |
Create a new connection object associated with this object. More... | |
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. More... | |
bool | IsConnectivityDirty () const |
void | SetConnectivityDirty (bool aDirty=true) |
virtual void | SetLastResolvedState (const SCH_ITEM *aItem) |
NETCLASSPTR | NetClass (const SCH_SHEET_PATH *aSheet=nullptr) const |
FIELDS_AUTOPLACED | GetFieldsAutoplaced () const |
Return whether the fields have been automatically placed. More... | |
void | SetFieldsAutoplaced () |
void | ClearFieldsAutoplaced () |
void | AutoAutoplaceFields (SCH_SCREEN *aScreen) |
Autoplace fields only if correct to do so automatically. More... | |
virtual bool | HasLineStroke () const |
Check if this schematic item has line stoke properties. More... | |
virtual STROKE_PARAMS | GetStroke () const |
virtual void | SetStroke (const STROKE_PARAMS &aStroke) |
bool | operator< (const EDA_ITEM &aItem) const |
Test if another item is less than this object. More... | |
KICAD_T | Type () const |
Returns the type of object. More... | |
EDA_ITEM * | GetParent () const |
virtual void | SetParent (EDA_ITEM *aParent) |
bool | IsModified () const |
bool | IsNew () const |
bool | IsMoving () const |
bool | IsDragging () const |
bool | IsWireImage () const |
bool | IsSelected () const |
bool | IsEntered () const |
bool | IsResized () const |
bool | IsBrightened () const |
void | SetWireImage () |
void | SetSelected () |
void | SetBrightened () |
void | ClearSelected () |
void | ClearBrightened () |
void | SetModified () |
int | GetState (EDA_ITEM_FLAGS type) const |
void | SetState (EDA_ITEM_FLAGS type, bool state) |
EDA_ITEM_FLAGS | GetStatus () const |
void | SetStatus (EDA_ITEM_FLAGS aStatus) |
void | SetFlags (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 |
void | ClearTempFlags () |
void | ClearEditFlags () |
virtual bool | IsType (const KICAD_T aScanTypes[]) const |
Check whether the item is one of the listed types. More... | |
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. More... | |
bool | IsForceVisible () const |
virtual const wxPoint | GetFocusPosition () const |
Similar to GetPosition, but allows items to return their visual center rather than their anchor. More... | |
virtual bool | Replace (const wxFindReplaceData &aSearchData, void *aAuxData=nullptr) |
Perform a text replace using the find and replace criteria in aSearchData on items that support text find and replace. More... | |
virtual const BOX2I | ViewBBox () const override |
Return the bounding box of the item covering all its layers. More... | |
virtual void | ViewDraw (int aLayer, VIEW *aView) const |
Draw the parts of the object belonging to layer aLayer. More... | |
virtual double | ViewGetLOD (int aLayer, VIEW *aView) const |
Return the level of detail (LOD) of the item. More... | |
VIEW_ITEM_DATA * | viewPrivData () const |
void | ClearViewPrivData () |
bool | Set (PROPERTY_BASE *aProperty, wxAny &aValue) |
template<typename T > | |
bool | Set (PROPERTY_BASE *aProperty, T aValue) |
template<typename T > | |
bool | Set (const wxString &aProperty, T aValue) |
wxAny | Get (PROPERTY_BASE *aProperty) |
template<typename T > | |
T | Get (PROPERTY_BASE *aProperty) |
template<typename T > | |
boost::optional< T > | Get (const wxString &aProperty) |
Static Public Member Functions | |
static bool | ClassOf (const EDA_ITEM *aItem) |
static bool | IsReferenceStringValid (const wxString &aReferenceString) |
Test for an acceptable reference string. More... | |
template<class T > | |
static SEARCH_RESULT | IterateForward (std::deque< T > &aList, INSPECTOR inspector, void *testData, const KICAD_T scanTypes[]) |
This changes first parameter to avoid the DList and use the main queue instead. More... | |
template<class T > | |
static SEARCH_RESULT | IterateForward (std::vector< T > &aList, INSPECTOR inspector, void *testData, const KICAD_T scanTypes[]) |
Change first parameter to avoid the DList and use std::vector instead. More... | |
static bool | Replace (const wxFindReplaceData &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. More... | |
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. More... | |
Public Attributes | |
const KIID | m_Uuid |
Protected Member Functions | |
bool | Matches (const wxString &aText, const wxFindReplaceData &aSearchData) const |
Compare aText against search criteria in aSearchData. More... | |
Protected Attributes | |
SCH_LAYER_ID | m_layer |
EDA_ITEMS | m_connections |
FIELDS_AUTOPLACED | m_fieldsAutoplaced |
wxPoint | m_storedPos |
std::unordered_map< SCH_SHEET_PATH, SCH_ITEM_SET > | m_connected_items |
Store pointers to other items that are connected to this one, per sheet. More... | |
std::unordered_map< SCH_SHEET_PATH, SCH_CONNECTION * > | m_connection_map |
Store connectivity information, per sheet. More... | |
bool | m_connectivity_dirty |
EDA_ITEM_FLAGS | m_status |
EDA_ITEM * | m_parent |
Linked list: Link (parent struct) More... | |
bool | m_forceVisible |
EDA_ITEM_FLAGS | m_flags |
Private Member Functions | |
EDA_RECT | doGetBoundingBox (bool aIncludePins, bool aIncludeFields) const |
bool | doIsConnected (const wxPoint &aPosition) const override |
Provide the object specific test to see if it is connected to aPosition. More... | |
void | Init (const wxPoint &pos=wxPoint(0, 0)) |
Private Attributes | |
wxPoint | m_pos |
LIB_ID | m_lib_id |
Name and library the symbol was loaded from, i.e. 74xx:74LS00. More... | |
int | m_unit |
The unit for multiple part per package symbols. More... | |
int | m_convert |
The alternate body style for symbols that have more than one body style defined. More... | |
wxString | m_prefix |
C, R, U, Q etc - the first character(s) which typically indicate what the symbol is. More... | |
wxString | m_schLibSymbolName |
The name used to look up a symbol in the symbol library embedded in a schematic. More... | |
TRANSFORM | m_transform |
The rotation/mirror transformation. More... | |
std::vector< SCH_FIELD > | m_fields |
Variable length list of fields. More... | |
std::unique_ptr< LIB_SYMBOL > | m_part |
a flattened copy of the LIB_SYMBOL from the PROJECT's libraries. More... | |
std::vector< std::unique_ptr< SCH_PIN > > | m_pins |
a SCH_PIN for every LIB_PIN (all units) More... | |
std::unordered_map< LIB_PIN *, unsigned > | m_pinMap |
library pin pointer : SCH_PIN's index More... | |
bool | m_isInNetlist |
True if the symbol should appear in the netlist. More... | |
bool | m_inBom |
True to include in bill of materials export. More... | |
bool | m_onBoard |
True to include in netlist when updating board. More... | |
std::vector< SYMBOL_INSTANCE_REFERENCE > | m_instanceReferences |
Schematic symbol object.
Definition at line 78 of file sch_symbol.h.
SCH_SYMBOL::SCH_SYMBOL | ( | const wxPoint & | pos = wxPoint( 0, 0 ) , |
SCH_ITEM * | aParent = nullptr |
||
) |
Definition at line 98 of file sch_symbol.cpp.
References Init().
Referenced by Clone().
SCH_SYMBOL::SCH_SYMBOL | ( | const LIB_SYMBOL & | aSymbol, |
const LIB_ID & | aLibId, | ||
const SCH_SHEET_PATH * | aSheet, | ||
int | unit, | ||
int | convert = 0 , |
||
const wxPoint & | pos = wxPoint( 0, 0 ) |
||
) |
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. |
unit | is unit for symbols that have multiple parts per package. |
convert | is the alternate body style for the schematic symbols. |
pos | is the position of the symbol. |
setNewItemFlag | is used to set the symbol IS_NEW and IS_MOVING flags. |
Definition at line 105 of file sch_symbol.cpp.
References convert, LIB_SYMBOL::Flatten(), GetFootprint(), LIB_SYMBOL::GetIncludeInBom(), LIB_SYMBOL::GetIncludeOnBoard(), UTIL::GetRefDesPrefix(), UTIL::GetRefDesUnannotated(), GetValue(), Init(), m_convert, m_inBom, m_lib_id, m_onBoard, m_part, m_prefix, m_unit, SetFootprint(), SetLibSymbol(), SetRef(), SetValue(), and UpdateFields().
SCH_SYMBOL::SCH_SYMBOL | ( | const LIB_SYMBOL & | aSymbol, |
const SCH_SHEET_PATH * | aSheet, | ||
const PICKED_SYMBOL & | aSel, | ||
const wxPoint & | pos = wxPoint( 0, 0 ) |
||
) |
Definition at line 148 of file sch_symbol.cpp.
References PICKED_SYMBOL::Fields, GetFieldById(), and EDA_TEXT::SetText().
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 163 of file sch_symbol.cpp.
References m_convert, m_fields, SCH_ITEM::m_fieldsAutoplaced, m_inBom, m_instanceReferences, m_isInNetlist, m_lib_id, m_onBoard, EDA_ITEM::m_parent, m_part, m_pos, m_prefix, m_schLibSymbolName, m_transform, m_unit, EDA_ITEM::m_Uuid, and SetLibSymbol().
|
inline |
Definition at line 111 of file sch_symbol.h.
|
inherited |
Add a connection link between this item and another.
Definition at line 183 of file sch_item.cpp.
References SCH_ITEM::m_connected_items.
Referenced by SCH_TEXT::UpdateDanglingState(), and CONNECTION_GRAPH::updateItemConnectivity().
Add a field to the symbol.
aField | is the field to add to this symbol. |
Definition at line 751 of file sch_symbol.cpp.
References m_fields.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), SCH_ALTIUM_PLUGIN::ParseParameter(), DIALOG_CHANGE_SYMBOLS::processSymbol(), and UpdateFields().
void SCH_SYMBOL::AddHierarchicalReference | ( | const KIID_PATH & | aPath, |
const wxString & | aRef, | ||
int | aUnit, | ||
const wxString & | aValue = wxEmptyString , |
||
const wxString & | aFootprint = wxEmptyString |
||
) |
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. |
aValue | is the value used for this instance. |
aFootprint | is the footprint used for this instance (which might have different hole spacing or other board-specific changes from other instances). |
Definition at line 423 of file sch_symbol.cpp.
References KIID::AsString(), KIID_PATH::AsString(), SYMBOL_INSTANCE_REFERENCE::m_Footprint, m_instanceReferences, SYMBOL_INSTANCE_REFERENCE::m_Path, SYMBOL_INSTANCE_REFERENCE::m_Reference, SYMBOL_INSTANCE_REFERENCE::m_Unit, EDA_ITEM::m_Uuid, SYMBOL_INSTANCE_REFERENCE::m_Value, and traceSchSheetPaths.
Referenced by AddSheetPathReferenceEntryIfMissing(), SetFootprint(), SetRef(), SetUnitSelection(), SetValue(), and SCH_SHEET_LIST::UpdateSymbolInstances().
bool SCH_SYMBOL::AddSheetPathReferenceEntryIfMissing | ( | const KIID_PATH & | aSheetPath | ) |
Add an instance to the alternate references list (m_instanceReferences), 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 1087 of file sch_symbol.cpp.
References AddHierarchicalReference(), m_fields, m_instanceReferences, m_unit, and REFERENCE_FIELD.
Referenced by SCH_SCREEN::EnsureAlternateReferencesExist().
|
inlineinherited |
Autoplace fields only if correct to do so automatically.
Fields that have been moved by hand are not automatically placed.
aScreen | is the SCH_SCREEN associated with the current instance of the symbol. |
Definition at line 436 of file sch_item.h.
References SCH_ITEM::AutoplaceFields(), FIELDS_AUTOPLACED_MANUAL, and SCH_ITEM::GetFieldsAutoplaced().
Referenced by SCH_EDIT_TOOL::Mirror(), SCH_EDIT_TOOL::Properties(), SCH_EDIT_TOOL::Rotate(), SCH_SHEET::SCH_SHEET(), and SCH_EDIT_FRAME::SelectUnit().
|
overridevirtual |
Automatically orient all the fields in the symbol.
aScreen | is the SCH_SCREEN associated with the current instance of the symbol. This can be NULL when aManual is false. |
aManual | should be true if the autoplace was manually initiated (e.g. by a hotkey or a menu item). Some more 'intelligent' routines will be used that would be annoying if done automatically during moves. |
Reimplemented from SCH_ITEM.
Definition at line 745 of file autoplace_fields.cpp.
References AUTOPLACER::DoAutoplace(), FIELDS_AUTOPLACED_AUTO, FIELDS_AUTOPLACED_MANUAL, and SCH_ITEM::m_fieldsAutoplaced.
Referenced by SCH_DRAWING_TOOLS::PlaceSymbol().
|
inlineoverridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 603 of file sch_symbol.h.
References SCH_ITEM::GetLayer(), LAYER_WIRE, SCH_GLOBAL_LABEL_T, SCH_HIER_LABEL_T, SCH_JUNCTION_T, SCH_LABEL_T, SCH_LINE_T, SCH_NO_CONNECT_T, SCH_SYMBOL_T, and EDA_ITEM::Type().
|
inlinestatic |
Definition at line 113 of file sch_symbol.h.
References SCH_SYMBOL_T, and EDA_ITEM::Type().
void SCH_SYMBOL::ClearAnnotation | ( | const SCH_SHEET_PATH * | aSheetPath | ) |
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. |
Definition at line 1055 of file sch_symbol.cpp.
References UTIL::GetRefDesUnannotated(), m_fields, m_instanceReferences, m_pins, m_prefix, SCH_SHEET_PATH::Path(), path, pin, and REFERENCE_FIELD.
Referenced by SCH_SCREEN::ClearAnnotation(), SCH_EDIT_FRAME::DeleteAnnotation(), and SCH_EDITOR_CONTROL::updatePastedSymbol().
|
inlineinherited |
Definition at line 132 of file eda_item.h.
References BRIGHTENED, and EDA_ITEM::ClearFlags().
Referenced by GERBVIEW_SELECTION_TOOL::disambiguationMenu(), SCH_EDIT_FRAME::FocusOnItem(), PCB_BASE_FRAME::FocusOnItems(), PL_SELECTION_TOOL::unhighlight(), EE_SELECTION_TOOL::unhighlight(), PCB_SELECTION_TOOL::unhighlightInternal(), and SCH_EDITOR_CONTROL::UpdateNetHighlighting().
void SCH_SYMBOL::ClearBrightenedPins | ( | ) |
Definition at line 1905 of file sch_symbol.cpp.
Referenced by SCH_EDITOR_CONTROL::UpdateNetHighlighting().
|
inlineinherited |
Clears all of the connection items from the list.
The vector release method is used to prevent the item pointers from being deleted. Do not use the vector erase method on the connection list.
Definition at line 372 of file sch_item.h.
References SCH_ITEM::m_connections.
|
inlineinherited |
Definition at line 171 of file eda_item.h.
References EDA_ITEM::ClearFlags(), and EDA_ITEM::GetEditFlags().
Referenced by FOOTPRINT::Add(), BOARD::Add(), SCH_EDIT_FRAME::AddItemToScreenAndUndoList(), SYMBOL_EDITOR_DRAWING_TOOLS::DrawShape(), SCH_LINE_WIRE_BUS_TOOL::finishSegments(), PL_DRAWING_TOOLS::PlaceItem(), SCH_DRAWING_TOOLS::PlaceSymbol(), SCH_EDIT_FRAME::PutDataInPreviousState(), PCB_BASE_EDIT_FRAME::SaveCopyInUndoList(), and SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace().
|
inlineinherited |
Definition at line 427 of file sch_item.h.
References FIELDS_AUTOPLACED_NO, and SCH_ITEM::m_fieldsAutoplaced.
Referenced by SCH_MOVE_TOOL::moveItem(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), and DIALOG_SCH_FIELD_PROPERTIES::UpdateField().
|
inlineinherited |
Definition at line 153 of file eda_item.h.
References EDA_ITEM::m_flags.
Referenced by FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), PNS_KICAD_IFACE::AddItem(), SCH_EDIT_FRAME::AddItemToScreenAndUndoList(), SCH_MOVE_TOOL::AlignElements(), FOOTPRINT::BuildPolyCourtyards(), EDA_ITEM::ClearBrightened(), EDA_ITEM::ClearEditFlags(), EDA_ITEM::ClearSelected(), EDA_ITEM::ClearTempFlags(), ConvertOutlineToPolygon(), SCH_EDIT_FRAME::ConvertPart(), SYMBOL_EDITOR_EDIT_TOOL::Copy(), FOOTPRINT_EDITOR_CONTROL::CreateFootprint(), SYMBOL_EDITOR_PIN_TOOL::CreateImagePins(), MICROWAVE_TOOL::createMicrowaveInductor(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), KIGFX::SCH_PAINTER::draw(), SYMBOL_EDITOR_EDIT_TOOL::Duplicate(), SCH_ITEM::Duplicate(), PCB_EDIT_FRAME::ExchangeFootprint(), PCB_SELECTION_TOOL::ExitGroup(), SYMBOL_EDIT_FRAME::GetSymbolFromRedoList(), SYMBOL_EDIT_FRAME::GetSymbolFromUndoList(), FOOTPRINT_EDITOR_CONTROL::ImportFootprint(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), EE_SELECTION_TOOL::Main(), EE_SELECTION_TOOL::narrowSelection(), FOOTPRINT_EDITOR_CONTROL::NewFootprint(), FOOTPRINT_EDIT_FRAME::OpenProjectFiles(), PCB_BASE_FRAME::PlaceFootprint(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), BOARD_COMMIT::Push(), PCB_SELECTION_TOOL::RebuildSelection(), SCH_EDIT_TOOL::RepeatDrawItem(), SYMBOL_EDIT_FRAME::RollbackSymbolFromUndo(), SCH_EDIT_FRAME::SaveCopyForRepeatItem(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), SCH_SEXPR_PLUGIN_CACHE::savePin(), EE_SELECTION_TOOL::selectMultiple(), SCH_EDIT_FRAME::SelectUnit(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::TransferDataFromWindow(), and SCH_DRAWING_TOOLS::TwoClickPlace().
|
inlineinherited |
Definition at line 131 of file eda_item.h.
References EDA_ITEM::ClearFlags(), and SELECTED.
Referenced by PCB_POINT_EDITOR::addCorner(), EDIT_TOOL::Duplicate(), ARRAY_CREATOR::Invoke(), LIB_SYMBOL::LIB_SYMBOL(), EE_TOOL_BASE< SCH_BASE_FRAME >::saveCopyInUndoList(), PL_SELECTION_TOOL::unhighlight(), EE_SELECTION_TOOL::unhighlight(), PCB_SELECTION_TOOL::unhighlightInternal(), and GERBVIEW_SELECTION_TOOL::unselectVisually().
|
inlineinherited |
Definition at line 165 of file eda_item.h.
References CANDIDATE, EDA_ITEM::ClearFlags(), DO_NOT_DRAW, ENDPOINT, IS_LINKED, SKIP_STRUCT, STARTPOINT, and TEMP_SELECTED.
Referenced by SCH_EDIT_FRAME::PutDataInPreviousState().
|
inlineinherited |
Definition at line 143 of file view_item.h.
References KIGFX::VIEW_ITEM::m_viewPrivData.
Referenced by KIGFX::VIEW::OnDestroy().
|
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 223 of file sch_symbol.cpp.
References SCH_SYMBOL().
|
inherited |
Retrieve the set of items connected to this item on the given sheet.
Definition at line 177 of file sch_item.cpp.
References SCH_ITEM::m_connected_items.
Referenced by addConnections(), SCH_EDIT_FRAME::AddItemToScreenAndUndoList(), CONNECTION_GRAPH::updateItemConnectivity(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inherited |
Retrieve the connection associated with this object in the given sheet.
Definition at line 138 of file sch_item.cpp.
References SCHEMATIC::CurrentSheet(), SCH_ITEM::IsConnectable(), SCH_ITEM::IsConnectivityDirty(), SCH_ITEM::m_connection_map, and SCH_ITEM::Schematic().
Referenced by CONNECTION_SUBGRAPH::Absorb(), CONNECTION_SUBGRAPH::AddItem(), CONNECTION_GRAPH::buildConnectionGraph(), KIGFX::SCH_PAINTER::draw(), CONNECTION_GRAPH::ercCheckBusToBusConflicts(), CONNECTION_GRAPH::ercCheckBusToBusEntryConflicts(), CONNECTION_GRAPH::GetBusesNeedingMigration(), SCH_PIN::GetMsgPanelInfo(), SCH_BUS_ENTRY_BASE::GetMsgPanelInfo(), SCH_LINE::GetMsgPanelInfo(), SCH_TEXT::GetMsgPanelInfo(), CONNECTION_SUBGRAPH::GetNetName(), SCH_ITEM::GetOrInitConnection(), highlightNet(), SCH_ITEM::InitializeConnection(), SCH_ITEM::NetClass(), SCH_TEXT::Plot(), SCH_GLOBALLABEL::Print(), SCH_HIERLABEL::Print(), SCH_EDIT_FRAME::RecalculateConnections(), CONNECTION_SUBGRAPH::ResolveDrivers(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataToWindow(), BUS_UNFOLD_MENU::update(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inlinevirtualinherited |
Return true if this item should propagate connection info to aItem.
Reimplemented in SCH_LINE, SCH_BUS_WIRE_ENTRY, and SCH_PIN.
Definition at line 411 of file sch_item.h.
Referenced by CONNECTION_GRAPH::updateItemConnectivity().
|
private |
Definition at line 1331 of file sch_symbol.cpp.
References dummy(), LIB_SYMBOL::GetBodyBoundingBox(), EDA_RECT::GetBottom(), EDA_RECT::GetRight(), EDA_RECT::GetX(), EDA_RECT::GetY(), m_convert, m_fields, m_part, m_pos, m_transform, m_unit, EDA_RECT::Merge(), EDA_RECT::Normalize(), EDA_RECT::Offset(), EDA_RECT::SetHeight(), EDA_RECT::SetWidth(), EDA_RECT::SetX(), EDA_RECT::SetY(), TRANSFORM::x1, TRANSFORM::x2, TRANSFORM::y1, and TRANSFORM::y2.
Referenced by GetBodyAndPinsBoundingBox(), GetBodyBoundingBox(), and GetBoundingBox().
|
inlinevirtualinherited |
|
overrideprivatevirtual |
Provide the object specific test to see if it is connected to aPosition.
aPosition | is a reference to a wxPoint object containing the test position. |
Reimplemented from SCH_ITEM.
Definition at line 1842 of file sch_symbol.cpp.
References GetConvert(), GetUnit(), TRANSFORM::InverseTransform(), m_pins, m_pos, m_transform, pin, PT_NC, and TRANSFORM::TransformCoordinate().
|
inherited |
Routine to create a new copy of given item.
The new object is not put in draw list (not linked).
doClone | (default = false) indicates unique values (such as timestamp and sheet name) should be duplicated. Use only for undo/redo operations. |
Definition at line 85 of file sch_item.cpp.
References BRIGHTENED, EDA_ITEM::ClearFlags(), EDA_ITEM::Clone(), EDA_ITEM::m_Uuid, SCH_ITEM::RunOnChildren(), and SELECTED.
Referenced by SCH_EDIT_FRAME::BreakSegment(), SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), CADSTAR_SCH_ARCHIVE_LOADER::loadItemOntoKiCadSheet(), SCH_EAGLE_PLUGIN::loadSchematic(), SCH_DRAWING_TOOLS::PlaceSymbol(), SCH_EDIT_TOOL::RepeatDrawItem(), SCH_EDIT_FRAME::SaveCopyInUndoList(), and SCH_LINE_WIRE_BUS_TOOL::startSegments().
SCH_FIELD * SCH_SYMBOL::FindField | ( | const wxString & | aFieldName, |
bool | aIncludeDefaultFields = true |
||
) |
Search for a SCH_FIELD with aFieldName.
aFieldName | is the name of the field to find. |
aIncludeDefaultFields | searches the library symbol default fields if true. |
Definition at line 773 of file sch_symbol.cpp.
References m_fields, and MANDATORY_FIELDS.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), NETLIST_EXPORTER_PSPICE::GetSpiceField(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), NETLIST_EXPORTER_PSPICE::ProcessNetlist(), DIALOG_CHANGE_SYMBOLS::processSymbol(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), TUNER_SLIDER::TUNER_SLIDER(), and UpdateFields().
|
inlineinherited |
Definition at line 86 of file inspectable.h.
References PROPERTY_BASE::getter(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
Referenced by BOOST_AUTO_TEST_CASE(), CLASS_D_DESC::CLASS_D_DESC(), PCB_EXPR_VAR_REF::GetValue(), and PAD_DESC::PAD_DESC().
|
inlineinherited |
Definition at line 95 of file inspectable.h.
References PROPERTY_BASE::get(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inlineinherited |
Definition at line 104 of file inspectable.h.
References PROPERTY_BASE::get(), PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
EDA_RECT SCH_SYMBOL::GetBodyAndPinsBoundingBox | ( | ) | const |
Return a bounding box for the symbol body and pins but not the fields.
Definition at line 1382 of file sch_symbol.cpp.
References doGetBoundingBox().
Referenced by AUTOPLACER::getPossibleCollisions(), CADSTAR_SCH_ARCHIVE_LOADER::Load(), and operator<().
EDA_RECT SCH_SYMBOL::GetBodyBoundingBox | ( | ) | const |
Return a bounding box for the symbol body but not the pins or fields.
Definition at line 1376 of file sch_symbol.cpp.
References doGetBoundingBox().
Referenced by AUTOPLACER::AUTOPLACER(), EE_SELECTION_TOOL::GuessSelectionCandidates(), and HitTest().
|
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 1388 of file sch_symbol.cpp.
References doGetBoundingBox().
Referenced by SCH_EDITOR_CONTROL::FindSymbolAndItem().
|
inlineoverridevirtual |
Return the class name.
Reimplemented from SCH_ITEM.
Definition at line 118 of file sch_symbol.h.
Referenced by operator=().
|
overridevirtual |
Add all the connection points for this item to aPoints.
Not all schematic items have connection points so the default method does nothing.
aPoints | is the list of connection points to add to. |
Reimplemented from SCH_ITEM.
Definition at line 1614 of file sch_symbol.cpp.
References GetConvert(), GetUnit(), m_pins, m_pos, m_transform, pin, and TRANSFORM::TransformCoordinate().
void SCH_SYMBOL::GetContextualTextVars | ( | wxArrayString * | aVars | ) | const |
Return the list of system text vars & fields for this symbol.
Definition at line 958 of file sch_symbol.cpp.
References m_fields, and MANDATORY_FIELDS.
Referenced by DIALOG_TEXT_AND_LABEL_PROPERTIES::onScintillaCharAdded(), and DIALOG_SCH_FIELD_PROPERTIES::onScintillaCharAdded().
|
inline |
Definition at line 224 of file sch_symbol.h.
References m_convert.
Referenced by SCH_EDIT_TOOL::ConvertDeMorgan(), SCH_EDIT_FRAME::ConvertPart(), doIsConnected(), KIGFX::SCH_PAINTER::draw(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), GetConnectionPoints(), SCH_SCREEN::GetPin(), IsPointClickableAnchor(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), Plot(), SCH_EDIT_TOOL::Properties(), SCH_SEXPR_PLUGIN::saveSymbol(), SCH_LEGACY_PLUGIN::saveSymbol(), DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow(), and Visit().
wxString SCH_SYMBOL::GetDatasheet | ( | ) | const |
Return the documentation text for the given part alias.
Definition at line 298 of file sch_symbol.cpp.
References m_part.
Referenced by UpdateFields().
wxString SCH_SYMBOL::GetDescription | ( | ) | const |
Return information about the aliased parts.
Definition at line 289 of file sch_symbol.cpp.
References m_part.
Referenced by NETLIST_EXPORTER_XML::makeSymbols().
LIB_ITEM * SCH_SYMBOL::GetDrawItem | ( | const wxPoint & | 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 1638 of file sch_symbol.cpp.
References m_convert, m_part, m_pos, m_transform, and m_unit.
Referenced by SCH_SCREEN::GetPin().
|
inlineinherited |
Definition at line 157 of file eda_item.h.
References IS_DRAGGING, IS_MOVING, IS_NEW, IS_PASTED, IS_RESIZING, IS_WIRE_IMAGE, EDA_ITEM::m_flags, and STRUCT_DELETED.
Referenced by EDA_ITEM::ClearEditFlags(), SCH_EDIT_FRAME::DeleteJunction(), SCH_EDIT_TOOL::editFieldText(), SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), GetMsgPanelInfo(), SELECTION_CONDITIONS::Idle(), SELECTION_CONDITIONS::IdleSelection(), SYMBOL_EDITOR_MOVE_TOOL::Main(), PCB_POINT_EDITOR::OnSelectionChange(), SYMBOL_EDITOR_EDIT_TOOL::Properties(), SCH_EDIT_TOOL::Properties(), PAD_TOOL::recombinePad(), SCH_EDIT_FRAME::SchematicCleanUp(), SCH_EDIT_FRAME::SelectUnit(), DIALOG_DIMENSION_PROPERTIES::TransferDataFromWindow(), DIALOG_TARGET_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXT_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXT_AND_LABEL_PROPERTIES::TransferDataFromWindow(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow(), and DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow().
|
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 1540 of file sch_symbol.cpp.
References GetPinPhysicalPosition(), LIB_ITEM::GetUnit(), m_pins, m_unit, pin, and PIN_END.
SCH_FIELD * SCH_SYMBOL::GetField | ( | MANDATORY_FIELD_T | aFieldType | ) |
Return a mandatory field in this symbol.
aFieldType | is one of the mandatory field types (REFERENCE_FIELD, VALUE_FIELD, etc.). |
Definition at line 705 of file sch_symbol.cpp.
References m_fields.
Referenced by SCH_EAGLE_PLUGIN::addImplicitConnections(), NETLIST_EXPORTER_XML::addSymbolFields(), SIM_PLOT_FRAME::AddTuner(), SCH_EDITOR_CONTROL::AssignFootprints(), SCH_EDIT_TOOL::EditField(), FormatProbeItem(), GetFootprint(), GetRef(), GetSelectMenuText(), NETLIST_EXPORTER_PSPICE::GetSpiceFieldDefVal(), GetValue(), SCH_EAGLE_PLUGIN::loadSchematic(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), SCH_ALTIUM_PLUGIN::ParseDesignator(), SCH_ALTIUM_PLUGIN::ParseParameter(), SCH_ALTIUM_PLUGIN::ParsePowerPort(), SCH_EDITOR_CONTROL::processCmpToFootprintLinkFile(), SCH_LEGACY_PLUGIN::saveSymbol(), SetRef(), EE_INSPECTION_TOOL::ShowDatasheet(), SCH_SHEET::SymbolCount(), TUNER_SLIDER::TUNER_SLIDER(), SCH_SHEET_PATH::UpdateAllScreenReferences(), SCH_EDITOR_CONTROL::updatePastedSymbol(), SCH_SHEET_LIST::UpdateSymbolInstances(), Visit(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), and NETLIST_EXPORTER_CADSTAR::WriteNetlist().
const SCH_FIELD * SCH_SYMBOL::GetField | ( | MANDATORY_FIELD_T | aFieldNdx | ) | const |
Definition at line 711 of file sch_symbol.cpp.
References m_fields.
SCH_FIELD * SCH_SYMBOL::GetFieldById | ( | int | aFieldId | ) |
Return a field in this symbol.
aFieldId | is the id of the field requested. Note that this id ONLY SOMETIMES equates to the field's position in the vector. |
Definition at line 717 of file sch_symbol.cpp.
References m_fields.
Referenced by SCH_SYMBOL(), TUNER_SLIDER::TUNER_SLIDER(), UpdateFields(), and SIM_PLOT_FRAME::UpdateTunerValue().
|
inline |
Return the number of fields in this symbol.
Definition at line 425 of file sch_symbol.h.
References m_fields.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances(), operator==(), SCH_ALTIUM_PLUGIN::ParseParameter(), DIALOG_CHANGE_SYMBOLS::processSymbol(), SCH_LEGACY_PLUGIN::saveSymbol(), DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow(), UpdateFields(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
void SCH_SYMBOL::GetFields | ( | std::vector< SCH_FIELD * > & | aVector, |
bool | aVisibleOnly | ||
) |
Populate a std::vector with SCH_FIELDs.
aVector | is the vector to populate. |
aVisibleOnly | is used to add only the fields that are visible and contain text. |
Definition at line 741 of file sch_symbol.cpp.
References m_fields.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), AUTOPLACER::AUTOPLACER(), KIGFX::SCH_PAINTER::draw(), CADSTAR_SCH_ARCHIVE_LOADER::Load(), DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_EDITOR_CONTROL::nextMatch(), operator==(), DIALOG_CHANGE_SYMBOLS::processSymbol(), SCH_SEXPR_PLUGIN::saveSymbol(), SCH_LEGACY_PLUGIN::saveSymbol(), ERC_TESTER::TestTextVars(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow(), DIALOG_CHANGE_SYMBOLS::updateFieldsList(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inline |
Return a vector of fields from the symbol.
Definition at line 370 of file sch_symbol.h.
References m_fields.
Referenced by operator==().
|
inline |
Definition at line 371 of file sch_symbol.h.
References m_fields.
|
inlineinherited |
Return whether the fields have been automatically placed.
Definition at line 424 of file sch_item.h.
References SCH_ITEM::m_fieldsAutoplaced.
Referenced by SCH_ITEM::AutoAutoplaceFields(), SCH_SEXPR_PLUGIN::saveSheet(), SCH_SEXPR_PLUGIN::saveSymbol(), SCH_SEXPR_PLUGIN::saveText(), and EE_POINT_EDITOR::updateParentItem().
wxString SCH_SYMBOL::GetFieldText | ( | const wxString & | aFieldName, |
SCH_EDIT_FRAME * | aFrame | ||
) | const |
Search for a field named aFieldName and returns text associated with this field.
aFieldName | is the name of the field |
Definition at line 729 of file sch_symbol.cpp.
References m_fields.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::AddColumn().
|
inlineinherited |
Definition at line 154 of file eda_item.h.
References EDA_ITEM::m_flags.
Referenced by BACK_ANNOTATE::applyChangelist(), calcIsInsideArea(), ConvertOutlineToPolygon(), SCH_EDIT_FRAME::ConvertPart(), KIGFX::SCH_PAINTER::draw(), DRC_ENGINE::EvalRules(), PCB_SELECTION_TOOL::expandConnection(), PCB_SELECTION_TOOL::FilterCollectorForHierarchy(), BOARD_INSPECTION_TOOL::InspectConstraints(), LIB_SYMBOL::LIB_SYMBOL(), DIALOG_DRC::OnDRCItemSelected(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), LIB_SYMBOL::operator=(), BOARD_COMMIT::Push(), FOOTPRINT::Remove(), BOARD::Remove(), SCH_EDIT_FRAME::SaveCopyInUndoList(), SCH_EDIT_FRAME::SchematicCleanUp(), SCH_EDIT_FRAME::SelectUnit(), DS_DATA_ITEM::SyncDrawItems(), DS_DATA_ITEM_POLYGONS::SyncDrawItems(), DS_DATA_ITEM_BITMAP::SyncDrawItems(), CONNECTIVITY_DATA::TestTrackEndpointDangling(), and DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow().
|
inlinevirtualinherited |
Similar to GetPosition, but allows items to return their visual center rather than their anchor.
Reimplemented in BOARD, PCB_TRACK, and PCB_SHAPE.
Definition at line 258 of file eda_item.h.
References EDA_ITEM::GetPosition().
Referenced by SCH_EDIT_FRAME::FocusOnItem().
const wxString SCH_SYMBOL::GetFootprint | ( | const SCH_SHEET_PATH * | sheet, |
bool | aResolve | ||
) | const |
Return the instance-specific footprint assignment for the given sheet path.
Definition at line 654 of file sch_symbol.cpp.
References FOOTPRINT_FIELD, GetField(), SCH_FIELD::GetShownText(), EDA_TEXT::GetText(), m_instanceReferences, SCH_SHEET_PATH::Path(), and path.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), GetMsgPanelInfo(), SCH_FIELD::Replace(), ResolveTextVar(), SCH_REFERENCE::SCH_REFERENCE(), SCH_SYMBOL(), SCH_SHEET_PATH::UpdateAllScreenReferences(), and NETLIST_EXPORTER_ORCADPCB2::WriteNetlist().
|
inline |
Definition at line 663 of file sch_symbol.h.
References m_inBom.
Referenced by NETLIST_EXPORTER_XML::makeListOfNets(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_SEXPR_PLUGIN::saveSymbol(), and DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow().
|
inline |
Definition at line 666 of file sch_symbol.h.
References m_onBoard.
Referenced by BACK_ANNOTATE::checkForUnusedSymbols(), NETLIST_EXPORTER_XML::makeListOfNets(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_SEXPR_PLUGIN::saveSymbol(), and DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow().
|
inline |
Definition at line 123 of file sch_symbol.h.
References m_instanceReferences.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::AddColumn(), DIALOG_CHANGE_SYMBOLS::processSymbol(), SCH_SEXPR_PLUGIN::saveSymbol(), and SCH_LEGACY_PLUGIN::saveSymbol().
|
inlineinherited |
Return the layer this item is on.
Definition at line 259 of file sch_item.h.
References SCH_ITEM::m_layer.
Referenced by SCH_NO_CONNECT::CanConnect(), SCH_JUNCTION::CanConnect(), SCH_BUS_WIRE_ENTRY::CanConnect(), SCH_BUS_BUS_ENTRY::CanConnect(), SCH_LINE::CanConnect(), SCH_LABEL::CanConnect(), SCH_ITEM::CanConnect(), SCH_SHEET::CanConnect(), SCH_GLOBALLABEL::CanConnect(), SCH_HIERLABEL::CanConnect(), CanConnect(), SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), SCH_SCREEN::doIsJunction(), KIGFX::SCH_PAINTER::draw(), CONNECTION_GRAPH::ercCheckBusToNetConflicts(), CONNECTION_GRAPH::ercCheckFloatingWires(), SCH_MOVE_TOOL::getConnectedDragItems(), SCH_BUS_ENTRY_BASE::GetMsgPanelInfo(), SCH_LINE::GetMsgPanelInfo(), SCH_EDIT_TOOL::Init(), SCH_LINE::IsBus(), SCH_LINE::IsGraphicLine(), SCH_LINE::IsWire(), SCH_SCREEN::MarkConnections(), SCH_LINE::MergeOverlap(), SCH_BUS_ENTRY_BASE::operator<(), SCH_JUNCTION::operator<(), SCH_TEXT::operator<(), SCH_LINE::operator<(), SCH_JUNCTION::Plot(), SCH_BITMAP::Plot(), SCH_FIELD::Plot(), SCH_LINE::Plot(), SCH_SCREEN::Plot(), SCH_JUNCTION::Print(), SCH_LINE::Print(), SCH_SCREEN::Print(), SCH_LEGACY_PLUGIN::saveBusEntry(), SCH_SEXPR_PLUGIN::saveLine(), SCH_LEGACY_PLUGIN::saveLine(), SCH_LEGACY_PLUGIN::saveText(), SCH_EDIT_FRAME::SchematicCleanUp(), SCH_EDIT_FRAME::TrimWire(), and CONNECTION_GRAPH::updateItemConnectivity().
|
inline |
Definition at line 148 of file sch_symbol.h.
References m_lib_id.
Referenced by SCH_SCREEN::Append(), SCH_SCREENS::ChangeSymbolLibNickname(), CollectOtherUnits(), SCH_REFERENCE::CompareLibName(), SCH_EDIT_FRAME::CreateArchiveLibrary(), DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), DIALOG_SCH_FIELD_PROPERTIES::DIALOG_SCH_FIELD_PROPERTIES(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), SCH_SEXPR_PLUGIN::Format(), SCH_SCREENS::GetLibNicknames(), GetMsgPanelInfo(), GetSelectMenuText(), SYMBOL_CANDIDATE::GetStringLibId(), SCH_SCREENS::HasNoFullyDefinedLibIds(), DIALOG_CHANGE_SYMBOLS::isMatch(), NETLIST_EXPORTER_XML::makeSymbols(), DIALOG_CHANGE_SYMBOLS::processSymbol(), SCH_EDIT_TOOL::Properties(), DIALOG_SYMBOL_REMAP::remapSymbolToLibTable(), SCH_SEXPR_PLUGIN::saveSymbol(), SCH_LEGACY_PLUGIN::saveSymbol(), SCH_EDIT_FRAME::SelectUnit(), sort_by_libid(), SYMBOL_CANDIDATE::SYMBOL_CANDIDATE(), ERC_TESTER::TestLibSymbolIssues(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow(), DIALOG_SCH_FIELD_PROPERTIES::UpdateField(), and DIALOG_CHANGE_SYMBOLS::updateFieldsList().
void SCH_SYMBOL::GetLibPins | ( | std::vector< LIB_PIN * > & | aPinsList | ) | const |
Populate a vector with all the pins from the library object.
aPinsList | is the list to populate with all of the pins. |
Definition at line 882 of file sch_symbol.cpp.
|
inline |
Definition at line 165 of file sch_symbol.h.
References m_part.
Referenced by SCH_EAGLE_PLUGIN::addImplicitConnections(), SCH_SHEET_LIST::AnnotatePowerSymbols(), SCH_SCREEN::Append(), SCH_SHEET_PATH::AppendMultiUnitSymbol(), SCH_SHEET_PATH::AppendSymbol(), SCH_EDIT_FRAME::ConvertPart(), NETLIST_EXPORTER_BASE::CreatePinList(), DIALOG_SYMBOL_PROPERTIES::DIALOG_SYMBOL_PROPERTIES(), KIGFX::SCH_PAINTER::draw(), SCH_SCREEN::GetPin(), NETLIST_EXPORTER_PSPICE::GetSpiceFieldDefVal(), SCH_FIELD::IsReplaceable(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbol(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), ERC_TESTER::TestLibSymbolIssues(), SYMBOL_UNIT_MENU::update(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), and NETLIST_EXPORTER_ORCADPCB2::WriteNetlist().
|
inline |
Definition at line 166 of file sch_symbol.h.
References m_part.
|
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 1470 of file sch_symbol.cpp.
References add_component.
|
overridevirtual |
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
aList | is the list to populate. |
Reimplemented from EDA_ITEM.
Definition at line 1394 of file sch_symbol.cpp.
References _, dummy(), UTF8::empty(), Format(), SCH_EDIT_FRAME::GetCurrentSheet(), EDA_ITEM::GetEditFlags(), GetFootprint(), GetLibId(), LIB_ID::GetLibNickname(), GetRef(), GetValue(), m_lib_id, m_part, and UnescapeString().
int SCH_SYMBOL::GetOrientation | ( | ) |
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.
Definition at line 1262 of file sch_symbol.cpp.
References m_transform, SetOrientation(), SYM_MIRROR_X, SYM_MIRROR_Y, SYM_NORMAL, SYM_ORIENT_0, SYM_ORIENT_180, SYM_ORIENT_270, and SYM_ORIENT_90.
Referenced by KIGFX::SCH_PAINTER::draw(), AUTOPLACER::getPreferredSides(), orientLabel(), SCH_SEXPR_PLUGIN::saveSymbol(), and DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow().
|
inherited |
Definition at line 218 of file sch_item.cpp.
References SCH_ITEM::Connection(), SCH_ITEM::InitializeConnection(), SCH_ITEM::IsConnectable(), and SCH_ITEM::SetConnectivityDirty().
|
inlineinherited |
Definition at line 114 of file eda_item.h.
References EDA_ITEM::m_parent.
Referenced by SCH_EDIT_FRAME::AddItemToScreenAndUndoList(), SCH_EDIT_TOOL::AutoplaceFields(), DIALOG_SCH_FIELD_PROPERTIES::DIALOG_SCH_FIELD_PROPERTIES(), SCH_EDITOR_CONTROL::doCrossProbeSchToPcb(), KIGFX::SCH_PAINTER::draw(), SCH_EDIT_TOOL::editFieldText(), FormatProbeItem(), SCH_PIN::GetParentSymbol(), EE_SELECTION_TOOL::highlight(), highlightNet(), CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), EE_SELECTION_TOOL::Main(), SCH_EDIT_TOOL::Mirror(), SCH_MOVE_TOOL::moveItem(), SCH_EDITOR_CONTROL::nextMatch(), DIALOG_SCH_FIELD_PROPERTIES::onScintillaCharAdded(), BOARD_COMMIT::parentObject(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), SCH_EDIT_TOOL::Properties(), PCB_SELECTION_TOOL::RebuildSelection(), SCH_BASE_FRAME::RefreshSelection(), SCH_EDITOR_CONTROL::ReplaceAll(), SCH_EDIT_TOOL::Rotate(), EE_TOOL_BASE< SCH_BASE_FRAME >::saveCopyInUndoList(), SCH_SEXPR_PLUGIN::saveField(), SCH_SCREEN::Schematic(), SCH_ITEM::Schematic(), SCH_SHEET::SearchHierarchy(), BOARD_COMMIT::Stage(), DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow(), EE_SELECTION_TOOL::unhighlight(), DIALOG_SCH_FIELD_PROPERTIES::UpdateField(), EE_TOOL_BASE< SCH_BASE_FRAME >::updateItem(), and SCH_BASE_FRAME::UpdateItem().
|
inlinevirtualinherited |
Reimplemented in SCH_SHEET, SCH_BUS_BUS_ENTRY, SCH_TEXT, SCH_LINE, SCH_BUS_WIRE_ENTRY, SCH_FIELD, SCH_SHEET_PIN, and SCH_NO_CONNECT.
Definition at line 276 of file sch_item.h.
Referenced by EE_RTREE::contains(), KIGFX::SCH_PAINTER::draw(), SCH_BUS_ENTRY_BASE::GetBoundingBox(), KIGFX::SCH_PAINTER::getLineWidth(), SCH_BUS_ENTRY_BASE::HitTest(), EE_RTREE::insert(), SCH_BUS_ENTRY_BASE::Plot(), SCH_BUS_ENTRY_BASE::Print(), EE_RTREE::remove(), and DIALOG_LINE_WIRE_BUS_PROPERTIES::TransferDataToWindow().
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 870 of file sch_symbol.cpp.
Referenced by BACK_ANNOTATE::applyChangelist(), KIGFX::SCH_PAINTER::draw(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), and DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow().
Definition at line 889 of file sch_symbol.cpp.
wxPoint SCH_SYMBOL::GetPinPhysicalPosition | ( | const LIB_PIN * | Pin | ) | const |
Definition at line 1605 of file sch_symbol.cpp.
References LIB_PIN::GetPosition(), LIB_PIN_T, m_pos, m_transform, TRANSFORM::TransformCoordinate(), and EDA_ITEM::Type().
Referenced by SCH_EAGLE_PLUGIN::addImplicitConnections(), SCH_EAGLE_PLUGIN::checkConnections(), GetEndPoints(), and SCH_SCREEN::GetPin().
std::vector< SCH_PIN * > SCH_SYMBOL::GetPins | ( | const SCH_SHEET_PATH * | aSheet = nullptr | ) | 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 896 of file sch_symbol.cpp.
References SCHEMATIC::CurrentSheet(), GetUnitSelection(), m_pins, and SCH_ITEM::Schematic().
Referenced by NETLIST_EXPORTER_BASE::CreatePinList(), AUTOPLACER::fieldBoxPlacement(), NETLIST_EXPORTER_BASE::findAllUnitsOfSymbol(), SCH_EDITOR_CONTROL::nextMatch(), SCH_EDITOR_CONTROL::Paste(), AUTOPLACER::pinsOnSide(), TEST_SCH_PIN_FIXTURE::TEST_SCH_PIN_FIXTURE(), ERC_TESTER::TestNoConnectPins(), CONNECTION_GRAPH::updateItemConnectivity(), and SCH_EDITOR_CONTROL::UpdateNetHighlighting().
|
inlineoverridevirtual |
Reimplemented from EDA_ITEM.
Definition at line 645 of file sch_symbol.h.
References m_pos.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), KIGFX::SCH_PAINTER::draw(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), SCH_FIELD::GetPosition(), GetRelativePosition(), SCH_PIN::GetTransformedPosition(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), DIALOG_ERC::OnRunERCClick(), DIALOG_CHANGE_SYMBOLS::processSymbol(), SCH_SEXPR_PLUGIN::saveSymbol(), SCH_LEGACY_PLUGIN::saveSymbol(), SCH_REFERENCE::SCH_REFERENCE(), SCH_FIELD::SetPosition(), ERC_TESTER::TestLibSymbolIssues(), ERC_TESTER::TestMultiunitFootprints(), ERC_TESTER::TestTextVars(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), and DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow().
|
inline |
Definition at line 228 of file sch_symbol.h.
References m_prefix.
Referenced by SCH_LEGACY_PLUGIN::saveSymbol().
|
inline |
Definition at line 471 of file sch_symbol.h.
References m_pins.
Referenced by DIALOG_SYMBOL_PROPERTIES::DIALOG_SYMBOL_PROPERTIES(), and SCH_SEXPR_PLUGIN::saveSymbol().
const wxString SCH_SYMBOL::GetRef | ( | const SCH_SHEET_PATH * | aSheet, |
bool | aIncludeUnit = false |
||
) | const |
Return the reference for the given sheet path.
Definition at line 464 of file sch_symbol.cpp.
References GetField(), UTIL::GetRefDesUnannotated(), EDA_TEXT::GetText(), GetUnit(), GetUnitCount(), m_instanceReferences, m_prefix, SCH_SHEET_PATH::Path(), path, REFERENCE_FIELD, and LIB_SYMBOL::SubReference().
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), SCH_EDIT_FRAME::AnnotateSymbols(), SCH_SHEET_PATH::AppendMultiUnitSymbol(), SCH_SHEET_PATH::AppendSymbol(), SCHEMATIC::ConvertKIIDsToRefs(), SCHEMATIC::ConvertRefsToKIIDs(), NETLIST_EXPORTER_BASE::CreatePinList(), DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), NETLIST_EXPORTER_BASE::findAllUnitsOfSymbol(), NETLIST_EXPORTER_BASE::findNextSymbol(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), SCH_PIN::GetDefaultNetName(), SCH_PIN::GetMsgPanelInfo(), GetMsgPanelInfo(), DIALOG_CHANGE_SYMBOLS::isMatch(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_EDIT_FRAME::mapExistingAnnotation(), SCH_FIELD::Matches(), SCH_EDITOR_CONTROL::Paste(), NETLIST_EXPORTER_PSPICE::ProcessNetlist(), SCH_REFERENCE_LIST::ReannotateDuplicates(), SCH_FIELD::Replace(), SCHEMATIC::ResolveCrossReference(), ResolveTextVar(), SCH_REFERENCE::SCH_REFERENCE(), ERC_TESTER::TestMultiunitFootprints(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), SCH_SHEET_PATH::UpdateAllScreenReferences(), DIALOG_SCH_FIELD_PROPERTIES::UpdateField(), NETLIST_EXPORTER_ORCADPCB2::WriteNetlist(), and NETLIST_EXPORTER_CADSTAR::WriteNetlist().
wxString SCH_SYMBOL::GetSchSymbolLibraryName | ( | ) | const |
Definition at line 271 of file sch_symbol.cpp.
References LIB_ID::Format(), m_lib_id, and m_schLibSymbolName.
Referenced by SCH_SCREEN::Append(), NETLIST_EXPORTER_BASE::findNextSymbol(), SCH_SEXPR_PLUGIN::Format(), NETLIST_EXPORTER_XML::makeSymbols(), SCH_EDITOR_CONTROL::Paste(), SCH_SCREEN::Remove(), and SCH_SEXPR_PLUGIN::saveSymbol().
|
overridevirtual |
Return the text to display to be used in the selection clarification context menu when multiple items are found at the current cursor position.
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.
Reimplemented from EDA_ITEM.
Definition at line 1652 of file sch_symbol.cpp.
References _, Format(), GetField(), GetLibId(), REFERENCE_FIELD, and UnescapeString().
Referenced by Matches().
|
inlineinherited |
Definition at line 136 of file eda_item.h.
References EDA_ITEM::m_status.
Referenced by BOARD_ITEM::IsLocked().
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Reimplemented in SCH_LINE, and SCH_BUS_ENTRY_BASE.
Definition at line 455 of file sch_item.h.
Referenced by DIALOG_LINE_WIRE_BUS_PROPERTIES::TransferDataToWindow().
|
inline |
Definition at line 232 of file sch_symbol.h.
References m_transform.
Referenced by AUTOPLACER::computeFBoxSize(), SCH_PIN::GetBoundingBox(), SCH_FIELD::GetBoundingBox(), SCH_FIELD::GetDrawRotation(), AUTOPLACER::getPinSide(), SCH_FIELD::GetPosition(), GetRelativePosition(), SCH_PIN::GetTransformedPosition(), SCH_MOVE_TOOL::moveItem(), SCH_FIELD::Plot(), Plot(), SCH_FIELD::Print(), SCH_LEGACY_PLUGIN::saveSymbol(), SCH_FIELD::SetPosition(), and ERC_TESTER::TestTextVars().
|
inline |
Definition at line 233 of file sch_symbol.h.
References m_transform.
|
inline |
Definition at line 196 of file sch_symbol.h.
References m_unit.
Referenced by SCH_EAGLE_PLUGIN::addImplicitConnections(), NETLIST_EXPORTER_XML::addSymbolFields(), SCH_EDIT_FRAME::AnnotateSymbols(), doIsConnected(), KIGFX::SCH_PAINTER::draw(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), GetConnectionPoints(), SCH_SCREEN::GetPin(), GetRef(), SCH_FIELD::GetShownText(), IsPointClickableAnchor(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), SCH_FIELD::Matches(), SCH_DRAWING_TOOLS::PlaceSymbol(), Plot(), DIALOG_CHANGE_SYMBOLS::processSymbol(), SCH_EDIT_TOOL::Properties(), SCH_SEXPR_PLUGIN::saveSymbol(), SCH_LEGACY_PLUGIN::saveSymbol(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow(), SYMBOL_UNIT_MENU::update(), DIALOG_SCH_FIELD_PROPERTIES::UpdateField(), SCH_EDITOR_CONTROL::updatePastedSymbol(), and Visit().
int SCH_SYMBOL::GetUnitCount | ( | void | ) | const |
Return the number of units per package of the symbol.
Definition at line 393 of file sch_symbol.cpp.
References m_part.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), SCH_EDIT_FRAME::AnnotateSymbols(), GetRef(), SCH_FIELD::GetShownText(), SCH_EDIT_FRAME::mapExistingAnnotation(), SCH_FIELD::Matches(), SCH_DRAWING_TOOLS::PlaceSymbol(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), and DIALOG_SYMBOL_PROPERTIES::TransferDataToWindow().
int SCH_SYMBOL::GetUnitSelection | ( | const SCH_SHEET_PATH * | aSheet | ) | const |
Return the instance-specific unit selection for the given sheet path.
Definition at line 554 of file sch_symbol.cpp.
References m_instanceReferences, m_unit, SCH_SHEET_PATH::Path(), and path.
Referenced by SCH_EDIT_FRAME::AnnotateSymbols(), KIGFX::SCH_PAINTER::draw(), GetPins(), SCH_EDIT_FRAME::mapExistingAnnotation(), ResolveTextVar(), SCH_REFERENCE::SCH_REFERENCE(), and SCH_SHEET_PATH::UpdateAllScreenReferences().
const wxString SCH_SYMBOL::GetValue | ( | const SCH_SHEET_PATH * | sheet, |
bool | aResolve | ||
) | const |
Return the instance-specific value for the given sheet path.
Definition at line 596 of file sch_symbol.cpp.
References GetField(), SCH_FIELD::GetShownText(), EDA_TEXT::GetText(), m_instanceReferences, SCH_SHEET_PATH::Path(), path, EDA_TEXT::SetText(), and VALUE_FIELD.
Referenced by NETLIST_EXPORTER_XML::addSymbolFields(), SCH_EDIT_FRAME::AnnotateSymbols(), DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), SCH_PIN::GetMsgPanelInfo(), GetMsgPanelInfo(), DIALOG_CHANGE_SYMBOLS::isMatch(), SCH_FIELD::Replace(), ResolveTextVar(), SCH_REFERENCE::SCH_REFERENCE(), SCH_SYMBOL(), SCH_SHEET_PATH::UpdateAllScreenReferences(), NETLIST_EXPORTER_ORCADPCB2::WriteNetlist(), and NETLIST_EXPORTER_CADSTAR::WriteNetlist().
bool SCH_SYMBOL::HasBrightenedPins | ( | ) |
Definition at line 1893 of file sch_symbol.cpp.
Referenced by SCH_EDITOR_CONTROL::UpdateNetHighlighting().
|
inlineinherited |
Definition at line 155 of file eda_item.h.
References EDA_ITEM::m_flags.
Referenced by TRACKS_CLEANER::cleanup(), GRAPHICS_CLEANER::cleanupShapes(), SCH_EDIT_TOOL::DoDelete(), KIGFX::SCH_PAINTER::draw(), SCH_MOVE_TOOL::getConnectedDragItems(), SCH_MOVE_TOOL::moveItem(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), SCH_EDIT_TOOL::Rotate(), and EE_TOOL_BASE< SCH_BASE_FRAME >::saveCopyInUndoList().
|
inlinevirtualinherited |
Check if this schematic item has line stoke properties.
Reimplemented in SCH_LINE, and SCH_BUS_ENTRY_BASE.
Definition at line 453 of file sch_item.h.
Referenced by EE_SELECTION::AllItemsHaveLineStroke(), and SCH_EDIT_TOOL::Properties().
|
overridevirtual |
Test if aPosition is inside or on the boundary of this item.
aPosition | A reference to a wxPoint object containing the coordinates to test. |
aAccuracy | Increase the item bounding box by this amount. |
Reimplemented from EDA_ITEM.
Definition at line 1814 of file sch_symbol.cpp.
References EDA_RECT::Contains(), GetBodyBoundingBox(), and EDA_RECT::Inflate().
|
overridevirtual |
Test if aRect intersects this item.
aRect | A reference to a EDA_RECT 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 1826 of file sch_symbol.cpp.
References EDA_RECT::Contains(), GetBodyBoundingBox(), EDA_RECT::Inflate(), EDA_RECT::Intersects(), EDA_ITEM::m_flags, SKIP_STRUCT, and STRUCT_DELETED.
|
private |
Definition at line 194 of file sch_symbol.cpp.
References TEMPLATE_FIELDNAME::GetDefaultFieldName(), LAYER_FIELDS, LAYER_REFERENCEPART, LAYER_VALUEPART, m_convert, m_fields, m_inBom, m_isInNetlist, m_onBoard, m_pos, m_prefix, m_transform, m_unit, MANDATORY_FIELDS, REFERENCE_FIELD, and VALUE_FIELD.
Referenced by SCH_SYMBOL().
|
inherited |
Create a new connection object associated with this object.
aPath | is the sheet path to initialize. |
Definition at line 195 of file sch_item.cpp.
References SCH_ITEM::Connection(), SCH_ITEM::m_connection_map, SCH_CONNECTION::Reset(), SCH_ITEM::SetConnectivityDirty(), SCH_CONNECTION::SetGraph(), and SCH_CONNECTION::SetSheet().
Referenced by SCH_ITEM::GetOrInitConnection().
bool SCH_SYMBOL::IsAnnotated | ( | const SCH_SHEET_PATH * | aSheet | ) |
Check if the symbol has a valid annotation (reference) for the given sheet path.
aSheet | is the sheet path to test. |
Definition at line 540 of file sch_symbol.cpp.
References m_instanceReferences, SCH_SHEET_PATH::Path(), and path.
Referenced by SCH_EDIT_FRAME::mapExistingAnnotation(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), and DIALOG_SCH_FIELD_PROPERTIES::UpdateField().
|
inlineinherited |
Definition at line 125 of file eda_item.h.
References BRIGHTENED, and EDA_ITEM::m_flags.
Referenced by GERBVIEW_SELECTION_TOOL::disambiguationMenu(), KIGFX::SCH_PAINTER::draw(), KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::DS_RENDER_SETTINGS::GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), KIGFX::SCH_PAINTER::getRenderColor(), SCH_EDITOR_CONTROL::UpdateFind(), and SCH_EDITOR_CONTROL::UpdateNetHighlighting().
|
inlineoverridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 601 of file sch_symbol.h.
|
inherited |
Test the item to see if it is connected to aPoint.
aPoint | is a reference to a wxPoint object containing the coordinates to test. |
Definition at line 129 of file sch_item.cpp.
References SCH_ITEM::doIsConnected(), EDA_ITEM::m_flags, SKIP_STRUCT, and STRUCT_DELETED.
Referenced by SCH_SCREEN::doIsJunction(), and SCH_SCREEN::IsTerminalPoint().
|
inlineinherited |
Definition at line 413 of file sch_item.h.
References SCH_ITEM::m_connectivity_dirty.
Referenced by SCH_ITEM::Connection(), KIGFX::SCH_PAINTER::draw(), SCH_LINE::GetEffectiveLineStyle(), SCH_JUNCTION::getEffectiveShape(), SCH_JUNCTION::GetJunctionColor(), SCH_LINE::GetLineColor(), SCH_PIN::GetMsgPanelInfo(), SCH_BUS_ENTRY_BASE::GetMsgPanelInfo(), SCH_LINE::GetMsgPanelInfo(), SCH_TEXT::GetMsgPanelInfo(), SCH_BUS_WIRE_ENTRY::GetPenWidth(), SCH_LINE::GetPenWidth(), SCH_BUS_BUS_ENTRY::GetPenWidth(), SCH_BUS_ENTRY_BASE::GetStrokeColor(), and SCH_BUS_ENTRY_BASE::GetStrokeStyle().
|
inlinevirtualinherited |
Reimplemented in SCH_TEXT, SCH_LINE, SCH_BUS_ENTRY_BASE, and SCH_PIN.
Definition at line 342 of file sch_item.h.
|
inlineinherited |
Definition at line 120 of file eda_item.h.
References IS_DRAGGING, and EDA_ITEM::m_flags.
Referenced by DIALOG_SYMBOL_PROPERTIES::DIALOG_SYMBOL_PROPERTIES().
|
inlineinherited |
Definition at line 123 of file eda_item.h.
References ENTERED, and EDA_ITEM::m_flags.
Referenced by KIGFX::PCB_PAINTER::draw().
|
inlineinherited |
Definition at line 205 of file eda_item.h.
References EDA_ITEM::m_forceVisible.
Referenced by KIGFX::SCH_PAINTER::draw(), and SCH_FIELD::Print().
|
inlinevirtualinherited |
Allow items to support hypertext actions when hovered/clicked.
Reimplemented in SCH_FIELD.
Definition at line 252 of file sch_item.h.
bool SCH_SYMBOL::IsInNetlist | ( | ) | const |
Definition at line 1870 of file sch_symbol.cpp.
References m_isInNetlist.
Referenced by AUTOPLACER::AUTOPLACER().
|
inlinevirtualinherited |
Definition at line 242 of file sch_item.h.
|
inlineinherited |
Definition at line 117 of file eda_item.h.
References IS_CHANGED, and EDA_ITEM::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 240 of file sch_symbol.cpp.
|
inlineinherited |
Definition at line 119 of file eda_item.h.
References IS_MOVING, and EDA_ITEM::m_flags.
Referenced by SCH_EDIT_FRAME::AddItemToScreenAndUndoList(), SCH_EDIT_TOOL::AutoplaceFields(), LIB_SHAPE::CalcArcAngles(), LIB_PIN::CalcEdit(), KIGFX::SCH_PAINTER::draw(), SYMBOL_EDITOR_EDIT_TOOL::Duplicate(), SYMBOL_EDITOR_EDIT_TOOL::Mirror(), SCH_EDIT_TOOL::Mirror(), PCB_BASE_FRAME::PlaceFootprint(), SYMBOL_EDITOR_EDIT_TOOL::Rotate(), and SCH_EDIT_TOOL::Rotate().
|
inlineinherited |
Definition at line 118 of file eda_item.h.
References IS_NEW, and EDA_ITEM::m_flags.
Referenced by SCH_EDIT_FRAME::AddItemToScreenAndUndoList(), SCH_EDIT_TOOL::ConvertDeMorgan(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), EDIT_TOOL::DragArcTrack(), SYMBOL_EDITOR_EDIT_TOOL::Duplicate(), SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), SYMBOL_EDITOR_DRAWING_TOOLS::Init(), SCH_LINE_WIRE_BUS_TOOL::IsDrawingLineWireOrBus(), EE_POINT_EDITOR::Main(), PL_POINT_EDITOR::Main(), SYMBOL_EDITOR_MOVE_TOOL::Main(), SCH_MOVE_TOOL::Main(), EDIT_TOOL::MoveExact(), PCB_BASE_FRAME::PlaceFootprint(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), SCH_EDIT_FRAME::SaveSymbolToSchematic(), DIALOG_SHEET_PIN_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXT_AND_LABEL_PROPERTIES::TransferDataFromWindow(), and DIALOG_SHEET_PROPERTIES::TransferDataFromWindow().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 1912 of file sch_symbol.cpp.
References GetConvert(), GetUnit(), m_pins, and pin.
|
static |
Test for an acceptable reference string.
An acceptable reference string must support unannotation i.e starts by letter
aReferenceString | is the reference string to validate |
Definition at line 498 of file sch_symbol.cpp.
References UTIL::GetRefDesPrefix().
Referenced by DIALOG_FIELD_PROPERTIES::TransferDataFromWindow(), DIALOG_LIB_SYMBOL_PROPERTIES::Validate(), and DIALOG_SYMBOL_PROPERTIES::Validate().
|
inlineoverridevirtual |
Override this method in any derived object that supports test find and replace.
Reimplemented from EDA_ITEM.
Definition at line 643 of file sch_symbol.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 122 of file eda_item.h.
References EDA_ITEM::m_flags, and SELECTED.
Referenced by ALIGN_DISTRIBUTE_TOOL::AlignBottom(), ALIGN_DISTRIBUTE_TOOL::AlignCenterX(), ALIGN_DISTRIBUTE_TOOL::AlignCenterY(), ALIGN_DISTRIBUTE_TOOL::AlignTop(), SCH_EDIT_FRAME::ConvertPart(), DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), ALIGN_DISTRIBUTE_TOOL::doAlignLeft(), ALIGN_DISTRIBUTE_TOOL::doAlignRight(), ALIGN_DISTRIBUTE_TOOL::doDistributeCentersHorizontally(), ALIGN_DISTRIBUTE_TOOL::doDistributeCentersVertically(), ALIGN_DISTRIBUTE_TOOL::doDistributeGapsHorizontally(), ALIGN_DISTRIBUTE_TOOL::doDistributeGapsVertically(), KIGFX::SCH_PAINTER::draw(), KIGFX::PCB_PAINTER::Draw(), KIGFX::PCB_PAINTER::draw(), DS_PROXY_UNDO_ITEM::DS_PROXY_UNDO_ITEM(), KIGFX::DS_RENDER_SETTINGS::GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), SCH_MOVE_TOOL::getConnectedDragItems(), KIGFX::SCH_PAINTER::getLineWidth(), KIGFX::SCH_PAINTER::getRenderColor(), KIGFX::SCH_PAINTER::getTextThickness(), DIALOG_EXCHANGE_FOOTPRINTS::isMatch(), DIALOG_CHANGE_SYMBOLS::isMatch(), SCH_LINE::MergeOverlap(), SCH_EDIT_TOOL::Mirror(), EDIT_TOOL::MoveExact(), SCH_MOVE_TOOL::moveItem(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), BOARD_COMMIT::Push(), PCB_SELECTION_TOOL::RebuildSelection(), EE_SELECTION_TOOL::RebuildSelection(), RENDER_3D_OPENGL::renderFootprint(), SCH_EDIT_TOOL::Rotate(), EE_TOOL_BASE< SCH_BASE_FRAME >::saveCopyInUndoList(), SCH_EDIT_FRAME::SchematicCleanUp(), GERBVIEW_SELECTION_TOOL::select(), PCB_SELECTION_TOOL::select(), PCB_SELECTION_TOOL::selectionContains(), PCB_SELECTION_TOOL::selectMultiple(), GERBVIEW_SELECTION_TOOL::selectPoint(), KIGFX::SCH_PAINTER::setDeviceColors(), GERBVIEW_SELECTION_TOOL::unselect(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inlinevirtualinherited |
Check whether the item is one of the listed types.
aScanTypes | List of item types |
Reimplemented in PCB_VIA, SCH_LABEL, PCB_DIMENSION_BASE, PAD, SCH_FIELD, FP_TEXT, SCH_LINE, PCB_SHAPE, FP_SHAPE, and PCB_TEXT.
Definition at line 182 of file eda_item.h.
References EOT, EDA_ITEM::m_structType, and SCH_LOCATE_ANY_T.
Referenced by SCH_EDIT_TOOL::AutoplaceFields(), ROUTER_TOOL::CanInlineDrag(), SCH_LINE_WIRE_BUS_TOOL::IsDrawingBus(), SCH_LINE_WIRE_BUS_TOOL::IsDrawingLine(), SCH_LINE_WIRE_BUS_TOOL::IsDrawingWire(), PCB_TEXT::IsType(), FP_SHAPE::IsType(), PCB_SHAPE::IsType(), SCH_LINE::IsType(), FP_TEXT::IsType(), SCH_FIELD::IsType(), PAD::IsType(), PCB_DIMENSION_BASE::IsType(), SCH_LABEL::IsType(), PCB_VIA::IsType(), EE_POINT_EDITOR::Main(), PL_POINT_EDITOR::Main(), EE_SELECTION_TOOL::RequestSelection(), SCH_BASE_FRAME::UpdateItem(), EDA_ITEM::Visit(), and DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem().
|
inlineinherited |
Definition at line 121 of file eda_item.h.
References IS_WIRE_IMAGE, and EDA_ITEM::m_flags.
|
inlinestaticinherited |
This changes first parameter to avoid the DList and use the main queue instead.
Definition at line 294 of file eda_item.h.
References CONTINUE, QUIT, and EDA_ITEM::Visit().
Referenced by GERBER_FILE_IMAGE::Visit().
|
inlinestaticinherited |
Change first parameter to avoid the DList and use std::vector instead.
Definition at line 313 of file eda_item.h.
References CONTINUE, QUIT, and EDA_ITEM::Visit().
|
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 118 of file eda_item.cpp.
References FR_MATCH_WILDCARD, FR_SEARCH_REPLACE, EDA_ITEM::IsReplaceable(), next(), and text.
|
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 1531 of file sch_symbol.cpp.
References GetSelectMenuText(), MILLIMETRES, and traceFindItem.
|
overridevirtual |
Mirror item horizontally about aCenter.
Implements SCH_ITEM.
Definition at line 1476 of file sch_symbol.cpp.
References m_fields, m_pos, MIRROR(), SetOrientation(), and SYM_MIRROR_Y.
|
overridevirtual |
Mirror item vertically about aCenter.
Implements SCH_ITEM.
Definition at line 1494 of file sch_symbol.cpp.
References m_fields, m_pos, MIRROR(), SetOrientation(), and SYM_MIRROR_X.
|
inlineoverridevirtual |
Move the item by aMoveVector to a new position.
Implements SCH_ITEM.
Definition at line 565 of file sch_symbol.h.
References m_fields, m_pos, and EDA_ITEM::SetModified().
Referenced by SetPosition().
|
inherited |
Definition at line 158 of file sch_item.cpp.
References SCH_ITEM::Connection(), NETCLASSES::Find(), NET_SETTINGS::GetNetclassName(), PROJECT::GetProjectFile(), SCH_ITEM::m_connection_map, NET_SETTINGS::m_NetClasses, SCH_CONNECTION::Name(), PROJECT_FILE::NetSettings(), SCHEMATIC::Prj(), and SCH_ITEM::Schematic().
Referenced by SCH_LINE::GetEffectiveLineStyle(), SCH_JUNCTION::getEffectiveShape(), SCH_JUNCTION::GetJunctionColor(), SCH_LINE::GetLineColor(), SCH_BUS_WIRE_ENTRY::GetPenWidth(), SCH_LINE::GetPenWidth(), SCH_BUS_BUS_ENTRY::GetPenWidth(), SCH_BUS_ENTRY_BASE::GetStrokeColor(), and SCH_BUS_ENTRY_BASE::GetStrokeStyle().
bool SCH_SYMBOL::operator!= | ( | const SCH_SYMBOL & | aSymbol | ) | const |
Definition at line 1771 of file sch_symbol.cpp.
|
inherited |
Test if another item is less than this object.
aItem | - Item to compare against. |
Definition at line 234 of file eda_item.cpp.
References Format(), and EDA_ITEM::GetClass().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 1734 of file sch_symbol.cpp.
References EDA_RECT::GetArea(), GetBodyAndPinsBoundingBox(), m_pos, EDA_ITEM::m_Uuid, and EDA_ITEM::Type().
SCH_SYMBOL & SCH_SYMBOL::operator= | ( | const SCH_ITEM & | aItem | ) |
Definition at line 1777 of file sch_symbol.cpp.
References GetClass(), SCH_ITEM::GetClass(), m_convert, m_fields, m_instanceReferences, m_lib_id, m_part, m_pos, m_transform, m_unit, SCH_ITEM::operator=(), EDA_ITEM::Type(), and UpdatePins().
bool SCH_SYMBOL::operator== | ( | const SCH_SYMBOL & | aSymbol | ) | const |
Definition at line 1756 of file sch_symbol.cpp.
References GetFieldCount(), GetFields(), and VALUE_FIELD.
|
overridevirtual |
Plot the schematic item to aPlotter.
aPlotter | is the PLOTTER object to plot to. |
Reimplemented from SCH_ITEM.
Definition at line 1876 of file sch_symbol.cpp.
References PLOTTER::EndBlock(), GetConvert(), GetTransform(), GetUnit(), m_fields, m_part, m_pos, and PLOTTER::StartBlock().
|
overridevirtual |
Print a symbol.
aDC | is the device context (can be null). |
aOffset | is the drawing offset (usually wxPoint(0,0), but can be different when moving an object) |
Implements SCH_ITEM.
Definition at line 402 of file sch_symbol.cpp.
References LIB_SYMBOL_OPTIONS::draw_hidden_fields, LIB_SYMBOL_OPTIONS::draw_visible_fields, dummy(), m_convert, m_fields, m_part, m_pos, m_transform, m_unit, LIB_SYMBOL::Print(), and LIB_SYMBOL_OPTIONS::transform.
void SCH_SYMBOL::RemoveField | ( | const wxString & | aFieldName | ) |
Remove a user field from the symbol.
aFieldName | is the user fieldName to remove. Attempts to remove a mandatory field or a non-existant field are silently ignored. |
Definition at line 760 of file sch_symbol.cpp.
References m_fields, and MANDATORY_FIELDS.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), and DIALOG_CHANGE_SYMBOLS::processSymbol().
|
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 170 of file eda_item.cpp.
Referenced by SCH_FIELD::Replace(), EDA_TEXT::Replace(), SCH_EDITOR_CONTROL::ReplaceAll(), and SCH_EDITOR_CONTROL::ReplaceAndFindNext().
|
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_TEXT, SCH_FIELD, SCH_SHEET_PIN, and SCH_PIN.
Definition at line 391 of file eda_item.h.
bool SCH_SYMBOL::ReplaceInstanceSheetPath | ( | const KIID_PATH & | aOldSheetPath, |
const KIID_PATH & | aNewSheetPath | ||
) |
Replace aOldSheetPath with aNewSheetPath in the instance list.
aOldSheetPath | is a KIID_PATH object of an existing path in the instance list. |
aNewSheetPath | is a KIID_PATH object of the path to replace the existing path. |
Definition at line 1107 of file sch_symbol.cpp.
References KIID::AsString(), KIID_PATH::AsString(), m_instanceReferences, EDA_ITEM::m_Uuid, r, and traceSchSheetPaths.
bool SCH_SYMBOL::ResolveTextVar | ( | wxString * | token, |
int | aDepth = 0 |
||
) | const |
Resolve any references to system tokens supported by the symbol.
aDepth | a counter to limit recursion and circular references. |
Definition at line 972 of file sch_symbol.cpp.
References SCHEMATIC::CurrentSheet(), FOOTPRINT_FIELD, GetFootprint(), GetRef(), TEMPLATES::GetTemplateFieldNames(), GetUnitSelection(), GetValue(), m_fields, SCHEMATIC_SETTINGS::m_TemplateFieldNames, MANDATORY_FIELDS, REFERENCE_FIELD, SCH_ITEM::Schematic(), SCHEMATIC::Settings(), LIB_SYMBOL::SubReference(), and VALUE_FIELD.
Referenced by SCH_FIELD::GetShownText(), and SCHEMATIC::ResolveCrossReference().
|
overridevirtual |
Rotate the item around aCenter 90 degrees in the clockwise direction.
Implements SCH_ITEM.
Definition at line 1512 of file sch_symbol.cpp.
References m_fields, m_pos, RotatePoint(), SetOrientation(), and SYM_ROTATE_COUNTERCLOCKWISE.
Referenced by SCH_EDIT_TOOL::Rotate().
|
overridevirtual |
Reimplemented from SCH_ITEM.
Definition at line 860 of file sch_symbol.cpp.
|
inherited |
Searches 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 104 of file sch_item.cpp.
References EDA_ITEM::GetParent(), SCHEMATIC_T, and EDA_ITEM::Type().
Referenced by SCH_ITEM::Connection(), SCH_DRAWING_TOOLS::createSheetPin(), DIALOG_SCH_FIELD_PROPERTIES::DIALOG_SCH_FIELD_PROPERTIES(), SCH_FIELD::DoHypertextMenu(), SCH_GLOBALLABEL::GetBoundingBox(), SCH_MARKER::GetColorLayer(), SCH_JUNCTION::getEffectiveShape(), SCH_TEXT::GetLabelBoxExpansion(), SCH_BUS_ENTRY_BASE::GetMsgPanelInfo(), SCH_LINE::GetMsgPanelInfo(), SCH_TEXT::GetMsgPanelInfo(), SCH_NO_CONNECT::GetPenWidth(), SCH_SHEET_PIN::GetPenWidth(), SCH_LINE::GetPenWidth(), SCH_SHEET::GetPenWidth(), GetPins(), SCH_FIELD::GetShownText(), SCH_TEXT::GetShownText(), SCH_TEXT::GetTextOffset(), SCH_PIN::HitTest(), SCH_GLOBALLABEL::HitTest(), inheritNetclass(), SCH_SHEET::IsRootSheet(), SCH_LABEL::IsType(), SCH_ITEM::NetClass(), DIALOG_SYMBOL_PROPERTIES::OnAddField(), DIALOG_TEXT_AND_LABEL_PROPERTIES::onScintillaCharAdded(), DIALOG_SCH_FIELD_PROPERTIES::onScintillaCharAdded(), SCH_GLOBALLABEL::Plot(), SCH_GLOBALLABEL::Print(), SCH_HIERLABEL::Print(), SCH_SHEET::ResolveTextVar(), ResolveTextVar(), SCH_GLOBALLABEL::ResolveTextVar(), DIALOG_SCH_FIELD_PROPERTIES::UpdateField(), and SCH_MARKER::ViewGetLayers().
|
inlineinherited |
Definition at line 42 of file inspectable.h.
References PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_BASE::setter(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inlineinherited |
Definition at line 55 of file inspectable.h.
References PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_BASE::set(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inlineinherited |
Definition at line 68 of file inspectable.h.
References PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_BASE::set(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inlineinherited |
Definition at line 129 of file eda_item.h.
References BRIGHTENED, and EDA_ITEM::SetFlags().
Referenced by GERBVIEW_SELECTION_TOOL::disambiguationMenu(), KIGFX::SCH_PAINTER::draw(), SCH_EDIT_FRAME::FocusOnItem(), PCB_BASE_FRAME::FocusOnItems(), PL_SELECTION_TOOL::highlight(), EE_SELECTION_TOOL::highlight(), PCB_SELECTION_TOOL::highlightInternal(), and SCH_EDITOR_CONTROL::UpdateNetHighlighting().
|
inlineinherited |
Definition at line 415 of file sch_item.h.
References SCH_ITEM::m_connectivity_dirty.
Referenced by SCH_EDIT_FRAME::BreakSegment(), SCH_ITEM::GetOrInitConnection(), SCH_ITEM::InitializeConnection(), SCH_LINE::MergeOverlap(), SCH_EDITOR_CONTROL::Paste(), and SCH_EDIT_FRAME::SaveCopyInUndoList().
void SCH_SYMBOL::SetConvert | ( | int | aConvert | ) |
Definition at line 370 of file sch_symbol.cpp.
References m_convert, EDA_ITEM::SetModified(), and UpdatePins().
Referenced by SCH_EDIT_FRAME::ConvertPart(), and DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow().
|
inline |
Set multiple schematic fields.
aFields | are the fields to set in this symbol. |
Definition at line 404 of file sch_symbol.h.
References m_fields.
|
inlineinherited |
Definition at line 426 of file sch_item.h.
References FIELDS_AUTOPLACED_AUTO, and SCH_ITEM::m_fieldsAutoplaced.
|
inlineinherited |
Definition at line 152 of file eda_item.h.
References EDA_ITEM::m_flags.
Referenced by SCH_EAGLE_PLUGIN::addBusEntries(), PCB_BASE_FRAME::AddFootprintToBoard(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), SCH_MOVE_TOOL::AlignElements(), PCB_CONTROL::AppendBoard(), FOOTPRINT::BuildPolyCourtyards(), SCH_EDIT_TOOL::ChangeTextType(), GRAPHICS_CLEANER::cleanupShapes(), ConvertOutlineToPolygon(), SCH_EDIT_FRAME::ConvertPart(), SCH_DRAWING_TOOLS::createNewText(), SCH_DRAWING_TOOLS::createSheetPin(), SCH_EDIT_TOOL::DoDelete(), SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), SCH_LINE_WIRE_BUS_TOOL::doUnfoldBus(), EDIT_TOOL::DragArcTrack(), KIGFX::SCH_PAINTER::draw(), SYMBOL_EDITOR_DRAWING_TOOLS::DrawShape(), SCH_DRAWING_TOOLS::DrawSheet(), PCB_SELECTION_TOOL::EnterGroup(), PCB_SELECTION_TOOL::FilterCollectorForHierarchy(), SCH_MOVE_TOOL::getConnectedDragItems(), SYMBOL_EDIT_FRAME::GetSymbolFromRedoList(), SYMBOL_EDIT_FRAME::GetSymbolFromUndoList(), EE_SELECTION_TOOL::Main(), TRACKS_CLEANER::mergeCollinearSegments(), SYMBOL_EDITOR_MOVE_TOOL::moveItem(), SCH_MOVE_TOOL::moveItem(), EE_SELECTION_TOOL::narrowSelection(), KIGFX::ORIGIN_VIEWITEM::ORIGIN_VIEWITEM(), SCH_ALTIUM_PLUGIN::ParseBezier(), SCH_ALTIUM_PLUGIN::ParseBus(), SCH_ALTIUM_PLUGIN::ParseBusEntry(), SCH_ALTIUM_PLUGIN::ParseJunction(), SCH_ALTIUM_PLUGIN::ParseLabel(), SCH_ALTIUM_PLUGIN::ParseLine(), SCH_ALTIUM_PLUGIN::ParseNetLabel(), SCH_ALTIUM_PLUGIN::ParseNoERC(), SCH_ALTIUM_PLUGIN::ParsePolygon(), SCH_ALTIUM_PLUGIN::ParsePolyline(), SCH_ALTIUM_PLUGIN::ParsePort(), SCH_ALTIUM_PLUGIN::ParseRectangle(), SCH_ALTIUM_PLUGIN::ParseRoundRectangle(), SCH_ALTIUM_PLUGIN::ParseSheetSymbol(), SCH_ALTIUM_PLUGIN::ParseWire(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), SCH_EDITOR_CONTROL::Paste(), BOARD_EDITOR_CONTROL::PlaceFootprint(), PL_DRAWING_TOOLS::PlaceItem(), DRAWING_TOOL::PlaceText(), BACK_ANNOTATE::processNetNameChange(), SCH_EDIT_FRAME::PutDataInPreviousState(), PCB_SELECTION_TOOL::RebuildSelection(), FOOTPRINT::Remove(), BOARD::Remove(), SCH_EDIT_TOOL::RepeatDrawItem(), SCH_EDIT_TOOL::Rotate(), SYMBOL_EDIT_FRAME::SaveCopyInUndoList(), SCH_EDIT_FRAME::SelectUnit(), EDA_ITEM::SetBrightened(), EDA_ITEM::SetModified(), EDA_ITEM::SetSelected(), EDA_ITEM::SetWireImage(), SCH_DRAWING_TOOLS::SingleClickPlace(), SCH_LINE_WIRE_BUS_TOOL::startSegments(), DS_DATA_ITEM::SyncDrawItems(), DS_DATA_ITEM_BITMAP::SyncDrawItems(), DIALOG_DIMENSION_PROPERTIES::TransferDataFromWindow(), DIALOG_TARGET_PROPERTIES::TransferDataFromWindow(), DIALOG_TEXT_PROPERTIES::TransferDataFromWindow(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::TransferDataFromWindow(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), and SCH_DRAWING_TOOLS::TwoClickPlace().
void SCH_SYMBOL::SetFootprint | ( | const SCH_SHEET_PATH * | sheet, |
const wxString & | aFootprint | ||
) |
Definition at line 675 of file sch_symbol.cpp.
References AddHierarchicalReference(), FOOTPRINT_FIELD, UTIL::GetRefDesUnannotated(), m_fields, m_instanceReferences, m_prefix, m_unit, SCH_SHEET_PATH::Path(), and path.
Referenced by BACK_ANNOTATE::applyChangelist(), FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), SCH_EDITOR_CONTROL::AssignFootprints(), SCH_ALTIUM_PLUGIN::ParseImplementation(), SCH_EDITOR_CONTROL::processCmpToFootprintLinkFile(), DIALOG_CHANGE_SYMBOLS::processSymbol(), SCH_FIELD::Replace(), SCH_SYMBOL(), SetFootprint(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), DIALOG_SCH_FIELD_PROPERTIES::UpdateField(), UpdateFields(), and SCH_EDITOR_CONTROL::updatePastedSymbol().
|
inline |
Set the value for all instances (the default GUI behavior).
Definition at line 558 of file sch_symbol.h.
References SetFootprint().
|
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 203 of file eda_item.h.
References EDA_ITEM::m_forceVisible.
Referenced by SCH_EDITOR_CONTROL::UpdateFind().
|
inline |
Definition at line 664 of file sch_symbol.h.
References m_inBom.
Referenced by DIALOG_CHANGE_SYMBOLS::processSymbol(), and DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow().
|
inline |
Definition at line 667 of file sch_symbol.h.
References m_onBoard.
Referenced by DIALOG_CHANGE_SYMBOLS::processSymbol(), and DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow().
|
inlinevirtualinherited |
Reimplemented in SCH_LINE, SCH_JUNCTION, and SCH_BUS_ENTRY_BASE.
Definition at line 417 of file sch_item.h.
Referenced by SCH_EDITOR_CONTROL::Paste().
|
inlineinherited |
Set the layer this item is on.
aLayer | The layer number. |
Definition at line 266 of file sch_item.h.
References SCH_ITEM::m_layer.
Referenced by PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems(), CADSTAR_SCH_ARCHIVE_LOADER::loadBusses(), CADSTAR_SCH_ARCHIVE_LOADER::loadGraphicStaightSegment(), CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), SCH_NO_CONNECT::SCH_NO_CONNECT(), SCH_FIELD::SetId(), and CONNECTION_GRAPH::updateItemConnectivity().
void SCH_SYMBOL::SetLibId | ( | const LIB_ID & | aName | ) |
Definition at line 261 of file sch_symbol.cpp.
References m_lib_id, and EDA_ITEM::SetModified().
Referenced by SCH_SCREENS::ChangeSymbolLibNickname(), SCH_ALTIUM_PLUGIN::ParseComponent(), SCH_ALTIUM_PLUGIN::ParsePowerPort(), DIALOG_CHANGE_SYMBOLS::processSymbol(), 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 280 of file sch_symbol.cpp.
References LIB_SYMBOL::IsRoot(), m_part, and UpdatePins().
Referenced by SCH_SCREEN::Append(), SCH_ALTIUM_PLUGIN::ParsePowerPort(), SCH_EDITOR_CONTROL::Paste(), DIALOG_CHANGE_SYMBOLS::processSymbol(), SCH_EDIT_FRAME::SaveSymbolToSchematic(), and SCH_SYMBOL().
|
inlinevirtualinherited |
Set the 'lock' status to aLocked for of this item.
Definition at line 247 of file sch_item.h.
|
inherited |
Definition at line 65 of file eda_item.cpp.
References IS_CHANGED, EDA_ITEM::m_parent, EDA_ITEM::SetFlags(), and EDA_ITEM::SetModified().
Referenced by SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), LEGACY_PLUGIN::loadZONE_CONTAINER(), SCH_LINE::Move(), Move(), SCH_LINE::MoveEnd(), SCH_LINE::MoveStart(), LIB_PIN::MoveTo(), PCB_EDIT_FRAME::OpenProjectFiles(), ALTIUM_PCB::Parse(), SCH_ALTIUM_PLUGIN::ParseFileHeader(), LIB_SYMBOL::RemoveDrawItem(), SetConvert(), SetLibId(), EDA_ITEM::SetModified(), LIB_FIELD::SetName(), SetTransform(), and SetUnit().
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 1135 of file sch_symbol.cpp.
References m_transform, 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 GetOrientation(), CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbol(), SCH_EDIT_TOOL::Mirror(), MirrorHorizontally(), MirrorVertically(), SCH_ALTIUM_PLUGIN::ParsePowerPort(), Rotate(), and DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow().
|
inlinevirtualinherited |
Reimplemented in PCB_DIMENSION_BASE.
Definition at line 115 of file eda_item.h.
References EDA_ITEM::m_parent.
Referenced by FOOTPRINT::Add(), BOARD::Add(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), BOARD_NETLIST_UPDATER::addNewFootprint(), SCH_SHEET::AddPin(), PAD::AddPrimitive(), PAD::AddPrimitiveArc(), PAD::AddPrimitiveCircle(), PAD::AddPrimitiveCurve(), PAD::AddPrimitivePoly(), PAD::AddPrimitiveRect(), PAD::AddPrimitiveSegment(), SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), SCH_SCREEN::Append(), LIB_FIELD::Copy(), SYMBOL_EDIT_FRAME::CreateNewSymbol(), SCH_DRAWING_TOOLS::createNewText(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), SCH_LINE_WIRE_BUS_TOOL::doUnfoldBus(), SYMBOL_EDITOR_DRAWING_TOOLS::DrawShape(), PCB_EDIT_FRAME::ExchangeFootprint(), LIB_SYMBOL::Flatten(), FOOTPRINT::FOOTPRINT(), PCB_PLUGIN::FootprintSave(), DISPLAY_FOOTPRINTS_FRAME::GetFootprint(), CADSTAR_SCH_ARCHIVE_LOADER::getKiCadSchText(), LIB_SYMBOL::LIB_SYMBOL(), SCH_LEGACY_PLUGIN_CACHE::loadAliases(), CADSTAR_SCH_ARCHIVE_LOADER::loadChildSheets(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), SCH_SEXPR_PLUGIN::loadHierarchy(), SCH_LEGACY_PLUGIN::loadHierarchy(), DIALOG_LIB_EDIT_PIN_TABLE::OnAddRow(), FOOTPRINT::operator=(), LIB_SYMBOL::operator=(), PCB_PARSER::parseFOOTPRINT_unchecked(), SCH_SEXPR_PARSER::ParseSchematic(), SCH_SEXPR_PARSER::ParseSymbol(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), PCB_CONTROL::Paste(), SCH_EDITOR_CONTROL::Paste(), pasteFootprintItemsToFootprintEditor(), BOARD_EDITOR_CONTROL::PlaceFootprint(), BACK_ANNOTATE::processNetNameChange(), BOARD_COMMIT::Push(), SCH_SEXPR_PLUGIN_CACHE::removeSymbol(), SCH_LEGACY_PLUGIN_CACHE::removeSymbol(), PCB_BASE_EDIT_FRAME::SaveCopyInUndoList(), SaveCopyOfZones(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), SCH_SHEET_PIN::SCH_SHEET_PIN(), LIB_SYMBOL::SetFields(), PCB_DIMENSION_BASE::SetParent(), SCH_DRAWING_TOOLS::SingleClickPlace(), SCH_LINE_WIRE_BUS_TOOL::startSegments(), SCH_SHEET::SwapData(), SCH_GLOBALLABEL::SwapData(), SwapData(), and SwapItemData().
|
inlineoverridevirtual |
Reimplemented from EDA_ITEM.
Definition at line 646 of file sch_symbol.h.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbol(), SCH_ALTIUM_PLUGIN::ParseComponent(), SCH_ALTIUM_PLUGIN::ParsePowerPort(), and SCH_DRAWING_TOOLS::PlaceSymbol().
|
inline |
Definition at line 230 of file sch_symbol.h.
References m_prefix.
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 504 of file sch_symbol.cpp.