|
KiCad PCB EDA Suite
|
#include <footprint.h>
Classes | |
| struct | cmp_drawings |
| struct | cmp_pads |
| struct | cmp_zones |
| struct | FP_UNIT_INFO |
Public Types | |
| enum | COMPARE_FLAGS : int { DRC = 0x01 , INSTANCE_TO_INSTANCE = 0x02 } |
| enum class | RETURN_CODE : int { OK , FILE_NOT_FOUND , PERMISSIONS_ERROR , FILE_ALREADY_EXISTS , OUT_OF_MEMORY , CHECKSUM_ERROR } |
| using | FILE_ADDED_CALLBACK = std::function<void( EMBEDDED_FILE* )> |
Public Member Functions | |
| FOOTPRINT (BOARD *parent) | |
| FOOTPRINT (const FOOTPRINT &aFootprint) | |
| FOOTPRINT (FOOTPRINT &&aFootprint) | |
| ~FOOTPRINT () | |
| FOOTPRINT & | operator= (const FOOTPRINT &aOther) |
| FOOTPRINT & | operator= (FOOTPRINT &&aOther) |
| void | CopyFrom (const BOARD_ITEM *aOther) override |
| void | Serialize (google::protobuf::Any &aContainer) const override |
| Serializes this object to the given Any message. | |
| bool | Deserialize (const google::protobuf::Any &aContainer) override |
| Deserializes the given protobuf message into this object. | |
| void | SerializeDefinition (kiapi::board::types::Footprint *aOutput) const |
| bool | DeserializeDefinition (const kiapi::board::types::Footprint &aInput) |
| void | InvalidateGeometryCaches () |
| Resets the caches for this footprint, for example if it was modified via the API. | |
| LSET | GetPrivateLayers () const |
| void | SetPrivateLayers (const LSET &aLayers) |
| Adds an item to the container. | |
| void | Add (BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override |
| Removes an item from the container. | |
| void | Remove (BOARD_ITEM *aItem, REMOVE_MODE aMode=REMOVE_MODE::NORMAL) override |
| Removes an item from the container. | |
| void | ClearAllNets () |
| Clear (i.e. | |
| bool | FixUuids () |
| Old footprints do not always have a valid UUID (some can be set to null uuid) However null UUIDs, having a special meaning in editor, create issues when editing a footprint So all null uuids a re replaced by a valid uuid. | |
| BOX2I | GetFpPadsLocalBbox () const |
| Return the bounding box containing pads when the footprint is on the front side, orientation 0, position 0,0. | |
| SHAPE_POLY_SET | GetBoundingHull () const |
| Return a bounding polygon for the shapes and pads in the footprint. | |
| SHAPE_POLY_SET | GetBoundingHull (PCB_LAYER_ID aLayer) const |
| bool | TextOnly () const |
| const BOX2I | GetBoundingBox () const override |
| Return the orthogonal bounding box of this object for display purposes. | |
| const BOX2I | GetBoundingBox (bool aIncludeText) const |
| const BOX2I | GetLayerBoundingBox (const LSET &aLayers) const |
| Return the bounding box of the footprint on a given set of layers. | |
| VECTOR2I | GetCenter () const override |
| This defaults to the center of the bounding box if not overridden. | |
| std::deque< PAD * > & | Pads () |
| const std::deque< PAD * > & | Pads () const |
| DRAWINGS & | GraphicalItems () |
| const DRAWINGS & | GraphicalItems () const |
| ZONES & | Zones () |
| const ZONES & | Zones () const |
| GROUPS & | Groups () |
| const GROUPS & | Groups () const |
| CONSTRAINTS & | Constraints () |
| const CONSTRAINTS & | Constraints () const |
| PCB_POINTS & | Points () |
| const PCB_POINTS & | Points () const |
| bool | HasThroughHolePads () const |
| std::vector< FP_3DMODEL > & | Models () |
| const std::vector< FP_3DMODEL > & | Models () const |
| bool | HasExtrudedBody () const |
| const EXTRUDED_3D_BODY * | GetExtrudedBody () const |
| EXTRUDED_3D_BODY * | GetExtrudedBody () |
| EXTRUDED_3D_BODY & | EnsureExtrudedBody () |
| void | SetExtrudedBody (std::unique_ptr< EXTRUDED_3D_BODY > aBody) |
| void | ClearExtrudedBody () |
| void | SetPosition (const VECTOR2I &aPos) override |
| VECTOR2I | GetPosition () const override |
| void | SetOrientation (const EDA_ANGLE &aNewAngle) |
| EDA_ANGLE | GetOrientation () const |
| void | SetLayerAndFlip (PCB_LAYER_ID aLayer) |
| Used as Layer property setter – performs a flip if necessary to set the footprint layer. | |
| void | SetLayer (PCB_LAYER_ID aLayer) override |
| Set the layer this item is on. | |
| PCB_LAYER_ID | GetLayer () const override |
| Return the primary layer this item is on. | |
| const TRANSFORM_TRS & | GetTransform () const |
| void | SetTransformScale (double aScaleX, double aScaleY) |
| double | GetScaleX () const |
| double | GetScaleY () const |
| void | SetScaleX (double aScaleX) |
| void | SetScaleY (double aScaleY) |
| void | RescaleAroundPoint (const VECTOR2I &aCenter, double aSx, double aSy) |
| void | SetOrientationDegrees (double aOrientation) |
| double | GetOrientationDegrees () const |
| const LIB_ID & | GetFPID () const |
| void | SetFPID (const LIB_ID &aFPID) |
| wxString | GetFPIDAsString () const |
| void | SetFPIDAsString (const wxString &aFPID) |
| LIB_ID | GetLIB_ID () const override |
| wxString | GetName () const override |
| wxString | GetLibNickname () const override |
| wxString | GetDesc () override |
| int | GetPinCount () override |
| The pin count for symbols or the unique pad count for footprints. | |
| std::vector< SEARCH_TERM > & | GetSearchTerms () override |
| wxString | GetLibDescription () const |
| void | SetLibDescription (const wxString &aDesc) |
| wxString | GetKeywords () const |
| void | SetKeywords (const wxString &aKeywords) |
| const KIID_PATH & | GetPath () const |
| void | SetPath (const KIID_PATH &aPath) |
| bool | IsWithinSchematicSheet (const KIID_PATH &aSheetPath) const |
| Test whether this footprint's symbol lives on aSheetPath or any sheet below it. | |
| wxString | GetSheetname () const |
| void | SetSheetname (const wxString &aSheetname) |
| wxString | GetSheetfile () const |
| void | SetSheetfile (const wxString &aSheetfile) |
| wxString | GetFilters () const |
| void | SetFilters (const wxString &aFilters) |
| std::optional< int > | GetLocalClearance () const |
| void | SetLocalClearance (std::optional< int > aClearance) |
| std::optional< int > | GetLocalSolderMaskMargin () const |
| void | SetLocalSolderMaskMargin (std::optional< int > aMargin) |
| std::optional< int > | GetLocalSolderPasteMargin () const |
| void | SetLocalSolderPasteMargin (std::optional< int > aMargin) |
| std::optional< double > | GetLocalSolderPasteMarginRatio () const |
| void | SetLocalSolderPasteMarginRatio (std::optional< double > aRatio) |
| void | SetLocalZoneConnection (ZONE_CONNECTION aType) |
| ZONE_CONNECTION | GetLocalZoneConnection () const |
| void | SetStackupMode (FOOTPRINT_STACKUP aMode) |
| Set the stackup mode for this footprint. | |
| FOOTPRINT_STACKUP | GetStackupMode () const |
| void | SetStackupLayers (LSET aLayers) |
| If the footprint has a non-default stackup, set the layers that should be used for the stackup. | |
| const LSET & | GetStackupLayers () const |
| int | GetAttributes () const |
| void | SetAttributes (int aAttributes) |
| FOOTPRINT_TYPE | GetFootprintType () const |
| void | SetFootprintType (FOOTPRINT_TYPE aFootprintType) |
| bool | AllowMissingCourtyard () const |
| void | SetAllowMissingCourtyard (bool aAllow) |
| bool | AllowSolderMaskBridges () const |
| void | SetAllowSolderMaskBridges (bool aAllow) |
| void | SetFlag (int aFlag) |
| void | IncrementFlag () |
| int | GetFlag () const |
| bool | IsNetTie () const |
| std::optional< int > | GetLocalClearance (wxString *aSource) const |
| std::optional< int > | GetClearanceOverrides (wxString *aSource) const |
| Return any local clearance overrides set in the "classic" (ie: pre-rule) system. | |
| ZONE_CONNECTION | GetZoneConnectionOverrides (wxString *aSource) const |
| const std::vector< wxString > & | GetNetTiePadGroups () const |
| void | ClearNetTiePadGroups () |
| void | AddNetTiePadGroup (const wxString &aGroup) |
| std::map< wxString, int > | MapPadNumbersToNetTieGroups () const |
| std::vector< PAD * > | GetNetTiePads (PAD *aPad) const |
| int | GetLikelyAttribute () const |
| Returns the most likely attribute based on pads Either FP_THROUGH_HOLE/FP_SMD/OTHER(0) | |
| void | Move (const VECTOR2I &aMoveVector) override |
| Move this object. | |
| void | Rotate (const VECTOR2I &aRotCentre, const EDA_ANGLE &aAngle) override |
| Rotate this object. | |
| void | Flip (const VECTOR2I &aCentre, FLIP_DIRECTION aFlipDirection) override |
| Flip this object, i.e. | |
| void | MoveAnchorPosition (const VECTOR2I &aMoveVector) |
| Move the reference point of the footprint. | |
| bool | IsFlipped () const |
| PCB_LAYER_ID | GetSide () const |
| Use instead of IsFlipped() when you also need to account for unsided footprints (those purely on user-layers, etc.). | |
| bool | IsOnLayer (PCB_LAYER_ID aLayer) const override |
| Test to see if this object is on the given layer. | |
| bool | IsLocked () const override |
| bool | IsLayerAgnostic () const override |
| Check if this item's layer set must not be confined to a board's enabled layers. | |
| bool | FitsEnabledLayers (const LSET &aEnabledLayers, int aCopperLayerCount) const override |
| Check if a board offering aEnabledLayers can hold this item. | |
| void | SetLocked (bool isLocked) override |
| Set the #MODULE_is_LOCKED bit in the m_ModuleStatus. | |
| bool | IsConflicting () const |
| bool | IsPlaced () const |
| void | SetIsPlaced (bool isPlaced) |
| bool | NeedsPlaced () const |
| void | SetNeedsPlaced (bool needsPlaced) |
| bool | LegacyPadsLocked () const |
| void | CheckFootprintAttributes (const std::function< void(const wxString &)> &aErrorHandler) |
| Test if footprint attributes for type (SMD/Through hole/Other) match the expected type based on the pads in the footprint. | |
| void | CheckPads (UNITS_PROVIDER *aUnitsProvider, const std::function< void(const PAD *, int, const wxString &)> &aErrorHandler) |
| Run non-board-specific DRC checks on footprint's pads. | |
| void | CheckShortingPads (const std::function< void(const PAD *, const PAD *, int aErrorCode, const VECTOR2I &)> &aErrorHandler) |
| Check for overlapping, different-numbered, non-net-tie pads. | |
| void | CheckNetTies (const std::function< void(const BOARD_ITEM *aItem, const BOARD_ITEM *bItem, const BOARD_ITEM *cItem, const VECTOR2I &)> &aErrorHandler) |
| Check for un-allowed shorting of pads in net-tie footprints. | |
| void | CheckNetTiePadGroups (const std::function< void(const wxString &)> &aErrorHandler) |
| Sanity check net-tie pad groups. | |
| void | CheckClippedSilk (const std::function< void(BOARD_ITEM *aItemA, BOARD_ITEM *aItemB, const VECTOR2I &aPt)> &aErrorHandler) |
| void | BuildNetTieCache () |
| Cache the pads that are allowed to connect to each other in the footprint. | |
| const std::set< int > & | GetNetTieCache (const BOARD_ITEM *aItem) const |
| Get the set of net codes that are allowed to connect to a footprint item. | |
| void | TransformPadsToPolySet (SHAPE_POLY_SET &aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc) const |
| Generate pads shapes on layer aLayer as polygons and adds these polygons to aBuffer. | |
| void | TransformFPShapesToPolySet (SHAPE_POLY_SET &aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIncludeText=true, bool aIncludeShapes=true, bool aIncludePrivateItems=false) const |
| Generate shapes of graphic items (outlines) on layer aLayer as polygons and adds these polygons to aBuffer. | |
| void | TransformFPTextToPolySet (SHAPE_POLY_SET &aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc) const |
| This function is the same as TransformFPShapesToPolySet but only generates text. | |
| void | GetContextualTextVars (wxArrayString *aVars) const |
| Return the list of system text vars for this footprint. | |
| bool | ResolveTextVar (wxString *token, int aDepth=0) const |
| Resolve any references to system tokens supported by the component. | |
| bool | ResolveTextVar (wxString *token, const wxString &aVariantName, int aDepth=0) const |
| 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. | |
| bool | HitTest (const VECTOR2I &aPosition, int aAccuracy=0) const override |
| Test if aPosition is inside or on the boundary of this item. | |
| bool | Matches (const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override |
| Compare the item against the search criteria in aSearchData. | |
| bool | HitTestAccurate (const VECTOR2I &aPosition, int aAccuracy=0) const |
| Test if a point is inside the bounding polygon of the footprint. | |
| bool | HitTest (const BOX2I &aRect, bool aContained, int aAccuracy=0) const override |
| Test if aRect intersects this item. | |
| bool | HitTest (const SHAPE_LINE_CHAIN &aPoly, bool aContained) const override |
| Test if aPoly intersects this item. | |
| bool | HitTestOnLayer (const VECTOR2I &aPosition, PCB_LAYER_ID aLayer, int aAccuracy=0) const |
| Test if the point hits one or more of the footprint elements on a given layer. | |
| bool | HitTestOnLayer (const BOX2I &aRect, bool aContained, PCB_LAYER_ID aLayer, int aAccuracy=0) const |
| const wxString & | GetReference () const |
| void | SetReference (const wxString &aReference) |
| wxString | GetReferenceAsString () const |
| void | IncrementReference (int aDelta) |
| Bump the current reference by aDelta. | |
| bool | IsAnnotated () const |
| const wxString & | GetValue () const |
| void | SetValue (const wxString &aValue) |
| wxString | GetValueAsString () const |
| PCB_FIELD & | Value () |
| read/write accessors: | |
| PCB_FIELD & | Reference () |
| const PCB_FIELD & | Value () const |
| The const versions to keep the compiler happy. | |
| const PCB_FIELD & | Reference () const |
| PCB_FIELD * | GetField (FIELD_T aFieldType) |
| Return a mandatory field in this footprint. | |
| const PCB_FIELD * | GetField (FIELD_T aFieldNdx) const |
| PCB_FIELD * | GetField (const wxString &aFieldName) const |
| Return a field in this symbol. | |
| bool | HasField (const wxString &aFieldName) const |
| void | GetFields (std::vector< PCB_FIELD * > &aVector, bool aVisibleOnly) const |
| Populate a std::vector with PCB_TEXTs. | |
| const std::deque< PCB_FIELD * > & | GetFields () const |
| Return a reference to the deque holding the footprint's fields. | |
| std::deque< PCB_FIELD * > & | GetFields () |
| void | UpdateFields (const std::vector< PCB_FIELD > &aFields, std::vector< PCB_FIELD * > &aAdded, std::vector< PCB_FIELD * > &aDetached) |
| Replace the fields with aFields, reusing the existing mandatory field objects. | |
| int | GetNextFieldOrdinal () const |
| Return the next ordinal for a user field for this footprint. | |
| void | ApplyDefaultSettings (const BOARD &board, bool aStyleFields, bool aStyleText, bool aStyleShapes, bool aStyleDimensions, bool aStyleBarcodes) |
| Apply default board settings to the footprint field text properties. | |
| void | SetUnitInfo (const std::vector< FP_UNIT_INFO > &aUnits) |
| const std::vector< FP_UNIT_INFO > & | GetUnitInfo () const |
| bool | IsBoardOnly () const |
| void | SetBoardOnly (bool aIsBoardOnly=true) |
| bool | IsExcludedFromPosFiles () const |
| void | SetExcludedFromPosFiles (bool aExclude=true) |
| bool | IsExcludedFromBOM () const |
| void | SetExcludedFromBOM (bool aExclude=true) |
| bool | IsExcludedFromSim () const |
| void | SetExcludedFromSim (bool aExclude=true) |
| bool | IsDNP () const |
| void | SetDNP (bool aDNP=true) |
| const FOOTPRINT_VARIANT * | GetVariant (const wxString &aVariantName) const |
| Get a variant by name. | |
| FOOTPRINT_VARIANT * | GetVariant (const wxString &aVariantName) |
| Get a mutable variant by name. | |
| void | SetVariant (const FOOTPRINT_VARIANT &aVariant) |
| Add or update a variant. | |
| FOOTPRINT_VARIANT * | AddVariant (const wxString &aVariantName) |
| Add a new variant with the given name. | |
| void | DeleteVariant (const wxString &aVariantName) |
| Delete a variant by name. | |
| void | RenameVariant (const wxString &aOldName, const wxString &aNewName) |
| Rename a variant. | |
| bool | HasVariant (const wxString &aVariantName) const |
| Check if a variant exists. | |
| const CASE_INSENSITIVE_MAP< FOOTPRINT_VARIANT > & | GetVariants () const |
| Get all variants. | |
| bool | GetDNPForVariant (const wxString &aVariantName) const |
| Get the DNP status for a specific variant. | |
| bool | GetExcludedFromBOMForVariant (const wxString &aVariantName) const |
| Get the exclude-from-BOM status for a specific variant. | |
| bool | GetExcludedFromSimForVariant (const wxString &aVariantName) const |
| Get the exclude-from-simulation status for a specific variant. | |
| bool | GetExcludedFromPosFilesForVariant (const wxString &aVariantName) const |
| Get the exclude-from-position-files status for a specific variant. | |
| wxString | GetFieldValueForVariant (const wxString &aVariantName, const wxString &aFieldName) const |
| Get a field value for a specific variant. | |
| void | SetFileFormatVersionAtLoad (int aVersion) |
| int | GetFileFormatVersionAtLoad () const |
| std::vector< PROPERTY_BASE * > | GetDynamicProperties () const override |
| Return dynamically-computed properties specific to this object instance (e.g. | |
| PAD * | FindPadByNumber (const wxString &aPadNumber, PAD *aSearchAfterMe=nullptr) const |
| Return a PAD with a matching number. | |
| PAD * | FindPadByUuid (const KIID &aUuid) const |
| PAD * | GetPad (const VECTOR2I &aPosition, const LSET &aLayerMask=LSET::AllLayersMask()) |
| Get a pad at aPosition on aLayerMask in the footprint. | |
| std::vector< const PAD * > | GetPads (const wxString &aPadNumber, const PAD *aIgnore=nullptr) const |
| unsigned | GetPadCount () const |
| std::set< wxString > | GetUniquePadNumbers () const |
| A complex pad can be built with many pads having the same pad name to create a complex shape or fragmented solder paste areas. | |
| unsigned | GetNumberedPadCount () const |
| Return the number of unique pads whose pad number represents an electrical pin. | |
| wxString | GetNextPadNumber (const wxString &aLastPadName) const |
| bool | GetDuplicatePadNumbersAreJumpers () const |
| void | SetDuplicatePadNumbersAreJumpers (bool aEnabled) |
| std::vector< std::set< wxString > > & | JumperPadGroups () |
| Each jumper pad group is a set of pad numbers that should be treated as internally connected. | |
| const std::vector< std::set< wxString > > & | JumperPadGroups () const |
| std::optional< const std::set< wxString > > | GetJumperPadGroup (const wxString &aPadNumber) const |
| Retrieves the jumper group containing the specified pad number, if one exists. | |
| void | AutoPositionFields () |
| Position Reference and Value fields at the top and bottom of footprint's bounding box. | |
| wxString | GetTypeName () const |
| Get the type of footprint. | |
| double | GetArea (int aPadding=0) const |
| KIID | GetLink () const |
| void | SetLink (const KIID &aLink) |
| BOARD_ITEM * | Duplicate (bool addToParentGroup, BOARD_COMMIT *aCommit=nullptr) const override |
| Create a copy of this BOARD_ITEM. | |
| BOARD_ITEM * | DuplicateItem (bool addToParentGroup, BOARD_COMMIT *aCommit, const BOARD_ITEM *aItem, bool addToFootprint=false) |
| Duplicate a given item within the footprint, optionally adding it to the board. | |
| void | Add3DModel (FP_3DMODEL *a3DModel) |
| Add a3DModel definition to the end of the 3D model list. | |
| INSPECT_RESULT | Visit (INSPECTOR inspector, void *testData, const std::vector< KICAD_T > &aScanTypes) override |
| May be re-implemented for each derived class in order to handle all the types given by its member data. | |
| wxString | GetClass () const override |
| Return the class name. | |
| wxString | GetItemDescription (UNITS_PROVIDER *aUnitsProvider, bool aFull) const override |
| Return a user-visible description string of this item. | |
| wxString | DisambiguateItemDescription (UNITS_PROVIDER *aUnitsProvider, bool aFull) const override |
| BITMAPS | GetMenuImage () const override |
| Return a pointer to an image to be used in menus. | |
| EDA_ITEM * | Clone () const override |
| Invoke a function on all children. | |
| void | RunOnChildren (const std::function< void(BOARD_ITEM *)> &aFunction, RECURSE_MODE aMode) const override |
| Invoke a function on all children. | |
| virtual std::vector< int > | ViewGetLayers () const override |
| Return the all the layers within the VIEW the object is painted on. | |
| double | ViewGetLOD (int aLayer, const KIGFX::VIEW *aView) const override |
| Return the level of detail (LOD) of the item. | |
| virtual const BOX2I | ViewBBox () const override |
| Return the bounding box of the item covering all its layers. | |
| bool | FootprintNeedsUpdate (const FOOTPRINT *aLibFP, int aCompareFlags=0, REPORTER *aReporter=nullptr) |
| Return true if a board footprint differs from the library version. | |
| void | SetInitialComments (wxArrayString *aInitialComments) |
| Take ownership of caller's heap allocated aInitialComments block. | |
| double | CoverageRatio (const GENERAL_COLLECTOR &aCollector) const |
| Calculate the ratio of total area of the footprint pads and graphical items to the area of the footprint. | |
| const wxArrayString * | GetInitialComments () const |
| Return the initial comments block or NULL if none, without transfer of ownership. | |
| const SHAPE_POLY_SET & | GetCourtyard (PCB_LAYER_ID aLayer) const |
| Used in DRC to test the courtyard area (a complex polygon). | |
| const SHAPE_POLY_SET & | GetCachedCourtyard (PCB_LAYER_ID aLayer) const |
| Return the cached courtyard area. | |
| void | BuildCourtyardCaches (OUTLINE_ERROR_HANDLER *aErrorHandler=nullptr) |
| Build complex polygons of the courtyard areas from graphic items on the courtyard layers. | |
| std::shared_ptr< SHAPE > | GetEffectiveShape (PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=FLASHING::DEFAULT, DRC_CONSTRAINT_T aUsage=NULL_CONSTRAINT) const override |
| Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes. | |
| EMBEDDED_FILES * | GetEmbeddedFiles () override |
| const EMBEDDED_FILES * | GetEmbeddedFiles () const |
| std::set< KIFONT::OUTLINE_FONT * > | GetFonts () const override |
| Get a list of outline fonts referenced in the footprint. | |
| void | EmbedFonts () override |
| double | Similarity (const BOARD_ITEM &aOther) const override |
| Return a measure of how likely the other object is to represent the same object. | |
| void | SetStaticComponentClass (const COMPONENT_CLASS *aClass) const |
| Sets the component class object pointer for this footprint. | |
| const COMPONENT_CLASS * | GetStaticComponentClass () const |
| Returns the component class for this footprint. | |
| const COMPONENT_CLASS * | GetComponentClass () const |
| Returns the component class for this footprint. | |
| wxString | GetComponentClassAsString () const |
| Used for display in the properties panel. | |
| void | RecomputeComponentClass () const |
| Forces immediate recalculation of the component class for this footprint. | |
| void | InvalidateComponentClassCache () const |
| Forces deferred (on next access) recalculation of the component class for this footprint. | |
| void | SetTransientComponentClassNames (const std::unordered_set< wxString > &classNames) |
| Sets the transient component class names. | |
| const std::unordered_set< wxString > & | GetTransientComponentClassNames () |
| Gets the transient component class names. | |
| void | ClearTransientComponentClassNames () |
| Remove the transient component class names. | |
| void | ResolveComponentClassNames (BOARD *aBoard, const std::unordered_set< wxString > &aComponentClassNames) |
| Resolves a set of component class names to this footprint's actual component class. | |
| void | FixUpPadsForBoard (BOARD *aBoard) |
| Used post-loading of a footprint to adjust the layers on pads to match board inner layers. | |
| bool | operator== (const BOARD_ITEM &aOther) const override |
| bool | operator== (const FOOTPRINT &aOther) const |
| virtual void | Delete (BOARD_ITEM *aItem) |
| Removes an item from the container and deletes it. | |
| bool | IsGroupableType () const |
| int | GetX () const |
| int | GetY () const |
| void | SetX (int aX) |
| void | SetY (int aY) |
| virtual bool | IsConnected () const |
| Returns information if the object is derived from BOARD_CONNECTED_ITEM. | |
| virtual bool | IsOnCopperLayer () const |
| virtual bool | HasHole () const |
| virtual bool | HasDrilledHole () const |
| virtual bool | IsTented (PCB_LAYER_ID aLayer) const |
| Checks if the given object is tented (its copper shape is covered by solder mask) on a given side of the board. | |
| virtual std::shared_ptr< SHAPE_SEGMENT > | GetEffectiveHoleShape (PCB_LAYER_ID aLayer=UNDEFINED_LAYER, DRC_CONSTRAINT_T aUsage=NULL_CONSTRAINT) const |
| BOARD_ITEM_CONTAINER * | GetParent () const |
| FOOTPRINT * | GetParentFootprint () const |
| void | SetUuidDirect (const KIID &aUuid) |
| Raw UUID assignment. | |
| void | ResetUuidDirect () |
| void | SetUuid (const KIID &aUuid) |
| void | ResetUuid () |
| virtual void | RemapKIIDs (const std::map< KIID, KIID > &aIdMap) |
| Remap KIIDs this item stores to reference other items (e.g. | |
| VECTOR2I | GetFPRelativePosition () const |
| void | SetFPRelativePosition (const VECTOR2I &aPos) |
| virtual bool | HasLineStroke () const |
| Check if this item has line stoke properties. | |
| virtual STROKE_PARAMS | GetStroke () const |
| virtual void | SetStroke (const STROKE_PARAMS &aStroke) |
| const KIFONT::METRICS & | GetFontMetrics () const |
| virtual int | BoardLayerCount () const |
| Return the total number of layers for the board that this item resides on. | |
| virtual int | BoardCopperLayerCount () const |
| Return the total number of copper layers for the board that this item resides on. | |
| virtual LSET | BoardLayerSet () const |
| Return the LSET for the board that this item resides on. | |
| virtual LSET | GetLayerSet () const |
| Return a std::bitset of all layers on which the item physically resides. | |
| virtual void | SetLayerSet (const LSET &aLayers) |
| bool | IsSideSpecific () const |
| void | SwapItemData (BOARD_ITEM *aImage) |
| Swap data between aItem and aImage. | |
| virtual bool | IsKnockout () const |
| virtual void | SetIsKnockout (bool aKnockout) |
| bool | IsIndexedInBoard () const |
| int | GetMaxError () const |
| virtual void | StyleFromSettings (const BOARD_DESIGN_SETTINGS &settings, bool aCheckSide) |
| void | DeleteStructure () |
| Delete this object after removing from its parent if it has one. | |
| virtual void | OnFootprintRescaled (double aRatioX, double aRatioY, double aLinearFactor, const VECTOR2I &aAnchor, const EDA_ANGLE &aParentRotate) |
| Apply a parent footprint scale to this item. | |
| virtual void | OnFootprintTransformed () |
| Hook for items inside a footprint to refresh after the FP transform changes (translate, rotate, flip). | |
| virtual void | Mirror (const VECTOR2I &aCentre, FLIP_DIRECTION aFlipDirection) |
| Mirror this object relative to a given horizontal axis the layer is not changed. | |
| virtual void | Normalize () |
| Perform any normalization required after a user rotate and/or flip. | |
| virtual void | NormalizeForCompare () |
| Perform any normalization required to compare 2 graphics, especially if the can be rotated and/or flipped. | |
| virtual const BOARD * | GetBoard () const |
| Return the BOARD in which this BOARD_ITEM resides, or NULL if none. | |
| virtual BOARD * | GetBoard () |
| wxString | GetParentAsString () const |
| For "parent" property. | |
| wxString | GetLayerName () const |
| Return the name of the PCB layer on which the item resides. | |
| virtual void | TransformShapeToPolygon (SHAPE_POLY_SET &aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=false) const |
| Convert the item shape to a closed polygon. | |
| virtual void | TransformShapeToPolySet (SHAPE_POLY_SET &aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, KIGFX::RENDER_SETTINGS *aRenderSettings=nullptr) const |
| Convert the item shape to a polyset. | |
| const std::vector< wxString > * | GetEmbeddedFonts () override |
| virtual wxString | LayerMaskDescribe () const |
| Return a string (to be shown to the user) describing a layer mask. | |
| KICAD_T | Type () const |
| Returns the type of object. | |
| virtual void | SetParent (EDA_ITEM *aParent) |
| virtual void | SetParentGroup (EDA_GROUP *aGroup) |
| virtual EDA_GROUP * | GetParentGroup () const |
| KIID | GetParentGroupId () const |
| bool | HasSelectedAncestorGroup () const |
| bool | IsModified () const |
| bool | IsNew () const |
| bool | IsMoving () const |
| bool | IsSelected () const |
| bool | IsEntered () const |
| bool | IsBrightened () const |
| bool | IsNetHighlighted () const |
| Net highlighting must not clear brightening owned by find or picker tools. | |
| void | SetNetHighlighted (bool aHighlighted) |
| bool | IsRollover () const |
| VECTOR2I | GetRolloverPos () const |
| void | SetIsRollover (bool aIsRollover, const VECTOR2I &aMousePos) |
| void | SetSelected () |
| void | SetBrightened () |
| void | ClearSelected () |
| void | ClearBrightened () |
| void | SetModified () |
| void | SetFlags (EDA_ITEM_FLAGS aMask) |
| void | XorFlags (EDA_ITEM_FLAGS aMask) |
| void | ClearFlags (EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS) |
| EDA_ITEM_FLAGS | GetFlags () const |
| bool | HasFlag (EDA_ITEM_FLAGS aFlag) const |
| EDA_ITEM_FLAGS | GetEditFlags () const |
| virtual void | ClearEditFlags () |
| EDA_ITEM_FLAGS | GetTempFlags () const |
| virtual void | ClearTempFlags () |
| virtual bool | RenderAsBitmap (double aWorldScale) const |
| void | SetIsShownAsBitmap (bool aBitmap) |
| bool | IsShownAsBitmap () const |
| virtual bool | IsType (const std::vector< KICAD_T > &aScanTypes) const |
| Check whether the item is one of the listed types. | |
| void | SetForceVisible (bool aEnable) |
| Set and clear force visible flag used to force the item to be drawn even if it's draw attribute is set to not visible. | |
| bool | IsForceVisible () const |
| const std::map< wxString, wxString > & | GetCustomProperties () const |
| Custom user-defined string key/value properties attached to this item. | |
| void | SetCustomProperties (const std::map< wxString, wxString > &aProps) |
| void | SetCustomProperty (const wxString &aKey, const wxString &aValue) |
| bool | HasCustomProperties () const |
| void | ClearCustomProperties () |
| void | RemoveCustomProperty (const wxString &aKey) |
| std::vector< wxString > | RemoveConflictingCustomProperties () |
| Remove custom properties whose keys collide with an existing field or built-in property name (matched case-insensitively). | |
| bool | GetCustomProperty (const wxString &aKey, wxString &aValue) const |
| std::vector< PROPERTY_BASE * > | GetCustomPropertiesAsInspectables () const |
| virtual wxString | GetFriendlyName () const |
| virtual const VECTOR2I | GetFocusPosition () const |
| Similar to GetPosition() but allows items to return their visual center rather than their anchor. | |
| virtual VECTOR2I | GetSortPosition () const |
| Return the coordinates that should be used for sorting this element visually compared to other elements. | |
| wxString | GetTypeDesc () const |
| Return a translated description of the type for this EDA_ITEM for display in user facing messages. | |
| virtual bool | Replace (const EDA_SEARCH_DATA &aSearchData, void *aAuxData=nullptr) |
| Perform a text replace using the find and replace criteria in aSearchData on items that support text find and replace. | |
| virtual bool | IsReplaceable () const |
| Override this method in any derived object that supports test find and replace. | |
| bool | operator< (const EDA_ITEM &aItem) const |
| Test if another item is less than this object. | |
| bool | IsSCH_ITEM () const |
| bool | IsBOARD_ITEM () const |
| virtual void | ViewDraw (int aLayer, VIEW *aView) const |
| Draw the parts of the object belonging to layer aLayer. | |
| VIEW_ITEM_DATA * | viewPrivData () const |
| void | SetForcedTransparency (double aForcedTransparency) |
| double | GetForcedTransparency () const |
| bool | Set (PROPERTY_BASE *aProperty, wxAny &aValue, bool aNotify=true) |
| template<typename T> | |
| bool | Set (PROPERTY_BASE *aProperty, T aValue, bool aNotify=true) |
| bool | Set (PROPERTY_BASE *aProperty, wxVariant aValue, bool aNotify=true) |
| template<typename T> | |
| bool | Set (const wxString &aProperty, T aValue, bool aNotify=true) |
| wxAny | Get (PROPERTY_BASE *aProperty) const |
| template<typename T> | |
| T | Get (PROPERTY_BASE *aProperty) const |
| template<typename T> | |
| std::optional< T > | Get (const wxString &aProperty) const |
| void | SetFileAddedCallback (FILE_ADDED_CALLBACK callback) |
| FILE_ADDED_CALLBACK | GetFileAddedCallback () const |
| EMBEDDED_FILE * | AddFile (const wxFileName &aName, bool aOverwrite) |
| Load a file from disk and adds it to the collection. | |
| EMBEDDED_FILE * | AddFile (EMBEDDED_FILE *aFile) |
| Append a file to the collection. | |
| EMBEDDED_FILE * | AddFile (std::shared_ptr< EMBEDDED_FILE > aFile) |
| Append a file (already managed by a shared_ptr) to the collection. | |
| void | RemoveFile (const wxString &name, bool aErase=true) |
| Remove a file from the collection and frees the memory. | |
| void | AssignSharedFrom (const EMBEDDED_FILES &aSource, const std::set< wxString > &aExcludedNames={}) |
Replace this collection's files with references to aSource's files, skipping any whose name appears in aExcludedNames. | |
| void | WriteEmbeddedFiles (OUTPUTFORMATTER &aOut, bool aWriteData) const |
| Output formatter for the embedded files. | |
| wxString | GetEmbeddedFileLink (const EMBEDDED_FILE &aFile) const |
| Return the link for an embedded file. | |
| bool | HasFile (const wxString &name) const |
| bool | IsEmpty () const |
| virtual void | RunOnNestedEmbeddedFiles (const std::function< void(EMBEDDED_FILES *)> &aFunction) |
| Provide access to nested embedded files, such as symbols in schematics and footprints in boards. | |
| const std::vector< wxString > * | UpdateFontFiles () |
| Helper function to get a list of fonts for fontconfig to add to the library. | |
| const std::vector< wxString > * | GetFontFiles () const |
| If we just need the cached version of the font files, we can use this function which is const and will not update the font files. | |
| void | ClearEmbeddedFonts () |
| Remove all embedded fonts from the collection. | |
| EMBEDDED_FILE * | GetEmbeddedFile (const wxString &aName) const |
| Returns the embedded file with the given name or nullptr if it does not exist. | |
| const std::map< wxString, std::shared_ptr< EMBEDDED_FILE > > & | EmbeddedFileMap () const |
| Provide an iterable view of the file collection. | |
| wxFileName | GetTemporaryFileName (const wxString &aName) const |
| wxFileName | GetTemporaryFileName (EMBEDDED_FILE *aFile) const |
| void | ClearEmbeddedFiles (bool aDeleteFiles=true) |
| void | SetAreFontsEmbedded (bool aEmbedFonts) |
| bool | GetAreFontsEmbedded () const |
| virtual void | GetChooserFields (std::map< wxString, wxString > &aColumnMap) |
| Retrieves a key/value map of the fields on this item that should be exposed to the library browser/chooser for displaying in columns, searching, etc. | |
| virtual bool | IsRoot () const |
| For items having aliases, IsRoot() indicates the principal item. | |
| virtual bool | IsPowerSymbol () const |
| For symbols that could be a power symbol. | |
| virtual wxString | GetFootprint () |
| For items with footprint fields. | |
| virtual int | GetSubUnitCount () const |
| For items with units, return the number of units. | |
| virtual wxString | GetUnitName (int aUnit) const |
| For items with units, return an identifier for unit x. | |
Static Public Member Functions | |
| static bool | ClassOf (const EDA_ITEM *aItem) |
| static bool | IsLibNameValid (const wxString &aName) |
| Test for validity of a name of a footprint to be used in a footprint library ( no spaces, dir separators ... ). | |
| static const wxChar * | StringLibNameInvalidChars (bool aUserReadable) |
| Test for validity of the name in a library of the footprint ( no spaces, dir separators ... ). | |
| static double | GetCoverageArea (const BOARD_ITEM *aItem, const GENERAL_COLLECTOR &aCollector) |
| template<class T> | |
| static INSPECT_RESULT | IterateForward (std::deque< T > &aList, INSPECTOR inspector, void *testData, const std::vector< KICAD_T > &scanTypes) |
| This changes first parameter to avoid the DList and use the main queue instead. | |
| template<class T> | |
| static INSPECT_RESULT | IterateForward (std::vector< T > &aList, INSPECTOR inspector, void *testData, const std::vector< KICAD_T > &scanTypes) |
| Change first parameter to avoid the DList and use std::vector instead. | |
| static bool | Replace (const EDA_SEARCH_DATA &aSearchData, wxString &aText) |
| Perform a text replace on aText using the find and replace criteria in aSearchData on items that support text find and replace. | |
| static bool | Sort (const EDA_ITEM *aLeft, const EDA_ITEM *aRight) |
| Helper function to be used by the C++ STL sort algorithm for sorting a STL container of EDA_ITEM pointers. | |
| static RETURN_CODE | CompressAndEncode (EMBEDDED_FILE &aFile) |
| Take data from the #decompressedData buffer and compresses it using ZSTD into the #compressedEncodedData buffer. | |
| static RETURN_CODE | DecompressAndDecode (EMBEDDED_FILE &aFile, bool aAllowEmptyHash=false) |
| Takes data from the #compressedEncodedData buffer and Base64 decodes it. | |
| static RETURN_CODE | ComputeFileHash (const wxFileName &aFileName, std::string &aHash) |
| Compute the hash of a file on disk without fully embedding it. | |
| static uint32_t | Seed () |
Public Attributes | |
| const KIID | m_Uuid |
Static Public Attributes | |
| static VECTOR2I | ZeroOffset |
| A value of wxPoint(0,0) which can be passed to the Draw() functions. | |
Protected Member Functions | |
| virtual void | swapData (BOARD_ITEM *aImage) override |
| void | addMandatoryFields () |
| bool | Matches (const wxString &aText, const EDA_SEARCH_DATA &aSearchData) const |
| Compare aText against search criteria in aSearchData. | |
| EDA_ITEM * | findParent (KICAD_T aType) const |
Static Protected Member Functions | |
| static double | lodScaleForThreshold (const KIGFX::VIEW *aView, int aWhatIu, int aThresholdIu) |
| Get the scale at which aWhatIu would be drawn at the same size as aThresholdIu on screen. | |
Protected Attributes | |
| PCB_LAYER_ID | m_layer |
| bool | m_isKnockout |
| bool | m_isLocked |
| BOARD * | m_boardCacheOwner = nullptr |
| EDA_ITEM_FLAGS | m_flags |
| EDA_ITEM * | m_parent |
| Owner. | |
| EDA_GROUP * | m_group |
| The group this item belongs to, if any. No ownership implied. | |
| VECTOR2I | m_rolloverPos |
| bool | m_isRollover |
| bool | m_forceVisible |
| bool | m_netHighlighted = false |
| std::map< wxString, wxString > | m_customProperties |
| std::map< wxString, std::unique_ptr< PROPERTY_BASE > > | m_dynamicCustomPropsCache |
| Per-key cache of dynamic property descriptors for m_customProperties, owned by this object. | |
| bool | m_embedFonts = false |
| If set, fonts will be embedded in the element on save. | |
Static Protected Attributes | |
| static constexpr double | LOD_HIDE = std::numeric_limits<double>::max() |
| Return this constant from ViewGetLOD() to hide the item unconditionally. | |
| static constexpr double | LOD_SHOW = 0.0 |
| Return this constant from ViewGetLOD() to show the item unconditionally. | |
Private Attributes | |
| std::deque< PCB_FIELD * > | m_fields |
| std::deque< BOARD_ITEM * > | m_drawings |
| std::deque< PAD * > | m_pads |
| std::vector< ZONE * > | m_zones |
| std::deque< PCB_GROUP * > | m_groups |
| std::deque< PCB_CONSTRAINT * > | m_constraints |
| std::deque< PCB_POINT * > | m_points |
| TRANSFORM_TRS | m_transform |
| bool | m_flipped = false |
| LIB_ID | m_fpid |
| int | m_attributes |
| int | m_fpStatus |
| int | m_fileFormatVersionAtLoad |
| CASE_INSENSITIVE_MAP< FOOTPRINT_VARIANT > | m_variants |
| Variant data for this footprint, keyed by variant name. | |
| std::mutex | m_geometry_cache_mutex |
| std::unique_ptr< FOOTPRINT_GEOMETRY_CACHE_DATA > | m_geometry_cache |
| std::map< wxString, std::unique_ptr< PCB_FOOTPRINT_FIELD_PROPERTY > > | m_dynamicPropertyCache |
| std::vector< wxString > | m_netTiePadGroups |
| std::map< const BOARD_ITEM *, std::set< int > > | m_netTieCache |
| std::vector< std::set< wxString > > | m_jumperPadGroups |
| A list of jumper pad groups, each of which is a set of pad numbers that should be jumpered together (treated as internally connected for the purposes of connectivity) | |
| bool | m_duplicatePadNumbersAreJumpers |
| Flag that this footprint should automatically treat sets of two or more pads with the same number as jumpered pin groups. | |
| bool | m_allowMissingCourtyard |
| bool | m_allowSolderMaskBridges |
| ZONE_CONNECTION | m_zoneConnection |
| std::optional< int > | m_clearance |
| std::optional< int > | m_solderMaskMargin |
| std::optional< int > | m_solderPasteMargin |
| std::optional< double > | m_solderPasteMarginRatio |
| LSET | m_stackupLayers |
| FOOTPRINT_STACKUP | m_stackupMode |
| LSET | m_privateLayers |
| wxString | m_libDescription |
| wxString | m_keywords |
| KIID_PATH | m_path |
| wxString | m_sheetname |
| wxString | m_sheetfile |
| wxString | m_filters |
| timestamp_t | m_lastEditTime |
| int | m_arflag |
| KIID | m_link |
| std::vector< FP_3DMODEL > | m_3D_Drawings |
| std::unique_ptr< EXTRUDED_3D_BODY > | m_extrudedBody |
| wxArrayString * | m_initial_comments |
| std::unique_ptr< FOOTPRINT_COURTYARD_CACHE_DATA > | m_courtyard_cache |
| std::mutex | m_courtyard_cache_mutex |
| std::unordered_set< wxString > | m_transientComponentClassNames |
| std::unique_ptr< COMPONENT_CLASS_CACHE_PROXY > | m_componentClassCacheProxy |
| std::vector< FP_UNIT_INFO > | m_unitInfo |
| std::vector< SEARCH_TERM > | m_searchTerms |
| KICAD_T | m_structType |
| Run time identification, keep private so it can never be changed after a ctor sets it. | |
| bool | m_isSCH_ITEM |
| bool | m_isBOARD_ITEM |
| VIEW_ITEM_DATA * | m_viewPrivData |
| double | m_forcedTransparency |
| Additional transparency for diff'ing items. | |
| std::map< wxString, std::shared_ptr< EMBEDDED_FILE > > | m_files |
| std::vector< wxString > | m_fontFiles |
| FILE_ADDED_CALLBACK | m_fileAddedCallback |
Definition at line 313 of file footprint.h.
|
inherited |
Definition at line 94 of file embedded_files.h.
|
inherited |
| Enumerator | |
|---|---|
| DRC | |
| INSTANCE_TO_INSTANCE | |
Definition at line 556 of file board_item.h.
|
stronginherited |
Definition at line 76 of file embedded_files.h.
| FOOTPRINT::FOOTPRINT | ( | BOARD * | parent | ) |
Definition at line 162 of file footprint.cpp.
References B_Cu, BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), BOARD_ITEM_CONTAINER::BOARD_ITEM_CONTAINER(), DATASHEET, DESCRIPTION, EXPAND_INNER_LAYERS, F_Cu, F_Fab, F_SilkS, FP_PADS_are_LOCKED, In1_Cu, INHERITED, m_3D_Drawings, m_allowMissingCourtyard, m_allowSolderMaskBridges, m_arflag, m_attributes, m_componentClassCacheProxy, m_duplicatePadNumbersAreJumpers, EMBEDDED_FILES::m_embedFonts, m_fields, m_fileFormatVersionAtLoad, m_fpStatus, m_initial_comments, m_lastEditTime, BOARD_ITEM::m_layer, m_link, m_stackupLayers, m_stackupMode, m_zoneConnection, PCB_FOOTPRINT_T, REFERENCE, BOARD_ITEM::SetLayer(), EDA_TEXT::SetVisible(), and VALUE.
Referenced by CopyFrom(), CoverageRatio(), Duplicate(), FOOTPRINT(), FOOTPRINT(), FootprintNeedsUpdate(), GetCourtyard(), GetCoverageArea(), GetDynamicProperties(), GetFpPadsLocalBbox(), operator=(), operator=(), operator==(), operator==(), ResolveTextVar(), Similarity(), and swapData().
| FOOTPRINT::FOOTPRINT | ( | const FOOTPRINT & | aFootprint | ) |
Definition at line 200 of file footprint.cpp.
References BOARD_ITEM_CONTAINER::BOARD_ITEM_CONTAINER(), EMBEDDED_FILES::EMBEDDED_FILES(), FOOTPRINT(), COMPONENT_CLASS_CACHE_PROXY::GetStaticComponentClass(), m_3D_Drawings, m_allowMissingCourtyard, m_allowSolderMaskBridges, m_arflag, m_attributes, m_clearance, m_componentClassCacheProxy, m_duplicatePadNumbersAreJumpers, EMBEDDED_FILES::m_embedFonts, m_extrudedBody, m_fields, m_fileFormatVersionAtLoad, m_filters, m_flipped, m_fpid, m_fpStatus, m_geometry_cache, m_initial_comments, m_jumperPadGroups, m_keywords, m_lastEditTime, m_libDescription, m_link, m_netTiePadGroups, m_path, m_privateLayers, m_sheetfile, m_sheetname, m_solderMaskMargin, m_solderPasteMargin, m_solderPasteMarginRatio, m_stackupLayers, m_stackupMode, m_transform, m_variants, and m_zoneConnection.
| FOOTPRINT::FOOTPRINT | ( | FOOTPRINT && | aFootprint | ) |
Definition at line 347 of file footprint.cpp.
References BOARD_ITEM_CONTAINER::BOARD_ITEM_CONTAINER(), FOOTPRINT(), and m_componentClassCacheProxy.
| FOOTPRINT::~FOOTPRINT | ( | ) |
Definition at line 355 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), group, m_constraints, m_drawings, m_fields, m_groups, m_initial_comments, m_pads, m_points, and m_zones.
|
overridevirtual |
Removes an item from the container.
Implements BOARD_ITEM_CONTAINER.
Definition at line 1822 of file footprint.cpp.
References APPEND, BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), EDA_ITEM::ClearEditFlags(), BOARD_ITEM::GetBoard(), InvalidateGeometryCaches(), m_constraints, m_drawings, m_fields, m_groups, m_pads, m_points, m_zones, PCB_BARCODE_T, PCB_CONSTRAINT_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_FIELD_T, PCB_FOOTPRINT_T, PCB_GROUP_T, PCB_MARKER_T, PCB_PAD_T, PCB_POINT_T, PCB_REFERENCE_IMAGE_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_ZONE_T, EDA_ITEM::SetParent(), and EDA_ITEM::Type().
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), PCB_PROPERTIES_PANEL::addBlankField(), addFootprint(), PCB_IO_AUTOTRAX::addItem(), AddPadToBoard(), PCAD2KICAD::PCAD_ARC::AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), buildCoincidentFootprint(), PCB_IO_PADS_BINARY::buildPad(), buildShapes(), ALTIUM_PCB::ConvertArcs6ToFootprintItem(), ALTIUM_PCB::ConvertArcs6ToFootprintItemOnLayer(), ALTIUM_PCB::ConvertBarcodes6ToFootprintItemOnLayer(), ALTIUM_PCB::ConvertFills6ToFootprintItemOnLayer(), ALTIUM_PCB::ConvertPads6ToFootprintItemOnCopper(), ALTIUM_PCB::ConvertPads6ToFootprintItemOnNonCopper(), ALTIUM_PCB::ConvertShapeBasedRegions6ToFootprintItem(), ALTIUM_PCB::ConvertShapeBasedRegions6ToFootprintItemOnLayer(), ALTIUM_PCB::ConvertTexts6ToFootprintItemOnLayer(), ALTIUM_PCB::ConvertTracks6ToFootprintItem(), ALTIUM_PCB::ConvertTracks6ToFootprintItemOnLayer(), ALTIUM_PCB::ConvertVias6ToFootprintItem(), DIPTRACE::PCB_PARSER::CreateFootprint(), BACKDRILL_TEST_FIXTURE::CreateFootprintWithPad(), DeserializeDefinition(), KI_TEST::DrawArc(), KI_TEST::DrawSegment(), DuplicateItem(), PCB_IO_AUTOTRAX::emitPad(), BOARD::ExchangeFootprint(), PCB_IO_EASYEDAPRO_PARSER::FillFootprintModelInfo(), PCB_BASE_FRAME::GetLibraryItemsForListDialog(), ALTIUM_PCB::HelperPcpShapeAsFootprintKeepoutRegion(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), FABMASTER::loadFootprints(), PCB_IO_PADS::loadFootprints(), PCB_IO_KICAD_LEGACY::loadFP_SHAPE(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryAreas(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryPads(), PCB_IO_KICAD_LEGACY::loadPAD(), PCB_IO_PADS::loadTestPoints(), operator=(), operator=(), PCB_IO_EAGLE::packageCircle(), PCB_IO_EAGLE::packageHole(), PCB_IO_EAGLE::packagePad(), PCB_IO_EAGLE::packagePolygon(), PCB_IO_EAGLE::packageRectangle(), PCB_IO_EAGLE::packageSMD(), PCB_IO_EAGLE::packageText(), PCB_IO_EAGLE::packageWire(), PCB_IO_EASYEDAPRO_PARSER::ParseFootprint(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseFootprint(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), SPRINT_LAYOUT_PARSER::processPad(), CLIPBOARD_IO::SaveSelection(), FOOTPRINT_EDIT_FRAME::SelectFootprintFromBoard(), PCB_FOOTPRINT_FIELD_PROPERTY::setter(), UpdateFields(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
| void FOOTPRINT::Add3DModel | ( | FP_3DMODEL * | a3DModel | ) |
Add a3DModel definition to the end of the 3D model list.
| a3DModel | A pointer to a FP_3DMODEL to add to the list. |
Definition at line 3093 of file footprint.cpp.
References m_3D_Drawings, and FP_3DMODEL::m_Filename.
|
inherited |
Load a file from disk and adds it to the collection.
| aName | is the name of the file to load. |
| aOverwrite | is true if the file should be overwritten if it already exists. |
Definition at line 69 of file embedded_files.cpp.
References CompressAndEncode(), EMBEDDED_FILES::EMBEDDED_FILE::DATASHEET, EMBEDDED_FILES::EMBEDDED_FILE::FONT, HasFile(), m_fileAddedCallback, m_files, EMBEDDED_FILES::EMBEDDED_FILE::MODEL, OK, result, and EMBEDDED_FILES::EMBEDDED_FILE::WORKSHEET.
Referenced by AddFile(), ORCAD_CONVERTER::applyFont(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB_CONTROL::CollectAndEmbed3DModels(), BOARD::EmbedFonts(), FOOTPRINT::EmbedFonts(), LIB_SYMBOL::EmbedFonts(), SCHEMATIC::EmbedFonts(), BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), API_HANDLER_PCB::handleAddEmbeddedFiles(), ALTIUM_PCB::HelperEmbedModel(), TEXT_BUTTON_URL::OnButtonClick(), EMBEDDED_FILES_PARSER::ParseEmbedded(), LIB_BUFFER::SaveBuffer(), SYMBOL_LIBRARY_MANAGER::SaveLibrary(), and kiapi::board::UnpackEmbeddedFiles().
|
inherited |
Append a file to the collection.
Ownership of aFile is transferred to the collection.
aFile itself is destroyed when a file of that name is already embedded. Definition at line 141 of file embedded_files.cpp.
References AddFile().
|
inherited |
Append a file (already managed by a shared_ptr) to the collection.
Allows multiple collections to share ownership of the same underlying file payload, avoiding deep copies of large embedded blobs such as 3D models when footprints are cloned for undo snapshots.
Definition at line 147 of file embedded_files.cpp.
References m_fileAddedCallback, m_files, and name.
|
protected |
|
inline |
Definition at line 615 of file footprint.h.
References m_netTiePadGroups.
Referenced by DeserializeDefinition().
| FOOTPRINT_VARIANT * FOOTPRINT::AddVariant | ( | const wxString & | aVariantName | ) |
Add a new variant with the given name.
| aVariantName | The name of the variant to add. |
Definition at line 1658 of file footprint.cpp.
References GetDefaultVariantName(), IsDNP(), IsExcludedFromBOM(), IsExcludedFromPosFiles(), IsExcludedFromSim(), m_variants, FOOTPRINT_VARIANT::SetDNP(), FOOTPRINT_VARIANT::SetExcludedFromBOM(), FOOTPRINT_VARIANT::SetExcludedFromPosFiles(), and FOOTPRINT_VARIANT::SetExcludedFromSim().
Referenced by ApplyAltiumProjectVariantsToBoard(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB_IO_KICAD_SEXPR_PARSER::parseFootprintVariant(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::setAttributeValue(), PCB_FOOTPRINT_FIELD_PROPERTY::setter(), EDIT_TOOL::ToggleFootprintAttribute(), and PCB_PROPERTIES_PANEL::valueChanged().
|
inline |
Definition at line 556 of file footprint.h.
References m_allowMissingCourtyard.
Referenced by FOOTPRINT_DESC::FOOTPRINT_DESC(), PCB_IO_KICAD_SEXPR::format(), DIALOG_FOOTPRINT_CHECKER::runChecks(), and Serialize().
|
inline |
Definition at line 559 of file footprint.h.
References m_allowSolderMaskBridges.
Referenced by BOARD::ExchangeFootprint(), FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::format(), DRC_TEST_PROVIDER_SOLDER_MASK::recordMaskAperture(), Serialize(), and DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems().
| void FOOTPRINT::ApplyDefaultSettings | ( | const BOARD & | board, |
| bool | aStyleFields, | ||
| bool | aStyleText, | ||
| bool | aStyleShapes, | ||
| bool | aStyleDimensions, | ||
| bool | aStyleBarcodes ) |
Apply default board settings to the footprint field text properties.
This is needed because the board settings are not available when the footprint is being created in the footprint library cache, and we want these fields to have the correct default text properties.
Definition at line 1017 of file footprint.cpp.
References BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), m_drawings, m_fields, PCB_BARCODE_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_SHAPE_T, PCB_TEXT_T, and PCB_TEXTBOX_T.
Referenced by LoadFootprintFromProject(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
|
inherited |
Replace this collection's files with references to aSource's files, skipping any whose name appears in aExcludedNames.
Payloads are shared, not copied.
This leaves aSource untouched, so the operation is idempotent. Editor dialogs commit their working copy on both page change and OK; a destructive commit would wipe the target on the second pass.
Definition at line 179 of file embedded_files.cpp.
References EMBEDDED_FILES(), m_files, and name.
Referenced by BOOST_AUTO_TEST_CASE().
| void FOOTPRINT::AutoPositionFields | ( | ) |
Position Reference and Value fields at the top and bottom of footprint's bounding box.
Definition at line 4012 of file footprint.cpp.
References ANGLE_0, BOX2< Vec >::GetBottom(), GetBoundingBox(), BOX2< Vec >::GetCenter(), GetPosition(), BOX2< Vec >::GetTop(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_V_ALIGN_CENTER, BOX2< Vec >::Inflate(), pcbIUScale, Reference(), EDA_TEXT::SetHorizJustify(), PCB_TEXT::SetTextAngle(), EDA_TEXT::SetVertJustify(), BOARD_ITEM::SetX(), BOARD_ITEM::SetY(), Value(), and VECTOR2< T >::x.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::loadComponentLibrary().
|
virtualinherited |
Return the total number of copper layers for the board that this item resides on.
Definition at line 203 of file board_item.cpp.
References BOARD, GetBoard(), and BOARD::GetCopperLayerCount().
Referenced by PAD::ClearZoneLayerOverrides(), PCB_VIA::GetLayerSet(), PAD::PAD(), PCB_VIA::SanitizeLayers(), and PNS_KICAD_IFACE_BASE::syncPad().
|
virtualinherited |
Return the total number of layers for the board that this item resides on.
Definition at line 192 of file board_item.cpp.
References BOARD, GetBoard(), and BOARD::GetLayerSet().
|
virtualinherited |
Return the LSET for the board that this item resides on.
Definition at line 214 of file board_item.cpp.
References LSET::AllLayersMask(), BOARD, GetBoard(), and BOARD::GetEnabledLayers().
Referenced by ALTIUM_PCB::ConvertPads6ToFootprintItemOnCopper().
| void FOOTPRINT::BuildCourtyardCaches | ( | OUTLINE_ERROR_HANDLER * | aErrorHandler = nullptr | ) |
Build complex polygons of the courtyard areas from graphic items on the courtyard layers.
Definition at line 4324 of file footprint.cpp.
References B_CrtYd, BOARD_ITEM::BOARD_ITEM(), CHAMFER_ACUTE_CORNERS, EDA_ITEM::ClearFlags(), ConvertOutlineToPolygon(), DEFAULT_COURTYARD_WIDTH, F_CrtYd, PCB_SHAPE::GetStroke(), STROKE_PARAMS::GetWidth(), GraphicalItems(), m_courtyard_cache, MALFORMED_B_COURTYARD, MALFORMED_COURTYARDS, MALFORMED_F_COURTYARD, PCB_SHAPE_T, pcbIUScale, and EDA_ITEM::SetFlags().
Referenced by AR_AUTOPLACER::buildFpAreas(), checkCourtyardCloses(), GetCourtyard(), COMPONENT_CLASS_MANAGER::RebuildRequiredCaches(), and DIALOG_FOOTPRINT_CHECKER::runChecks().
| void FOOTPRINT::BuildNetTieCache | ( | ) |
Cache the pads that are allowed to connect to each other in the footprint.
Definition at line 4429 of file footprint.cpp.
References BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), BOARD_ITEM::GetBoard(), m_drawings, m_netTieCache, and MapPadNumbersToNetTieGroups().
| void FOOTPRINT::CheckClippedSilk | ( | const std::function< void(BOARD_ITEM *aItemA, BOARD_ITEM *aItemB, const VECTOR2I &aPt)> & | aErrorHandler | ) |
Definition at line 4832 of file footprint.cpp.
References actual, B_Mask, B_SilkS, BOARD_ITEM::BOARD_ITEM(), F_Mask, F_SilkS, BOARD_ITEM::GetEffectiveShape(), PAD::GetEffectiveShape(), BOARD_ITEM::IsOnLayer(), PAD::IsOnLayer(), m_drawings, m_pads, and pad.
Referenced by DIALOG_FOOTPRINT_CHECKER::runChecks().
| void FOOTPRINT::CheckFootprintAttributes | ( | const std::function< void(const wxString &)> & | aErrorHandler | ) |
Test if footprint attributes for type (SMD/Through hole/Other) match the expected type based on the pads in the footprint.
Footprints with plated through-hole pads should usually be marked through hole even if they also have SMD because they might not be auto-placed. Exceptions to this might be shielded connectors. Otherwise, footprints with SMD pads should be marked SMD. Footprints with no connecting pads should be marked "Unspecified"
| aErrorHandler | callback to handle the error messages generated |
Definition at line 4585 of file footprint.cpp.
References _, FP_SMD, FP_THROUGH_HOLE, GetAttributes(), GetLikelyAttribute(), and GetTypeName().
Referenced by DIALOG_FOOTPRINT_CHECKER::runChecks().
| void FOOTPRINT::CheckNetTiePadGroups | ( | const std::function< void(const wxString &)> & | aErrorHandler | ) |
Sanity check net-tie pad groups.
Pads cannot be listed more than once, and pad numbers must correspond to a pad.
| aErrorHandler | callback to handle the error messages generated |
Definition at line 4809 of file footprint.cpp.
References _, FindPadByNumber(), MapPadNumbersToNetTieGroups(), and pad.
Referenced by DIALOG_FOOTPRINT_CHECKER::runChecks().
| void FOOTPRINT::CheckNetTies | ( | const std::function< void(const BOARD_ITEM *aItem, const BOARD_ITEM *bItem, const BOARD_ITEM *cItem, const VECTOR2I &)> & | aErrorHandler | ) |
Check for un-allowed shorting of pads in net-tie footprints.
If two pads are shorted, they must both appear in one of the allowed-shorting lists.
| aErrorHandler | callback to handle the error messages generated |
Definition at line 4698 of file footprint.cpp.
References B_Cu, BOARD_ITEM::BOARD_ITEM(), ERROR_OUTSIDE, F_Cu, BOARD_ITEM::GetMaxError(), PAD::GetNumber(), PAD::GetPosition(), In1_Cu, BOARD_ITEM::IsOnCopperLayer(), m_drawings, m_fields, m_pads, m_zones, MapPadNumbersToNetTieGroups(), SHAPE_LINE_CHAIN::NearestPoint(), SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), pad, RECURSE, and SHAPE_POLY_SET::Simplify().
Referenced by DIALOG_FOOTPRINT_CHECKER::runChecks().
| void FOOTPRINT::CheckPads | ( | UNITS_PROVIDER * | aUnitsProvider, |
| const std::function< void(const PAD *, int, const wxString &)> & | aErrorHandler ) |
Run non-board-specific DRC checks on footprint's pads.
These are the checks supported by both the PCB DRC and the Footprint Editor Footprint Checker.
| aErrorHandler | callback to handle the error messages generated |
Definition at line 4610 of file footprint.cpp.
Referenced by DIALOG_FOOTPRINT_CHECKER::runChecks().
| void FOOTPRINT::CheckShortingPads | ( | const std::function< void(const PAD *, const PAD *, int aErrorCode, const VECTOR2I &)> & | aErrorHandler | ) |
Check for overlapping, different-numbered, non-net-tie pads.
| aErrorHandler | callback to handle the error messages generated |
Definition at line 4628 of file footprint.cpp.
References LSET::AllCuMask(), SHAPE::Collide(), alg::contains(), DRCE_DRILLED_HOLES_COLOCATED, DRCE_DRILLED_HOLES_TOO_CLOSE, DRCE_SHORTING_ITEMS, PAD::GetBoundingBox(), PAD::GetEffectiveHoleShape(), PAD::GetEffectiveShape(), PAD::GetLayerSet(), GetNetTiePads(), PAD::GetPosition(), PAD::HasDrilledHole(), HOLE_TO_HOLE_CONSTRAINT, pad, Pads(), PAD::Padstack(), and UNDEFINED_LAYER.
Referenced by DIALOG_FOOTPRINT_CHECKER::runChecks().
|
inlinestatic |
Definition at line 336 of file footprint.h.
References EDA_ITEM::EDA_ITEM(), PCB_FOOTPRINT_T, and EDA_ITEM::Type().
| void FOOTPRINT::ClearAllNets | ( | ) |
Clear (i.e.
force the ORPHANED dummy net info) the net info which depends on a given board for all pads of the footprint.
This is needed when a footprint is copied between the fp editor and the board editor for instance, because net info become fully broken
Definition at line 1806 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), NETINFO_LIST::ORPHANED, RECURSE, and RunOnChildren().
Referenced by FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), PCB_IO_KICAD_SEXPR::FootprintSave(), LoadFootprintFromProject(), and PCB_BASE_FRAME::OnFpChangeDebounceTimer().
|
inlineinherited |
Definition at line 154 of file eda_item.h.
References BRIGHTENED, and ClearFlags().
Referenced by KICAD_DIFF::ConfigureSchDiffCanvasContext(), FOOTPRINT_DIFF_WIDGET::DisplayDiff(), SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), PL_SELECTION_TOOL::unhighlight(), SCH_SELECTION_TOOL::unhighlight(), PCB_SELECTION_TOOL::unhighlightInternal(), and PCB_TEST_SELECTION_TOOL::unhighlightInternal().
|
inlineinherited |
Definition at line 270 of file eda_item.h.
References m_customProperties.
|
inlinevirtualinherited |
Reimplemented in LIB_SYMBOL.
Definition at line 178 of file eda_item.h.
References ClearFlags(), and GetEditFlags().
Referenced by BOARD::Add(), FOOTPRINT::Add(), LIB_SYMBOL::ClearEditFlags(), DRAWING_TOOL::drawShape(), SCH_MOVE_TOOL::finalizeMoveOperation(), PL_DRAWING_TOOLS::PlaceItem(), BOARD_COMMIT::Push(), SCH_EDIT_FRAME::PutDataInPreviousState(), BOARD_COMMIT::Revert(), SCH_ITEM::SwapFlags(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), and FOOTPRINT::UpdateFields().
|
inlineinherited |
Definition at line 267 of file embedded_files.h.
References m_files.
Referenced by BOOST_AUTO_TEST_CASE(), PCB_IO_KICAD_SEXPR::format(), operator=(), LIB_BUFFER::SaveBuffer(), SYMBOL_LIBRARY_MANAGER::SaveLibrary(), and kiapi::board::UnpackEmbeddedFiles().
|
inherited |
Remove all embedded fonts from the collection.
Definition at line 197 of file embedded_files.cpp.
References EMBEDDED_FILES::EMBEDDED_FILE::FONT, and m_files.
Referenced by SCH_IO_KICAD_SEXPR_LIB_CACHE::SaveSymbol().
|
inline |
Definition at line 432 of file footprint.h.
References m_extrudedBody.
Referenced by BOARD::ExchangeFootprint(), and PANEL_FP_PROPERTIES_3D_MODEL::updateExtrusionPreview().
|
inlineinherited |
Definition at line 160 of file eda_item.h.
References EDA_ITEM_ALL_FLAGS, m_flags, and m_netHighlighted.
Referenced by FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), PNS_KICAD_IFACE::AddItem(), PNS_KICAD_IFACE_GENERATOR::AddItem(), AlignSchematicItemsToGrid(), SCH_MOVE_TOOL::AlignToGrid(), BACK_ANNOTATE::applyChangelist(), PCB_CONTROL::ApplyDesignBlockLayout(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), FOOTPRINT::BuildCourtyardCaches(), ClearBrightened(), ClearEditFlags(), ClearSelected(), ClearTempFlags(), SYMBOL_EDITOR_EDIT_TOOL::Copy(), MULTICHANNEL_TOOL::copyRuleAreaContents(), FOOTPRINT_EDITOR_CONTROL::CreateFootprint(), SYMBOL_EDITOR_PIN_TOOL::CreateImagePins(), PCB_TOOL_BASE::doInteractiveItemPlacement(), SCH_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), SCH_ITEM::Duplicate(), PCB_TUNING_PATTERN::EditCancel(), PCB_VIA_STACK::EditCancel(), PCB_VIA_STITCH::EditCancel(), PCB_TUNING_PATTERN::EditFinish(), PCB_VIA_STACK::EditFinish(), PCB_VIA_STITCH::EditFinish(), BOARD::ExchangeFootprint(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), SCH_IO_KICAD_SEXPR::Format(), SYMBOL_EDIT_FRAME::GetSymbolFromRedoList(), SYMBOL_EDIT_FRAME::GetSymbolFromUndoList(), SCH_SELECTION_TOOL::GuessSelectionCandidates(), SCH_COLLECTOR::Inspect(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), SCH_IO_PADS::LoadSchematicFile(), SCH_ALIGN_TOOL::moveItem(), FOOTPRINT_EDITOR_CONTROL::NewFootprint(), FOOTPRINT_EDIT_FRAME::OpenProjectFiles(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), PCB_BASE_FRAME::PlaceFootprint(), DRAWING_TOOL::PlaceMicroviaStack(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), SCH_MOVE_TOOL::preprocessBreakOrSliceSelection(), SCH_COMMIT::pushSchEdit(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), PCB_SELECTION_TOOL::RebuildSelection(), PAD::Recombine(), FOOTPRINT_EDIT_FRAME::RefreshLibraryFootprintTab(), GERBVIEW_FRAME::RemapLayers(), SCH_COMMIT::Revert(), DRC_TEST_PROVIDER_DISALLOW::Run(), ISSUE22864_FIXTURE::RunAlignmentAndVerify(), ISSUE22864_FIXTURE::RunAlignmentAndVerifyNoSkew(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), HEADLESS_FOOTPRINT_CONTEXT::SaveFootprintInLibrary(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), SCH_IO_KICAD_SEXPR_LIB_CACHE::savePin(), SCH_SELECTION_TOOL::SelectMultiple(), SetIsShownAsBitmap(), SCH_DRAWING_TOOLS::TwoClickPlace(), SCH_SELECTION_TOOL::unhighlight(), SCH_SHAPE::UpdateHatching(), and SCOPED_FLAGS_CLEANER::~SCOPED_FLAGS_CLEANER().
|
inline |
Definition at line 610 of file footprint.h.
References m_netTiePadGroups.
|
inlineinherited |
Definition at line 153 of file eda_item.h.
References ClearFlags(), and SELECTED.
Referenced by PCB_POINT_EDITOR::addCorner(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_DIFF_WIDGET::DisplayDiff(), EDIT_TOOL::Duplicate(), LIB_SYMBOL::LIB_SYMBOL(), ARRAY_TOOL::onDialogClosed(), DRAWING_TOOL::PlaceGridItem(), SCH_COMMIT::Revert(), GRAPHIC_EDIT_TOOL::runInteractive(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), SCH_COMMIT::Stage(), PL_SELECTION_TOOL::unhighlight(), SCH_SELECTION_TOOL::unhighlight(), PCB_SELECTION_TOOL::unhighlightInternal(), PCB_TEST_SELECTION_TOOL::unhighlightInternal(), and GERBVIEW_SELECTION_TOOL::unselectVisually().
|
inlinevirtualinherited |
Reimplemented in LIB_SYMBOL.
Definition at line 191 of file eda_item.h.
References ClearFlags(), and GetTempFlags().
Referenced by LIB_SYMBOL::ClearTempFlags(), SCH_EDIT_FRAME::PutDataInPreviousState(), and SCH_ITEM::SwapFlags().
|
inline |
Remove the transient component class names.
Definition at line 1444 of file footprint.h.
References m_transientComponentClassNames.
Referenced by PCB_CONTROL::Paste().
|
overridevirtual |
Invoke a function on all children.
Reimplemented from EDA_ITEM.
Definition at line 3250 of file footprint.cpp.
References EDA_ITEM::EDA_ITEM(), and FOOTPRINT.
Referenced by EDA_DATA::AddPackage(), PCB_IO_IPC2581::addPackage(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), FOOTPRINT_DIFF_WIDGET::DisplayDiff(), FOOTPRINT_EDITOR_CONTROL::editFootprintPropertiesFromLibrary(), FOOTPRINT_LIBRARY_ADAPTER::enumerateLibrary(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), PCB_IO_KICAD_SEXPR::FootprintLoad(), FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::FootprintSave(), FOOTPRINT_EDIT_FRAME::installFootprintTabBoard(), PCB_IO_GEDA::loadBoard(), PlotFootprintToSVG(), FOOTPRINT_EDIT_FRAME::RefreshLibraryFootprintTab(), FOOTPRINT_EDIT_FRAME::ReloadFootprint(), FOOTPRINT_LIBRARY_ADAPTER::SaveFootprint(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), BOARD_NETLIST_UPDATER::updateComponentClass(), BOARD_NETLIST_UPDATER::updateComponentPadConnections(), BOARD_NETLIST_UPDATER::updateComponentUnits(), BOARD_NETLIST_UPDATER::updateFootprintGroup(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
staticinherited |
Take data from the #decompressedData buffer and compresses it using ZSTD into the #compressedEncodedData buffer.
The data is then Base64 encoded. This call is used when adding a new file to the collection from disk.
Definition at line 271 of file embedded_files.cpp.
References MMH3_HASH::add(), EMBEDDED_FILES::EMBEDDED_FILE::compressedEncodedData, EMBEDDED_FILES::EMBEDDED_FILE::data_hash, EMBEDDED_FILES::EMBEDDED_FILE::decompressedData, MMH3_HASH::digest(), OK, OUT_OF_MEMORY, Seed(), and HASH_128::ToString().
Referenced by AddFile(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PADS_SCH_BINARY::PADS_SCH_BINARY_BUILDER::Build(), ALTIUM_PCB::ConvertComponentBody6ToFootprintItem(), and SYMBOL_EMBEDDED_FILES_TEST_FIXTURE::CreateTestEmbeddedFile().
|
staticinherited |
Compute the hash of a file on disk without fully embedding it.
| aFileName | is the path to the file to hash. |
| aHash | is the output string to store the computed hash. |
Definition at line 403 of file embedded_files.cpp.
References MMH3_HASH::add(), MMH3_HASH::digest(), FILE_NOT_FOUND, OK, OUT_OF_MEMORY, Seed(), and HASH_128::ToString().
Referenced by PANEL_EMBEDDED_FILES::AddEmbeddedFile(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 416 of file footprint.h.
References m_constraints.
Referenced by BOOST_AUTO_TEST_CASE(), DeserializeDefinition(), EDIT_TOOL::Duplicate(), Duplicate(), PCB_IO_KICAD_SEXPR::format(), operator=(), pasteFootprintItemsToFootprintEditor(), and CLIPBOARD_IO::SaveSelection().
|
inline |
Definition at line 417 of file footprint.h.
References m_constraints.
|
overridevirtual |
Reimplemented from BOARD_ITEM.
Definition at line 1402 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), FOOTPRINT(), m_pads, pad, PCB_FOOTPRINT_T, and EDA_ITEM::Type().
| double FOOTPRINT::CoverageRatio | ( | const GENERAL_COLLECTOR & | aCollector | ) | const |
Calculate the ratio of total area of the footprint pads and graphical items to the area of the footprint.
Used by selection tool heuristics.
Definition at line 4188 of file footprint.cpp.
References COLLECTORS_GUIDE::Accuracy(), SHAPE_POLY_SET::AddOutline(), ARC_LOW_DEF, BOARD_ITEM::BOARD_ITEM(), SHAPE_POLY_SET::BooleanIntersection(), ERROR_OUTSIDE, FOOTPRINT(), GetBoundingHull(), COLLECTOR::GetCount(), GENERAL_COLLECTOR::GetGuide(), BOARD_ITEM::GetParent(), SHAPE_POLY_SET::Outline(), PCB_ARC_T, PCB_BARCODE_T, PCB_FIELD_T, PCB_FOOTPRINT_T, PCB_SHAPE_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_TRACE_T, PCB_VIA_T, polygonArea(), TransformFPShapesToPolySet(), TransformPadsToPolySet(), BOARD_ITEM::TransformShapeToPolygon(), EDA_ITEM::Type(), and UNDEFINED_LAYER.
|
staticinherited |
Takes data from the #compressedEncodedData buffer and Base64 decodes it.
The data is then decompressed using ZSTD and stored in the #decompressedData buffer. This call is used when loading the embedded files using the parsers.
| aAllowEmptyHash | will let this succeed if aFile.data_hash is empty |
Definition at line 306 of file embedded_files.cpp.
References MMH3_HASH::add(), MMH3_HASH::addDataV1(), CHECKSUM_ERROR, EMBEDDED_FILES::EMBEDDED_FILE::compressedEncodedData, EMBEDDED_FILES::EMBEDDED_FILE::data_hash, EMBEDDED_FILES::EMBEDDED_FILE::decompressedData, MMH3_HASH::digest(), EMBEDDED_FILES::EMBEDDED_FILE::name, OK, OUT_OF_MEMORY, Seed(), and HASH_128::ToString().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), EMBEDDED_FILES_PARSER::ParseEmbedded(), and kiapi::board::UnpackEmbeddedFiles().
|
inlinevirtualinherited |
Removes an item from the container and deletes it.
Definition at line 72 of file board_item_container.h.
References BOARD_ITEM::BOARD_ITEM(), and Remove().
|
inherited |
Delete this object after removing from its parent if it has one.
Definition at line 303 of file board_item.cpp.
References GetParent(), and BOARD_ITEM_CONTAINER::Remove().
| void FOOTPRINT::DeleteVariant | ( | const wxString & | aVariantName | ) |
Delete a variant by name.
| aVariantName | The name of the variant to delete. |
Definition at line 1683 of file footprint.cpp.
References m_variants.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
overridevirtual |
Deserializes the given protobuf message into this object.
| aContainer | is an Any which should have a concrete type matching this object |
Reimplemented from SERIALIZABLE.
Definition at line 745 of file footprint.cpp.
References DATASHEET, DESCRIPTION, PCB_FIELD::Deserialize(), DeserializeDefinition(), FP_SMD, FP_THROUGH_HOLE, FromProtoEnum(), GetDefaultVariantName(), GetField(), m_attributes, m_filters, m_path, m_sheetfile, m_sheetname, m_variants, REFERENCE, SetAllowMissingCourtyard(), SetAllowSolderMaskBridges(), SetBoardOnly(), SetDNP(), FOOTPRINT_VARIANT::SetDNP(), SetExcludedFromBOM(), FOOTPRINT_VARIANT::SetExcludedFromBOM(), SetExcludedFromPosFiles(), FOOTPRINT_VARIANT::SetExcludedFromPosFiles(), SetExcludedFromSim(), FOOTPRINT_VARIANT::SetExcludedFromSim(), FOOTPRINT_VARIANT::SetFieldValue(), SetLayer(), SetLocalClearance(), SetLocalSolderMaskMargin(), SetLocalSolderPasteMargin(), SetLocalSolderPasteMarginRatio(), SetLocalZoneConnection(), SetLocked(), FOOTPRINT_VARIANT::SetName(), SetOrientationDegrees(), SetPosition(), BOARD_ITEM::SetUuidDirect(), kiapi::common::UnpackCustomProperties(), kiapi::board::UnpackEmbeddedFiles(), kiapi::common::UnpackSheetPath(), and VALUE.
Referenced by API_TEST_CLIENT::GetFirstFootprint().
| bool FOOTPRINT::DeserializeDefinition | ( | const kiapi::board::types::Footprint & | aInput | ) |
Definition at line 630 of file footprint.cpp.
References Add(), AddNetTiePadGroup(), APPEND, BOARD_ITEM::BOARD, Constraints(), CreateItemForType(), FromProtoEnum(), BOARD_ITEM::GetBoard(), GraphicalItems(), group, Groups(), JumperPadGroups(), m_fields, m_netTiePadGroups, model, Models(), pad, Pads(), Points(), Remove(), BASE_SET::set(), SetDuplicatePadNumbersAreJumpers(), SetFPID(), SetKeywords(), SetLibDescription(), SetPrivateLayers(), traceApi, kiapi::common::TypeNameFromAny(), UNDEFINED_LAYER, kiapi::common::UnpackLibId(), kiapi::common::UnpackVector3D(), and Zones().
Referenced by Deserialize().
|
overridevirtual |
Reimplemented from EDA_ITEM.
Definition at line 3236 of file footprint.cpp.
References GetFPIDAsString(), and GetItemDescription().
|
overridevirtual |
Create a copy of this BOARD_ITEM.
| addToParentGroup | Indicates whether or not the new item is added to the group containing the old item. If true, aCommit must be provided. |
Reimplemented from BOARD_ITEM.
Definition at line 3781 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), Constraints(), BOARD_ITEM::Duplicate(), FOOTPRINT(), EDA_ITEM::m_Uuid, RECURSE, BOARD_ITEM::ResetUuidDirect(), and RunOnChildren().
Referenced by FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), BOOST_AUTO_TEST_CASE(), PCB_IO_GEDA::FootprintLoad(), PCB_IO_KICAD_SEXPR::FootprintLoad(), and CADSTAR_PCB_ARCHIVE_LOADER::loadComponents().
| BOARD_ITEM * FOOTPRINT::DuplicateItem | ( | bool | addToParentGroup, |
| BOARD_COMMIT * | aCommit, | ||
| const BOARD_ITEM * | aItem, | ||
| bool | addToFootprint = false ) |
Duplicate a given item within the footprint, optionally adding it to the board.
Definition at line 3805 of file footprint.cpp.
References Add(), BOARD_ITEM::BOARD_ITEM(), DATASHEET, BOARD_ITEM::Duplicate(), KIGFX::VIEW_ITEM::GetClass(), group, m_pads, m_points, m_zones, PAD, PCB_BARCODE_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_FIELD_T, PCB_FOOTPRINT_T, PCB_GROUP_T, PCB_PAD_T, PCB_POINT_T, PCB_REFERENCE_IMAGE_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_ZONE_T, RECURSE, REFERENCE, BOARD_ITEM::ResetUuidDirect(), EDA_TEXT::SetText(), EDA_ITEM::Type(), and VALUE.
Referenced by EDIT_TOOL::Duplicate(), and ARRAY_TOOL::onDialogClosed().
|
inlineinherited |
Provide an iterable view of the file collection.
The map stores files via shared_ptr so that the copy constructor (used by Clone()) can share ownership of payloads, keeping transient snapshots cheap. Copy assignment, in contrast, performs a deep copy so callers that mutate file fields through raw pointers after assignment cannot affect the source. Callers that need a guaranteed-unique mutable copy from a const-ref source must allocate a new EMBEDDED_FILE explicitly.
Definition at line 258 of file embedded_files.h.
References m_files.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOARD::ExchangeFootprint(), BOARD::FixupEmbeddedData(), LIB_SYMBOL::Flatten(), PCB_IO_KICAD_SEXPR::format(), API_HANDLER_PCB::handleAddEmbeddedFiles(), ALTIUM_PCB::HelperEmbedModel(), kiapi::board::PackEmbeddedFiles(), SYMBOL_LIBRARY_MANAGER::SaveLibrary(), and SCH_IO_KICAD_SEXPR_LIB_CACHE::SaveSymbol().
|
overridevirtual |
Reimplemented from EMBEDDED_FILES.
Definition at line 5435 of file footprint.cpp.
References EMBEDDED_FILES::AddFile(), EMBEDDED_FILES::EMBEDDED_FILE::FONT, GetEmbeddedFiles(), GetFonts(), and EMBEDDED_FILES::EMBEDDED_FILE::type.
| EXTRUDED_3D_BODY & FOOTPRINT::EnsureExtrudedBody | ( | ) |
Definition at line 3103 of file footprint.cpp.
References m_extrudedBody.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PANEL_FP_PROPERTIES_3D_MODEL::updateExtrusionControls(), and PANEL_FP_PROPERTIES_3D_MODEL::updateExtrusionPreview().
| PAD * FOOTPRINT::FindPadByNumber | ( | const wxString & | aPadNumber, |
| PAD * | aSearchAfterMe = nullptr ) const |
Return a PAD with a matching number.
| aPadNumber | the pad number to find. |
| aSearchAfterMe | = not nullptr to find a pad living after aAfterMe |
Definition at line 2918 of file footprint.cpp.
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CheckNetTiePadGroups(), Similarity(), EDIT_TOOL::SwapGateNets(), BOARD_NETLIST_UPDATER::testConnectivity(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), and BOARD_NETLIST_UPDATER::UpdateNetlist().
Definition at line 2938 of file footprint.cpp.
Definition at line 137 of file eda_item.cpp.
References EDA_ITEM(), GetParent(), and Type().
Referenced by BOARD_ITEM::GetBoard(), BOARD_ITEM::GetBoard(), BOARD_ITEM::GetParentFootprint(), SCH_ITEM::GetParentSymbol(), SCH_ITEM::GetParentSymbol(), and SCH_ITEM::Schematic().
|
inlineoverridevirtual |
Check if a board offering aEnabledLayers can hold this item.
A layer-agnostic item always fits; anything else needs at least one of its own layers enabled. aCopperLayerCount is passed rather than read from the item because the item may still belong to the board it is being copied from. Only the mounting side is judged – the children are exempt per IsLayerAgnostic, but a footprint that names no side at all is malformed and no board can hold it.
Reimplemented from BOARD_ITEM.
Definition at line 693 of file footprint.h.
References B_Cu, F_Cu, and GetLayer().
Referenced by BOOST_AUTO_TEST_CASE().
| void FOOTPRINT::FixUpPadsForBoard | ( | BOARD * | aBoard | ) |
Used post-loading of a footprint to adjust the layers on pads to match board inner layers.
Definition at line 5521 of file footprint.cpp.
References LSET::AllCuMask(), BOARD_ITEM::BOARD, EXPAND_INNER_LAYERS, BOARD::GetCopperLayerCount(), GetStackupMode(), pad, Pads(), and PTH.
Referenced by BOARD_NETLIST_UPDATER::replaceFootprint().
| bool FOOTPRINT::FixUuids | ( | ) |
Old footprints do not always have a valid UUID (some can be set to null uuid) However null UUIDs, having a special meaning in editor, create issues when editing a footprint So all null uuids a re replaced by a valid uuid.
Definition at line 1066 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), group, m_drawings, m_fields, m_groups, m_pads, m_points, m_zones, niluuid, and pad.
Referenced by FOOTPRINT_EDIT_FRAME::ReloadFootprint().
|
overridevirtual |
Flip this object, i.e.
change the board side for this object.
| aCentre | the rotation point. |
| aFlipDirection | the flip direction |
Mirror the Y position (around the X axis)
Reimplemented from BOARD_ITEM.
Definition at line 3460 of file footprint.cpp.
References ANGLE_180, B_Cu, BaseType(), BOARD_ITEM::BOARD_ITEM(), BOARD::FlipLayer(), FlipLayer(), BOARD_ITEM::GetBoard(), GetLayer(), LEFT_RIGHT, m_courtyard_cache, m_drawings, m_extrudedBody, m_fields, m_flipped, m_geometry_cache, m_pads, m_points, m_transform, m_zones, MIRROR(), EDA_ANGLE::Normalize180(), pad, PCB_BARCODE_T, PCB_DIMENSION_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TEXT_T, PCB_TEXTBOX_T, Rotate(), BOARD_ITEM::SetLayer(), SetPosition(), TOP_BOTTOM, UNDEFINED_LAYER, and VECTOR2< T >::y.
Referenced by PCB_BASE_FRAME::AddFootprintToBoard(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), DIPTRACE::PCB_PARSER::CreateFootprint(), BOARD::ExchangeFootprint(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), PCB_IO_KICAD_SEXPR::FootprintSave(), DSN::SPECCTRA_DB::FromSESSION(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponents(), FABMASTER::loadFootprints(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), PCB_IO_EAGLE::orientFootprintAndText(), BOARD_EDITOR_CONTROL::PlaceFootprint(), SetLayerAndFlip(), and EDIT_TOOL::Swap().
| bool FOOTPRINT::FootprintNeedsUpdate | ( | const FOOTPRINT * | aLibFP, |
| int | aCompareFlags = 0, | ||
| REPORTER * | aReporter = nullptr ) |
Return true if a board footprint differs from the library version.
Definition at line 802 of file drc_test_provider_library_parity.cpp.
References _, AllowSolderMaskBridges(), barcodeNeedsUpdate(), BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), CHECKPOINT, Clone(), BOARD_ITEM::DRC, dummy, end, FOOTPRINT(), footprintVsBoardStackup(), FP_BOARD_ONLY, FP_DNP, FP_EXCLUDE_FROM_BOM, FP_EXCLUDE_FROM_POS_FILES, FP_EXCLUDE_FROM_SIM, FP_SMD, FP_THROUGH_HOLE, GetAttributes(), BOARD_ITEM::GetBoard(), GetLocalClearance(), GetLocalSolderMaskMargin(), GetLocalSolderPasteMargin(), GetLocalSolderPasteMarginRatio(), GetLocalZoneConnection(), GetNetTiePadGroups(), GraphicalItems(), INHERITED, BOARD_ITEM::INSTANCE_TO_INSTANCE, IsFlipped(), ITEM_DESC, padHasOverrides(), padNeedsUpdate(), Pads(), REPORT, shapeNeedsUpdate(), stackupNeedsUpdate(), TEST, TEST_ATTR, TOP_BOTTOM, zoneNeedsUpdate(), and Zones().
Referenced by BOARD_INSPECTION_TOOL::DiffFootprint(), BOARD::ExchangeFootprint(), and DIALOG_EXCHANGE_FOOTPRINTS::processFootprint().
|
inherited |
Definition at line 84 of file inspectable_impl.h.
References PROPERTY_BASE::get(), PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), T, TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inherited |
Definition at line 74 of file inspectable.cpp.
References PROPERTY_BASE::getter(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), CLASS_D_DESC::CLASS_D_DESC(), MATCH_PROPERTIES_CATALOG::Copy(), KICAD_DIFF::DiffItemProperties(), PROPERTIES_PANEL::getItemValue(), PCBEXPR_VAR_REF::GetValue(), DIALOG_FIND_BY_PROPERTIES::getVariantAwareValue(), KICAD_DIFF::ItemProperties(), plan(), FOOTPRINT::ResolveTextVar(), SCH_SYMBOL::ResolveTextVar(), and SCHEMATIC::SCHEMATIC().
|
inherited |
Definition at line 72 of file inspectable_impl.h.
References PROPERTY_BASE::get(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), T, TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
| double FOOTPRINT::GetArea | ( | int | aPadding = 0 | ) | const |
Definition at line 2056 of file footprint.cpp.
References std::abs(), GetBoundingBox(), BOX2< Vec >::GetHeight(), and BOX2< Vec >::GetWidth().
Referenced by sortFootprintsByComplexity(), and sortFootprintsByRatsnestSize().
|
inlineinherited |
Definition at line 288 of file embedded_files.h.
References m_embedFonts.
Referenced by PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), SYMBOL_LIBRARY_MANAGER::SaveLibrary(), SCH_IO_KICAD_SEXPR_LIB_CACHE::SaveSymbol(), and LIB_SYMBOL::Serialize().
|
inline |
Definition at line 550 of file footprint.h.
References m_attributes.
Referenced by COMPONENTS_MANAGER::AddComponent(), BOARD_NETLIST_UPDATER::addNewFootprint(), EXPORTER_STEP::buildFootprint3DShapes(), KI_TEST::CheckFootprint(), CheckFootprintAttributes(), BOARD::ExchangeFootprint(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), FootprintNeedsUpdate(), GENCAD_EXPORTER::footprintWriteShape(), PCB_IO_KICAD_SEXPR::format(), idf_export_footprint(), BOARD_ADAPTER::IsFootprintShown(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
virtualinherited |
Definition at line 95 of file board_item.cpp.
References BOARD, EDA_ITEM::findParent(), PCB_T, and EDA_ITEM::Type().
|
virtualinherited |
Return the BOARD in which this BOARD_ITEM resides, or NULL if none.
Definition at line 86 of file board_item.cpp.
References BOARD, EDA_ITEM::findParent(), PCB_T, and EDA_ITEM::Type().
Referenced by CN_CONNECTIVITY_ALGO::Add(), FOOTPRINT::Add(), COMPONENTS_MANAGER::AddComponent(), BOARD_ADAPTER::addShape(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), PCB_BARCODE::AssembleBarcode(), BOARD_ITEM_DESC::BOARD_ITEM_DESC(), BoardCopperLayerCount(), BoardLayerCount(), BoardLayerSet(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), CN_CONNECTIVITY_ALGO::Build(), FOOTPRINT::BuildNetTieCache(), ZONE::BuildSmoothedPoly(), ZONE::CacheBoundingBox(), TMATCH::checkCandidateNetConsistency(), collidesWithArea(), ConstraintItemIsLocked(), PG_NET_SELECTOR_EDITOR::CreateControls(), PCB_TUNING_PATTERN::CreateNew(), FOOTPRINT::DeserializeDefinition(), PCB_GROUP::DeserializeGroup(), BOARD_INSPECTION_TOOL::DiffFootprint(), DIMENSION_DESC::DIMENSION_DESC(), doIntersectsAreaFunc(), KIGFX::PCB_PAINTER::Draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::drawChartSymbols(), KIGFX::PCB_PAINTER::drawDrillMarks(), KIGFX::PCB_PAINTER::drawDrillSymbol(), ZONE::Duplicate(), enclosedByAreaFunc(), existsOnLayerFunc(), ZONE_FILLER::Fill(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), PAD::FlashLayer(), PCB_VIA::FlashLayer(), FOOTPRINT::Flip(), PAD::Flip(), PCB_ARC::Flip(), PCB_BARCODE::Flip(), PCB_DIMENSION_BASE::Flip(), PCB_DRILL_MAP::Flip(), PCB_GENERATOR::Flip(), PCB_POINT::Flip(), PCB_REFERENCE_IMAGE::Flip(), PCB_SHAPE::Flip(), PCB_TABLE::Flip(), PCB_TARGET::Flip(), PCB_TEXT::Flip(), PCB_TRACK::Flip(), PCB_VIA::Flip(), PCB_VIA_STACK::Flip(), ZONE::Flip(), FOOTPRINT::FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), fromToFunc(), PCB_DRILL_MAP::GetBoardOutlines(), FOOTPRINT::GetBoundingBox(), NETINFO_ITEM::GetBoundingBox(), PCB_DRILL_MAP::GetBoundingBox(), ZONE::GetBoundingBox(), FOOTPRINT::GetBoundingHull(), FOOTPRINT::GetBoundingHull(), PCB_BASE_EDIT_FRAME::GetContextualTextVars(), PCB_TRACK::GetDelay(), BOARD_CONNECTED_ITEM::GetDisplayNetname(), PCB_VIA::GetDrillConstraint(), FOOTPRINT::GetDynamicProperties(), BOARD_CONNECTED_ITEM::GetEffectiveNetClass(), GetEmbeddedFonts(), getFieldFunc(), PCB_VIA_STITCH::GetGuardedNetCode(), PCB_SHAPE::getHatchingKnockouts(), ZONE::GetInteractingZones(), PAD::GetItemDescription(), PCB_SHAPE::GetItemDescription(), ZONE::GetItemDescription(), PCB_PROPERTIES_PANEL::getItemValue(), FOOTPRINT::GetLayerBoundingBox(), GetLayerName(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValueForVariant(), GetMaxError(), PCB_VIA::GetMinAnnulus(), FOOTPRINT::GetMsgPanelInfo(), PCB_TEXT::GetMsgPanelInfo(), PCB_TRACK::GetMsgPanelInfo(), PCB_TUNING_PATTERN::GetMsgPanelInfo(), ZONE::GetMsgPanelInfo(), PCB_TRACK::GetMsgPanelInfoBase_Common(), PCB_VIA_STITCH::GetNetCode(), BOARD_CONNECTED_ITEM::GetNetnameMsg(), PCB_VIA::GetOutermostConnectedLayers(), BOARD_CONNECTED_ITEM::GetOwnClearance(), PAD::GetPostMachiningKnockout(), PCB_VIA::GetPostMachiningKnockout(), PCB_TUNING_PATTERN::GetPreviewItems(), ALIGN_DISTRIBUTE_TOOL::GetSelections(), PCB_MARKER::GetSeverity(), PCB_FIELD::GetShownText(), PCB_TABLECELL::GetShownText(), PCB_TEXT::GetShownText(), PCB_TEXTBOX::GetShownText(), FOOTPRINT::GetSide(), PAD::GetSolderMaskExpansion(), PCB_SHAPE::GetSolderMaskExpansion(), PCB_TRACK::GetSolderMaskExpansion(), PCB_VIA::GetSolderMaskExpansion(), PAD::GetSolderPasteMargin(), PCB_DRILL_MAP::GetSpanChoice(), PCB_DRILL_MAP::GetSymbolExtent(), PCB_FOOTPRINT_FIELD_PROPERTY::getter(), BOARD::GetTrackLength(), PCB_DIMENSION_BASE::GetValueFieldText(), PCB_DIMENSION_BASE::GetValueMode(), DIALOG_FIND_BY_PROPERTIES::getVariantAwareValue(), PCB_TRACK::GetWidthConstraint(), PCB_VIA::GetWidthConstraint(), PCB_VIA_STITCH::GetZonesNeedingRefillAfterUpdate(), hasExactNetclassFunc(), hasNetChainFunc(), PCB_DRILL_MAP::HitTest(), inDiffPairFunc(), inNetChainClassFunc(), inNetChainFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), PAD::IsBackdrilledOrPostMachined(), PCB_VIA::IsBackdrilledOrPostMachined(), isCoupledDiffPairFunc(), PCB_VIA::IsGhostLayer(), IsLocked(), IsSideSpecific(), PCB_VIA::IsTented(), LayerMaskDescribe(), PCB_VIA::LayerMaskDescribe(), ZONE::Move(), CN_VISITOR::operator()(), FOOTPRINT::operator=(), FOOTPRINT::operator=(), PCB_IO_EAGLE::packageWire(), padNeedsUpdate(), PartitionNetChainAroundNet(), PCB_DRILL_MAP::PCB_DRILL_MAP(), ZONE_PAINTER::PCB_PAINTER(), PCB_DRAW_PANEL_GAL::prepareGridSources(), SPRINT_LAYOUT_PARSER::processCircle(), SPRINT_LAYOUT_PARSER::processLine(), SPRINT_LAYOUT_PARSER::processPad(), SPRINT_LAYOUT_PARSER::processPoly(), PCB_TUNING_PATTERN::recoverBaseline(), FOOTPRINT::Remove(), BOARD::ResolveDRCExclusions(), FOOTPRINT::ResolveTextVar(), FOOTPRINT::ResolveTextVar(), FOOTPRINT::Serialize(), PCB_ARC::Serialize(), PCB_BARCODE::Serialize(), PCB_DIMENSION_BASE::Serialize(), PCB_GROUP::Serialize(), PCB_POINT::Serialize(), PCB_REFERENCE_IMAGE::Serialize(), PCB_SHAPE::Serialize(), PCB_TABLE::Serialize(), PCB_TEXT::Serialize(), PCB_TEXTBOX::Serialize(), PCB_TRACK::Serialize(), PCB_VIA::Serialize(), ZONE::Serialize(), PAD::SetAttribute(), PCB_VIA::SetBottomLayer(), PCB_VIA_STITCH::SetGuardedNetCode(), PCB_SHAPE::SetIsProxyItem(), BOARD_CONNECTED_ITEM::SetLayer(), PCB_VIA::SetLayerPair(), PAD::SetLayerSet(), BOARD_CONNECTED_ITEM::SetNetCode(), PCB_TUNING_PATTERN::SetNetCode(), PCB_VIA_STITCH::SetNetCode(), PCB_DRILL_MAP::SetSpanChoice(), PCB_FOOTPRINT_FIELD_PROPERTY::setter(), PCB_VIA::SetTopLayer(), PCB_DIMENSION_BASE::SetUnitsMode(), PCB_FIELDS_GRID_TABLE::SetValueAsLong(), PCB_TUNING_PATTERN::ShowPropertiesDialog(), PCB_VIA_STACK::ShowPropertiesDialog(), PCB_VIA_STITCH::ShowPropertiesDialog(), PCB_TEXT::StyleFromSettings(), PCB_TEXTBOX::StyleFromSettings(), SwapItemData(), DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems(), CONNECTIVITY_DATA::TestTrackEndpointDangling(), BOARD_CONNECTED_ITEM::UnpackNet(), ZONE_PRIORITY_CONTEXT_MENU::update(), BOARD::UpdateRatsnestExclusions(), PCB_PROPERTIES_PANEL::valueChanged(), FOOTPRINT::ViewBBox(), PAD::ViewBBox(), PCB_TRACK::ViewBBox(), PAD::ViewGetLayers(), PCB_VIA::ViewGetLayers(), PAD::ViewGetLOD(), PCB_REFERENCE_IMAGE::ViewGetLOD(), PCB_VIA::ViewGetLOD(), ZONE::ZONE(), and zoneNeedsUpdate().
|
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 2212 of file footprint.cpp.
References GetBoundingBox().
Referenced by AutoPositionFields(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), AR_AUTOPLACER::buildFpAreas(), CalcPlaceholderLocalBox(), PCB_GRID_HELPER::computeAnchors(), KICAD_DIFF::FP_LIB_DIFFER::Diff(), KIGFX::PCB_PAINTER::draw(), KICAD_DIFF::ExtractFootprintGeometry(), AR_AUTOPLACER::genModuleOnRoutingMatrix(), GetArea(), GetBoundingBox(), PCB_SELECTION::GetBoundingBox(), GetCenter(), FOOTPRINT_EDIT_FRAME::GetDocumentExtents(), AR_AUTOPLACER::getOptimalFPPlacement(), HitTest(), HitTest(), HitTest(), PCB_SELECTION_TOOL::hitTestDistance(), SpreadFootprints(), DRC_INTERACTIVE_COURTYARD_CLEARANCE::testCourtyardClearances(), DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances(), AR_AUTOPLACER::testFootprintOnBoard(), BOARD_NETLIST_UPDATER::UpdateNetlist(), and ViewBBox().
| const BOX2I FOOTPRINT::GetBoundingBox | ( | bool | aIncludeText | ) | const |
Definition at line 2218 of file footprint.cpp.
References BaseType(), BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), Cmts_User, Dwgs_User, Eco1_User, Eco2_User, BOARD_ITEM::GetBoard(), PCB_TEXT::GetBoundingBox(), GetField(), BOARD_ITEM::GetLayer(), GetSide(), BOX2< Vec >::Inflate(), IsValidLayer(), EDA_TEXT::IsVisible(), LAYER_FP_REFERENCES, LAYER_FP_TEXT, LAYER_FP_VALUES, m_drawings, m_fields, m_geometry_cache, m_geometry_cache_mutex, m_pads, m_points, m_privateLayers, m_transform, m_zones, BOX2< Vec >::Merge(), pad, PCB_DIMENSION_T, PCB_FIELD_T, PCB_REFERENCE_IMAGE_T, PCB_TEXT_T, pcbIUScale, REFERENCE, text, UNDEFINED_LAYER, and VALUE.
| SHAPE_POLY_SET FOOTPRINT::GetBoundingHull | ( | ) | const |
Return a bounding polygon for the shapes and pads in the footprint.
This operation is slower but more accurate than calculating a bounding box.
Definition at line 2439 of file footprint.cpp.
References SHAPE_POLY_SET::AddOutline(), SHAPE_POLY_SET::Append(), ARC_LOW_DEF, BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), BuildConvexHull(), SHAPE_POLY_SET::COutline(), ERROR_OUTSIDE, SHAPE_POLY_SET::FullPointCount(), BOARD_ITEM::GetBoard(), GetPosition(), m_drawings, m_geometry_cache, m_geometry_cache_mutex, m_pads, m_privateLayers, m_zones, SHAPE_POLY_SET::NewOutline(), SHAPE_POLY_SET::OutlineCount(), pad, PCB_FIELD_T, PCB_REFERENCE_IMAGE_T, pcbIUScale, and UNDEFINED_LAYER.
Referenced by BOOST_AUTO_TEST_CASE(), CoverageRatio(), KIGFX::PCB_PAINTER::Draw(), KIGFX::PCB_PAINTER::draw(), GetCoverageArea(), HitTestAccurate(), and PCB_SELECTION_TOOL::hitTestDistance().
| SHAPE_POLY_SET FOOTPRINT::GetBoundingHull | ( | PCB_LAYER_ID | aLayer | ) | const |
Definition at line 2531 of file footprint.cpp.
References SHAPE_POLY_SET::AddOutline(), SHAPE_POLY_SET::Append(), ARC_LOW_DEF, BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), BuildConvexHull(), ERROR_OUTSIDE, BOARD_ITEM::GetBoard(), m_drawings, m_pads, m_privateLayers, m_zones, SHAPE_POLY_SET::NewOutline(), pad, PCB_FIELD_T, PCB_REFERENCE_IMAGE_T, and UNDEFINED_LAYER.
| const SHAPE_POLY_SET & FOOTPRINT::GetCachedCourtyard | ( | PCB_LAYER_ID | aLayer | ) | const |
Return the cached courtyard area.
No checks are performed.
Definition at line 4312 of file footprint.cpp.
References IsBackLayer(), and m_courtyard_cache.
Referenced by GetCourtyard().
|
inlineoverridevirtual |
This defaults to the center of the bounding box if not overridden.
Reimplemented from BOARD_ITEM.
Definition at line 402 of file footprint.h.
References GetBoundingBox(), and BOX2< Vec >::GetCenter().
|
inlinevirtualinherited |
Retrieves a key/value map of the fields on this item that should be exposed to the library browser/chooser for displaying in columns, searching, etc.
Reimplemented in LIB_SYMBOL.
Definition at line 53 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
inlineoverridevirtual |
Return the class name.
Implements KIGFX::VIEW_ITEM.
Definition at line 1281 of file footprint.h.
Referenced by Visit().
|
inline |
Return any local clearance overrides set in the "classic" (ie: pre-rule) system.
| aSource | [out] optionally reports the source as a user-readable string. |
Definition at line 591 of file footprint.h.
References GetLocalClearance().
| const COMPONENT_CLASS * FOOTPRINT::GetComponentClass | ( | ) | const |
Returns the component class for this footprint.
Definition at line 5470 of file footprint.cpp.
References m_componentClassCacheProxy.
Referenced by BOOST_FIXTURE_TEST_CASE(), BOARD::ExchangeFootprint(), hasComponentClassFunc(), and testFootprintSelector().
| wxString FOOTPRINT::GetComponentClassAsString | ( | ) | const |
Used for display in the properties panel.
Definition at line 5476 of file footprint.cpp.
References m_componentClassCacheProxy.
Referenced by FOOTPRINT_DESC::FOOTPRINT_DESC().
| void FOOTPRINT::GetContextualTextVars | ( | wxArrayString * | aVars | ) | const |
Return the list of system text vars for this footprint.
Definition at line 1441 of file footprint.cpp.
| const SHAPE_POLY_SET & FOOTPRINT::GetCourtyard | ( | PCB_LAYER_ID | aLayer | ) | const |
Used in DRC to test the courtyard area (a complex polygon).
Definition at line 4297 of file footprint.cpp.
References BuildCourtyardCaches(), FOOTPRINT(), GetCachedCourtyard(), m_courtyard_cache, and m_courtyard_cache_mutex.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), AR_AUTOPLACER::buildFpAreas(), checkCourtyardCloses(), collidesWithArea(), collidesWithCourtyard(), KIGFX::PCB_PAINTER::draw(), DRC_ENGINE::EvalRules(), GetEffectiveShape(), GetExtrusionOutline(), DSN::SPECCTRA_DB::makeIMAGE(), BOARD_INSPECTION_TOOL::reportClearance(), DIALOG_FOOTPRINT_CHECKER::runChecks(), DRC_INTERACTIVE_COURTYARD_CLEARANCE::testCourtyardClearances(), and DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances().
|
static |
Definition at line 4067 of file footprint.cpp.
References COLLECTORS_GUIDE::Accuracy(), ARC, ARC_LOW_DEF, SHAPE_LINE_CHAIN::Area(), BEZIER, BOARD_ITEM::BOARD_ITEM(), SHAPE_POLY_SET::BooleanAdd(), CIRCLE, ERROR_INSIDE, ERROR_OUTSIDE, FOOTPRINT(), GetBoundingHull(), GetCoverageArea(), GENERAL_COLLECTOR::GetGuide(), ZONE::GetIsRuleArea(), ZONE::GetLayerSet(), EDA_SHAPE::GetShape(), PCB_SHAPE::GetWidth(), EDA_SHAPE::IsAnyFill(), KI_FALLTHROUGH, ZONE::Outline(), SHAPE_POLY_SET::OutlineCount(), PCB_ARC_T, PCB_FIELD_T, PCB_FOOTPRINT_T, PCB_GENERATOR_T, PCB_GROUP_T, PCB_MARKER_T, PCB_PAD_T, PCB_SHAPE_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_TRACE_T, PCB_ZONE_T, POLY, polygonArea(), RECTANGLE, SEGMENT, MARKER_BASE::ShapeToPolygon(), text, BOARD_ITEM::TransformShapeToPolygon(), PCB_SHAPE::TransformShapeToPolygon(), ZONE::TransformShapeToPolygon(), PCB_TEXTBOX::TransformTextToPolySet(), EDA_ITEM::Type(), and UNDEFINED_LAYER.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GetCoverageArea(), and PCB_SELECTION_TOOL::GuessSelectionCandidates().
|
inlineinherited |
Custom user-defined string key/value properties attached to this item.
Keys and values are arbitrary strings; their meaning is defined by the user. The only constraint is that keys may not duplicate a built-in property (or field name, for items that have fields).
Definition at line 242 of file eda_item.h.
References m_customProperties.
Referenced by BOOST_AUTO_TEST_CASE(), KICAD_FORMAT::FormatCustomProperties(), and kiapi::common::PackCustomProperties().
|
inherited |
Definition at line 200 of file eda_item.cpp.
References m_customProperties, m_dynamicCustomPropsCache, and TYPE_HASH.
Referenced by GetDynamicProperties(), FOOTPRINT::GetDynamicProperties(), SCH_SHEET::GetDynamicProperties(), and SCH_SYMBOL::GetDynamicProperties().
|
inherited |
Definition at line 188 of file eda_item.cpp.
References m_customProperties.
Referenced by customPropertyFunc(), EDA_CUSTOM_PROPERTY::getter(), hasCustomPropertyFunc(), PCB_PROPERTIES_PANEL::onKeyRenamed(), and SCH_PROPERTIES_PANEL::onKeyRenamed().
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 486 of file footprint.h.
References GetLibDescription().
| bool FOOTPRINT::GetDNPForVariant | ( | const wxString & | aVariantName | ) | const |
Get the DNP status for a specific variant.
If the variant doesn't exist, returns the default DNP status.
| aVariantName | The variant name (empty for default). |
Definition at line 1723 of file footprint.cpp.
References GetDefaultVariantName(), FOOTPRINT_VARIANT::GetDNP(), GetVariant(), and IsDNP().
Referenced by COMPONENTS_MANAGER::AddComponent(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), EXPORTER_STEP::buildFootprint3DShapes(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getAttributeValue(), PCB_PROPERTIES_PANEL::getItemValue(), GetMsgPanelInfo(), DIALOG_FIND_BY_PROPERTIES::getVariantAwareValue(), idf_export_footprint(), BOARD_ADAPTER::IsFootprintShown(), BRDITEMS_PLOTTER::PlotFootprintGraphicItems(), BRDITEMS_PLOTTER::PlotFootprintTextItems(), BRDITEMS_PLOTTER::PlotShape(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows(), ResolveTextVar(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::setAttributeValue().
|
inline |
Definition at line 1232 of file footprint.h.
References m_duplicatePadNumbersAreJumpers.
Referenced by PCB_IO_KICAD_SEXPR::format(), SerializeDefinition(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
overridevirtual |
Return dynamically-computed properties specific to this object instance (e.g.
custom fields, pin-map entries). These are NOT registered in PROPERTY_MANAGER and do NOT appear in GetProperties(TYPE_ID).
The returned PROPERTY_BASE* pointers are owned by the object and remain valid until the object is destroyed or its property set changes.
Reimplemented from EDA_ITEM.
Definition at line 397 of file footprint.cpp.
References BOARD_ITEM::BOARD, FOOTPRINT(), BOARD_ITEM::GetBoard(), EDA_ITEM::GetCustomPropertiesAsInspectables(), GetFields(), PCB_FIELD::GetUntranslatedName(), PROPERTY_MANAGER::Instance(), BOARD::IsFootprintHolder(), m_dynamicPropertyCache, name, and TYPE_HASH.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 170 of file eda_item.h.
References IS_BROKEN, IS_CHANGED, IS_MOVING, IS_NEW, IS_PASTED, m_flags, and STRUCT_DELETED.
Referenced by SCH_EDIT_TOOL::ChangeTextType(), ClearEditFlags(), SCH_EDIT_FRAME::DeleteJunction(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SCH_EDIT_TOOL::editFieldText(), SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), SCH_EDITOR_CONTROL::EditWithSymbolEditor(), SCH_DRAWING_TOOLS::findWire(), SCH_SYMBOL::GetMsgPanelInfo(), SELECTION_CONDITIONS::IdleSelection(), SYMBOL_EDITOR_EDIT_TOOL::Properties(), SCH_EDIT_FRAME::SelectUnit(), SYMBOL_EDITOR_EDIT_TOOL::Swap(), and SCH_ITEM::SwapFlags().
|
virtualinherited |
Reimplemented in PAD, and PCB_VIA.
Definition at line 405 of file board_item.cpp.
References KIGFX::VIEW_ITEM::GetClass(), and UNIMPLEMENTED_FOR.
Referenced by collidesWithArea(), DRC_RTREE::Insert(), ItemHasDRCViolation(), DRC_TEST_PROVIDER_SILK_CLEARANCE::Run(), DRC_TEST_PROVIDER_HOLE_TO_HOLE::testHoleAgainstHole(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstZones(), and PCB_CONTROL::UpdateMessagePanel().
|
overridevirtual |
Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes.
This routine returns a COMPOUND shape (set of simple shapes which make up the pad for use with routing, collision determination, etc).
| aLayer | in case of items spanning multiple layers, only the shapes belonging to aLayer will be returned. Pass UNDEFINED_LAYER to return shapes for all layers. |
| aFlash | optional parameter allowing a caller to force the pad to be flashed (or not flashed) on the current layer (default is to honour the pad's setting and the current connections for the given layer). |
| aUsage | optional parameter specifying the query type. This can, for instance, allow backdrilling, countersinking, etc. to affect the shape used for resolving the physical_clearance. |
Reimplemented from BOARD_ITEM.
Definition at line 4258 of file footprint.cpp.
References B_CrtYd, BOARD_ITEM::BOARD_ITEM(), SHAPE_POLY_SET::COutline(), F_CrtYd, GetCourtyard(), GraphicalItems(), SHAPE_POLY_SET::OutlineCount(), pad, Pads(), PCB_BARCODE_T, and PCB_SHAPE_T.
|
inlineinherited |
Returns the embedded file with the given name or nullptr if it does not exist.
Definition at line 242 of file embedded_files.h.
References m_files.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOARD::FixupEmbeddedData(), SCH_SCREEN::FixupEmbeddedData(), and SCH_EDIT_FRAME::importFile().
|
inlineinherited |
Return the link for an embedded file.
| aFile | is the file to get the link for. |
Definition at line 166 of file embedded_files.h.
References EMBEDDED_FILES::EMBEDDED_FILE::GetLink().
|
inline |
Definition at line 1394 of file footprint.h.
References EMBEDDED_FILES::EMBEDDED_FILES().
|
inlineoverridevirtual |
Reimplemented from EDA_ITEM.
Definition at line 1389 of file footprint.h.
References EMBEDDED_FILES::EMBEDDED_FILES().
Referenced by BOOST_AUTO_TEST_CASE(), EXPORTER_STEP::buildFootprint3DShapes(), EmbedFonts(), BOARD::ExchangeFootprint(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), ALTIUM_PCB::HelperEmbedModel(), and idf_export_footprint().
|
overridevirtualinherited |
Reimplemented from EDA_ITEM.
Definition at line 460 of file board_item.cpp.
References BOARD, and GetBoard().
| bool FOOTPRINT::GetExcludedFromBOMForVariant | ( | const wxString & | aVariantName | ) | const |
Get the exclude-from-BOM status for a specific variant.
If the variant doesn't exist, returns the default exclude-from-BOM status.
| aVariantName | The variant name (empty for default). |
Definition at line 1739 of file footprint.cpp.
References GetDefaultVariantName(), FOOTPRINT_VARIANT::GetExcludedFromBOM(), GetVariant(), and IsExcludedFromBOM().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getAttributeValue(), PCB_PROPERTIES_PANEL::getItemValue(), GetMsgPanelInfo(), DIALOG_FIND_BY_PROPERTIES::getVariantAwareValue(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows(), ResolveTextVar(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::setAttributeValue(), and EDIT_TOOL::ToggleFootprintAttribute().
| bool FOOTPRINT::GetExcludedFromPosFilesForVariant | ( | const wxString & | aVariantName | ) | const |
Get the exclude-from-position-files status for a specific variant.
If the variant doesn't exist, returns the default exclude-from-position-files status.
| aVariantName | The variant name (empty for default). |
Definition at line 1771 of file footprint.cpp.
References GetDefaultVariantName(), FOOTPRINT_VARIANT::GetExcludedFromPosFiles(), GetVariant(), and IsExcludedFromPosFiles().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getAttributeValue(), PCB_PROPERTIES_PANEL::getItemValue(), GetMsgPanelInfo(), DIALOG_FIND_BY_PROPERTIES::getVariantAwareValue(), BOARD_ADAPTER::IsFootprintShown(), ResolveTextVar(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::setAttributeValue(), and EDIT_TOOL::ToggleFootprintAttribute().
| bool FOOTPRINT::GetExcludedFromSimForVariant | ( | const wxString & | aVariantName | ) | const |
Get the exclude-from-simulation status for a specific variant.
If the variant doesn't exist, returns the default exclude-from-simulation status.
| aVariantName | The variant name (empty for default). |
Definition at line 1755 of file footprint.cpp.
References GetDefaultVariantName(), FOOTPRINT_VARIANT::GetExcludedFromSim(), GetVariant(), and IsExcludedFromSim().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getAttributeValue(), PCB_PROPERTIES_PANEL::getItemValue(), GetMsgPanelInfo(), DIALOG_FIND_BY_PROPERTIES::getVariantAwareValue(), ResolveTextVar(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::setAttributeValue(), and EDIT_TOOL::ToggleFootprintAttribute().
|
inline |
Definition at line 429 of file footprint.h.
References m_extrudedBody.
|
inline |
Definition at line 428 of file footprint.h.
References m_extrudedBody.
Referenced by RENDER_3D_RAYTRACE_BASE::addExtrudedBodyToRaytracer(), STEP_PCB_MODEL::AddExtrudedPins(), EXPORTER_STEP::buildFootprint3DShapes(), BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), GetExtrusionOutline(), and PANEL_FP_PROPERTIES_3D_MODEL::TransferDataFromWindow().
| PCB_FIELD * FOOTPRINT::GetField | ( | const wxString & | aFieldName | ) | const |
Return a field in this symbol.
| aFieldName | is the name of the field |
Definition at line 917 of file footprint.cpp.
References m_fields.
Definition at line 899 of file footprint.cpp.
References m_fields.
Return a mandatory field in this footprint.
The const version will return nullptr if the field doesn't exist; the non-const version will create the field and return it.
Definition at line 884 of file footprint.cpp.
References m_fields.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SPRINT_LAYOUT_PARSER::CreateBoard(), Deserialize(), PCB_IO_EASYEDAPRO_PARSER::FillFootprintModelInfo(), PCB_IO_KICAD_SEXPR::format(), GetBoundingBox(), getFieldFunc(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getFieldResolvedLiveValue(), GetFieldValueForVariant(), GetFootprintDocumentationURL(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValueForVariant(), PCB_FOOTPRINT_FIELD_PROPERTY::getter(), HasField(), PCB_PROPERTIES_PANEL::onKeyRenamed(), PCB_IO_EASYEDAPRO_PARSER::ParseFootprint(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseFootprint(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), Reference(), Reference(), PCB_PROPERTIES_PANEL::removeField(), ResolveTextVar(), Serialize(), PCB_FOOTPRINT_FIELD_PROPERTY::setter(), UpdateFields(), BOARD_NETLIST_UPDATER::updateFootprintParameters(), Value(), and Value().
|
inline |
Definition at line 978 of file footprint.h.
References m_fields.
|
inline |
Return a reference to the deque holding the footprint's fields.
Definition at line 977 of file footprint.h.
References m_fields.
Referenced by GetDynamicProperties(), GetFonts(), and operator==().
| void FOOTPRINT::GetFields | ( | std::vector< PCB_FIELD * > & | aVector, |
| bool | aVisibleOnly ) const |
Populate a std::vector with PCB_TEXTs.
| aVector | is the vector to populate. |
| aVisibleOnly | is used to add only the fields that are visible and contain text. |
Definition at line 929 of file footprint.cpp.
References m_fields.
Referenced by COMPONENTS_MANAGER::AddComponent(), BOARD_ADAPTER::addFootprintShapes(), KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), KI_TEST::CheckFootprint(), KICAD_DIFF::CollectFootprintDiffContextItems(), SPRINT_LAYOUT_PARSER::CreateBoard(), KICAD_DIFF::PCB_DIFFER::diffFootprintChildren(), BOARD::ExchangeFootprint(), BOARD_TEXT_VAR_ADAPTER::ExtractSourceKeys(), PCB_IO_KICAD_SEXPR::format(), API_HANDLER_FOOTPRINT::handleGetItems(), PCBNEW_JOBS_HANDLER::JobExportBom(), DIALOG_FOOTPRINT_FIELDS_TABLE::LoadFieldNames(), operator==(), PCB_IO_EAGLE::orientFootprintAndText(), PCB_IO_EASYEDAPRO_PARSER::ParseFootprint(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseFootprint(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_TEXT(), pasteFootprintItemsToFootprintEditor(), BRDITEMS_PLOTTER::PlotFootprintTextItems(), SPRINT_LAYOUT_PARSER::processPad(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), transformFPTextToPolySet(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
| wxString FOOTPRINT::GetFieldValueForVariant | ( | const wxString & | aVariantName, |
| const wxString & | aFieldName ) const |
Get a field value for a specific variant.
If the variant doesn't exist or doesn't override the field, returns the default field value.
NB: variant values do NOT resolve text variable references. Any such refereneces are considered to be in schematic scope and are resolved before the footprint gets them.
| aVariantName | The variant name (empty for default). |
| aFieldName | The field name. |
Definition at line 1787 of file footprint.cpp.
References GetDefaultVariantName(), GetField(), FOOTPRINT_VARIANT::GetFieldValue(), GetVariant(), and FOOTPRINT_VARIANT::HasFieldValue().
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValueForVariant(), GetMsgPanelInfo(), PCB_TEXT::GetMsgPanelInfo(), PCB_FIELD::GetShownText(), and PCB_FOOTPRINT_FIELD_PROPERTY::getter().
|
inlineinherited |
Definition at line 101 of file embedded_files.h.
References m_fileAddedCallback.
Referenced by PADS_SCH_BINARY::PADS_SCH_BINARY_BUILDER::Build(), and SYMBOL_LIBRARY_MANAGER::SaveLibrary().
|
inline |
Definition at line 1176 of file footprint.h.
References m_fileFormatVersionAtLoad.
|
inline |
Definition at line 516 of file footprint.h.
References m_filters.
Referenced by BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 564 of file footprint.h.
References m_arflag.
Referenced by KI_TEST::CheckFootprint(), and sortFootprintsByRatsnestSize().
|
inlineinherited |
Definition at line 167 of file eda_item.h.
References m_flags.
Referenced by BACK_ANNOTATE::applyChangelist(), BuildBoardPolygonOutlines(), checkCourtyardCloses(), collidesWithArea(), PCB_TABLE::DeleteMarkedCells(), SCH_TABLE::DeleteMarkedCells(), doConvertOutlineToPolygon(), PL_EDIT_TOOL::DoDelete(), PCB_TOOL_BASE::doInteractiveItemPlacement(), doIntersectsAreaFunc(), KIGFX::SCH_PAINTER::draw(), PCB_TUNING_PATTERN::EditCancel(), PCB_VIA_STITCH::EditCancel(), PCB_TUNING_PATTERN::EditFinish(), PCB_VIA_STITCH::EditFinish(), enclosedByAreaFunc(), DRC_ENGINE::EvalRules(), PCB_SELECTION_TOOL::FilterCollectorForHierarchy(), SCH_SELECTION_TOOL::FilterCollectorForHierarchy(), findNext(), DRC_ITEM::GetViolationLayers(), hasExactNetclassFunc(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), LIB_SYMBOL::LIB_SYMBOL(), CONVERT_TOOL::makePolysFromChainedSegs(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), LIB_SYMBOL::operator=(), BOARD_COMMIT::Push(), PAD::Recombine(), DRC_TEST_PROVIDER_CONNECTIVITY::Run(), SCH_EDIT_FRAME::SaveCopyInUndoList(), SCH_IO_KICAD_SEXPR::saveTable(), PAD::SetAttribute(), PCB_VIA::SetBottomLayer(), BOARD_CONNECTED_ITEM::SetLayer(), PCB_VIA::SetLayerPair(), PAD::SetLayerSet(), BOARD_CONNECTED_ITEM::SetNetCode(), PCB_VIA::SetTopLayer(), DS_DATA_ITEM::SyncDrawItems(), DS_DATA_ITEM_BITMAP::SyncDrawItems(), DS_DATA_ITEM_POLYGONS::SyncDrawItems(), CONNECTIVITY_DATA::TestTrackEndpointDangling(), PCB_TUNING_PATTERN::Update(), PCB_VIA_STACK::Update(), and PCB_VIA_STITCH::Update().
|
inlinevirtualinherited |
Similar to GetPosition() but allows items to return their visual center rather than their anchor.
Reimplemented in BOARD, PCB_ARC, PCB_SHAPE, and PCB_TRACK.
Definition at line 355 of file eda_item.h.
References GetPosition().
Referenced by SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), and test::DRC_TEST_PROVIDER_DIFF_PAIR_COUPLING::Run().
|
inherited |
If we just need the cached version of the font files, we can use this function which is const and will not update the font files.
Definition at line 644 of file embedded_files.cpp.
References m_fontFiles.
Referenced by SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic().
|
inherited |
Definition at line 169 of file board_item.cpp.
References KIFONT::METRICS::Default().
Referenced by FEATURES_MANAGER::AddText(), BOARD_ADAPTER::addText(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::drawDrillSymbol(), PCB_TEXT::getFontMetrics(), PCB_TEXTBOX::getFontMetrics(), BRDITEMS_PLOTTER::PlotBoardGraphicItem(), BRDITEMS_PLOTTER::PlotDimension(), BRDITEMS_PLOTTER::PlotFootprintGraphicItems(), BRDITEMS_PLOTTER::PlotFootprintTextItems(), PCB_TEXT::TransformTextToPolySet(), and PCB_TEXTBOX::TransformTextToPolySet().
|
overridevirtual |
Get a list of outline fonts referenced in the footprint.
Reimplemented from EMBEDDED_FILES.
Definition at line 5401 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), fonts, KIFONT::OUTLINE_FONT::GetEmbeddingPermission(), GetFields(), GraphicalItems(), KIFONT::FONT::IsOutline(), and text.
Referenced by EmbedFonts().
|
inlinevirtualinherited |
For items with footprint fields.
Reimplemented in LIB_SYMBOL.
Definition at line 68 of file lib_tree_item.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), DIALOG_FOOTPRINT_FIELDS_TABLE::LoadFieldNames(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
| FOOTPRINT_TYPE FOOTPRINT::GetFootprintType | ( | ) | const |
Definition at line 2132 of file footprint.cpp.
References FP_SMD, FP_THROUGH_HOLE, m_attributes, SMD, THROUGH_HOLE, and UNSPECIFIED.
Referenced by FOOTPRINT_DESC::FOOTPRINT_DESC(), and GetTypeName().
|
inlineinherited |
Definition at line 167 of file view_item.h.
References m_forcedTransparency.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::getRenderColor(), EDA_ITEM::operator=(), ZONE_PAINTER::PCB_PAINTER(), and LIB_SYMBOL::SetParent().
|
inline |
Definition at line 473 of file footprint.h.
References m_fpid.
Referenced by COMPONENTS_MANAGER::AddComponent(), FOOTPRINT_EDIT_FRAME::AddFootprintToBoard(), BASIC_FOOTPRINT_INFO::BASIC_FOOTPRINT_INFO(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EXPORTER_STEP::buildFootprint3DShapes(), FOOTPRINT_EDIT_FRAME::ClearModify(), GENCAD_EXPORTER::createDevicesSection(), BOARD_INSPECTION_TOOL::DiffFootprint(), PCBNEW_JOBS_HANDLER::doFpExportSvg(), doPushPadProperties(), FOOTPRINT_EDIT_FRAME::DuplicateFootprint(), FOOTPRINT_EDIT_FRAME::editFootprintProperties(), FOOTPRINT_EDITOR_CONTROL::editFootprintPropertiesFromLibrary(), BOARD_EDITOR_CONTROL::EditFpInFpEditor(), FOOTPRINT_LIBRARY_ADAPTER::enumerateLibrary(), BOARD::ExchangeFootprint(), FOOTPRINT_EDIT_FRAME::ExportFootprint(), FOOTPRINT_EDITOR_CONTROL::ExportFootprintAsSVG(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), PCB_IO_KICAD_SEXPR::FootprintSave(), PCB_IO_KICAD_SEXPR::format(), PLACE_FILE_EXPORTER::GenPositionData(), FOOTPRINT_EDIT_FRAME::GetLoadedFPID(), GetMsgPanelInfo(), FOOTPRINT_SEARCH_HANDLER::getResultCell(), idf_export_footprint(), DIALOG_EXCHANGE_FOOTPRINTS::isMatch(), TMATCH::COMPONENT::IsSameKind(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), PCB_IO_KICAD_LEGACY::loadFP_SHAPE(), LoadNetlistFootprints(), PCB_IO_KICAD_LEGACY::loadPAD(), DSN::SPECCTRA_DB::makeIMAGE(), matchBySymbolInstancePath(), FOOTPRINT_EDITOR_CONTROL::NewFootprint(), PCB_BASE_FRAME::OnFpChangeDebounceTimer(), PCB_IO_EAGLE::packageText(), FOOTPRINT_EDIT_FRAME::prepareFootprintTabHandoff(), DIALOG_EXCHANGE_FOOTPRINTS::processFootprint(), FOOTPRINT_IMPORT_RECONCILER::Reconcile(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), FOOTPRINT_EDIT_FRAME::RefreshLibraryFootprintTab(), FOOTPRINT_EDIT_FRAME::ReloadFootprint(), FOOTPRINT_VIEWER_FRAME::ReloadFootprint(), BOARD_NETLIST_UPDATER::replaceFootprint(), FOOTPRINT_EDIT_FRAME::SaveFootprint(), FOOTPRINT_LIBRARY_ADAPTER::SaveFootprint(), FOOTPRINT_EDIT_FRAME::SaveFootprintAs(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), HEADLESS_FOOTPRINT_CONTEXT::SaveFootprintInLibrary(), SerializeDefinition(), PCB_BASE_FRAME::setFPWatcher(), PCB_EDIT_FRAME::ShowFootprintPropertiesDialog(), BOARD_NETLIST_UPDATER::testConnectivity(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), DIALOG_LIB_FOOTPRINT_FIELDS_TABLE::TransferDataFromWindow(), FOOTPRINT_EDITOR_CONTROL::tryToSaveFootprintInLibrary(), BOARD_NETLIST_UPDATER::updateFootprintParameters(), and FOOTPRINT_EDIT_FRAME::updateInfoBar().
|
inline |
Definition at line 479 of file footprint.h.
References m_fpid.
Referenced by DisambiguateItemDescription(), FOOTPRINT_DESC::FOOTPRINT_DESC(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValueForVariant(), Matches(), TMATCH::COMPONENT::MatchesWith(), FOOTPRINT_LIBRARY_ADAPTER::SaveFootprint(), testFootprintSelector(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
| BOX2I FOOTPRINT::GetFpPadsLocalBbox | ( | ) | const |
Return the bounding box containing pads when the footprint is on the front side, orientation 0, position 0,0.
Mainly used in Gerber place file to draw a footprint outline when the courtyard is missing or broken.
Definition at line 2176 of file footprint.cpp.
References ANGLE_0, dummy, FOOTPRINT(), BOX2< Vec >::Merge(), pad, and TOP_BOTTOM.
|
inherited |
Definition at line 415 of file board_item.cpp.
References GetParentFootprint(), and EDA_ITEM::GetPosition().
Referenced by PCB_IO_IPC2581::addLocationNode(), PCB_IO_IPC2581::addPackage(), EDA_DATA::PACKAGE::AddPin(), CHECK_SHAPE_LIBPOS_MIRROR(), PCB_IO_KICAD_SEXPR::format(), PCB_FIELDS_GRID_TABLE::GetValue(), FOOTPRINT::cmp_drawings::operator()(), FOOTPRINT::cmp_pads::operator()(), padNeedsUpdate(), processTextItem(), and PCB_FIELDS_GRID_TABLE::SetValue().
|
virtualinherited |
Reimplemented in PCB_SHAPE, PCB_TABLECELL, PCB_TEXTBOX, PCB_TRACK, PCB_TUNING_PATTERN, PCB_VIA_STACK, PCB_VIA_STITCH, SCH_DIRECTIVE_LABEL, SCH_FIELD, SCH_GLOBALLABEL, SCH_HIERLABEL, SCH_LABEL, SCH_LINE, SCH_PIN, SCH_RULE_AREA, SCH_SHEET_PIN, SCH_TEXT, and ZONE.
Definition at line 565 of file eda_item.cpp.
References GetTypeDesc().
Referenced by API_HANDLER_BOARD::createItemForType(), API_HANDLER_SCH::createItemForType(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), and PROPERTIES_PANEL::rebuildProperties().
|
inline |
Return the initial comments block or NULL if none, without transfer of ownership.
Definition at line 1360 of file footprint.h.
References m_initial_comments.
Referenced by PCB_IO_KICAD_SEXPR::format().
|
overridevirtual |
Return a user-visible description string of this item.
This description is used in disambiguation menus, the message panel, ERC/DRC reports, etc.
The default version of this function raises an assertion in the debug mode and returns a string to indicate that it was not overridden to provide the object specific text.
| aLong | indicates a long string is acceptable |
Reimplemented from EDA_ITEM.
Definition at line 3225 of file footprint.cpp.
References _, and GetReference().
Referenced by DisambiguateItemDescription(), and DRC_ENGINE::EvalRules().
| std::optional< const std::set< wxString > > FOOTPRINT::GetJumperPadGroup | ( | const wxString & | aPadNumber | ) | const |
Retrieves the jumper group containing the specified pad number, if one exists.
Definition at line 4000 of file footprint.cpp.
References group, and m_jumperPadGroups.
|
inline |
Definition at line 493 of file footprint.h.
References m_keywords.
Referenced by LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), BASIC_FOOTPRINT_INFO::BASIC_FOOTPRINT_INFO(), KI_TEST::CheckFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), PCB_IO_KICAD_SEXPR::format(), LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValue(), GetMsgPanelInfo(), GetSearchTerms(), Matches(), and SerializeDefinition().
|
inlineoverridevirtual |
Return the primary layer this item is on.
Reimplemented from BOARD_ITEM.
Definition at line 449 of file footprint.h.
References BOARD_ITEM::m_layer.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EXPORTER_STEP::buildFootprint3DShapes(), AR_AUTOPLACER::buildFpAreas(), CHAIN_TOPOLOGY::CHAIN_TOPOLOGY(), PCB_GRID_HELPER::computeAnchors(), BOARD::ExchangeFootprint(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), KICAD_DIFF::ExtractFootprintGeometry(), PCB_SELECTION_TOOL::FilterCollectorForFootprints(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), FitsEnabledLayers(), Flip(), FOOTPRINT_DESC::FOOTPRINT_DESC(), PCB_IO_KICAD_SEXPR::FootprintSave(), PCB_IO_KICAD_SEXPR::format(), DSN::SPECCTRA_DB::FromSESSION(), PCB_IO_IPC2581::generateLayerSetNet(), AR_AUTOPLACER::genModuleOnRoutingMatrix(), AR_AUTOPLACER::getOptimalFPPlacement(), GetSide(), idf_export_footprint(), IsFlipped(), PAD::IsFlipped(), LENGTH_DELAY_CALCULATION::optimiseVias(), PCB_IO_EAGLE::packagePad(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), PCB_TEXT::PCB_TEXT(), Serialize(), SetLayerAndFlip(), AR_AUTOPLACER::testFootprintOnBoard(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
Return the bounding box of the footprint on a given set of layers.
Definition at line 2383 of file footprint.cpp.
References BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), BOARD_ITEM::GetBoard(), IsValidLayer(), m_drawings, m_pads, m_points, m_privateLayers, m_zones, BOX2< Vec >::Merge(), pad, and PCB_REFERENCE_IMAGE_T.
Referenced by PCB_SELECTION_TOOL::FilterCollectorForFootprints(), PCB_IO_EASYEDAPRO_PARSER::ParseFootprint(), and PCB_IO_EASYEDAPRO_V3_PARSER::ParseFootprint().
|
inherited |
Return the name of the PCB layer on which the item resides.
Definition at line 225 of file board_item.cpp.
References BOARD, GetBoard(), BOARD::GetStandardLayerName(), and m_layer.
Referenced by PCB_BARCODE::GetItemDescription(), PCB_DIMENSION_BASE::GetItemDescription(), PCB_DRILL_MAP::GetItemDescription(), PCB_SHAPE::GetItemDescription(), PCB_TEXT::GetItemDescription(), PCB_TEXTBOX::GetItemDescription(), PCB_TRACK::GetItemDescription(), PCB_BARCODE::GetMsgPanelInfo(), PCB_DIM_LEADER::GetMsgPanelInfo(), PCB_DIMENSION_BASE::GetMsgPanelInfo(), PCB_DRILL_CHART::GetMsgPanelInfo(), PCB_DRILL_MAP::GetMsgPanelInfo(), PCB_POINT::GetMsgPanelInfo(), PCB_SHAPE::GetMsgPanelInfo(), PCB_TABLECELL::GetMsgPanelInfo(), PCB_TARGET::GetMsgPanelInfo(), PCB_TEXT::GetMsgPanelInfo(), PCB_TEXTBOX::GetMsgPanelInfo(), ZONE::GetMsgPanelInfo(), FOOTPRINT_SEARCH_HANDLER::getResultCell(), TEXT_SEARCH_HANDLER::getResultCell(), PCB_FIELD::GetShownText(), PCB_TABLECELL::GetShownText(), PCB_TEXT::GetShownText(), PCB_TEXTBOX::GetShownText(), PCB_FIELDS_GRID_TABLE::GetValue(), FABMASTER::loadZone(), and FOOTPRINT::ResolveTextVar().
|
inlinevirtualinherited |
Return a std::bitset of all layers on which the item physically resides.
Reimplemented in BOARD, PAD, PCB_BOARD_OUTLINE, PCB_GENERATOR, PCB_GRID_ITEM, PCB_GROUP, PCB_SHAPE, PCB_TRACK, PCB_VIA, and ZONE.
Definition at line 346 of file board_item.h.
References m_layer, and UNDEFINED_LAYER.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), collidesWithArea(), PCB_GRID_HELPER::computeAnchors(), DIALOG_GLOBAL_DELETION::DoGlobalDeletions(), doIntersectsAreaFunc(), KIGFX::PCB_PAINTER::Draw(), enclosedByAreaFunc(), DRC_ENGINE::EvalRules(), existsOnLayerFunc(), FindSnapGraphic(), FindSnapPad(), FindSnapTrack(), FitsEnabledLayers(), LAYER_UTILS::GetAllFootprintLayers(), getBoardNormalizedLayerSet(), hash_board_item(), PNS_KICAD_IFACE::IsItemVisible(), isMaskAperture(), IsOnCopperLayer(), IsSideSpecific(), ItemHasDRCViolation(), LayerMaskDescribe(), PCB_POINT_EDITOR::OnSelectionChange(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), BOARD_ITEM::ptr_cmp::operator()(), CN_VISITOR::operator()(), KI_TEST::kitest_cmp_drawings::operator()(), ZONE_PAINTER::PCB_PAINTER(), DRC_ENGINE::ProcessAssertions(), BOARD_COMMIT::propagateDamage(), EDIT_TOOL::Properties(), PCB_SELECTION_TOOL::pruneObscuredSelectionCandidates(), BOARD::RemoveAllItemsOnLayer(), BOARD_INSPECTION_TOOL::reportClearance(), PCB_GRID_HELPER::ResolveSnap(), PCB_GRID_HELPER::ResolveSnap(), DRC_TEST_PROVIDER_DISALLOW::Run(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::Run(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::Run(), ITEM_EVAL_EXPECTATION::RunTest(), PCB_SELECTION_CONDITIONS::sameLayerFunc(), SCOPED_LAYERSET::SCOPED_LAYERSET(), POINT_PLACER::SnapItem(), stackupNeedsUpdate(), GLOBAL_EDIT_TOOL::swapBoardItem(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstZones(), DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow(), FOOTPRINT_EDIT_FRAME::updateEnabledLayers(), and PCB_CONTROL::UpdateMessagePanel().
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 483 of file footprint.h.
References m_fpid.
Referenced by GetSearchTerms().
|
inline |
Definition at line 490 of file footprint.h.
References m_libDescription.
Referenced by LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), BASIC_FOOTPRINT_INFO::BASIC_FOOTPRINT_INFO(), KI_TEST::CheckFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), PCB_IO_KICAD_SEXPR::format(), GetDesc(), GetFootprintDocumentationURL(), LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValue(), GetMsgPanelInfo(), FOOTPRINT_SEARCH_HANDLER::getResultCell(), GetSearchTerms(), Matches(), and SerializeDefinition().
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 485 of file footprint.h.
References m_fpid.
Referenced by GetMsgPanelInfo(), and GetSearchTerms().
| int FOOTPRINT::GetLikelyAttribute | ( | ) | const |
Returns the most likely attribute based on pads Either FP_THROUGH_HOLE/FP_SMD/OTHER(0)
Definition at line 2066 of file footprint.cpp.
References BGA, CASTELLATED, FIDUCIAL_GLBL, FIDUCIAL_LOCAL, FP_SMD, FP_THROUGH_HOLE, HEATSINK, m_pads, MECHANICAL, NONE, pad, PRESSFIT, PTH, SMD, and TESTPOINT.
Referenced by CheckFootprintAttributes().
|
inline |
Definition at line 1258 of file footprint.h.
References m_link.
Referenced by FOOTPRINT_EDIT_FRAME::IsCurrentFPFromBoard(), FOOTPRINT_EDIT_FRAME::prepareFootprintTabHandoff(), FOOTPRINT_EDIT_FRAME::SaveFootprint(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), and FOOTPRINT_EDIT_FRAME::setupUIConditions().
|
inline |
Definition at line 519 of file footprint.h.
References m_clearance.
Referenced by BOARD::ExchangeFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::format(), GetClearanceOverrides(), and Serialize().
|
inline |
Definition at line 577 of file footprint.h.
References _, GetReference(), and m_clearance.
|
inline |
Definition at line 522 of file footprint.h.
References m_solderMaskMargin.
Referenced by BOARD::ExchangeFootprint(), FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::format(), and Serialize().
|
inline |
Definition at line 525 of file footprint.h.
References m_solderPasteMargin.
Referenced by BOARD::ExchangeFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::format(), and Serialize().
|
inline |
Definition at line 528 of file footprint.h.
References m_solderPasteMarginRatio.
Referenced by BOARD::ExchangeFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::format(), and Serialize().
|
inline |
Definition at line 532 of file footprint.h.
References m_zoneConnection.
Referenced by DRC_ENGINE::EvalRules(), BOARD::ExchangeFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::format(), and Serialize().
|
inherited |
Definition at line 175 of file board_item.cpp.
References ARC_HIGH_DEF, BOARD, and GetBoard().
Referenced by STEP_PCB_MODEL::AddPadShape(), BOARD_ADAPTER::addShape(), BOARD_ADAPTER::addShape(), PCB_IO_IPC2581::addShape(), BOARD_ADAPTER::addText(), DSN::appendPadstackShape(), PAD::BuildEffectivePolygon(), PAD::buildEffectiveShape(), EXPORTER_STEP::buildFootprint3DShapes(), EXPORTER_STEP::buildGraphic3DShape(), ZONE::BuildSmoothedPoly(), EXPORTER_STEP::buildTrack3DShape(), FOOTPRINT::CheckNetTies(), PCB_BARCODE::ComputeTextPoly(), BOARD_ADAPTER::createLayers(), CONVERT_TOOL::CreateLines(), BOARD_ADAPTER::createPadWithMargin(), BOARD_ADAPTER::createTrackWithMargin(), PAD::doCheckPad(), KIGFX::PCB_PAINTER::draw(), PCB_TEXT::GetEffectiveShape(), PCB_SHAPE::getMaxError(), PCB_POINT_EDITOR::makePoints(), CONVERT_TOOL::makePolysFromClosedGraphics(), CONVERT_TOOL::makePolysFromOpenGraphics(), PAD::MergePrimitivesAsPolygon(), BRDITEMS_PLOTTER::PlotShape(), process(), processClosedShape(), OUTSET_ROUTINE::ProcessItem(), CONSTRAINT_OVERLAY::render(), PNS_KICAD_IFACE_BASE::syncBarcode(), PNS_KICAD_IFACE_BASE::syncDimension(), PNS_KICAD_IFACE_BASE::syncTextItem(), ZONE::TransformSmoothedOutlineToPolygon(), and GENCAD_EXPORTER::writePadShape().
|
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 3244 of file footprint.cpp.
References module.
|
overridevirtual |
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
| aFrame | is the EDA_DRAW_FRAME that displays the message panel |
| aList | is the list to populate. |
Reimplemented from EDA_ITEM.
Definition at line 2585 of file footprint.cpp.
References _, B_Cu, BOARD_ITEM::BOARD, F_Cu, FRAME_FOOTPRINT_CHOOSER, FRAME_FOOTPRINT_EDITOR, FRAME_FOOTPRINT_VIEWER, BOARD_ITEM::GetBoard(), GetDefaultFieldName(), GetDNPForVariant(), GetExcludedFromBOMForVariant(), GetExcludedFromPosFilesForVariant(), GetExcludedFromSimForVariant(), GetFieldValueForVariant(), GetFPID(), GetKeywords(), GetLibDescription(), GetLibNickname(), GetNumberedPadCount(), GetOrientation(), GetSide(), IsBoardOnly(), IsLocked(), IsPlaced(), EDA_BASE_FRAME::IsType(), m_3D_Drawings, m_componentClassCacheProxy, m_fpid, m_keywords, m_libDescription, Reference(), UnescapeString(), UNTRANSLATED, and VALUE.
Referenced by PCB_CONTROL::UpdateMessagePanel(), DISPLAY_FOOTPRINTS_FRAME::UpdateMsgPanel(), and FOOTPRINT_EDIT_FRAME::UpdateMsgPanel().
|
inlineoverridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 484 of file footprint.h.
References m_fpid.
Referenced by LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getItemIdentifier(), LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValue(), and GetSearchTerms().
|
inline |
Get the set of net codes that are allowed to connect to a footprint item.
Definition at line 795 of file footprint.h.
References BOARD_ITEM::BOARD_ITEM(), and m_netTieCache.
Referenced by DRC_ENGINE::EvalRules(), and DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems().
|
inline |
Definition at line 608 of file footprint.h.
References m_netTiePadGroups.
Referenced by FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::format(), and SerializeDefinition().
Definition at line 4563 of file footprint.cpp.
References PAD::GetNumber(), m_pads, MapPadNumbersToNetTieGroups(), and pad.
Referenced by CheckShortingPads(), and DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone().
| int FOOTPRINT::GetNextFieldOrdinal | ( | ) | const |
Return the next ordinal for a user field for this footprint.
Definition at line 1006 of file footprint.cpp.
References m_fields.
Referenced by PCB_FIELD::PCB_FIELD(), and CLIPBOARD_IO::SaveSelection().
| wxString FOOTPRINT::GetNextPadNumber | ( | const wxString & | aLastPadName | ) | const |
Definition at line 3980 of file footprint.cpp.
References UTIL::GetRefDesPrefix(), GetTrailingInt(), m_pads, and pad.
Referenced by EDIT_TOOL::Duplicate().
| unsigned FOOTPRINT::GetNumberedPadCount | ( | ) | const |
Return the number of unique pads whose pad number represents an electrical pin.
A pad number is considered electrical if it is either purely numeric (e.g. "1", "42") or follows the BGA/alphanumeric convention of up to two letters followed by one or more digits (e.g. "A1", "B12", "AA3"). This deliberately excludes mounting-pad designators such as "MP" that carry no signal connection.
Definition at line 3012 of file footprint.cpp.
References LSET::AllCuMask(), m_pads, NPTH, and pad.
Referenced by GetMsgPanelInfo(), GetPinCount(), and FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList().
|
inline |
Definition at line 438 of file footprint.h.
References m_transform.
Referenced by COMPONENTS_MANAGER::AddComponent(), PCAD2KICAD::PCAD_ARC::AddToBoard(), PCAD2KICAD::PCAD_LINE::AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EXPORTER_STEP::buildFootprint3DShapes(), buildPadBoundingBox(), CalcPlaceholderLocalBox(), KI_TEST::CheckFootprint(), ComputeFootprintShift(), ALTIUM_PCB::ConvertComponentBody6ToFootprintItem(), doPushPadProperties(), KI_TEST::DrawArc(), KI_TEST::DrawSegment(), BOARD::ExchangeFootprint(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), GENCAD_EXPORTER::footprintWriteShape(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), RENDER_3D_OPENGL::get3dModelsFromFootprint(), GetMsgPanelInfo(), PAD::GetMsgPanelInfo(), PCB_FIELDS_GRID_TABLE::GetValue(), hash_fp_item(), idf_export_footprint(), PAD::ImportSettingsFrom(), PCB_IO_KICAD_LEGACY::loadFP_SHAPE(), DSN::SPECCTRA_DB::makeIMAGE(), DSN::mapPt(), MoveAnchorPosition(), PCB_IO_EAGLE::packageCircle(), PCB_IO_EAGLE::packagePolygon(), PCB_IO_EAGLE::packageRectangle(), PCB_IO_EAGLE::packageWire(), ALTIUM_PCB::ParseComponentsBodies6Data(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_TEXT_effects(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), pasteFootprintItemsToFootprintEditor(), Rotate(), PCB_FIELDS_GRID_TABLE::SetValue(), EDIT_TOOL::Swap(), PCB_IO_EAGLE::transferPad(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 468 of file footprint.h.
References m_transform.
Referenced by MULTICHANNEL_TOOL::copyRuleAreaContents(), FOOTPRINT_DESC::FOOTPRINT_DESC(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), and Serialize().
| PAD * FOOTPRINT::GetPad | ( | const VECTOR2I & | aPosition, |
| const LSET & | aLayerMask = LSET::AllLayersMask() ) |
Get a pad at aPosition on aLayerMask in the footprint.
| aPosition | A VECTOR2I object containing the position to hit test. |
| aLayerMask | A layer or layers to mask the hit test. |
Definition at line 2950 of file footprint.cpp.
| unsigned FOOTPRINT::GetPadCount | ( | ) | const |
Definition at line 2982 of file footprint.cpp.
References m_pads.
Referenced by AR_AUTOPLACER::genModuleOnRoutingMatrix(), PCB_IO_IPC2581::pinName(), sortFootprintsByComplexity(), and AR_AUTOPLACER::testFootprintOnBoard().
| std::vector< const PAD * > FOOTPRINT::GetPads | ( | const wxString & | aPadNumber, |
| const PAD * | aIgnore = nullptr ) const |
Definition at line 2966 of file footprint.cpp.
Referenced by MULTICHANNEL_TOOL::fixupNet().
|
inlineinherited |
Definition at line 266 of file board_item.h.
References EDA_ITEM::m_parent.
Referenced by BOOST_AUTO_TEST_CASE(), ZONE::Clone(), FOOTPRINT::CoverageRatio(), BOARD_ADAPTER::createTrackWithMargin(), EDIT_TOOL::DeleteItems(), DeleteStructure(), KICAD_DIFF::PCB_DIFFER::diffProperties(), doIntersectsAreaFunc(), KIGFX::PCB_PAINTER::draw(), enclosedByAreaFunc(), PCB_SELECTION_TOOL::extendTableCellSelectionTo(), PCB_SELECTION_TOOL::FilterCollectorForFreePads(), PCB_SELECTION_TOOL::FilterCollectorForTableCells(), PCB_SHAPE::Flip(), getClosestGroup(), PCB_TABLECELL::GetColumn(), PCB_TABLECELL::GetColumnWidth(), PCB_SHAPE::GetLibraryBezierC1(), PCB_SHAPE::GetLibraryBezierC2(), PCB_SHAPE::GetLibraryPolyShape(), PCBEXPR_VAR_REF::GetObject(), PCB_TABLECELL::GetParentGroup(), PCB_TABLECELL::GetRow(), PCB_TABLECELL::GetRowHeight(), DRC_RTREE::Insert(), PAD::IsLocked(), PCB_SELECTION_TOOL::itemPassesFilter(), KICAD_DIFF::PCB_DIFFER::itemRefdes(), memberOfGroupFunc(), EDIT_TOOL::MoveExact(), moveSelectionBy(), PAD::operator==(), PAD::PAD(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_TEXT_effects(), PCB_BOARD_OUTLINE::PCB_BOARD_OUTLINE(), PCB_FIELD::PCB_FIELD(), PCB_FIELD::PCB_FIELD(), PCB_TABLECELL_DESC::PCB_TABLECELL_DESC(), PCB_VIA::PCB_VIA(), BRDITEMS_PLOTTER::PlotBarCode(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), PCB_SELECTION_TOOL::pruneObscuredSelectionCandidates(), SPRINT_LAYOUT_PARSER::resolveGroups(), PCB_GRID_HELPER::ResolveSnap(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::Run(), ITEM_EVAL_EXPECTATION::RunTest(), PCB_TABLECELL::SetColumnWidth(), PCB_TABLECELL::SetRowHeight(), PAD::Similarity(), PCB_BOARD_OUTLINE::Similarity(), SwapItemData(), PCB_SHAPE::syncLibCoords(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem(), PCB_SELECTION_TOOL::toggleTableCellSelection(), PCB_SHAPE::transformFp(), KIGFX::PCB_VIEW::Update(), and PCB_PROPERTIES_PANEL::valueChanged().
|
inherited |
For "parent" property.
Definition at line 451 of file board_item.cpp.
References EDA_ITEM::m_parent.
Referenced by BOARD_ITEM_DESC::BOARD_ITEM_DESC().
|
inherited |
Definition at line 112 of file board_item.cpp.
References EDA_ITEM::findParent(), and PCB_FOOTPRINT_T.
Referenced by CN_CONNECTIVITY_ALGO::Add(), PCB_IO_IPC2581::addPad(), FEATURES_MANAGER::AddPadShape(), STEP_PCB_MODEL::AddPadShape(), PCB_CONTROL::AppendBoard(), PCB_IO_KICAD_SEXPR_PARSER::bakeTextBoxLib(), BOOST_FIXTURE_TEST_CASE(), PCB_GROUP_TOOL::canGroupItem(), CHAIN_TOPOLOGY::CHAIN_TOPOLOGY(), DRC_TEST_PROVIDER_SOLDER_MASK::checkItemMask(), collidesWithArea(), ZONE::computeBoundingBox(), computeConstraint(), PCB_BARCODE::ComputeTextPoly(), DIALOG_TRACK_VIA_PROPERTIES::confirmPadChange(), ConstraintItemIsLocked(), CONVERT_TOOL::CreatePolys(), customPropertyFunc(), EDIT_TOOL::DeleteItems(), PCB_BARCODE::Deserialize(), doPushPadProperties(), KIGFX::PCB_PAINTER::Draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), EDIT_TOOL::Duplicate(), enclosedByAreaFunc(), DRC_ENGINE::EvalRules(), PCB_SELECTION_TOOL::FilterCollectorForHierarchy(), findOverlappingPairs(), MULTICHANNEL_TOOL::fixupNet(), PAD::Flip(), PCB_BARCODE::Flip(), PCB_POINT::Flip(), PCB_TABLE::Flip(), PCB_TEXT::Flip(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_IPC2581::generateLayerSetNet(), PCB_BARCODE::GetAngle(), ZONE::GetBoardOutline(), PAD::GetClearanceOverrides(), PCB_BASE_EDIT_FRAME::GetContextualTextVars(), PCB_TEXT::GetDrawRotation(), ZONE::GetEffectiveShape(), PCB_DIMENSION_BASE::GetEnd(), GetFPRelativePosition(), PCB_SHAPE::getHatchingKnockouts(), ZONE::GetHatchLines(), ZONE::GetInteractingZones(), PAD::GetItemDescription(), PCB_FIELD::GetItemDescription(), PCB_SHAPE::GetItemDescription(), PCB_TEXT::GetItemDescription(), PCB_SHAPE::GetMenuImage(), PCB_BARCODE::GetMsgPanelInfo(), PCB_SHAPE::GetMsgPanelInfo(), PCB_TEXT::GetMsgPanelInfo(), PAD::GetOffset(), PAD::GetOrientation(), PAD::GetPosition(), PCB_BARCODE::GetPosition(), PAD::GetPrimaryDrillSize(), PAD::GetPrimitiveLibScale(), ALIGN_DISTRIBUTE_TOOL::GetSelections(), PCB_FIELD::GetShownText(), PCB_TABLECELL::GetShownText(), PCB_TEXT::GetShownText(), PCB_TEXTBOX::GetShownText(), PAD::GetSize(), PAD::GetSolderMaskExpansion(), PAD::GetSolderPasteMargin(), PCB_DIMENSION_BASE::GetStart(), PCB_TEXT::GetTextAngle(), PCB_TEXTBOX::GetTextAngle(), PCB_TEXT::GetTextPos(), PCB_TEXT::GetTextSize(), PCB_TEXTBOX::GetTextSize(), PCB_TEXT::GetTextThickness(), PCB_TEXTBOX::GetTextThickness(), PCB_FIELDS_GRID_TABLE::GetValue(), PCBEXPR_COMPONENT_CLASS_REF::GetValue(), PCBEXPR_VAR_REF::GetValue(), PAD::GetZoneConnectionOverrides(), PCB_SELECTION_TOOL::grabUnconnected(), hasComponentClassFunc(), hasCustomPropertyFunc(), hash_fp_item(), BOARD::HasItemsOnLayer(), PCB_SELECTION_TOOL::HasLockedDescendant(), ZONE::HitTestCutout(), ZONE::HitTestFilledArea(), ZONE::HitTestForCorner(), ZONE::HitTestForEdge(), PAD::ImportSettingsFrom(), GENERAL_COLLECTOR::Inspect(), PCB_SHAPE::IsConnected(), CONNECTIVITY_DATA::IsConnectedOnLayer(), PAD::IsFlipped(), PNS_PCBNEW_RULE_RESOLVER::IsInNetTie(), PNS_PCBNEW_RULE_RESOLVER::IsKeepout(), DRC_ENGINE::IsNetTieExclusion(), PNS_PCBNEW_RULE_RESOLVER::IsNetTieExclusion(), ItemHasDRCViolation(), PCB_SELECTION_TOOL::itemPassesFilter(), DRC_TEST_PROVIDER_SOLDER_MASK::maskApertureBridgeExcluded(), memberOfFootprintFunc(), memberOfSheetFunc(), memberOfSheetOrChildrenFunc(), PCB_DIMENSION_BASE::Mirror(), ZONE::Mirror(), BOARD::Move(), PCB_BARCODE::Move(), PCB_DIMENSION_BASE::Move(), ZONE::Move(), ZONE::MoveEdge(), PCB_TEXT::Offset(), PCB_GRID_HELPER::OnBoardItemRemoved(), ARRAY_TOOL::onDialogClosed(), PAD::OnFootprintTransformed(), PCB_TEXTBOX::OnFootprintTransformed(), PCB_EDIT_FRAME::onVariantSelected(), LENGTH_DELAY_CALCULATION::optimiseVias(), padNeedsUpdate(), PCB_IO_IPC2581::pinName(), BRDITEMS_PLOTTER::PlotPad(), BRDITEMS_PLOTTER::PlotShape(), BRDITEMS_PLOTTER::PlotTableBorders(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), BOARD_COMMIT::Push(), PAD_TOOL::pushPadSettings(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), PCB_GRID_HELPER::queryVisible(), PAD::rebakePrimitiveToFootprint(), PAD::Recombine(), PCB_POINT::recomputePosition(), DRC_TEST_PROVIDER_SOLDER_MASK::recordMaskAperture(), refOfSolid(), BOARD::RemoveAllItemsOnLayer(), DRC_TEST_PROVIDER_SOLDER_MASK::reportMaskApertureBridges(), PCB_IO_KICAD_SEXPR_PARSER::resolveConstraints(), PCB_IO_KICAD_SEXPR_PARSER::resolveGroups(), PCB_GRID_HELPER::ResolveSnap(), BOARD_COMMIT::Revert(), PCB_BARCODE::Rotate(), PCB_DIMENSION_BASE::Rotate(), PCB_TEXTBOX::Rotate(), ZONE::Rotate(), DRC_CACHE_GENERATOR::Run(), DRC_TEST_PROVIDER_DISALLOW::Run(), DRC_TEST_PROVIDER_SILK_CLEARANCE::Run(), PAD::SameLogicalPadAs(), CLIPBOARD_IO::SaveSelection(), PCB_EDIT_FRAME::SaveSelectionAsDesignBlock(), PCB_SELECTION_TOOL::Selectable(), PCB_EDIT_FRAME::SendCrossProbeItem(), PAD::Serialize(), PCB_BARCODE::Serialize(), PCB_DIMENSION_BASE::Serialize(), PCB_GROUP::Serialize(), PCB_POINT::Serialize(), PCB_REFERENCE_IMAGE::Serialize(), PCB_SHAPE::Serialize(), PCB_TABLE::Serialize(), PCB_TEXT::Serialize(), PCB_TEXTBOX::Serialize(), ZONE::Serialize(), SetDimensionValueMode(), PCB_DIMENSION_BASE::SetEnd(), PAD::SetFPRelativeOrientation(), SetFPRelativePosition(), PAD::SetOffset(), PAD::SetOrientation(), PAD::SetPosition(), PCB_POINT::SetPosition(), PAD::SetPrimaryDrillSize(), PAD::SetSize(), PCB_DIMENSION_BASE::SetStart(), PCB_TEXT::SetTextAngle(), PCB_TEXT::SetTextSize(), PCB_TEXTBOX::SetTextSize(), PCB_TEXT::SetTextThickness(), PCB_TEXTBOX::SetTextThickness(), PCB_FIELDS_GRID_TABLE::SetValue(), PAD::SharesNetTieGroup(), BOARD_COMMIT::Stage(), PCB_TEXT::StyleFromSettings(), PCB_TEXTBOX::StyleFromSettings(), PCB_TEXTBOX::syncLibCoords(), PNS_KICAD_IFACE_BASE::syncZone(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testGraphicClearances(), DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstZones(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testShapeLineChain(), PANEL_SETUP_LAYERS::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::transferDataToPad(), PCB_IO_EAGLE::transferPad(), PCB_SHAPE::transformFp(), PCB_EDIT_FRAME::UpdateDesignBlockFromSelection(), PCB_POINT_EDITOR::updateItem(), PAD::ViewGetLayers(), PCB_SHAPE::ViewGetLayers(), PCB_TEXT::ViewGetLayers(), PCB_TEXTBOX::ViewGetLayers(), PCB_FIELD::ViewGetLOD(), PCB_SHAPE::ViewGetLOD(), PCB_TEXT::ViewGetLOD(), ZONE::ViewGetLOD(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), and ZONE::ZONE().
|
inlinevirtualinherited |
Reimplemented in PCB_TABLECELL, and SCH_TABLECELL.
Definition at line 116 of file eda_item.h.
References m_group.
Referenced by EDA_GROUP::AddItem(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), MULTICHANNEL_TOOL::AutogenerateRuleAreas(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), MULTICHANNEL_TOOL::copyRuleAreaContents(), EDIT_TOOL::DeleteItems(), DIALOG_CLEANUP_TRACKS_AND_VIAS::doCleanup(), EDIT_TOOL::doMoveSelection(), BOARD_ITEM::Duplicate(), PCB_TABLE::Duplicate(), SCH_ITEM::Duplicate(), BOARD::ExchangeFootprint(), PCB_SELECTION_TOOL::FilterCollectorForHierarchy(), TRACKS_CLEANER::filterItem(), MULTICHANNEL_TOOL::GeneratePotentialRuleAreas(), GENERATOR_TOOL::GENERATOR_TOOL(), getClosestGroup(), getClosestGroup(), PCB_TABLECELL::GetParentGroup(), SCH_TABLECELL::GetParentGroup(), GetParentGroupId(), API_HANDLER_BOARD::handleCreateUpdateItemsInternal(), SCH_MOVE_TOOL::initializeMoveOperation(), isExpandableMicrovia(), isInTuningPattern(), BOARD_ITEM::IsLocked(), SCH_ITEM::IsLocked(), PCB_SELECTION_TOOL::isWithinEnteredGroup(), memberOfGroupFunc(), BOARD_EDITOR_CONTROL::modifyLockSelected(), BOARD::Move(), PCB_CONTROL::Paste(), SCH_EDITOR_CONTROL::Paste(), BOARD_COMMIT::Push(), SCH_COMMIT::pushSchEdit(), BOARD::Remove(), PNS_KICAD_IFACE::RemoveItem(), PCB_EDIT_FRAME::SaveSelectionAsDesignBlock(), SCH_EDIT_FRAME::SaveSelectionAsDesignBlock(), PCB_SELECTION_TOOL::Selectable(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), COMMIT::Stage(), BOARD_ITEM::SwapItemData(), PNS_KICAD_IFACE_BASE::syncArc(), PNS_KICAD_IFACE_BASE::syncTrack(), PNS_KICAD_IFACE_BASE::syncVia(), DIALOG_GROUP_PROPERTIES::TransferDataFromWindow(), PCB_SELECTION_TOOL::unrouteSegment(), PCB_EDIT_FRAME::UpdateDesignBlockFromSelection(), SCH_EDIT_FRAME::UpdateDesignBlockFromSelection(), BOARD_NETLIST_UPDATER::updateFootprintGroup(), BOARD_NETLIST_UPDATER::updateGroups(), DIALOG_GLOBAL_EDIT_TEARDROPS::visitItem(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem(), PCB_GROUP::WithinScope(), and SCH_GROUP::WithinScope().
|
inherited |
Definition at line 232 of file eda_item.cpp.
References GetParentGroup(), group, and niluuid.
Referenced by ITEM_PICKER::SetItem(), and ITEM_PICKER::SetLink().
|
inline |
Definition at line 496 of file footprint.h.
References m_path.
Referenced by BOOST_FIXTURE_TEST_CASE(), BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows(), PCB_SELECTION_TOOL::selectSameSheet(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inlineoverridevirtual |
The pin count for symbols or the unique pad count for footprints.
Reimplemented from LIB_TREE_ITEM.
Definition at line 487 of file footprint.h.
References GetNumberedPadCount().
|
inlineoverridevirtual |
Reimplemented from EDA_ITEM.
Definition at line 435 of file footprint.h.
References m_transform.
Referenced by COMPONENTS_MANAGER::AddComponent(), RENDER_3D_RAYTRACE_BASE::addExtrudedBodyToRaytracer(), STEP_PCB_MODEL::AddExtrudedPins(), PCB_BASE_FRAME::AddFootprintToBoard(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), PCAD2KICAD::PCAD_ARC::AddToBoard(), PCAD2KICAD::PCAD_LINE::AddToBoard(), PCAD2KICAD::PCAD_POLYGON::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToFootprint(), AutoPositionFields(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EXPORTER_STEP::buildFootprint3DShapes(), PCB_IO_PADS_BINARY::buildPad(), buildPadBoundingBox(), CalcPlaceholderLocalBox(), KI_TEST::CheckFootprint(), PNS_KICAD_IFACE::Commit(), PCB_GRID_HELPER::computeAnchors(), MULTICHANNEL_TOOL::copyRuleAreaContents(), DIPTRACE::PCB_PARSER::CreateFootprint(), EDIT_TOOL::doMoveSelection(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KI_TEST::DrawArc(), KI_TEST::DrawSegment(), BOARD::ExchangeFootprint(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), PCB_IO_KICAD_SEXPR::FootprintSave(), GENCAD_EXPORTER::footprintWriteShape(), PCB_IO_KICAD_SEXPR::format(), DSN::SPECCTRA_DB::FromSESSION(), RENDER_3D_OPENGL::get3dModelsFromFootprint(), GetBoundingHull(), AR_AUTOPLACER::getOptimalFPPlacement(), hash_fp_item(), idf_export_footprint(), FABMASTER::loadFootprints(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), PCB_IO_KICAD_LEGACY::loadFP_SHAPE(), DSN::SPECCTRA_DB::makeIMAGE(), DSN::mapPt(), PCB_IO_EAGLE::orientFootprintAndText(), PCB_IO_EAGLE::packageCircle(), PCB_IO_EAGLE::packageHole(), PCB_IO_EAGLE::packagePolygon(), PCB_IO_EAGLE::packageRectangle(), PCB_IO_EAGLE::packageWire(), ALTIUM_PCB::ParseComponentsBodies6Data(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_TEXT_effects(), PCB_TEXT::PCB_TEXT(), BOARD_EDITOR_CONTROL::PlaceFootprint(), CLIPBOARD_IO::SaveSelection(), Serialize(), SetLayerAndFlip(), SetOrientation(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), PCB_IO_EAGLE::transferPad(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 344 of file footprint.h.
References m_privateLayers.
Referenced by KIGFX::PCB_PAINTER::Draw(), PCB_IO_KICAD_SEXPR::format(), BRDITEMS_PLOTTER::PlotFootprintGraphicItems(), BRDITEMS_PLOTTER::PlotFootprintTextItems(), SerializeDefinition(), and TransformFPShapesToPolySet().
|
inline |
Definition at line 901 of file footprint.h.
References EDA_TEXT::GetText(), and Reference().
Referenced by COMPONENTS_MANAGER::AddComponent(), TMATCH::CONNECTION_GRAPH::AddFootprint(), AR_AUTOPLACER::AutoplaceFootprints(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EXPORTER_STEP::buildFootprint3DShapes(), PCB_IO_PADS_BINARY::buildPad(), KI_TEST::CheckFootprint(), CollisionMatchesExpected(), compareFootprintsbyRef(), PCB_IO_IPC2581::componentName(), DIALOG_TRACK_VIA_PROPERTIES::confirmPadChange(), ALTIUM_PCB::ConvertComponentBody6ToFootprintItem(), ALTIUM_PCB::ConvertPads6ToFootprintItemOnCopper(), ALTIUM_PCB::ConvertPads6ToFootprintItemOnNonCopper(), ALTIUM_PCB::ConvertShapeBasedRegions6ToFootprintItem(), MULTICHANNEL_TOOL::copyRuleAreaContents(), PCB_BASE_FRAME::CreateNewFootprint(), EDIT_TOOL::doMoveSelection(), BOARD_TEXT_VAR_ADAPTER::ExtractSourceKeys(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), GetExtrusionOutline(), GetItemDescription(), PAD::GetItemDescription(), PCB_FIELD::GetItemDescription(), PCB_SHAPE::GetItemDescription(), GetLocalClearance(), PAD::GetMsgPanelInfo(), PCB_BARCODE::GetMsgPanelInfo(), PCB_TEXT::GetMsgPanelInfo(), DIALOG_BOARD_REANNOTATE::GetNewRefDes(), CADSTAR_PCB_ARCHIVE_LOADER::getPadReference(), GetReferenceAsString(), GENCAD_EXPORTER::getShapeName(), GetZoneConnectionOverrides(), IncrementReference(), InvalidMatchesExpected(), IsAnnotated(), DIALOG_EXCHANGE_FOOTPRINTS::isMatch(), PCB_IO_EAGLE::loadElements(), CADSTAR_PCB_ARCHIVE_LOADER::loadNets(), EDA_3D_CANVAS::OnLeftUp(), EDA_3D_CANVAS::OnMouseMove(), PCB_IO_EAGLE::packageText(), BRDITEMS_PLOTTER::PlotPad(), BRDITEMS_PLOTTER::PlotShape(), DIALOG_EXCHANGE_FOOTPRINTS::processFootprint(), PromptConnectedPadDecision(), refOfSolid(), BOARD_NETLIST_UPDATER::replaceFootprint(), CLIPBOARD_IO::SaveSelection(), PCB_EDIT_FRAME::SendCrossProbeItem(), testFootprintSelector(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), DIALOG_MULTICHANNEL_REPEAT_LAYOUT::TransferDataToWindow(), BOARD_NETLIST_UPDATER::updateComponentClass(), BOARD_NETLIST_UPDATER::updateComponentPadConnections(), BOARD_NETLIST_UPDATER::updateComponentUnits(), BOARD_NETLIST_UPDATER::updateFootprintGroup(), BOARD_NETLIST_UPDATER::updateFootprintParameters(), and FOOTPRINT_EDIT_FRAME::updateInfoBar().
|
inline |
Definition at line 910 of file footprint.h.
References GetReference().
Referenced by STEP_PCB_MODEL::AddPadShape(), TMATCH::CONNECTION_GRAPH::breakTie(), TMATCH::CONNECTION_GRAPH::breakTieBySymbolUuid(), TMATCH::checkCandidateNetConsistency(), TMATCH::CONNECTION_GRAPH::findMatchingComponents(), FOOTPRINT_DESC::FOOTPRINT_DESC(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getItemIdentifier(), TMATCH::PIN::IsIsomorphic(), and TMATCH::COMPONENT::MatchesWith().
|
inlineinherited |
Definition at line 143 of file eda_item.h.
References m_rolloverPos.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), and KIGFX::SCH_PAINTER::draw().
|
inline |
Definition at line 455 of file footprint.h.
References m_transform.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), FOOTPRINT_DESC::FOOTPRINT_DESC(), and PCB_PROPERTIES_PANEL::valueChanged().
|
inline |
Definition at line 456 of file footprint.h.
References m_transform.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), FOOTPRINT_DESC::FOOTPRINT_DESC(), and PCB_PROPERTIES_PANEL::valueChanged().
|
overridevirtual |
Implements LIB_TREE_ITEM.
Definition at line 2155 of file footprint.cpp.
References Format(), GetKeywords(), GetLIB_ID(), GetLibDescription(), GetLibNickname(), GetName(), and m_searchTerms.
Referenced by FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList().
|
inline |
Definition at line 513 of file footprint.h.
References m_sheetfile.
Referenced by BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 510 of file footprint.h.
References m_sheetname.
Referenced by BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), memberOfSheetFunc(), memberOfSheetOrChildrenFunc(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
| PCB_LAYER_ID FOOTPRINT::GetSide | ( | ) | const |
Use instead of IsFlipped() when you also need to account for unsided footprints (those purely on user-layers, etc.).
Definition at line 2675 of file footprint.cpp.
References BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), BOARD_ITEM::GetBoard(), GetLayer(), IsValidLayer(), m_drawings, m_pads, m_zones, pad, LSET::SideSpecificMask(), and UNDEFINED_LAYER.
Referenced by GetBoundingBox(), GetMsgPanelInfo(), GENERAL_COLLECTOR::Inspect(), and COMPONENT_CLASS_ASSIGNMENT_RULE::Matches().
|
inlinevirtualinherited |
Return the coordinates that should be used for sorting this element visually compared to other elements.
For instance, for lines the midpoint might be a better sorting point than either end.
Reimplemented in SCH_LINE.
Definition at line 364 of file eda_item.h.
References GetPosition().
|
inline |
Definition at line 548 of file footprint.h.
References m_stackupLayers.
Referenced by footprintVsBoardStackup(), PCB_IO_KICAD_SEXPR::format(), and FOOTPRINT_EDIT_FRAME::updateEnabledLayers().
|
inline |
Definition at line 541 of file footprint.h.
References m_stackupMode.
Referenced by FixUpPadsForBoard(), footprintVsBoardStackup(), PCB_IO_KICAD_SEXPR::format(), DIALOG_RULE_AREA_PROPERTIES::OnLayerSelection(), stackupNeedsUpdate(), and FOOTPRINT_EDIT_FRAME::updateEnabledLayers().
| const COMPONENT_CLASS * FOOTPRINT::GetStaticComponentClass | ( | ) | const |
Returns the component class for this footprint.
Definition at line 5458 of file footprint.cpp.
References m_componentClassCacheProxy.
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), PCB_IO_KICAD_SEXPR::format(), and BOARD_NETLIST_UPDATER::updateComponentClass().
|
virtualinherited |
Reimplemented in PCB_SHAPE.
Definition at line 155 of file board_item.cpp.
References DEFAULT_LINE_WIDTH, KIGFX::VIEW_ITEM::GetClass(), and pcbIUScale.
Referenced by CONVERT_TOOL::CreatePolys().
|
inlinevirtualinherited |
For items with units, return the number of units.
Reimplemented in LIB_SYMBOL.
Definition at line 78 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
inlineinherited |
Definition at line 183 of file eda_item.h.
References CANDIDATE, CONNECTIVITY_CANDIDATE, IS_LINKED, m_flags, SELECTED_BY_DRAG, SELECTION_CANDIDATE, and SKIP_STRUCT.
Referenced by ClearTempFlags(), and SCH_ITEM::SwapFlags().
|
inherited |
Definition at line 599 of file embedded_files.cpp.
References PATHS::EnsurePathExists(), PATHS::GetUserCachePath(), and m_files.
Referenced by UpdateFontFiles().
|
inherited |
|
inline |
Definition at line 451 of file footprint.h.
References m_transform.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CHECK_TRANSFORM_PAD_INVARIANT(), BOARD::ExchangeFootprint(), PCB_SHAPE::Flip(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), formatInternalUnits(), fpScaleLinear(), ZONE::GetHatchLines(), ALTIUM_PCB::HelperFootprintZoneToLibFrame(), PCB_SHAPE::RebakeFromLib(), PCB_TEXTBOX::syncLibCoords(), unbakeLinear(), unbakeSize(), and unbakeSizeUniform().
|
inline |
Gets the transient component class names.
Definition at line 1438 of file footprint.h.
References m_transientComponentClassNames.
Referenced by PCB_CONTROL::Paste().
|
inherited |
Return a translated description of the type for this EDA_ITEM for display in user facing messages.
Definition at line 556 of file eda_item.cpp.
References ENUM_MAP< T >::Instance(), and Type().
Referenced by EDIT_TOOL::doMoveSelection(), and GetFriendlyName().
| wxString FOOTPRINT::GetTypeName | ( | ) | const |
Get the type of footprint.
Definition at line 2120 of file footprint.cpp.
References _, GetFootprintType(), SMD, and THROUGH_HOLE.
Referenced by KI_TEST::CheckFootprint(), and CheckFootprintAttributes().
| std::set< wxString > FOOTPRINT::GetUniquePadNumbers | ( | ) | const |
A complex pad can be built with many pads having the same pad name to create a complex shape or fragmented solder paste areas.
Definition at line 2988 of file footprint.cpp.
References LSET::AllCuMask(), m_pads, and pad.
|
inline |
Definition at line 1017 of file footprint.h.
References m_unitInfo.
Referenced by GATE_SWAP_MENU::EqualPinCounts(), GATE_SWAP_MENU::eventHandler(), PCB_IO_KICAD_SEXPR::format(), GATE_SWAP_MENU::GetCompatibleTargets(), GATE_SWAP_MENU::GetSingleEligibleFootprint(), GATE_SWAP_MENU::GetUnitsHitIndices(), EDIT_TOOL::SwapGateNets(), GATE_SWAP_MENU::update(), and BOARD_NETLIST_UPDATER::updateComponentUnits().
|
inlinevirtualinherited |
For items with units, return an identifier for unit x.
Reimplemented in LIB_SYMBOL.
Definition at line 83 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_UNIT::LIB_TREE_NODE_UNIT().
|
inline |
Definition at line 925 of file footprint.h.
References EDA_TEXT::GetText(), and Value().
Referenced by TMATCH::CONNECTION_GRAPH::breakTieByValue(), KI_TEST::CheckFootprint(), GENCAD_EXPORTER::createDevicesSection(), PCB_BASE_FRAME::CreateNewFootprint(), FOOTPRINT_EDIT_FRAME::DuplicateFootprint(), BOARD::ExchangeFootprint(), GetValueAsString(), DIALOG_EXCHANGE_FOOTPRINTS::isMatch(), PCB_IO_EAGLE::loadElements(), EDA_3D_CANVAS::OnMouseMove(), PCB_IO_EAGLE::packageText(), FOOTPRINT_EDIT_FRAME::SaveFootprintAs(), CLIPBOARD_IO::SaveSelection(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 933 of file footprint.h.
References GetValue().
| FOOTPRINT_VARIANT * FOOTPRINT::GetVariant | ( | const wxString & | aVariantName | ) |
Get a mutable variant by name.
| aVariantName | The name of the variant. |
Definition at line 1628 of file footprint.cpp.
References m_variants.
| const FOOTPRINT_VARIANT * FOOTPRINT::GetVariant | ( | const wxString & | aVariantName | ) | const |
Get a variant by name.
| aVariantName | The name of the variant. |
Definition at line 1620 of file footprint.cpp.
References m_variants.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GetDNPForVariant(), GetExcludedFromBOMForVariant(), GetExcludedFromPosFilesForVariant(), GetExcludedFromSimForVariant(), GetFieldValueForVariant(), PCB_FIELD::GetShownText(), EDIT_TOOL::ToggleFootprintAttribute(), and PCB_PROPERTIES_PANEL::valueChanged().
|
inline |
Get all variants.
Definition at line 1119 of file footprint.h.
References m_variants.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_KICAD_SEXPR::format().
|
inlineinherited |
Definition at line 133 of file board_item.h.
References EDA_ITEM::GetPosition(), and VECTOR2< T >::x.
Referenced by STEP_PCB_MODEL::AddPadShape(), BOARD_ITEM_DESC::BOARD_ITEM_DESC(), FOOTPRINT_SEARCH_HANDLER::getResultCell(), GROUP_SEARCH_HANDLER::getResultCell(), TEXT_SEARCH_HANDLER::getResultCell(), ZONE_SEARCH_HANDLER::getResultCell(), SetY(), and ZONE_DESC::ZONE_DESC().
|
inlineinherited |
Definition at line 139 of file board_item.h.
References EDA_ITEM::GetPosition(), and VECTOR2< T >::y.
Referenced by STEP_PCB_MODEL::AddPadShape(), BOARD_ITEM_DESC::BOARD_ITEM_DESC(), FOOTPRINT_SEARCH_HANDLER::getResultCell(), GROUP_SEARCH_HANDLER::getResultCell(), TEXT_SEARCH_HANDLER::getResultCell(), ZONE_SEARCH_HANDLER::getResultCell(), SetX(), and ZONE_DESC::ZONE_DESC().
|
inline |
Definition at line 596 of file footprint.h.
References _, GetReference(), INHERITED, and m_zoneConnection.
|
inline |
Definition at line 407 of file footprint.h.
References m_drawings.
Referenced by BOARD_ADAPTER::addFootprintShapes(), KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BuildCourtyardCaches(), buildFilledPolygonFromShapes(), CalcPlaceholderLocalBox(), CHECK_SHAPE_LIBPOS_MIRROR(), KI_TEST::CheckFootprint(), KICAD_DIFF::CollectFootprintDiffContextItems(), PCB_BASE_FRAME::CreateNewFootprint(), DeserializeDefinition(), KICAD_DIFF::PCB_DIFFER::diffFootprintChildren(), DIALOG_CLEANUP_GRAPHICS::doCleanup(), KIGFX::PCB_PAINTER::draw(), BOARD::ExchangeFootprint(), KICAD_DIFF::ExtractFootprintGeometry(), FootprintNeedsUpdate(), GENCAD_EXPORTER::footprintWriteShape(), PCB_IO_KICAD_SEXPR::format(), FOOTPRINT_EDIT_FRAME::GetDocumentExtents(), GetEffectiveShape(), GetFonts(), API_HANDLER_FOOTPRINT::handleGetItems(), hash_fp_item(), hashFootprint(), idf_export_footprint(), MoveAnchorPosition(), operator=(), PCB_IO_EASYEDAPRO_PARSER::ParseFootprint(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseFootprint(), pasteFootprintItemsToFootprintEditor(), BRDITEMS_PLOTTER::PlotFootprintGraphicItems(), BRDITEMS_PLOTTER::PlotFootprintTextItems(), PAD::Recombine(), PCB_SELECTION_TOOL::Selectable(), SerializeDefinition(), TransformFPShapesToPolySet(), transformFPShapesToPolySet(), and transformFPTextToPolySet().
|
inline |
Definition at line 408 of file footprint.h.
References m_drawings.
|
inline |
Definition at line 413 of file footprint.h.
References m_groups.
Referenced by KI_TEST::CheckFootprint(), DeserializeDefinition(), BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), API_HANDLER_FOOTPRINT::handleGetItems(), operator=(), and pasteFootprintItemsToFootprintEditor().
|
inline |
Definition at line 414 of file footprint.h.
References m_groups.
|
inlineinherited |
Definition at line 269 of file eda_item.h.
References m_customProperties.
Referenced by KICAD_FORMAT::FormatCustomProperties().
|
inlinevirtualinherited |
Reimplemented in PAD, and PCB_VIA.
Definition at line 212 of file board_item.h.
Referenced by PNS_PCBNEW_RULE_RESOLVER::IsDrilledHole(), and BOARD_INSPECTION_TOOL::reportClearance().
|
inline |
Definition at line 427 of file footprint.h.
References m_extrudedBody.
Referenced by EXPORTER_STEP::buildFootprint3DShapes(), BOARD::ExchangeFootprint(), and PANEL_FP_PROPERTIES_3D_MODEL::TransferDataFromWindow().
| bool FOOTPRINT::HasField | ( | const wxString & | aFieldName | ) | const |
Definition at line 911 of file footprint.cpp.
References GetField().
Referenced by PCB_PROPERTIES_PANEL::addBlankField(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inlineinherited |
Definition at line 171 of file embedded_files.h.
Referenced by AddFile(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PANEL_EMBEDDED_FILES::TransferDataFromWindow().
|
inlineinherited |
Definition at line 168 of file eda_item.h.
References m_flags.
Referenced by PCB_CONTROL::ApplyDesignBlockLayout(), BOOST_AUTO_TEST_CASE(), BOARD::BulkRemoveStaleTeardrops(), GRAPHICS_CLEANER::cleanupShapes(), PCB_BASE_EDIT_FRAME::ClearListAndDeleteItems(), SYMBOL_EDIT_FRAME::ClearUndoORRedoList(), SCH_EDIT_TOOL::DoDelete(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_FIND_REPLACE_TOOL::FindNext(), SCH_MOVE_TOOL::findTargetSheet(), PCB_TUNING_PATTERN::Flip(), SYMBOL_EDIT_FRAME::freeTransientUndoCommands(), SCH_MOVE_TOOL::getConnectedDragItems(), SCH_MOVE_TOOL::getConnectedItems(), FOOTPRINT::IsConflicting(), ZONE::IsConflicting(), SCH_SCREEN::MarkConnections(), PCB_TUNING_PATTERN::Mirror(), PCB_TUNING_PATTERN::Move(), MoveSchematicItem(), SCH_MOVE_TOOL::orthoLineDrag(), SCH_MOVE_TOOL::performItemMove(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), GERBVIEW_FRAME::RemapLayers(), PCB_TUNING_PATTERN::Rotate(), SCH_EDIT_TOOL::Rotate(), ISSUE22864_FIXTURE::RunAlignmentAndVerify(), ISSUE22864_FIXTURE::RunAlignmentAndVerifyNoSkew(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), PCB_SELECTION_TOOL::selectAllConnectedShapes(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), SCH_SELECTION_TOOL::SelectMultiple(), SCH_COMMIT::Stage(), TRACKS_CLEANER::testTrackEndpointIsNode(), SCH_MOVE_TOOL::trimDanglingLines(), SCH_FIND_REPLACE_TOOL::UpdateFind(), and PCB_TUNING_PATTERN::ViewDraw().
|
inlinevirtualinherited |
Reimplemented in PAD, and PCB_VIA.
Definition at line 207 of file board_item.h.
Referenced by DRC_ENGINE::EvalRules(), DRC_RTREE::Insert(), ItemHasDRCViolation(), BOARD_INSPECTION_TOOL::reportClearance(), DRC_TEST_PROVIDER_DISALLOW::Run(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::Run(), DRC_TEST_PROVIDER_SILK_CLEARANCE::Run(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstZones(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testSingleLayerItemAgainstItem(), PCB_CONTROL::UpdateMessagePanel(), and PCB_TRACK::ViewBBox().
|
inlinevirtualinherited |
Check if this item has line stoke properties.
Reimplemented in PCB_SHAPE.
Definition at line 297 of file board_item.h.
Referenced by CONVERT_TOOL::CreatePolys().
|
inherited |
Definition at line 241 of file eda_item.cpp.
References EDA_ITEM(), and group.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and SCH_MOVE_TOOL::getConnectedDragItems().
| bool FOOTPRINT::HasThroughHolePads | ( | ) | const |
Definition at line 4894 of file footprint.cpp.
| bool FOOTPRINT::HasVariant | ( | const wxString & | aVariantName | ) | const |
Check if a variant exists.
| aVariantName | The name of the variant. |
Definition at line 1717 of file footprint.cpp.
References m_variants.
|
overridevirtual |
Test if aRect intersects this item.
| aRect | A reference to a BOX2I object containing the rectangle to test. |
| aContained | Set to true to test for containment instead of an intersection. |
| aAccuracy | Increase aRect by this amount. |
Reimplemented from EDA_ITEM.
Definition at line 2818 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), BOX2< Vec >::Contains(), GetBoundingBox(), BOX2< Vec >::Inflate(), BOX2< Vec >::Intersects(), m_drawings, m_pads, m_points, m_zones, pad, and PCB_TEXT_T.
|
overridevirtual |
Test if aPoly intersects this item.
| aPoly | A reference to a SHAPE_LINE_CHAIN object containing the polygon or polyline to test. |
| aContained | Set to true to test for containment instead of an intersection. |
Reimplemented from EDA_ITEM.
Definition at line 2875 of file footprint.cpp.
References KIGEOM::BoxHitTest(), GetBoundingBox(), m_drawings, m_pads, m_zones, and PCB_TEXT_T.
|
overridevirtual |
Test if aPosition is inside or on the boundary of this item.
| aPosition | A reference to a VECTOR2I object containing the coordinates to test. |
| aAccuracy | Increase the item bounding box by this amount. |
Reimplemented from EDA_ITEM.
Definition at line 2805 of file footprint.cpp.
References BOX2< Vec >::Contains(), GetBoundingBox(), and BOX2< Vec >::Inflate().
Referenced by GENERAL_COLLECTOR::Inspect().
| bool FOOTPRINT::HitTestAccurate | ( | const VECTOR2I & | aPosition, |
| int | aAccuracy = 0 ) const |
Test if a point is inside the bounding polygon of the footprint.
The other hit test methods are just checking the bounding box, which can be quite inaccurate for rotated or oddly-shaped footprints.
| aPosition | is the point to test |
Definition at line 2812 of file footprint.cpp.
References SHAPE_POLY_SET::Collide(), and GetBoundingHull().
Referenced by GENERAL_COLLECTOR::Inspect().
| bool FOOTPRINT::HitTestOnLayer | ( | const BOX2I & | aRect, |
| bool | aContained, | ||
| PCB_LAYER_ID | aLayer, | ||
| int | aAccuracy = 0 ) const |
Definition at line 2764 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), m_drawings, m_pads, m_zones, pad, and PCB_TEXT_T.
| bool FOOTPRINT::HitTestOnLayer | ( | const VECTOR2I & | aPosition, |
| PCB_LAYER_ID | aLayer, | ||
| int | aAccuracy = 0 ) const |
Test if the point hits one or more of the footprint elements on a given layer.
| aPosition | is the point to test |
| aAccuracy | is the hit test accuracy |
| aLayer | is the layer to test |
Definition at line 2737 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), m_drawings, m_pads, m_zones, pad, and PCB_TEXT_T.
Referenced by PCB_SELECTION_TOOL::FilterCollectorForFootprints().
|
inline |
Definition at line 563 of file footprint.h.
References m_arflag.
| void FOOTPRINT::IncrementReference | ( | int | aDelta | ) |
Bump the current reference by aDelta.
Definition at line 4040 of file footprint.cpp.
References UTIL::GetRefDesPrefix(), GetReference(), GetTrailingInt(), and SetReference().
| void FOOTPRINT::InvalidateComponentClassCache | ( | ) | const |
Forces deferred (on next access) recalculation of the component class for this footprint.
Definition at line 5494 of file footprint.cpp.
References m_componentClassCacheProxy.
Referenced by PCB_BASE_EDIT_FRAME::PutDataInPreviousState().
| void FOOTPRINT::InvalidateGeometryCaches | ( | ) |
Resets the caches for this footprint, for example if it was modified via the API.
Definition at line 1412 of file footprint.cpp.
References m_courtyard_cache, m_courtyard_cache_mutex, m_geometry_cache, and m_geometry_cache_mutex.
Referenced by Add(), Remove(), and UpdateFields().
|
inline |
Definition at line 920 of file footprint.h.
References GetReference().
|
inlineinherited |
Definition at line 98 of file view_item.h.
References m_isBOARD_ITEM.
Referenced by KIGFX::PCB_VIEW::Add(), PCB_GROUP_TOOL::canGroupItem(), EDIT_TOOL::doMoveSelection(), KIGFX::PCB_PAINTER::Draw(), EDA_ITEM::EDA_ITEM(), PCB_BASE_FRAME::FocusOnItem(), PCB_PROPERTIES_PANEL::getPropertyFromEvent(), KIGFX::PCB_PAINTER::HasUniformColor(), PCB_SELECTION_TOOL::highlightInternal(), PCB_TEST_SELECTION_TOOL::highlightInternal(), GENERAL_COLLECTOR::Inspect(), BOARD::Move(), PCB_GRID_HELPER::nearestAnchor(), PCB_GRID_HELPER::OnBoardItemRemoved(), PCB_CONTROL::Paste(), DRAWING_TOOL::PlaceImportedGraphics(), BOARD_COMMIT::Push(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), KIGFX::PCB_VIEW::Remove(), PCB_GRID_HELPER::ResolveSnap(), GRAPHIC_EDIT_TOOL::runInteractive(), PCB_SELECTION_TOOL::select(), PCB_SELECTION_TOOL::SelectAll(), PCB_EDIT_FRAME::SetPageSettings(), PCB_BASE_FRAME::SetPlotSettings(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), BOARD_COMMIT::Stage(), EDIT_TOOL::Swap(), BOARD_COMMIT::undoLevelItem(), PCB_SELECTION_TOOL::unhighlightInternal(), PCB_TEST_SELECTION_TOOL::unhighlightInternal(), PCB_SELECTION_TOOL::UnselectAll(), KIGFX::PCB_VIEW::Update(), KIGFX::PCB_VIEW::UpdateCollidingItems(), EDIT_TOOL::updateModificationPoint(), and DIALOG_POSITION_RELATIVE::UpdatePickedItem().
|
inline |
Definition at line 1019 of file footprint.h.
References FP_BOARD_ONLY, and m_attributes.
Referenced by FOOTPRINT_DESC::FOOTPRINT_DESC(), GetMsgPanelInfo(), and Serialize().
|
inlineinherited |
Definition at line 136 of file eda_item.h.
References BRIGHTENED, m_flags, and m_netHighlighted.
Referenced by KIGFX::GERBVIEW_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), KIGFX::DS_RENDER_SETTINGS::GetColor(), KIGFX::SCH_PAINTER::getLineWidth(), KIGFX::SCH_PAINTER::getRenderColor(), and ZONE_PAINTER::PCB_PAINTER().
| bool FOOTPRINT::IsConflicting | ( | ) | const |
Definition at line 1424 of file footprint.cpp.
References COURTYARD_CONFLICT, and EDA_ITEM::HasFlag().
Referenced by KIGFX::PCB_PAINTER::draw(), and ViewGetLOD().
|
inlinevirtualinherited |
Returns information if the object is derived from BOARD_CONNECTED_ITEM.
Reimplemented in BOARD_CONNECTED_ITEM, PCB_SHAPE, and ZONE.
Definition at line 172 of file board_item.h.
Referenced by PCB_CONTROL::ApplyDesignBlockLayout(), DRC_ENGINE::EvalRules(), PCB_SELECTION_TOOL::expandConnection(), PNS::NODE::FindItemByParent(), BOARD_INSPECTION_TOOL::getItemDescription(), hasExactNetclassFunc(), hasNetChainFunc(), hasNetclassFunc(), inDiffPairFunc(), inNetChainClassFunc(), inNetChainFunc(), CONNECTIVITY_DATA::MarkItemNetAsDirty(), CN_CONNECTIVITY_ALGO::markItemNetAsDirty(), ZONE_PAINTER::PCB_PAINTER(), BOARD_INSPECTION_TOOL::reportClearance(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testGraphicClearances(), DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_SOLDER_MASK::testMaskItemAgainstZones(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testSingleLayerItemAgainstItem(), and DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackClearances().
|
inline |
Definition at line 1055 of file footprint.h.
References FP_DNP, and m_attributes.
Referenced by AddVariant(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_DESC::FOOTPRINT_DESC(), PCB_IO_KICAD_SEXPR::format(), GetDNPForVariant(), and Serialize().
|
inlineinherited |
Definition at line 178 of file embedded_files.h.
References m_files.
Referenced by BOOST_AUTO_TEST_CASE(), LIB_SYMBOL::Flatten(), FootprintChainBridgingLength(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), LIB_SYMBOL::GetDescription(), and API_HANDLER_SCH::handleGetCurrentVariant().
|
inlineinherited |
Definition at line 135 of file eda_item.h.
References ENTERED, and m_flags.
Referenced by KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), and KIGFX::SCH_PAINTER::draw().
|
inline |
Definition at line 1037 of file footprint.h.
References FP_EXCLUDE_FROM_BOM, and m_attributes.
Referenced by AddVariant(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_DESC::FOOTPRINT_DESC(), PCB_IO_KICAD_SEXPR::format(), GetExcludedFromBOMForVariant(), and Serialize().
|
inline |
Definition at line 1028 of file footprint.h.
References FP_EXCLUDE_FROM_POS_FILES, and m_attributes.
Referenced by AddVariant(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_DESC::FOOTPRINT_DESC(), PCB_IO_KICAD_SEXPR::format(), GetExcludedFromPosFilesForVariant(), and Serialize().
|
inline |
Definition at line 1046 of file footprint.h.
References FP_EXCLUDE_FROM_SIM, and m_attributes.
Referenced by AddVariant(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_DESC::FOOTPRINT_DESC(), PCB_IO_KICAD_SEXPR::format(), GetExcludedFromSimForVariant(), and Serialize().
|
inline |
Definition at line 660 of file footprint.h.
References B_Cu, and GetLayer().
Referenced by COMPONENTS_MANAGER::AddComponent(), RENDER_3D_RAYTRACE_BASE::addExtrudedBodyToRaytracer(), PCB_BASE_FRAME::AddFootprintToBoard(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), EDA_DATA::AddPackage(), FEATURES_MANAGER::AddPadShape(), RENDER_3D_RAYTRACE_BASE::addPlaceholderToRaytracer(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ComputeFootprintShift(), ALTIUM_PCB::ConvertComponentBody6ToFootprintItem(), FootprintNeedsUpdate(), RENDER_3D_OPENGL::get3dModelsFromFootprint(), GetExtrusionOutline(), intersectsBackCourtyardFunc(), intersectsFrontCourtyardFunc(), isOppositeSideSilk(), ALTIUM_PCB::ParseComponentsBodies6Data(), BOARD_EDITOR_CONTROL::PlaceFootprint(), RENDER_3D_OPENGL::renderPlaceholderForFootprint(), and EDIT_TOOL::Swap().
|
inlineinherited |
Definition at line 233 of file eda_item.h.
References m_forceVisible.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), SCH_FIELD::Plot(), and SCH_FIND_REPLACE_TOOL::UpdateFind().
|
inherited |
Definition at line 43 of file board_item.cpp.
References PCB_ARC_T, PCB_BARCODE_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_DIMENSION_T, PCB_DRILL_CHART_T, PCB_DRILL_MAP_T, PCB_FIELD_T, PCB_FOOTPRINT_T, PCB_GENERATOR_T, PCB_GRID_ITEM_T, PCB_GROUP_T, PCB_PAD_T, PCB_POINT_T, PCB_REFERENCE_IMAGE_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_TRACE_T, PCB_VIA_T, PCB_ZONE_T, and EDA_ITEM::Type().
Referenced by BOOST_AUTO_TEST_CASE(), PCB_GROUP_TOOL::canGroupItem(), BOARD_COMMIT::Push(), PCB_EDIT_FRAME::SaveSelectionAsDesignBlock(), and PCB_EDIT_FRAME::UpdateDesignBlockFromSelection().
|
inlineinherited |
Definition at line 419 of file board_item.h.
References m_boardCacheOwner.
|
inlinevirtualinherited |
Reimplemented in PCB_BARCODE.
Definition at line 413 of file board_item.h.
References m_isKnockout.
Referenced by FEATURES_MANAGER::AddText(), BOARD_ADAPTER::addText(), BOOST_AUTO_TEST_CASE(), MULTICHANNEL_TOOL::copyRuleAreaContents(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_TEXT::GetBoundingBox(), PCB_TEXT::GetEffectiveShape(), PCB_FIELDS_GRID_TABLE::GetValueAsBool(), PCB_BARCODE::IsKnockout(), PCB_TEXT_DESC::PCB_TEXT_DESC(), PCB_TEXTBOX_DESC::PCB_TEXTBOX_DESC(), BRDITEMS_PLOTTER::PlotBoardGraphicItem(), BRDITEMS_PLOTTER::PlotFootprintGraphicItems(), BRDITEMS_PLOTTER::PlotFootprintTextItems(), processTextItem(), PCB_TEXT::Serialize(), PCB_TEXTBOX::Serialize(), PCB_TEXT::TextHitTest(), PCB_TEXT::TextHitTest(), PCB_TEXT::TransformTextToPolySet(), and PCB_TEXTBOX::TransformTextToPolySet().
|
inlineoverridevirtual |
Check if this item's layer set must not be confined to a board's enabled layers.
A container's layer set is its members', and those are confined individually; a footprint's children come from a library that knows no board's layers and must survive those layers being re-enabled; a geometric constraint has no layer at all. Masking any of them would corrupt the item. Whether the board accepts it at all is FitsEnabledLayers. A footprint's children may sit on layers this board has disabled; masking them off would break the footprint and lose the contents when those layers are re-enabled.
Reimplemented from BOARD_ITEM.
Definition at line 688 of file footprint.h.
|
static |
Test for validity of a name of a footprint to be used in a footprint library ( no spaces, dir separators ... ).
| aName | is the name in library to validate. |
Definition at line 3393 of file footprint.cpp.
References StringLibNameInvalidChars().
Referenced by DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::checkFootprintName().
|
inlineoverridevirtual |
Reimplemented from BOARD_ITEM.
Definition at line 680 of file footprint.h.
References FP_is_LOCKED, and m_fpStatus.
Referenced by PCB_CONTROL::ApplyDesignBlockLayout(), BOOST_AUTO_TEST_CASE(), ConstraintItemIsLocked(), BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), GetMsgPanelInfo(), ALIGN_DISTRIBUTE_TOOL::GetSelections(), itemIsIncludedByFilter(), BOARD_NETLIST_UPDATER::replaceFootprint(), and Serialize().
|
inlineinherited |
Definition at line 130 of file eda_item.h.
References IS_CHANGED, and m_flags.
Referenced by PCB_EDIT_FRAME::OpenProjectFiles().
|
inlineinherited |
Definition at line 132 of file eda_item.h.
References IS_MOVING, and m_flags.
Referenced by SCH_EDIT_TOOL::AutoplaceFields(), SCH_PIN::CalcEdit(), PCB_GRID_HELPER::computeAnchors(), EDIT_TOOL::doMoveSelection(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), PCB_SHAPE::isMoving(), SCH_SHAPE::isMoving(), SCH_EDIT_TOOL::JustifyText(), SCH_EDIT_TOOL::Mirror(), SYMBOL_EDITOR_EDIT_TOOL::Mirror(), PCB_BASE_FRAME::PlaceFootprint(), SCH_SELECTION_TOOL::RequestSelection(), SCH_EDIT_TOOL::Rotate(), SYMBOL_EDITOR_EDIT_TOOL::Rotate(), SCH_EDIT_TOOL::Swap(), SYMBOL_EDITOR_EDIT_TOOL::Swap(), and SCH_SHAPE::UpdateHatching().
|
inherited |
Net highlighting must not clear brightening owned by find or picker tools.
Definition at line 125 of file eda_item.cpp.
References m_netHighlighted.
Referenced by KIGFX::SCH_PAINTER::draw(), and setNetHighlight().
|
inline |
Definition at line 566 of file footprint.h.
References group, and m_netTiePadGroups.
Referenced by PCB_IO_KICAD_SEXPR::format(), PNS_PCBNEW_RULE_RESOLVER::IsInNetTie(), DRC_ENGINE::IsNetTieExclusion(), PNS_PCBNEW_RULE_RESOLVER::IsNetTieExclusion(), DIALOG_FOOTPRINT_CHECKER::runChecks(), PAD::SharesNetTieGroup(), DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems(), and DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone().
|
inlineinherited |
Definition at line 131 of file eda_item.h.
References IS_NEW, and m_flags.
Referenced by SCH_MOVE_TOOL::checkMoveInProgress(), SCH_EDIT_TOOL::CycleBodyStyle(), EDIT_TOOL::doMoveSelection(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), PCB_TUNING_PATTERN::EditStart(), PCB_VIA_STACK::EditStart(), PCB_VIA_STITCH::EditStart(), SCH_MOVE_TOOL::finalizeMoveOperation(), SYMBOL_EDITOR_DRAWING_TOOLS::Init(), SCH_MOVE_TOOL::initializeMoveOperation(), SCH_LINE_WIRE_BUS_TOOL::IsDrawingLineWireOrBus(), SCH_SCREEN::IsTerminalPoint(), PL_EDIT_TOOL::Main(), PL_POINT_EDITOR::Main(), SCH_POINT_EDITOR::Main(), PCB_BASE_FRAME::PlaceFootprint(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), SCH_SELECTION_TOOL::select(), COMMIT::Unstage(), PCB_TUNING_PATTERN::Update(), and PCB_TUNING_PATTERN::ViewDraw().
|
inlinevirtualinherited |
Reimplemented in PAD, PCB_GROUP, PCB_TRACK, PCB_VIA, and ZONE.
Definition at line 189 of file board_item.h.
References GetLayer(), GetLayerSet(), IsCopperLayer(), IsSingleLayerType(), and EDA_ITEM::Type().
Referenced by CN_CONNECTIVITY_ALGO::Add(), FOOTPRINT::CheckNetTies(), DRC_ENGINE::EvalRules(), PCB_SHAPE::GetItemDescription(), PCB_SHAPE::GetMsgPanelInfo(), PCB_SHAPE::IsConnected(), isCopper(), PCB_SELECTION_TOOL::isExpandableGraphicShape(), ZONE_PAINTER::PCB_PAINTER(), BOARD_INSPECTION_TOOL::reportClearance(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::Run(), PCB_SHAPE::SetLayer(), BOARD_CONNECTED_ITEM::SetNetCode(), shapeNeedsUpdate(), PCB_CONTROL::TrackDisplayMode(), PCB_CONTROL::UpdateMessagePanel(), and PCB_SHAPE::ViewGetLayers().
|
overridevirtual |
Test to see if this object is on the given layer.
Virtual so objects like PAD, which reside on multiple layers can do their own form of testing.
| aLayer | The layer to test for. |
Reimplemented from BOARD_ITEM.
Definition at line 2706 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), m_drawings, m_fields, m_pads, m_zones, and pad.
Referenced by PCB_IO_EASYEDAPRO_PARSER::ParseFootprint(), and PCB_IO_EASYEDAPRO_V3_PARSER::ParseFootprint().
|
inline |
Definition at line 716 of file footprint.h.
References FP_is_PLACED, and m_fpStatus.
Referenced by PCB_IO_KICAD_SEXPR::format(), and GetMsgPanelInfo().
|
inlinevirtualinherited |
For symbols that could be a power symbol.
Reimplemented in LIB_SYMBOL.
Definition at line 63 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
inlinevirtualinherited |
Override this method in any derived object that supports test find and replace.
Reimplemented in SCH_FIELD, SCH_LABEL, SCH_SHEET, SCH_SHEET_PIN, SCH_SYMBOL, SCH_TEXT, and SCH_TEXTBOX.
Definition at line 520 of file eda_item.h.
Referenced by Matches().
|
inlineinherited |
Definition at line 142 of file eda_item.h.
References m_isRollover.
Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), and SCH_ITEM::HasHoveredHypertext().
|
inlinevirtualinherited |
For items having aliases, IsRoot() indicates the principal item.
Reimplemented in LIB_SYMBOL.
Definition at line 60 of file lib_tree_item.h.
Referenced by LIB_TREE_NODE_ITEM::LIB_TREE_NODE_ITEM(), and LIB_TREE_NODE_ITEM::Update().
|
inlineinherited |
Definition at line 97 of file view_item.h.
References m_isSCH_ITEM.
Referenced by SCH_GROUP_TOOL::canGroupItem(), KIGFX::SCH_VIEW::DisplaySheet(), EDA_ITEM::EDA_ITEM(), SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), SCH_PROPERTIES_PANEL::getPropertyFromEvent(), EE_GRID_HELPER::ResolveSnap(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), and KIGFX::SCH_VIEW::Update().
|
inlineinherited |
Definition at line 134 of file eda_item.h.
References m_flags, and SELECTED.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_EDIT_TOOL::ChangeTextType(), SCH_DRAG_NET_COLLISION_MONITOR::collectDisconnectedMarkers(), DIALOG_CLEANUP_TRACKS_AND_VIAS::doCleanup(), KIGFX::PCB_PAINTER::Draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::drawItemBoundingBox(), DS_PROXY_UNDO_ITEM::DS_PROXY_UNDO_ITEM(), SCH_SELECTION_TOOL::expandConnectionWithGraph(), SCH_MOVE_TOOL::findTargetSheet(), RENDER_3D_OPENGL::get3dModelsFromFootprint(), KIGFX::DS_RENDER_SETTINGS::GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), SCH_MOVE_TOOL::getConnectedDragItems(), KIGFX::SCH_PAINTER::getLineWidth(), KIGFX::SCH_PAINTER::getRenderColor(), SCH_ALIGN_TOOL::GetSelections(), SCH_MOVE_TOOL::initializeMoveOperation(), DIALOG_CHANGE_SYMBOLS::isMatch(), DIALOG_EXCHANGE_FOOTPRINTS::isMatch(), SCH_LINE::MergeOverlap(), SCH_EDIT_TOOL::Mirror(), EDIT_TOOL::MoveExact(), SCH_MOVE_TOOL::moveItem(), KIGFX::SCH_PAINTER::nonCached(), DIALOG_ZONE_MANAGER::OnDeleteClick(), SCH_MOVE_TOOL::orthoLineDrag(), ZONE_PAINTER::PCB_PAINTER(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem(), BOARD_COMMIT::Push(), SCH_COMMIT::pushSchEdit(), PCB_SELECTION_TOOL::RebuildSelection(), SCH_SELECTION_TOOL::RebuildSelection(), SCH_DRAG_NET_COLLISION_MONITOR::recordOriginalConnections(), SCH_MOVE_TOOL::recordRedundantJunctions(), RENDER_3D_OPENGL::renderPlaceholderForFootprint(), SCH_FIND_REPLACE_TOOL::ReplaceAll(), SCH_COMMIT::Revert(), SCH_EDIT_TOOL::Rotate(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), CLIPBOARD_IO::SaveSelection(), SCH_IO_KICAD_SEXPR::saveTable(), GERBVIEW_SELECTION_TOOL::select(), PCB_SELECTION_TOOL::select(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), SCH_EDIT_FRAME::SelectBodyStyle(), PCB_SELECTION_TOOL::SelectColumns(), SCH_SELECTION_TOOL::SelectColumns(), SCH_SELECTION_TOOL::SelectMultiple(), GERBVIEW_SELECTION_TOOL::selectPoint(), PCB_SELECTION_TOOL::SelectRows(), SCH_SELECTION_TOOL::SelectRows(), SCH_COMMIT::Stage(), PCB_SELECTION_TOOL::toggleTableCellSelection(), DIALOG_TABLE_PROPERTIES::TransferDataToWindow(), GERBVIEW_SELECTION_TOOL::unselect(), PCB_VIA_STITCH::Update(), SCH_FIND_REPLACE_TOOL::UpdateFind(), SCH_SYMBOL::UpdatePins(), PCB_TUNING_PATTERN::ViewDraw(), PCB_FIELD::ViewGetLOD(), DIALOG_GLOBAL_EDIT_TEARDROPS::visitItem(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), and DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem().
|
inlineinherited |
Definition at line 206 of file eda_item.h.
References IS_SHOWN_AS_BITMAP, and m_flags.
|
inherited |
Definition at line 235 of file board_item.cpp.
References BOARD, GetBoard(), GetLayerSet(), LT_BACK, LT_FRONT, m_layer, and LSET::SideSpecificMask().
Referenced by PCB_BARCODE::AssembleBarcode(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), PCB_TEXT::Flip(), PCB_TEXTBOX::Flip(), and PCB_DIMENSION_BASE::Mirror().
|
inlinevirtualinherited |
Checks if the given object is tented (its copper shape is covered by solder mask) on a given side of the board.
| aLayer | is the layer to check tenting mode for: F_Cu and F_Mask are treated identically as are B_Cu and B_Mask |
Reimplemented in PCB_VIA.
Definition at line 224 of file board_item.h.
Referenced by BOARD_INSPECTION_TOOL::reportClearance(), and DRC_TEST_PROVIDER_SILK_CLEARANCE::Run().
|
inlinevirtualinherited |
Check whether the item is one of the listed types.
| aScanTypes | List of item types |
Reimplemented in PAD, PCB_FIELD, PCB_SHAPE, PCB_TEXT, PCB_TEXTBOX, PCB_VIA, SCH_FIELD, SCH_ITEM, SCH_LABEL_BASE, and SCH_LINE.
Definition at line 214 of file eda_item.h.
References m_structType, and SCH_LOCATE_ANY_T.
Referenced by SCH_EDIT_TOOL::AutoplaceFields(), EDIT_TOOL::BooleanPolygons(), PNS_KICAD_IFACE::createBoardItem(), groupMirrorable(), PCB_SELECTION_TOOL::GuessSelectionCandidates(), EDIT_TOOL::HealShapes(), PAD::IsType(), PCB_FIELD::IsType(), PCB_SHAPE::IsType(), PCB_TEXT::IsType(), PCB_TEXTBOX::IsType(), PCB_VIA::IsType(), SCH_ITEM::IsType(), PL_POINT_EDITOR::Main(), SCH_POINT_EDITOR::Main(), CONVERT_TOOL::makePolysFromChainedSegs(), EDIT_TOOL::ModifyLines(), CONVERT_TOOL::OutsetItems(), SCH_SELECTION_TOOL::RequestSelection(), CONVERT_TOOL::SegmentToArc(), EDIT_TOOL::SimplifyPolygons(), SCH_EDITOR_CONTROL::SimProbe(), SCH_COMMIT::undoLevelItem(), KIGFX::PCB_VIEW::UpdateCollidingItems(), and Visit().
| bool FOOTPRINT::IsWithinSchematicSheet | ( | const KIID_PATH & | aSheetPath | ) | const |
Test whether this footprint's symbol lives on aSheetPath or any sheet below it.
| aSheetPath | is a schematic sheet path as returned by SCH_SHEET_PATH::Path(), which leads with the root sheet UUID. Board paths never record the root sheet, so it is stripped before comparing. |
Definition at line 1430 of file footprint.cpp.
References m_path.
|
inlinestaticinherited |
This changes first parameter to avoid the DList and use the main queue instead.
Definition at line 401 of file eda_item.h.
References CONTINUE, EDA_ITEM(), QUIT, and Visit().
Referenced by BOARD::Visit(), FOOTPRINT::Visit(), and GERBER_FILE_IMAGE::Visit().
|
inlinestaticinherited |
Change first parameter to avoid the DList and use std::vector instead.
Definition at line 421 of file eda_item.h.
References CONTINUE, EDA_ITEM(), QUIT, and Visit().
|
inline |
Each jumper pad group is a set of pad numbers that should be treated as internally connected.
Definition at line 1239 of file footprint.h.
References m_jumperPadGroups.
Referenced by DeserializeDefinition(), PCB_IO_KICAD_SEXPR::format(), SerializeDefinition(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 1240 of file footprint.h.
References m_jumperPadGroups.
|
virtualinherited |
Return a string (to be shown to the user) describing a layer mask.
Reimplemented in PCB_VIA.
Definition at line 252 of file board_item.cpp.
References _, LSET::AllCuMask(), LSET::AllTechMask(), BOARD, GetBoard(), BOARD::GetCopperLayerCount(), BOARD::GetEnabledLayers(), BOARD::GetLayerName(), GetLayerSet(), LayerName(), MAX_CU_LAYERS, PCB_LAYER_ID_COUNT, PCBNEW_LAYER_ID_START, and ToLAYER_ID().
Referenced by PAD::GetItemDescription(), PAD::GetMsgPanelInfo(), PCB_TRACK::GetMsgPanelInfo(), and PCB_TUNING_PATTERN::GetMsgPanelInfo().
|
inline |
Definition at line 734 of file footprint.h.
References FP_PADS_are_LOCKED, and m_fpStatus.
|
staticprotectedinherited |
Get the scale at which aWhatIu would be drawn at the same size as aThresholdIu on screen.
This is useful when a level-of-detail is defined in terms of a threshold size (i.e. 'only draw X when it will be bigger than Y size on screen').
E.g. if aWhatIu is 1000 and aThresholdIu is 100, then the item will be the same size as the threshold at 0.1 scale. Returning that 0.1 as the LoD will hide the item when the scale is less than 0.1 - i.e. smaller than the threshold.
Because even at zoom 1.0, 1mm in KiCad may not be exactly 1mm on a physical screen, the threshold may not be exact in practice.
Definition at line 35 of file view_item.cpp.
References KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), KIGFX::RENDER_SETTINGS::IsPrinting(), LOD_HIDE, LOD_SHOW, and VIEW.
Referenced by GERBER_DRAW_ITEM::ViewGetLOD(), PAD::ViewGetLOD(), PCB_TRACK::ViewGetLOD(), PCB_VIA::ViewGetLOD(), and SCH_LINE::ViewGetLOD().
| std::map< wxString, int > FOOTPRINT::MapPadNumbersToNetTieGroups | ( | ) | const |
Definition at line 4508 of file footprint.cpp.
References group, m_netTiePadGroups, m_pads, and pad.
Referenced by BuildNetTieCache(), CheckNetTiePadGroups(), CheckNetTies(), GetNetTiePads(), DRC_ENGINE::IsNetTieExclusion(), DRC_TEST_PROVIDER_SOLDER_MASK::reportMaskApertureBridges(), PAD::SharesNetTieGroup(), and DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem().
|
protectedinherited |
Compare aText against search criteria in aSearchData.
This is a helper function for simplify derived class logic.
| aText | A reference to a wxString object containing the string to test. |
| aSearchData | The criteria to search against. |
Definition at line 318 of file eda_item.cpp.
References CTX_SEARCH, EDA_COMBINED_MATCHER::Find(), EDA_SEARCH_DATA::findString, flag, IsReplaceable(), isWordChar(), EDA_SEARCH_DATA::matchCase, EDA_SEARCH_DATA::matchMode, next(), PERMISSIVE, REGEX, EDA_SEARCH_DATA::regex, EDA_SEARCH_DATA::regex_string, EDA_SEARCH_DATA::searchAndReplace, text, WHOLEWORD, and WILDCARD.
|
overridevirtual |
Compare the item against the search criteria in aSearchData.
The base class returns false since many of the objects derived from EDA_ITEM do not have any text to search.
| aSearchData | A reference to a wxFindReplaceData object containing the search criteria. |
| aAuxData | A pointer to optional data required for the search or NULL if not used. |
Reimplemented from EDA_ITEM.
Definition at line 3118 of file footprint.cpp.
References GetFPIDAsString(), GetKeywords(), GetLibDescription(), EDA_ITEM::Matches(), and EDA_SEARCH_DATA::searchMetadata.
|
virtualinherited |
Mirror this object relative to a given horizontal axis the layer is not changed.
| aCentre | the mirror point. |
| aMirrorAroundXAxis | mirror across X axis instead of Y (the default). |
Reimplemented in PCB_ARC, PCB_CONSTRAINT, PCB_DIM_ALIGNED, PCB_DIM_ORTHOGONAL, PCB_DIMENSION_BASE, PCB_GENERATOR, PCB_GENERATOR_POLY, PCB_GROUP, PCB_REFERENCE_IMAGE, PCB_SHAPE, PCB_TABLE, PCB_TEXT, PCB_TEXTBOX, PCB_TRACK, PCB_TUNING_PATTERN, PCB_VIA_STACK, and ZONE.
Definition at line 445 of file board_item.cpp.
References KIGFX::VIEW_ITEM::GetClass().
|
inline |
Definition at line 424 of file footprint.h.
References m_3D_Drawings.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EXPORTER_STEP::buildFootprint3DShapes(), KI_TEST::CheckFootprint(), ALTIUM_PCB::ConvertComponentBody6ToFootprintItem(), DeserializeDefinition(), BOARD::ExchangeFootprint(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), PCB_IO_EASYEDAPRO_PARSER::FillFootprintModelInfo(), PCB_IO_KICAD_SEXPR::format(), RENDER_3D_OPENGL::get3dModelsFromFootprint(), idf_export_footprint(), PCB_IO_KICAD_LEGACY::load3D(), MoveAnchorPosition(), ALTIUM_PCB::ParseComponentsBodies6Data(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), and SerializeDefinition().
|
inline |
Definition at line 425 of file footprint.h.
References m_3D_Drawings.
|
overridevirtual |
Move this object.
| aMoveVector | the move vector for this object. |
Reimplemented from BOARD_ITEM.
Definition at line 3418 of file footprint.cpp.
References m_transform, SetPosition(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CLIPBOARD_IO::SaveSelection(), SpreadFootprints(), and PCB_PROPERTIES_PANEL::valueChanged().
| void FOOTPRINT::MoveAnchorPosition | ( | const VECTOR2I & | aMoveVector | ) |
Move the reference point of the footprint.
It looks like a move footprint: the footprints elements (pads, outlines, edges .. ) are moved However:
Definition at line 3667 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), GetOrientation(), GraphicalItems(), m_courtyard_cache, m_fields, m_geometry_cache, m_pads, m_points, model, Models(), pad, pcbIUScale, RotatePoint(), VECTOR2< T >::x, VECTOR2< T >::y, and Zones().
Referenced by BOOST_AUTO_TEST_CASE(), and CLIPBOARD_IO::SaveSelection().
|
inline |
Definition at line 725 of file footprint.h.
References FP_to_PLACE, and m_fpStatus.
|
inlinevirtualinherited |
Perform any normalization required after a user rotate and/or flip.
Reimplemented in PCB_SHAPE, and PCB_TABLE.
Definition at line 487 of file board_item.h.
Referenced by EDIT_TOOL::Flip(), API_HANDLER_BOARD::handleFlipItems(), NormalizeForCompare(), and EDIT_TOOL::Rotate().
|
inlinevirtualinherited |
Perform any normalization required to compare 2 graphics, especially if the can be rotated and/or flipped.
Similar to Normalize(), but more changes can be made
Reimplemented in PCB_SHAPE.
Definition at line 494 of file board_item.h.
References Normalize().
|
inlinevirtualinherited |
Apply a parent footprint scale to this item.
Default is a no-op. Items with sizable geometry (PAD, PCB_SHAPE, PCB_TEXT, ZONE) override.
| aRatioX | new Sx / old Sx (multiply X-axis-aligned values by this). |
| aRatioY | same for Y. |
| aLinearFactor | weighted factor for stroke / thickness. |
| aAnchor | scale anchor (the parent footprint's translate). |
| aParentRotate | current parent rotation. Needed by POLY / BEZIER to unrotate before scaling and rotate back. |
Reimplemented in PAD, PCB_BARCODE, PCB_DIMENSION_BASE, PCB_SHAPE, PCB_TABLE, PCB_TEXT, PCB_TEXTBOX, and ZONE.
Definition at line 458 of file board_item.h.
|
inlinevirtualinherited |
Hook for items inside a footprint to refresh after the FP transform changes (translate, rotate, flip).
Scaling uses OnFootprintRescaled.
Reimplemented in PAD, PCB_DIMENSION_BASE, PCB_POINT, PCB_SHAPE, PCB_TABLE, PCB_TEXT, PCB_TEXTBOX, and ZONE.
Definition at line 466 of file board_item.h.
|
inherited |
Test if another item is less than this object.
| aItem | - Item to compare against. |
Definition at line 479 of file eda_item.cpp.
References EDA_ITEM(), and KIGFX::VIEW_ITEM::GetClass().
Definition at line 1248 of file footprint.cpp.
References Add(), EDA_GROUP::AddItem(), BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), Constraints(), EDA_ITEM::EDA_ITEM(), FOOTPRINT(), BOARD_ITEM::GetBoard(), EDA_GROUP::GetItems(), COMPONENT_CLASS_CACHE_PROXY::GetStaticComponentClass(), GraphicalItems(), group, Groups(), m_3D_Drawings, m_attributes, m_clearance, m_componentClassCacheProxy, m_constraints, m_courtyard_cache, m_drawings, m_duplicatePadNumbersAreJumpers, m_extrudedBody, m_fields, m_flipped, m_fpid, m_fpStatus, m_geometry_cache, m_groups, m_initial_comments, m_jumperPadGroups, m_keywords, m_lastEditTime, m_libDescription, m_link, m_netTiePadGroups, m_pads, m_path, m_points, m_privateLayers, m_solderMaskMargin, m_solderPasteMargin, m_solderPasteMarginRatio, m_transform, m_variants, m_zoneConnection, m_zones, BOARD_ITEM::operator=(), EMBEDDED_FILES::operator=(), PAD, pad, Pads(), Points(), ZONE::SetNetCode(), and Zones().
Definition at line 1108 of file footprint.cpp.
References Add(), BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), FOOTPRINT(), BOARD_ITEM::GetBoard(), group, m_3D_Drawings, m_attributes, m_clearance, m_componentClassCacheProxy, m_constraints, m_courtyard_cache, m_drawings, m_duplicatePadNumbersAreJumpers, m_extrudedBody, m_fields, m_flipped, m_fpid, m_fpStatus, m_geometry_cache, m_groups, m_initial_comments, m_jumperPadGroups, m_keywords, m_lastEditTime, m_libDescription, m_link, m_netTiePadGroups, m_pads, m_path, m_points, m_privateLayers, m_solderMaskMargin, m_solderPasteMargin, m_solderPasteMarginRatio, m_transform, m_variants, m_zoneConnection, m_zones, BOARD_ITEM::operator=(), EMBEDDED_FILES::operator=(), and pad.
|
overridevirtual |
Implements BOARD_ITEM.
Definition at line 4906 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), FOOTPRINT(), PCB_FOOTPRINT_T, and EDA_ITEM::Type().
| bool FOOTPRINT::operator== | ( | const FOOTPRINT & | aOther | ) | const |
Definition at line 4917 of file footprint.cpp.
References FOOTPRINT(), GetFields(), GetFields(), m_drawings, m_pads, m_points, and m_zones.
|
inline |
Definition at line 404 of file footprint.h.
References m_pads.
Referenced by TMATCH::CONNECTION_GRAPH::AddFootprint(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), BOARD_NETLIST_UPDATER::addNewFootprint(), BOARD_ADAPTER::addPads(), PCB_IO_EAGLE::adjustFootprintForDesignRules(), KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), MULTICHANNEL_TOOL::AutogenerateRuleAreas(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EXPORTER_STEP::buildFootprint3DShapes(), AR_AUTOPLACER::buildFpAreas(), CalcPlaceholderLocalBox(), CHECK_PAD_LIBPOS_MIRROR(), CHECK_TRANSFORM_PAD_INVARIANT(), KI_TEST::CheckFootprint(), CheckPads(), CheckShortingPads(), KICAD_DIFF::CollectFootprintDiffContextItems(), PCB_GRID_HELPER::computeAnchors(), AR_AUTOPLACER::computePlacementRatsnestCost(), DeserializeDefinition(), KICAD_DIFF::PCB_DIFFER::diffFootprintChildren(), FOOTPRINT_VIEWER_FRAME::displayFootprint(), PAD_TOOL::EnumeratePads(), BOARD::ExchangeFootprint(), PCB_SELECTION_TOOL::expandConnection(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), KICAD_DIFF::ExtractFootprintGeometry(), findPadByNumber(), PLACEFILE_GERBER_WRITER::findPads1(), FixUpPadsForBoard(), FootprintChainBridgingLength(), FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::format(), AR_AUTOPLACER::genModuleOnRoutingMatrix(), FOOTPRINT_EDIT_FRAME::GetDocumentExtents(), GetEffectiveShape(), GetExtrusionPinOutline(), AR_AUTOPLACER::getOptimalFPPlacement(), CADSTAR_PCB_ARCHIVE_LOADER::getPadReference(), CONNECTIVITY_DATA::GetRatsnestForComponent(), CONNECTIVITY_DATA::GetRatsnestForItems(), API_HANDLER_FOOTPRINT::handleGetItems(), hash_fp_item(), hashFootprint(), HasThroughHolePads(), idf_export_footprint(), DISPLAY_FOOTPRINTS_FRAME::InitDisplay(), isCopperOutside(), DRC_ENGINE::IsNetTieExclusion(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponents(), PCB_IO_EAGLE::loadElements(), PCB_IO_PADS_BINARY::loadFootprints(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), CADSTAR_PCB_ARCHIVE_LOADER::loadNets(), CN_CONNECTIVITY_ALGO::markItemNetAsDirty(), matchBySymbolInstancePath(), ARRAY_TOOL::onDialogClosed(), operator=(), pasteFootprintItemsToFootprintEditor(), PCB_IO_IPC2581::pinName(), BOARD_EDITOR_CONTROL::PlaceFootprint(), PlotFootprintToSVG(), SPRINT_LAYOUT_PARSER::processPad(), DISPLAY_FOOTPRINTS_FRAME::ReloadFootprint(), MULTICHANNEL_TOOL::resolveConnectionTopology(), ResolveTextVar(), CLIPBOARD_IO::SaveSelection(), PCB_SELECTION_TOOL::Selectable(), SerializeDefinition(), DRC_INTERACTIVE_COURTYARD_CLEARANCE::testCourtyardClearances(), DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadClearances(), BOARD_NETLIST_UPDATER::updateComponentPadConnections(), PCB_POINT_EDITOR::updateItem(), updatePadCounts(), DIALOG_UNUSED_PAD_LAYERS::updatePadsAndVias(), and PCB_PROPERTIES_PANEL::valueChanging().
|
inline |
Definition at line 405 of file footprint.h.
References m_pads.
|
inline |
Definition at line 419 of file footprint.h.
References m_points.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB_GRID_HELPER::computeAnchors(), DeserializeDefinition(), BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), operator=(), PCB_SELECTION_TOOL::Selectable(), and SerializeDefinition().
|
inline |
Definition at line 420 of file footprint.h.
References m_points.
| void FOOTPRINT::RecomputeComponentClass | ( | ) | const |
Forces immediate recalculation of the component class for this footprint.
Definition at line 5464 of file footprint.cpp.
References m_componentClassCacheProxy.
|
inline |
Definition at line 940 of file footprint.h.
References GetField(), and REFERENCE.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), AutoPositionFields(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), ZONE_FILLER::buildCopperItemClearances(), ALTIUM_PCB::ConvertTexts6ToFootprintItemOnLayer(), DIPTRACE::PCB_PARSER::CreateFootprint(), PCB_BASE_FRAME::CreateNewFootprint(), BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), CADSTAR_PCB_ARCHIVE_LOADER::getKiCadNet(), GetMsgPanelInfo(), GetReference(), FOOTPRINT_SEARCH_HANDLER::getResultCell(), idf_export_footprint(), PCB_IO_EAGLE::loadElements(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), FABMASTER::loadFootprints(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), PCB_IO_EAGLE::loadPlain(), PCB_IO_EAGLE::orientFootprintAndText(), PCB_IO_EAGLE::packageText(), BRDITEMS_PLOTTER::PlotFootprintTextItems(), SPRINT_LAYOUT_PARSER::processPad(), SPRINT_LAYOUT_PARSER::processText(), and SetReference().
|
inline |
Definition at line 944 of file footprint.h.
References GetField(), and REFERENCE.
Remap KIIDs this item stores to reference other items (e.g.
constraint members) through aIdMap (old -> new), after a paste/duplicate has re-UUIDed the referenced items. KIIDs absent from the map are left unchanged. The default does nothing.
Reimplemented in PCB_CONSTRAINT.
Definition at line 287 of file board_item.h.
Referenced by PCB_CONTROL::placeBoardItems().
|
overridevirtual |
Removes an item from the container.
Implements BOARD_ITEM_CONTAINER.
Definition at line 1921 of file footprint.cpp.
References BOARD_ITEM::BOARD, BOARD_ITEM::BOARD_ITEM(), BOARD_ITEM::GetBoard(), InvalidateGeometryCaches(), m_constraints, m_drawings, m_fields, m_groups, m_pads, m_points, m_variants, m_zones, PCB_BARCODE_T, PCB_CONSTRAINT_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_FIELD_T, PCB_FOOTPRINT_T, PCB_GROUP_T, PCB_MARKER_T, PCB_PAD_T, PCB_POINT_T, PCB_REFERENCE_IMAGE_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_ZONE_T, EDA_ITEM::SetFlags(), STRUCT_DELETED, and EDA_ITEM::Type().
Referenced by KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), DeserializeDefinition(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), PCB_PROPERTIES_PANEL::removeField(), UpdateFields(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inherited |
Remove custom properties whose keys collide with an existing field or built-in property name (matched case-insensitively).
Returns the keys removed, if any.
Definition at line 168 of file eda_item.cpp.
References _HKI, PROPERTY_MANAGER::Instance(), m_customProperties, and RemoveCustomProperty().
|
inherited |
Definition at line 161 of file eda_item.cpp.
References m_customProperties, and m_dynamicCustomPropsCache.
Referenced by PCB_PROPERTIES_PANEL::onKeyRenamed(), SCH_PROPERTIES_PANEL::onKeyRenamed(), RemoveConflictingCustomProperties(), and SCH_PROPERTIES_PANEL::removeCustomProperty().
|
inherited |
Remove a file from the collection and frees the memory.
| aName | is the name of the file to remove. |
Definition at line 166 of file embedded_files.cpp.
Referenced by BOARD::ExchangeFootprint(), and PANEL_EMBEDDED_FILES::TransferDataFromWindow().
| void FOOTPRINT::RenameVariant | ( | const wxString & | aOldName, |
| const wxString & | aNewName ) |
Rename a variant.
| aOldName | The current name of the variant. |
| aNewName | The new name for the variant. |
Definition at line 1689 of file footprint.cpp.
References GetDefaultVariantName(), m_variants, and FOOTPRINT_VARIANT::SetName().
|
inlinevirtualinherited |
Reimplemented in SCH_ITEM.
Definition at line 196 of file eda_item.h.
|
inlinevirtualinherited |
Perform a text replace using the find and replace criteria in aSearchData on items that support text find and replace.
This function must be overridden for items that support text replace.
| aSearchData | A reference to a wxFindReplaceData object containing the search and replace criteria. |
| aAuxData | A pointer to optional data required for the search or NULL if not used. |
Reimplemented in SCH_FIELD, SCH_LABEL_BASE, SCH_PIN, SCH_SHEET_PIN, SCH_TEXT, and SCH_TEXTBOX.
Definition at line 509 of file eda_item.h.
|
staticinherited |
Perform a text replace on aText using the find and replace criteria in aSearchData on items that support text find and replace.
| aSearchData | A reference to a wxFindReplaceData object containing the search and replace criteria. |
| aText | A reference to a wxString object containing the text to be replaced. |
Definition at line 396 of file eda_item.cpp.
References EDA_SEARCH_DATA::findString, flag, isWordChar(), EDA_SEARCH_DATA::matchCase, EDA_SEARCH_DATA::matchMode, next(), REGEX, EDA_SEARCH_DATA::regex, EDA_SEARCH_DATA::regex_string, EDA_SEARCH_DATA::replaceString, result, text, and WHOLEWORD.
Referenced by EDA_TEXT::Replace(), SCH_FIELD::Replace(), SCH_PIN::Replace(), SCH_FIND_REPLACE_TOOL::ReplaceAll(), and SCH_FIND_REPLACE_TOOL::ReplaceAndFindNext().
| void FOOTPRINT::RescaleAroundPoint | ( | const VECTOR2I & | aCenter, |
| double | aSx, | ||
| double | aSy ) |
Definition at line 3607 of file footprint.cpp.
References TRANSFORM_TRS::GetScaleX(), TRANSFORM_TRS::GetScaleY(), TRANSFORM_TRS::GetTranslate(), m_transform, SetPosition(), and SetTransformScale().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), and PCB_PROPERTIES_PANEL::valueChanged().
|
inlineinherited |
Definition at line 280 of file board_item.h.
References SetUuid().
Referenced by CloneFullySelectedConstraints(), MULTICHANNEL_TOOL::copyRuleAreaContents(), Duplicate(), PCB_TABLE::Duplicate(), API_HANDLER_BOARD::handleCreateUpdateItemsInternal(), API_HANDLER_PCB::handlePlaceFootprintFromLibrary(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
|
inlineinherited |
Definition at line 277 of file board_item.h.
References SetUuidDirect().
Referenced by PCB_EDIT_TABLE_TOOL::copyCell(), MULTICHANNEL_TOOL::copyRuleAreaContents(), MICROWAVE_TOOL::createMicrowaveInductor(), DRAWING_TOOL::DrawVia(), FOOTPRINT::Duplicate(), FOOTPRINT::DuplicateItem(), and LoadNetlistFootprints().
| void FOOTPRINT::ResolveComponentClassNames | ( | BOARD * | aBoard, |
| const std::unordered_set< wxString > & | aComponentClassNames ) |
Resolves a set of component class names to this footprint's actual component class.
Definition at line 5485 of file footprint.cpp.
References BOARD_ITEM::BOARD, BOARD::GetComponentClassManager(), COMPONENT_CLASS_MANAGER::GetEffectiveStaticComponentClass(), and SetStaticComponentClass().
Referenced by PCB_CONTROL::Paste().
| bool FOOTPRINT::ResolveTextVar | ( | wxString * | token, |
| const wxString & | aVariantName, | ||
| int | aDepth = 0 ) const |
Definition at line 1471 of file footprint.cpp.
References FOOTPRINT(), FPHOLDER, INSPECTABLE::Get(), BOARD_ITEM::GetBoard(), GetDNPForVariant(), GetExcludedFromBOMForVariant(), GetExcludedFromPosFilesForVariant(), GetExcludedFromSimForVariant(), GetField(), BOARD_ITEM::GetLayerName(), PROPERTY_MANAGER::GetProperty(), KICAD_DIFF::DIFF_VALUE::GetType(), PROPERTY_MANAGER::Instance(), INTERNAL, PROPERTY_MANAGER::IsAvailableFor(), m_fpid, MM, KICAD_DIFF::DIFF_VALUE::NONE, pad, Pads(), pcbIUScale, REFERENCE, ResolveTextVar(), KICAD_DIFF::DIFF_VALUE::ToDisplayString(), TYPE_HASH, VALUE, and KICAD_DIFF::WxAnyToDiffValue().
| bool FOOTPRINT::ResolveTextVar | ( | wxString * | token, |
| int | aDepth = 0 ) const |
Resolve any references to system tokens supported by the component.
| aDepth | a counter to limit recursion and circular references. |
Definition at line 1460 of file footprint.cpp.
References BOARD_ITEM::GetBoard(), BOARD::GetCurrentVariant(), and ResolveTextVar().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getFieldResolvedLiveValue(), PCB_FIELD::GetShownText(), PCB_TABLECELL::GetShownText(), PCB_TEXT::GetShownText(), PCB_TEXTBOX::GetShownText(), BOARD::ResolveTextVar(), ResolveTextVar(), ResolveTextVar(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::resolveTextVars().
Rotate this object.
| aRotCentre | the rotation center point. |
Reimplemented from BOARD_ITEM.
Definition at line 3428 of file footprint.cpp.
References ANGLE_0, BOARD_ITEM::BOARD_ITEM(), GetOrientation(), m_drawings, m_fields, m_transform, PCB_TEXT_T, RotatePoint(), SetOrientation(), and SetPosition().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), MULTICHANNEL_TOOL::copyRuleAreaContents(), EDIT_TOOL::doMoveSelection(), Flip(), and BOARD_EDITOR_CONTROL::PlaceFootprint().
|
overridevirtual |
Invoke a function on all children.
Reimplemented from BOARD_ITEM.
Definition at line 3256 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), group, m_constraints, m_drawings, m_fields, m_groups, m_pads, m_points, m_zones, pad, and RECURSE.
Referenced by ClearAllNets(), PCB_BASE_FRAME::CreateNewFootprint(), Duplicate(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), LAYER_UTILS::GetAllFootprintLayers(), PCB_IO_KICAD_SEXPR_PARSER::resolveConstraints(), PCB_IO_KICAD_SEXPR_PARSER::resolveGroups(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), HEADLESS_FOOTPRINT_CONTEXT::SaveFootprintInLibrary(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), and swapData().
|
inlinevirtualinherited |
Provide access to nested embedded files, such as symbols in schematics and footprints in boards.
Reimplemented in BOARD, and SCHEMATIC.
Definition at line 187 of file embedded_files.h.
References EMBEDDED_FILES().
|
inlinestaticinherited |
Definition at line 293 of file embedded_files.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), CompressAndEncode(), ComputeFileHash(), SYMBOL_EMBEDDED_FILES_TEST_FIXTURE::CreateTestEmbeddedFile(), DecompressAndDecode(), and EMBEDDED_FILES::EMBEDDED_FILE::Validate().
|
overridevirtual |
Serializes this object to the given Any message.
The Any message's concrete type will be specific to the object in question.
| aContainer | will be filled with a message describing this object |
Reimplemented from SERIALIZABLE.
Definition at line 461 of file footprint.cpp.
References AllowMissingCourtyard(), AllowSolderMaskBridges(), BOARD_ITEM::BOARD, DATASHEET, DESCRIPTION, FP_SMD, FP_THROUGH_HOLE, BOARD_ITEM::GetBoard(), GetField(), GetLayer(), GetLocalClearance(), GetLocalSolderMaskMargin(), GetLocalSolderPasteMargin(), GetLocalSolderPasteMarginRatio(), GetLocalZoneConnection(), GetOrientationDegrees(), GetPosition(), IsBoardOnly(), IsDNP(), IsExcludedFromBOM(), IsExcludedFromPosFiles(), IsExcludedFromSim(), IsLocked(), m_attributes, m_filters, m_path, m_sheetfile, m_sheetname, EDA_ITEM::m_Uuid, m_variants, kiapi::common::PackCustomProperties(), kiapi::board::PackEmbeddedFiles(), kiapi::common::PackSheetPath(), REFERENCE, PCB_FIELD::Serialize(), SerializeDefinition(), ToProtoEnum(), and VALUE.
Referenced by API_HANDLER_PCB::handlePlaceFootprintFromLibrary().
| void FOOTPRINT::SerializeDefinition | ( | kiapi::board::types::Footprint * | aOutput | ) | const |
Definition at line 548 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), GetDuplicatePadNumbersAreJumpers(), GetFPID(), GetKeywords(), GetLibDescription(), GetNetTiePadGroups(), GetPrivateLayers(), GraphicalItems(), group, JumperPadGroups(), m_fields, model, Models(), kiapi::common::PackLibId(), kiapi::common::PackVector3D(), Pads(), Points(), ToProtoEnum(), and Zones().
Referenced by Serialize().
|
inherited |
Definition at line 48 of file inspectable_impl.h.
References PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_MANAGER::PropertyChanged(), PROPERTY_BASE::set(), T, TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inherited |
Definition at line 31 of file inspectable_impl.h.
References PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_MANAGER::PropertyChanged(), PROPERTY_BASE::set(), T, TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
|
inherited |
Definition at line 28 of file inspectable.cpp.
References PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_MANAGER::PropertyChanged(), PROPERTY_BASE::setter(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
Referenced by KICAD_DIFF::ApplyPropertyResolutions(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_PROPERTIES_PANEL::valueChanged(), and SCH_PROPERTIES_PANEL::valueChanged().
|
inherited |
Definition at line 45 of file inspectable.cpp.
References PROPERTY_BASE::GetChoices(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), PROPERTY_MANAGER::PropertyChanged(), PROPERTY_BASE::set(), TYPE_HASH, PROPERTY_MANAGER::TypeCast(), and PROPERTY_BASE::TypeHash().
|
inline |
Definition at line 557 of file footprint.h.
References m_allowMissingCourtyard.
Referenced by Deserialize(), and FOOTPRINT_DESC::FOOTPRINT_DESC().
|
inline |
Definition at line 560 of file footprint.h.
References m_allowSolderMaskBridges.
Referenced by Deserialize(), and BOARD::ExchangeFootprint().
|
inlineinherited |
Definition at line 283 of file embedded_files.h.
References m_embedFonts.
Referenced by ORCAD_CONVERTER::applyFont(), LIB_SYMBOL::Deserialize(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), LIB_BUFFER::SaveBuffer(), and SYMBOL_LIBRARY_MANAGER::SaveLibrary().
|
inline |
Definition at line 551 of file footprint.h.
References m_attributes.
Referenced by addFootprint(), BOARD_NETLIST_UPDATER::addNewFootprint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB_BASE_FRAME::CreateNewFootprint(), BOARD::ExchangeFootprint(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 1020 of file footprint.h.
References FP_BOARD_ONLY, and m_attributes.
Referenced by Deserialize(), FOOTPRINT_DESC::FOOTPRINT_DESC(), and PCB_IO_PADS::loadTestPoints().
|
inlineinherited |
Definition at line 151 of file eda_item.h.
References BRIGHTENED, and SetFlags().
Referenced by KICAD_DIFF::ConfigureSchDiffCanvasContext(), KIGFX::SCH_PAINTER::draw(), SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), PCB_BASE_FRAME::FocusOnItems(), PL_SELECTION_TOOL::highlight(), SCH_SELECTION_TOOL::highlight(), PCB_SELECTION_TOOL::highlightInternal(), and PCB_TEST_SELECTION_TOOL::highlightInternal().
|
inlineinherited |
Definition at line 247 of file eda_item.h.
References m_customProperties, and SetCustomProperty().
Referenced by kiapi::common::UnpackCustomProperties().
|
inlineinherited |
Definition at line 255 of file eda_item.h.
References m_customProperties.
Referenced by SCH_PROPERTIES_PANEL::addBlankCustomProperty(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB_PROPERTIES_PANEL::onKeyRenamed(), SCH_PROPERTIES_PANEL::onKeyRenamed(), PCB_IO_KICAD_SEXPR_PARSER::parseCustomProperty(), SCH_IO_KICAD_SEXPR_PARSER::parseCustomProperty(), SetCustomProperties(), and EDA_CUSTOM_PROPERTY::setter().
|
inline |
Definition at line 1056 of file footprint.h.
References FP_DNP, and m_attributes.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), Deserialize(), FOOTPRINT_DESC::FOOTPRINT_DESC(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::setAttributeValue().
|
inline |
Definition at line 1233 of file footprint.h.
References m_duplicatePadNumbersAreJumpers.
Referenced by DeserializeDefinition(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 1038 of file footprint.h.
References FP_EXCLUDE_FROM_BOM, and m_attributes.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), Deserialize(), FOOTPRINT_DESC::FOOTPRINT_DESC(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::setAttributeValue(), and EDIT_TOOL::ToggleFootprintAttribute().
|
inline |
Definition at line 1029 of file footprint.h.
References FP_EXCLUDE_FROM_POS_FILES, and m_attributes.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), Deserialize(), FOOTPRINT_DESC::FOOTPRINT_DESC(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::setAttributeValue(), and EDIT_TOOL::ToggleFootprintAttribute().
|
inline |
Definition at line 1047 of file footprint.h.
References FP_EXCLUDE_FROM_SIM, and m_attributes.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), Deserialize(), FOOTPRINT_DESC::FOOTPRINT_DESC(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::setAttributeValue(), and EDIT_TOOL::ToggleFootprintAttribute().
| void FOOTPRINT::SetExtrudedBody | ( | std::unique_ptr< EXTRUDED_3D_BODY > | aBody | ) |
Definition at line 3112 of file footprint.cpp.
References m_extrudedBody.
Referenced by BOARD::ExchangeFootprint().
|
inlineinherited |
Definition at line 96 of file embedded_files.h.
References m_fileAddedCallback.
Referenced by LIB_BUFFER::SaveBuffer(), and SYMBOL_LIBRARY_MANAGER::SaveLibrary().
|
inline |
Definition at line 1175 of file footprint.h.
References m_fileFormatVersionAtLoad.
|
inline |
Definition at line 517 of file footprint.h.
References m_filters.
Referenced by BOARD::ExchangeFootprint(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 562 of file footprint.h.
References m_arflag.
|
inlineinherited |
Definition at line 158 of file eda_item.h.
References m_flags.
Referenced by SCH_IO_EAGLE::addBusEntries(), PCB_BASE_FRAME::AddFootprintToBoard(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), SCH_IO_ALTIUM::AddTextBox(), AlignSchematicItemsToGrid(), BACK_ANNOTATE::applyChangelist(), PCB_CONTROL::ApplyDesignBlockLayout(), BOARD_BOUNDING_BOX::BOARD_BOUNDING_BOX(), BOARD_BOUNDING_BOX::BOARD_BOUNDING_BOX(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), SCH_LINE_WIRE_BUS_TOOL::BreakSegment(), FOOTPRINT::BuildCourtyardCaches(), SCH_EDIT_TOOL::ChangeTextType(), GRAPHICS_CLEANER::cleanupShapes(), ConnectBoardShapes(), SCH_IO_ALTIUM::CreateAliases(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateBusWires(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateHierarchicalSheet(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateHierLabel(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateJunctions(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateNetLabels(), PCB_TUNING_PATTERN::CreateNew(), SCH_DRAWING_TOOLS::createNewLabel(), SCH_DRAWING_TOOLS::createNewText(), PADS_SCH::PADS_SCH_SCHEMATIC_BUILDER::CreateWires(), SCH_EDIT_FRAME::DeleteJunction(), doConvertOutlineToPolygon(), SCH_EDIT_TOOL::DoDelete(), SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), PCB_TOOL_BASE::doInteractiveItemPlacement(), EDIT_TOOL::doMoveSelection(), SCH_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), DRAWING_TOOL::DrawBarcode(), DRAWING_TOOL::DrawLine(), DRAWING_TOOL::DrawRectangle(), DRAWING_TOOL::drawShape(), SCH_DRAWING_TOOLS::DrawSheet(), EDIT_TOOL::Duplicate(), PCB_TUNING_PATTERN::EditStart(), PCB_VIA_STACK::EditStart(), PCB_VIA_STITCH::EditStart(), SCH_SELECTION_TOOL::EnterGroup(), PAD_TOOL::explodePad(), SCH_MOVE_TOOL::getConnectedDragItems(), SYMBOL_EDIT_FRAME::GetSymbolFromRedoList(), SYMBOL_EDIT_FRAME::GetSymbolFromUndoList(), SCH_SELECTION_TOOL::GuessSelectionCandidates(), SCH_DRAWING_TOOLS::ImportSheet(), SCH_MOVE_TOOL::initializeMoveOperation(), SCH_COLLECTOR::Inspect(), SCH_IO_PADS::LoadSchematicFile(), BOARD_COMMIT::MakeImage(), CONVERT_TOOL::makePolysFromChainedSegs(), CONVERT_TOOL::makePolysFromClosedGraphics(), CONVERT_TOOL::makePolysFromOpenGraphics(), SCH_SCREEN::MarkConnections(), TRACKS_CLEANER::mergeCollinearSegments(), SCH_MOVE_TOOL::moveItem(), SYMBOL_EDITOR_MOVE_TOOL::moveItem(), KIGFX::ORIGIN_VIEWITEM::ORIGIN_VIEWITEM(), SCH_MOVE_TOOL::orthoLineDrag(), SCH_IO_ALTIUM::ParseBezier(), SCH_IO_ALTIUM::ParseBus(), SCH_IO_ALTIUM::ParseBusEntry(), SCH_IO_ALTIUM::ParseHarnessEntry(), SCH_IO_ALTIUM::ParseJunction(), SCH_IO_ALTIUM::ParseLabel(), SCH_IO_ALTIUM::ParseLine(), SCH_IO_ALTIUM::ParseNetLabel(), SCH_IO_ALTIUM::ParseNoERC(), SCH_IO_ALTIUM::ParsePieChart(), SCH_IO_ALTIUM::ParsePolygon(), SCH_IO_ALTIUM::ParsePolyline(), SCH_IO_ALTIUM::ParsePortHelper(), SCH_IO_ALTIUM::ParseRectangle(), SCH_IO_ALTIUM::ParseRoundRectangle(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), SCH_IO_ALTIUM::ParseSheetSymbol(), SCH_IO_ALTIUM::ParseSignalHarness(), SCH_IO_ALTIUM::ParseWire(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), PCB_BOARD_OUTLINE::PCB_BOARD_OUTLINE(), BOARD_EDITOR_CONTROL::PlaceFootprint(), PL_DRAWING_TOOLS::PlaceItem(), DRAWING_TOOL::PlaceMicroviaStack(), SCH_SYMBOL::Plot(), PlotFootprintToSVG(), SCH_MOVE_TOOL::preprocessBreakOrSliceSelection(), BACK_ANNOTATE::processNetNameChange(), BOARD_COMMIT::Push(), SYMBOL_EDIT_FRAME::PushSymbolToUndoList(), SYMBOL_EDITOR_TABS_TEST_FIXTURE::pushTransientCommand(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), SCH_EDIT_FRAME::PutDataInPreviousState(), PCB_SELECTION_TOOL::RebuildSelection(), GERBVIEW_FRAME::RemapLayers(), BOARD::Remove(), FOOTPRINT::Remove(), PCB_TUNING_PATTERN::Remove(), SCH_COMMIT::RemovedForCleanup(), SCH_EDIT_TOOL::RepeatDrawItem(), SCH_EDIT_TOOL::Rotate(), DRC_TEST_PROVIDER_DISALLOW::Run(), ISSUE22864_FIXTURE::RunAlignmentAndVerify(), ISSUE22864_FIXTURE::RunAlignmentAndVerifyNoSkew(), DRAWING_TOOL::runSimpleShapeDraw(), SCH_EDIT_FRAME::SaveCopyInUndoList(), CLIPBOARD_IO::SaveSelection(), SCH_IO_KICAD_SEXPR::saveTable(), PCB_SELECTION_TOOL::selectAllConnectedShapes(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), SCH_SELECTION_TOOL::SelectMultiple(), SetBrightened(), SetIsShownAsBitmap(), SetModified(), SetSelected(), SCH_DRAWING_TOOLS::SingleClickPlace(), SCH_LINE_WIRE_BUS_TOOL::startSegments(), SCH_ITEM::SwapFlags(), DS_DATA_ITEM::SyncDrawItems(), DS_DATA_ITEM_BITMAP::SyncDrawItems(), SCH_DRAWING_TOOLS::TwoClickPlace(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), SCH_SHAPE::UpdateHatching(), and ROUTER_TOOL::updateSizesAfterRouterEvent().
| void FOOTPRINT::SetFootprintType | ( | FOOTPRINT_TYPE | aFootprintType | ) |
Definition at line 2144 of file footprint.cpp.
References FP_SMD, FP_THROUGH_HOLE, m_attributes, SMD, and THROUGH_HOLE.
Referenced by FOOTPRINT_DESC::FOOTPRINT_DESC().
|
inlineinherited |
Definition at line 162 of file view_item.h.
References m_forcedTransparency.
Referenced by FOOTPRINT_DIFF_WIDGET::onSlider(), EDA_ITEM::operator=(), and LIB_SYMBOL::SetParent().
|
inlineinherited |
Set and clear force visible flag used to force the item to be drawn even if it's draw attribute is set to not visible.
| aEnable | True forces the item to be drawn. False uses the item's visibility setting to determine if the item is to be drawn. |
Definition at line 232 of file eda_item.h.
References m_forceVisible.
Referenced by SCH_FIND_REPLACE_TOOL::FindNext(), and SCH_FIND_REPLACE_TOOL::UpdateFind().
|
inline |
Definition at line 474 of file footprint.h.
References m_fpid.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), PCB_IO_AUTOTRAX::buildComponent(), DIPTRACE::PCB_PARSER::CreateFootprint(), PCB_BASE_FRAME::CreateNewFootprint(), DeserializeDefinition(), FOOTPRINT_EDIT_FRAME::DuplicateFootprint(), FOOTPRINT_LIBRARY_ADAPTER::enumerateLibrary(), DISPLAY_FOOTPRINTS_FRAME::GetFootprint(), FP_CACHE::Load(), GPCB_FPL_CACHE::Load(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponentLibrary(), FABMASTER::loadFootprints(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), LP_CACHE::LoadModules(), PCB_IO_EAGLE::loadPlain(), makeFpHolder(), FOOTPRINT_EDITOR_CONTROL::NewFootprint(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), FOOTPRINT_LIBRARY_ADAPTER::SaveFootprint(), FOOTPRINT_EDIT_FRAME::SaveFootprintAs(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), HEADLESS_FOOTPRINT_CONTEXT::SaveFootprintInLibrary(), CLIPBOARD_IO::SaveSelection(), COMPONENT::SetFootprint(), and FOOTPRINT_EDITOR_CONTROL::tryToSaveFootprintInLibrary().
|
inline |
Definition at line 480 of file footprint.h.
References m_fpid.
|
inherited |
Definition at line 424 of file board_item.cpp.
References GetParentFootprint(), and EDA_ITEM::SetPosition().
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), PCB_IO_KICAD_LEGACY::loadMODULE_TEXT(), DIALOG_FOOTPRINT_PROPERTIES::OnAddField(), processTextItem(), and PCB_FIELDS_GRID_TABLE::SetValue().
|
inline |
Take ownership of caller's heap allocated aInitialComments block.
The comments are single line strings already containing the s-expression comments with optional leading whitespace and then a '#' character followed by optional single line text (text with no line endings, not even one). This block of single line comments will be output upfront of any generated s-expression text in the PCBIO::Format() function.
| aInitialComments | is a heap allocated wxArrayString or NULL, which the caller gives up ownership of over to this FOOTPRINT. |
Definition at line 1343 of file footprint.h.
References m_initial_comments.
|
inlinevirtualinherited |
Reimplemented in PCB_BARCODE.
Definition at line 414 of file board_item.h.
References m_isKnockout.
Referenced by ZONE_FILLER::addKnockout(), BOOST_AUTO_TEST_CASE(), ALTIUM_PCB::ConvertTexts6ToBoardItemOnLayer(), ALTIUM_PCB::ConvertTexts6ToFootprintItemOnLayer(), MULTICHANNEL_TOOL::copyRuleAreaContents(), PCB_BARCODE::Deserialize(), PCB_TEXT::Deserialize(), PCB_TEXTBOX::Deserialize(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_EASYEDAPRO_V3_PARSER::ParseBoard(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_TEXT_effects(), PCB_IO_KICAD_SEXPR_PARSER::parseTextBoxContent(), PCB_TEXT_DESC::PCB_TEXT_DESC(), PCB_TEXTBOX_DESC::PCB_TEXTBOX_DESC(), processTextItem(), PCB_BARCODE::SetIsKnockout(), and PCB_FIELDS_GRID_TABLE::SetValueAsBool().
|
inline |
Definition at line 717 of file footprint.h.
References FP_is_PLACED, and m_fpStatus.
Referenced by AR_AUTOPLACER::AutoplaceFootprints(), and PCB_IO_KICAD_LEGACY::loadFOOTPRINT().
|
inlineinherited |
Definition at line 144 of file eda_item.h.
References m_isRollover, and m_rolloverPos.
Referenced by SCH_SELECTION_TOOL::Main().
|
inlineinherited |
Definition at line 198 of file eda_item.h.
References ClearFlags(), IS_SHOWN_AS_BITMAP, and SetFlags().
|
inline |
Definition at line 494 of file footprint.h.
References m_keywords.
Referenced by LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), DeserializeDefinition(), and PCB_IO_KICAD_LEGACY::loadFOOTPRINT().
|
overridevirtual |
Set the layer this item is on.
| aLayer | The layer number. |
Reimplemented from BOARD_ITEM.
Definition at line 3558 of file footprint.cpp.
References B_Cu, m_flipped, and BOARD_ITEM::SetLayer().
Referenced by addFootprint(), PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SPRINT_LAYOUT_PARSER::CreateBoard(), Deserialize(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), FABMASTER::loadFootprints(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), PCB_IO_PADS::loadTestPoints(), and SPRINT_LAYOUT_PARSER::processPad().
| void FOOTPRINT::SetLayerAndFlip | ( | PCB_LAYER_ID | aLayer | ) |
Used as Layer property setter – performs a flip if necessary to set the footprint layer.
| aLayer | is the target layer (F_Cu or B_Cu) |
Definition at line 3451 of file footprint.cpp.
References B_Cu, F_Cu, Flip(), GetLayer(), GetPosition(), and LEFT_RIGHT.
Referenced by FOOTPRINT_DESC::FOOTPRINT_DESC().
|
inlinevirtualinherited |
Reimplemented in BOARD, PAD, PCB_GRID_ITEM, PCB_SHAPE, PCB_TRACK, PCB_VIA, and ZONE.
Definition at line 354 of file board_item.h.
References KIGFX::VIEW_ITEM::GetClass(), LSET::Seq(), SetLayer(), and UNIMPLEMENTED_FOR.
Referenced by MULTICHANNEL_TOOL::copyRuleAreaContents(), BOARD::RemoveAllItemsOnLayer(), and GLOBAL_EDIT_TOOL::swapBoardItem().
|
inline |
Definition at line 491 of file footprint.h.
References m_libDescription.
Referenced by LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), SPRINT_LAYOUT_PARSER::CreateBoard(), DeserializeDefinition(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponents(), and PCB_IO_KICAD_LEGACY::loadFOOTPRINT().
|
inline |
Definition at line 1259 of file footprint.h.
References m_link.
Referenced by FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), BOOST_AUTO_TEST_CASE(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), BOARD_EDITOR_CONTROL::PlaceFootprint(), PlotFootprintToSVG(), FOOTPRINT_EDIT_FRAME::SaveFootprintAs(), and FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard().
|
inline |
Definition at line 520 of file footprint.h.
References m_clearance.
Referenced by Deserialize(), BOARD::ExchangeFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), and PCB_IO_KICAD_LEGACY::loadFOOTPRINT().
|
inline |
Definition at line 523 of file footprint.h.
References m_solderMaskMargin.
Referenced by Deserialize(), BOARD::ExchangeFootprint(), and PCB_IO_KICAD_LEGACY::loadFOOTPRINT().
|
inline |
Definition at line 526 of file footprint.h.
References m_solderPasteMargin.
Referenced by Deserialize(), BOARD::ExchangeFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), and PCB_IO_KICAD_LEGACY::loadFOOTPRINT().
|
inline |
Definition at line 529 of file footprint.h.
References m_solderPasteMarginRatio.
Referenced by BOOST_AUTO_TEST_CASE(), Deserialize(), BOARD::ExchangeFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), and PCB_IO_KICAD_LEGACY::loadFOOTPRINT().
|
inline |
Definition at line 531 of file footprint.h.
References m_zoneConnection.
Referenced by Deserialize(), BOARD::ExchangeFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), and PCB_IO_KICAD_LEGACY::loadFOOTPRINT().
|
inlineoverridevirtual |
Set the #MODULE_is_LOCKED bit in the m_ModuleStatus.
| isLocked | true means turn on locked status, else unlock |
Reimplemented from BOARD_ITEM.
Definition at line 703 of file footprint.h.
References FP_is_LOCKED, and m_fpStatus.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), Deserialize(), BOARD::ExchangeFootprint(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), and CLIPBOARD_IO::SaveSelection().
|
inherited |
Definition at line 260 of file eda_item.cpp.
References IS_CHANGED, m_parent, and SetFlags().
Referenced by PCB_EDIT_FRAME::OpenProjectFiles(), SCH_IO_ALTIUM::ParseASCIISchematic(), and SCH_IO_ALTIUM::ParseFileHeader().
|
inline |
Definition at line 726 of file footprint.h.
References FP_to_PLACE, and m_fpStatus.
Referenced by AR_AUTOPLACER::AutoplaceFootprints().
|
inherited |
Definition at line 131 of file eda_item.cpp.
References m_netHighlighted.
Referenced by KIGFX::SCH_PAINTER::draw(), and setNetHighlight().
| void FOOTPRINT::SetOrientation | ( | const EDA_ANGLE & | aNewAngle | ) |
Definition at line 3728 of file footprint.cpp.
References BaseType(), BOARD_ITEM::BOARD_ITEM(), GetPosition(), m_courtyard_cache, m_drawings, m_fields, m_geometry_cache, m_pads, m_points, m_transform, m_zones, EDA_ANGLE::Normalize180(), pad, PCB_BARCODE_T, PCB_DIMENSION_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TEXT_T, and PCB_TEXTBOX_T.
Referenced by PCB_BASE_FRAME::AddFootprintToBoard(), PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), buildCoincidentFootprint(), DIPTRACE::PCB_PARSER::CreateFootprint(), BOARD::ExchangeFootprint(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), PCB_IO_KICAD_SEXPR::FootprintSave(), DSN::SPECCTRA_DB::FromSESSION(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponents(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), PCB_IO_EAGLE::orientFootprintAndText(), BOARD_EDITOR_CONTROL::PlaceFootprint(), PlotFootprintToSVG(), Rotate(), SetOrientationDegrees(), and EDIT_TOOL::Swap().
|
inline |
Definition at line 464 of file footprint.h.
References DEGREES_T, and SetOrientation().
Referenced by BOOST_AUTO_TEST_CASE(), SPRINT_LAYOUT_PARSER::CreateBoard(), Deserialize(), FOOTPRINT_DESC::FOOTPRINT_DESC(), and FABMASTER::loadFootprints().
|
virtualinherited |
Reimplemented in LIB_SYMBOL, NETINFO_ITEM, and PCB_POINT.
Definition at line 153 of file eda_item.cpp.
References EDA_ITEM(), and m_parent.
Referenced by BOARD::Add(), FOOTPRINT::Add(), PCB_TABLE::AddCell(), SCH_TABLE::AddCell(), LIB_SYMBOL::AddDrawItem(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), BOARD_NETLIST_UPDATER::addNewFootprint(), SCH_SHEET::AddPin(), PAD::AddPrimitive(), SYMBOL_EDITOR_CONTROL::AddSymbolToSchematic(), SCHEMATIC::AddTopLevelSheet(), SCH_SCREEN::Append(), PADSTACK::AppendPrimitives(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), CONNECTION_GRAPH::boost_test_update_generic_connectivity, CONNECTION_GRAPH::boost_test_update_symbol_connectivity, CADSTAR_SCH_ARCHIVE_LOADER::copySymbolItems(), SPRINT_LAYOUT_PARSER::CreateBoard(), SCH_DRAWING_TOOLS::createNewLabel(), SCH_DRAWING_TOOLS::createNewText(), PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems(), LIB_SYMBOL_LIBRARY_MANAGER::CreateSymbol(), FIELDS_GRID_TABLE::DetachFields(), FOOTPRINT_EDITOR_CONTROL::editFootprintPropertiesFromLibrary(), SCHEMATIC::ensureVirtualRoot(), FOOTPRINT_LIBRARY_ADAPTER::enumerateLibrary(), BOARD::ExchangeFootprint(), PAD_TOOL::explodePad(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), LIB_SYMBOL::Flatten(), PCB_IO_KICAD_SEXPR::FootprintSave(), DISPLAY_FOOTPRINTS_FRAME::GetFootprint(), CADSTAR_SCH_ARCHIVE_LOADER::getKiCadSchText(), PCB_TABLE::InsertCell(), SCH_TABLE::InsertCell(), LIB_SYMBOL::LIB_SYMBOL(), LTSPICE_SCHEMATIC::Load(), SCH_IO_KICAD_LEGACY_LIB_CACHE::loadAliases(), PCB_IO_GEDA::loadBoard(), CADSTAR_SCH_ARCHIVE_LOADER::loadChildSheets(), SCH_IO_KICAD_LEGACY::loadHierarchy(), SCH_IO_KICAD_SEXPR::loadHierarchy(), SCH_IO_DATABASE::loadSymbolFromRow(), SCH_IO_EAGLE::loadSymbolPolyLine(), SCH_IO_EAGLE::loadSymbolRectangle(), SCH_IO_EAGLE::loadSymbolWire(), PCB_POINT_EDITOR::OnSelectionChange(), LIB_SYMBOL::operator=(), SCH_IO_KICAD_SEXPR_PARSER::parseLibSymbol(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), PCB_CONTROL::Paste(), SCH_EDITOR_CONTROL::Paste(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), pasteFootprintItemsToFootprintEditor(), BOARD_EDITOR_CONTROL::PlaceFootprint(), DRAWING_TOOL::PlaceMicroviaStack(), PlaceRemoteDownloadedSymbol(), PlotFootprintToSVG(), FOOTPRINT_EDIT_FRAME::prepareFootprintTabHandoff(), BACK_ANNOTATE::processNetNameChange(), KI_TEST::ReadSchematicFromStream(), PAD::Recombine(), FOOTPRINT_EDIT_FRAME::RefreshLibraryFootprintTab(), SCH_IO_LIB_CACHE::removeSymbol(), SCH_EDIT_TOOL::RepeatDrawItem(), FOOTPRINT_LIBRARY_ADAPTER::SaveFootprint(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), CLIPBOARD_IO::SaveSelection(), SCH_EDIT_FRAME::SaveSelectionAsDesignBlock(), SCH_SHEET_PIN::SCH_SHEET_PIN(), LIB_SYMBOL::SetFields(), PCB_POINT::SetParent(), SCH_DRAWING_TOOLS::SingleClickPlace(), SCH_LINE_WIRE_BUS_TOOL::startSegments(), FOOTPRINT::swapData(), PCB_BARCODE::swapData(), PCB_TABLE::swapData(), SCH_LABEL_BASE::swapData(), SCH_SHEET::swapData(), SCH_SYMBOL::swapData(), SCH_TABLE::swapData(), BOARD_ITEM::SwapItemData(), SCH_ITEM::SwapItemData(), SCH_SYMBOL::SyncOtherUnits(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), SCH_DRAWING_TOOLS::TwoClickPlace(), SCH_EDIT_FRAME::UpdateDesignBlockFromSelection(), FOOTPRINT::UpdateFields(), and PCB_IO_SPRINT_LAYOUT::~PCB_IO_SPRINT_LAYOUT().
|
inlinevirtualinherited |
Definition at line 115 of file eda_item.h.
References m_group.
Referenced by EDA_GROUP::AddItem(), BOOST_AUTO_TEST_CASE(), MULTICHANNEL_TOOL::copyRuleAreaContents(), FOOTPRINT_LIBRARY_ADAPTER::enumerateLibrary(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), PCB_IO_KICAD_SEXPR::FootprintSave(), GENDRILL_WRITER_BASE::genDrillMapFile(), SCH_SYMBOL::GetOrientation(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), EDA_GROUP::RemoveItem(), FOOTPRINT_LIBRARY_ADAPTER::SaveFootprint(), CLIPBOARD_IO::SaveSelection(), PCB_EDIT_FRAME::saveSelectionToDesignBlock(), PCB_GROUP::swapChildOwnership(), SCH_GROUP::swapData(), and BOARD_ITEM::SwapItemData().
|
inline |
Definition at line 497 of file footprint.h.
References m_path.
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOARD::ExchangeFootprint(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), COMPONENT::SetFootprint(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
overridevirtual |
Reimplemented from EDA_ITEM.
Definition at line 3616 of file footprint.cpp.
References BaseType(), BOARD_ITEM::BOARD_ITEM(), delta, m_courtyard_cache, m_drawings, m_fields, m_geometry_cache, m_pads, m_points, m_transform, m_zones, pad, PCB_BARCODE_T, PCB_DIMENSION_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TEXT_T, and PCB_TEXTBOX_T.
Referenced by PCB_BASE_FRAME::AddFootprintToBoard(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), BOARD_NETLIST_UPDATER::addNewFootprint(), AddPadToBoard(), PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), PCAD2KICAD::PCAD_PAD::AddToBoard(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), buildCoincidentFootprint(), PCB_IO_AUTOTRAX::buildComponent(), PNS_KICAD_IFACE::Commit(), DIPTRACE::PCB_PARSER::CreateFootprint(), FOOTPRINT_EDITOR_CONTROL::CreateFootprint(), BACKDRILL_TEST_FIXTURE::CreateFootprintWithPad(), Deserialize(), PCB_IO_AUTOTRAX::emitPad(), BOARD::ExchangeFootprint(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), Flip(), DSN::SPECCTRA_DB::FromSESSION(), DISPLAY_FOOTPRINTS_FRAME::GetFootprint(), FOOTPRINT_EDIT_FRAME::ImportFootprint(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponentLibrary(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponents(), PCB_IO_EAGLE::loadElements(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), FABMASTER::loadFootprints(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), PCB_IO_PADS::loadTestPoints(), Move(), FOOTPRINT_EDITOR_CONTROL::NewFootprint(), PCB_IO_EAGLE::packageHole(), BOARD_EDITOR_CONTROL::PlaceFootprint(), PCB_BASE_FRAME::PlaceFootprint(), AR_AUTOPLACER::placeFootprint(), PlotFootprintToSVG(), RescaleAroundPoint(), Rotate(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), and CLIPBOARD_IO::SaveSelection().
|
inline |
Adds an item to the container.
| aMode | decides whether the item is added in the beginning or at the end of the list. |
| aSkipConnectivity | skip connectivity update (useful for file loading, when the connectivity is updated after end of loading). |
Definition at line 345 of file footprint.h.
References m_privateLayers.
Referenced by DeserializeDefinition().
|
inline |
| aReference | A reference to a wxString object containing the reference designator text. |
Definition at line 907 of file footprint.h.
References Reference(), and EDA_TEXT::SetText().
Referenced by addFootprint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), PCB_IO_AUTOTRAX::buildComponent(), SPRINT_LAYOUT_PARSER::CreateBoard(), DIPTRACE::PCB_PARSER::CreateFootprint(), BACKDRILL_TEST_FIXTURE::CreateFootprintWithPad(), PCB_BASE_FRAME::CreateNewFootprint(), FOOTPRINT_DESC::FOOTPRINT_DESC(), IncrementReference(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponentLibrary(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponents(), PCB_IO_EAGLE::loadElements(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), FABMASTER::loadFootprints(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), PCB_IO_EAGLE::loadPlain(), PCB_IO_PADS::loadTestPoints(), PCB_CONTROL::Paste(), SPRINT_LAYOUT_PARSER::processPad(), COMPONENT::SetFootprint(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 458 of file footprint.h.
References m_transform, and SetTransformScale().
Referenced by BOOST_FIXTURE_TEST_CASE(), and FOOTPRINT_DESC::FOOTPRINT_DESC().
|
inline |
Definition at line 460 of file footprint.h.
References m_transform, and SetTransformScale().
Referenced by BOOST_FIXTURE_TEST_CASE(), and FOOTPRINT_DESC::FOOTPRINT_DESC().
|
inlineinherited |
Definition at line 150 of file eda_item.h.
References SELECTED, and SetFlags().
Referenced by BOOST_AUTO_TEST_CASE(), PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems(), KIGFX::SCH_PAINTER::draw(), PL_SELECTION_TOOL::highlight(), SCH_SELECTION_TOOL::highlight(), PCB_SELECTION_TOOL::highlightInternal(), PCB_TEST_SELECTION_TOOL::highlightInternal(), SCH_LINE::MergeOverlap(), DRAWING_TOOL::PlaceGridItem(), DS_PROXY_UNDO_ITEM::Restore(), SCH_TOOL_BASE< T >::saveCopyInUndoList(), GERBVIEW_SELECTION_TOOL::selectVisually(), and SCH_COMMIT::Stage().
|
inline |
Definition at line 514 of file footprint.h.
References m_sheetfile.
Referenced by BOOST_FIXTURE_TEST_CASE(), BOARD::ExchangeFootprint(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
|
inline |
Definition at line 511 of file footprint.h.
References m_sheetname.
Referenced by BOOST_FIXTURE_TEST_CASE(), BOARD::ExchangeFootprint(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
| void FOOTPRINT::SetStackupLayers | ( | LSET | aLayers | ) |
If the footprint has a non-default stackup, set the layers that should be used for the stackup.
Definition at line 5512 of file footprint.cpp.
References CUSTOM_LAYERS, m_stackupLayers, and m_stackupMode.
Referenced by PCB_IO_KICAD_SEXPR_PARSER::parseFootprintStackup().
| void FOOTPRINT::SetStackupMode | ( | FOOTPRINT_STACKUP | aMode | ) |
Set the stackup mode for this footprint.
This determines if the footprint lists its own layers or uses a default stackup, with "expansion" of inner layers to the PCB's inner layers.
Definition at line 5500 of file footprint.cpp.
References B_Cu, EXPAND_INNER_LAYERS, F_Cu, In1_Cu, m_stackupLayers, and m_stackupMode.
Referenced by PCB_IO_KICAD_SEXPR_PARSER::parseFootprintStackup().
| void FOOTPRINT::SetStaticComponentClass | ( | const COMPONENT_CLASS * | aClass | ) | const |
Sets the component class object pointer for this footprint.
Definition at line 5452 of file footprint.cpp.
References m_componentClassCacheProxy.
Referenced by BOARD_NETLIST_UPDATER::addNewFootprint(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOARD::ExchangeFootprint(), ResolveComponentClassNames(), and BOARD_NETLIST_UPDATER::updateComponentClass().
|
virtualinherited |
Reimplemented in PCB_SHAPE.
Definition at line 163 of file board_item.cpp.
References KIGFX::VIEW_ITEM::GetClass().
| void FOOTPRINT::SetTransformScale | ( | double | aScaleX, |
| double | aScaleY ) |
Definition at line 3565 of file footprint.cpp.
References anchor, BOARD_ITEM::BOARD_ITEM(), m_courtyard_cache, m_drawings, m_fields, m_geometry_cache, m_pads, m_points, m_transform, m_zones, and pad.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), buildCoincidentFootprint(), BOARD::ExchangeFootprint(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), RescaleAroundPoint(), SetScaleX(), and SetScaleY().
|
inline |
Sets the transient component class names.
This is used during paste operations as we can't resolve the component classes immediately until we have the true board context once the pasted items have been placed
Definition at line 1432 of file footprint.h.
References m_transientComponentClassNames.
|
inline |
Definition at line 1016 of file footprint.h.
References m_unitInfo.
Referenced by COMPONENT::SetFootprint(), and BOARD_NETLIST_UPDATER::updateComponentUnits().
|
inherited |
Definition at line 118 of file board_item.cpp.
References BOARD, m_boardCacheOwner, EDA_ITEM::m_Uuid, and SetUuidDirect().
Referenced by BOOST_AUTO_TEST_CASE(), BOARD::ExchangeFootprint(), processTextItem(), ResetUuid(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), and BOARD_NETLIST_UPDATER::updateFootprintGroup().
|
inherited |
Raw UUID assignment.
No board index maintenance.
Use for detached/load-time items only. Prefer SetUuid() for normal callers.
Definition at line 134 of file board_item.cpp.
References EDA_ITEM::m_Uuid.
Referenced by BOOST_AUTO_TEST_CASE(), TEARDROP_MANAGER::createTeardrop(), TEARDROP_MANAGER::createTeardropMask(), FOOTPRINT::Deserialize(), PAD::Deserialize(), PCB_ARC::Deserialize(), PCB_BARCODE::Deserialize(), PCB_CONSTRAINT::Deserialize(), PCB_DIMENSION_BASE::Deserialize(), PCB_DRILL_MAP::Deserialize(), PCB_GRID_ITEM::Deserialize(), PCB_POINT::Deserialize(), PCB_REFERENCE_IMAGE::Deserialize(), PCB_SHAPE::Deserialize(), PCB_TABLE::Deserialize(), PCB_TEXT::Deserialize(), PCB_TEXTBOX::Deserialize(), PCB_TRACK::Deserialize(), PCB_VIA::Deserialize(), ZONE::Deserialize(), PCB_GROUP::DeserializeGroup(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), PCB_IO_KICAD_LEGACY::loadPCB_TARGET(), PCB_IO_KICAD_LEGACY::loadPCB_TEXT(), PCB_IO_KICAD_LEGACY::loadTrackList(), PAD::PAD(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_TEXT_effects(), PCB_IO_KICAD_SEXPR_PARSER::parseTextBoxContent(), PCB_VIA::PCB_VIA(), DRAWING_TOOL::PlaceMicroviaStack(), BOARD::RebindItemUuid(), ResetUuidDirect(), SetUuid(), and ALLEGRO::BOARD_BUILDER::stampIds().
|
inline |
| aValue | A reference to a wxString object containing the value text. |
Definition at line 930 of file footprint.h.
References EDA_TEXT::SetText(), and Value().
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), addFootprint(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), PCB_IO_AUTOTRAX::buildComponent(), SPRINT_LAYOUT_PARSER::CreateBoard(), DIPTRACE::PCB_PARSER::CreateFootprint(), PCB_BASE_FRAME::CreateNewFootprint(), FOOTPRINT_EDIT_FRAME::DuplicateFootprint(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponentLibrary(), CADSTAR_PCB_ARCHIVE_LOADER::loadComponents(), PCB_IO_EAGLE::loadElements(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), FABMASTER::loadFootprints(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), PCB_IO_PADS::loadTestPoints(), FOOTPRINT_EDIT_FRAME::SaveFootprintAs(), COMPONENT::SetFootprint(), and BOARD_NETLIST_UPDATER::updateFootprintParameters().
| void FOOTPRINT::SetVariant | ( | const FOOTPRINT_VARIANT & | aVariant | ) |
Add or update a variant.
| aVariant | The variant to add or update. |
Definition at line 1636 of file footprint.cpp.
References GetDefaultVariantName(), FOOTPRINT_VARIANT::GetName(), m_variants, and FOOTPRINT_VARIANT::SetName().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 155 of file board_item.h.
References GetY(), and EDA_ITEM::SetPosition().
Referenced by FOOTPRINT::AutoPositionFields(), and BOARD_ITEM_DESC::BOARD_ITEM_DESC().
|
inlineinherited |
Definition at line 161 of file board_item.h.
References GetX(), and EDA_ITEM::SetPosition().
Referenced by FOOTPRINT::AutoPositionFields(), and BOARD_ITEM_DESC::BOARD_ITEM_DESC().
|
overridevirtual |
Return a measure of how likely the other object is to represent the same object.
The scale runs from 0.0 (definitely different objects) to 1.0 (same)
This is a pure virtual function. Derived classes must implement this.
Implements BOARD_ITEM.
Definition at line 4971 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), FindPadByNumber(), FOOTPRINT(), m_pads, pad, PCB_FOOTPRINT_T, and EDA_ITEM::Type().
Referenced by BOOST_FIXTURE_TEST_CASE().
|
inlinestaticinherited |
Helper function to be used by the C++ STL sort algorithm for sorting a STL container of EDA_ITEM pointers.
| aLeft | The left hand item to compare. |
| aRight | The right hand item to compare. |
Definition at line 538 of file eda_item.h.
References EDA_ITEM().
|
static |
Test for validity of the name in a library of the footprint ( no spaces, dir separators ... ).
| aUserReadable | set to false to get the list of invalid characters or true to get a readable form (i.e ' ' = 'space' '\t'= 'tab'). |
Definition at line 3404 of file footprint.cpp.
References GetLibFilenameForbiddenChars().
Referenced by DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::checkFootprintName(), IsLibNameValid(), and SAVE_AS_DIALOG::SAVE_AS_DIALOG().
|
inlinevirtualinherited |
Reimplemented in PCB_BARCODE, PCB_DIMENSION_BASE, PCB_SHAPE, PCB_TEXT, and PCB_TEXTBOX.
Definition at line 423 of file board_item.h.
Referenced by DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem().
|
overrideprotectedvirtual |
Reimplemented from BOARD_ITEM.
Definition at line 4870 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), FOOTPRINT(), image, NO_RECURSE, PCB_FOOTPRINT_T, RunOnChildren(), EDA_ITEM::SetParent(), and EDA_ITEM::Type().
|
inherited |
Swap data between aItem and aImage.
aItem and aImage should have the same type.
Used in undo and redo commands to swap values between an item and its copy. Only values like layer, size .. which are modified by editing are swapped.
| aImage | the item image which contains data to swap. |
Definition at line 320 of file board_item.cpp.
References BOARD, BOARD_ITEM(), BOARD::CacheChildrenById(), EDA_ITEM::EDA_ITEM(), GetBoard(), GetParent(), EDA_ITEM::GetParentGroup(), group, EDA_ITEM::SetParent(), EDA_ITEM::SetParentGroup(), swapData(), and BOARD::UncacheChildrenById().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), and BOARD_COMMIT::Revert().
| bool FOOTPRINT::TextOnly | ( | ) | const |
Definition at line 2197 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), m_drawings, m_privateLayers, PCB_FIELD_T, and PCB_TEXT_T.
| void FOOTPRINT::TransformFPShapesToPolySet | ( | SHAPE_POLY_SET & | aBuffer, |
| PCB_LAYER_ID | aLayer, | ||
| int | aClearance, | ||
| int | aError, | ||
| ERROR_LOC | aErrorLoc, | ||
| bool | aIncludeText = true, | ||
| bool | aIncludeShapes = true, | ||
| bool | aIncludePrivateItems = false ) const |
Generate shapes of graphic items (outlines) on layer aLayer as polygons and adds these polygons to aBuffer.
Useful to generate a polygonal representation of a footprint in 3D view and plot functions, when a full polygonal approach is needed.
| aLayer | is the layer to consider, or UNDEFINED_LAYER to consider all. |
| aBuffer | is the buffer to store polygons. |
| aClearance | is a value to inflate shapes. |
| aError | is the maximum error between true arc and polygon approximation. |
| aIncludeText | set to true to transform text shapes. |
| aIncludeShapes | set to true to transform footprint shapes. |
Definition at line 5341 of file footprint.cpp.
References BOARD_ITEM::BOARD_ITEM(), BOARD_ITEM::GetLayer(), PCB_SHAPE::GetLayer(), GetPrivateLayers(), GraphicalItems(), PCB_TEXTBOX::IsBorderEnabled(), m_fields, PCB_BARCODE_T, PCB_SHAPE_T, PCB_TEXT_T, PCB_TEXTBOX_T, text, BOARD_ITEM::TransformShapeToPolySet(), PCB_SHAPE::TransformShapeToPolySet(), PCB_TEXTBOX::TransformTextToPolySet(), and UNDEFINED_LAYER.
Referenced by EXPORTER_STEP::buildFootprint3DShapes(), CoverageRatio(), enclosedByAreaFunc(), and TransformFPTextToPolySet().
|
inline |
This function is the same as TransformFPShapesToPolySet but only generates text.
Definition at line 845 of file footprint.h.
References TransformFPShapesToPolySet().
| void FOOTPRINT::TransformPadsToPolySet | ( | SHAPE_POLY_SET & | aBuffer, |
| PCB_LAYER_ID | aLayer, | ||
| int | aClearance, | ||
| int | aMaxError, | ||
| ERROR_LOC | aErrorLoc ) const |
Generate pads shapes on layer aLayer as polygons and adds these polygons to aBuffer.
Useful to generate a polygonal representation of a footprint in 3D view and plot functions, when a full polygonal approach is needed.
| aLayer | is the layer to consider, or UNDEFINED_LAYER to consider all layers. |
| aBuffer | i the buffer to store polygons. |
| aClearance | is an additional size to add to pad shapes. |
| aMaxError | is the maximum deviation from true for arcs. |
Definition at line 5271 of file footprint.cpp.
References B_Mask, B_Paste, clearance, CUSTOM, dummy, F_Mask, F_Paste, m_pads, pad, UNDEFINED_LAYER, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by CoverageRatio(), and enclosedByAreaFunc().
|
virtualinherited |
Convert the item shape to a closed polygon.
Circles and arcs are approximated by segments.
| aBuffer | a buffer to store the polygon. |
| aClearance | the clearance around the polygonal shape (inflated polygon). |
| aError | the maximum deviation from true circle. |
| aErrorLoc | should the approximation error be placed outside or inside the polygon? |
| ignoreLineWidth | used for edge cut items where the line width is only for visualization. |
Reimplemented in PAD, PCB_BARCODE, PCB_DIMENSION_BASE, PCB_GRID_ITEM, PCB_MARKER, PCB_POINT, PCB_SHAPE, PCB_TABLE, PCB_TARGET, PCB_TEXT, PCB_TEXTBOX, PCB_TRACK, and ZONE.
Definition at line 372 of file board_item.cpp.
References KIGFX::VIEW_ITEM::GetClass().
Referenced by addItemPolysWithEndings(), addItemPolysWithEndings(), addItemPolysWithEndings(), ZONE_FILLER::addKnockout(), ZONE_FILLER::addKnockout(), DRC_TEST_PROVIDER_MATCHED_LENGTH::checkReturnPath(), FOOTPRINT::CoverageRatio(), enclosedByAreaFunc(), FOOTPRINT::GetCoverageArea(), process(), PNS_KICAD_IFACE_BASE::syncTextItem(), and TransformShapeToPolySet().
|
inlinevirtualinherited |
Convert the item shape to a polyset.
Circles and arcs are approximated by segments; hatched fills and details (if any) will be included.
| aBuffer | a buffer to store the polygon. |
| aClearance | the clearance around the pad. |
| aError | the maximum deviation from true circle. |
| aErrorLoc | should the approximation error be placed outside or inside the polygon? |
| aRenderSettings | used to plot outlines with not solid segments like dashed lines. So it is not used by all BOARD_ITEMS. If null lines like dashed will be converted as SOLID |
Reimplemented in PCB_SHAPE, and PCB_TABLE.
Definition at line 542 of file board_item.h.
References TransformShapeToPolygon().
Referenced by BOARD_ADAPTER::addBarCode(), EXPORTER_STEP::buildGraphic3DShape(), ComputeBoardStatistics(), BOARD_ADAPTER::createLayers(), KIGFX::PCB_PAINTER::draw(), PCB_TRACK::GetMsgPanelInfo(), CONVERT_TOOL::makePolysFromClosedGraphics(), BRDITEMS_PLOTTER::PlotBarCode(), and FOOTPRINT::TransformFPShapesToPolySet().
|
inlineinherited |
Returns the type of object.
This attribute should never be changed after a ctor sets it, so there is no public "setter" method.
Definition at line 110 of file eda_item.h.
References m_structType.
Referenced by BOARD::Add(), CN_CLUSTER::Add(), CN_CONNECTIVITY_ALGO::Add(), FOOTPRINT::Add(), KIGFX::PCB_VIEW::Add(), SCH_PROPERTIES_PANEL::addBlankField(), PCB_GRID_HELPER::AddConstructionItems(), PCB_POINT_EDITOR::addCorner(), CONNECTION_SUBGRAPH::AddItem(), addItemPolysWithEndings(), addItemPolysWithEndings(), addItemPolysWithEndings(), DRC_TEST_PROVIDER_SOLDER_MASK::addItemToRTrees(), ZONE_FILLER::addKnockout(), ZONE_FILLER::addKnockout(), SCH_SHEET::AddPin(), FEATURES_MANAGER::AddText(), SCH_BASE_FRAME::AddToScreen(), FEATURES_MANAGER::AddTrack(), affectsDrillModel(), PCB_GRID_HELPER::Align(), SCH_SCREEN::Append(), BOARD_CONSTRAINT_ADAPTER::Apply(), PCB_CONTROL::ApplyDesignBlockLayout(), CADSTAR_SCH_ARCHIVE_LOADER::applyTextSettings(), PNS::TOPOLOGY::AssembleTuningPath(), SCH_LABEL_BASE::AutoplaceFields(), SCH_EDIT_FRAME::AutoRotateItem(), SCH_SELECTION_TOOL::autostartEvent(), bindDimensionEndpoints(), BoardItemIntersectable(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), ZONE_FILLER::buildCopperItemClearances(), EXPORTER_STEP::buildGraphic3DShape(), SCH_SCREENS::buildScreenList(), EXPORTER_STEP::buildTrack3DShape(), BOARD_INSPECTION_TOOL::calculateSelectionRatsnest(), PCB_POINT_EDITOR::CanAddCorner(), PCB_POINT_EDITOR::CanChamferCorner(), SCH_BUS_BUS_ENTRY::CanConnect(), SCH_BUS_WIRE_ENTRY::CanConnect(), SCH_JUNCTION::CanConnect(), SCH_LABEL_BASE::CanConnect(), SCH_LINE::CanConnect(), SCH_NO_CONNECT::CanConnect(), SCH_SHEET::CanConnect(), SCH_SYMBOL::CanConnect(), SCH_GROUP_TOOL::canGroupItem(), PCB_POINT_EDITOR::CanRemoveCorner(), PCB_POINT_EDITOR::chamferCorner(), SCH_EDIT_TOOL::ChangeTextType(), KI_TEST::CheckFootprint(), KI_TEST::CheckFpShape(), KI_TEST::CheckFpZone(), CheckItemDRCViolation(), DRC_TEST_PROVIDER_SOLDER_MASK::checkItemMask(), DRC_TEST_PROVIDER_MATCHED_LENGTH::checkReturnPath(), CN_VISITOR::checkZoneItemConnection(), BOARD::ClassOf(), BOARD_CONNECTED_ITEM::ClassOf(), FOOTPRINT::ClassOf(), LIB_SYMBOL::ClassOf(), NETINFO_ITEM::ClassOf(), PAD::ClassOf(), PCB_ARC::ClassOf(), PCB_BARCODE::ClassOf(), PCB_CONSTRAINT::ClassOf(), PCB_DIM_ALIGNED::ClassOf(), PCB_DIM_CENTER::ClassOf(), PCB_DIM_LEADER::ClassOf(), PCB_DIM_ORTHOGONAL::ClassOf(), PCB_DIM_RADIAL::ClassOf(), PCB_DRILL_CHART::ClassOf(), PCB_DRILL_MAP::ClassOf(), PCB_FIELD::ClassOf(), PCB_GENERATOR::ClassOf(), PCB_GRID_ITEM::ClassOf(), PCB_GROUP::ClassOf(), PCB_MARKER::ClassOf(), PCB_POINT::ClassOf(), PCB_REFERENCE_IMAGE::ClassOf(), PCB_SHAPE::ClassOf(), PCB_TABLE::ClassOf(), PCB_TABLECELL::ClassOf(), PCB_TARGET::ClassOf(), PCB_TEXTBOX::ClassOf(), PCB_TRACK::ClassOf(), PCB_VIA::ClassOf(), SCH_BITMAP::ClassOf(), SCH_BUS_BUS_ENTRY::ClassOf(), SCH_BUS_WIRE_ENTRY::ClassOf(), SCH_DIRECTIVE_LABEL::ClassOf(), SCH_FIELD::ClassOf(), SCH_GLOBALLABEL::ClassOf(), SCH_GROUP::ClassOf(), SCH_HIERLABEL::ClassOf(), SCH_JUNCTION::ClassOf(), SCH_LABEL::ClassOf(), SCH_LINE::ClassOf(), SCH_MARKER::ClassOf(), SCH_NO_CONNECT::ClassOf(), SCH_PIN::ClassOf(), SCH_SCREEN::ClassOf(), SCH_SHEET::ClassOf(), SCH_SHEET_PIN::ClassOf(), SCH_SYMBOL::ClassOf(), SCH_TABLE::ClassOf(), SCH_TABLECELL::ClassOf(), SCH_TEXT::ClassOf(), SCH_TEXTBOX::ClassOf(), ZONE::ClassOf(), MOCK_BOARD_ITEM::Clone(), TEST_EDA_ITEM::Clone(), CONNECTION_GRAPH::collectAllDriverValues(), collectImportedUuids(), PCB_SELECTION_TOOL::CollectMultiple(), collidesWithArea(), LIB_SYMBOL::compare(), SCH_FIELD::compare(), SCH_ITEM::compare(), SCH_TEXT::compare(), SCH_TEXTBOX::compare(), compareDrivers(), TEARDROP_MANAGER::computeAnchorPoints(), EE_GRID_HELPER::computeAnchors(), PCB_GRID_HELPER::computeAnchors(), PCB_GRID_HELPER::computeAnchors(), ComputeBoardStatistics(), TEARDROP_MANAGER::computeChordThroughShape(), TEARDROP_MANAGER::computeCurvedForRectShape(), TEARDROP_MANAGER::computeTeardropPolygon(), SCH_BUS_WIRE_ENTRY::ConnectionPropagatesTo(), SCH_LINE::ConnectionPropagatesTo(), ConstraintItemAnchors(), EE_RTREE::contains(), BOARD::ConvertKIIDsToCrossReferences(), SCHEMATIC::ConvertKIIDsToRefs(), SYMBOL_EDITOR_EDIT_TOOL::ConvertStackedPins(), SYMBOL_EDITOR_EDIT_TOOL::Copy(), FOOTPRINT::CopyFrom(), PAD::CopyFrom(), PCB_ARC::CopyFrom(), PCB_CONSTRAINT::CopyFrom(), PCB_DIM_ALIGNED::CopyFrom(), PCB_DIM_CENTER::CopyFrom(), PCB_DIM_LEADER::CopyFrom(), PCB_DIM_ORTHOGONAL::CopyFrom(), PCB_DIM_RADIAL::CopyFrom(), PCB_FIELD::CopyFrom(), PCB_POINT::CopyFrom(), PCB_REFERENCE_IMAGE::CopyFrom(), PCB_SHAPE::CopyFrom(), PCB_TABLE::CopyFrom(), PCB_TEXT::CopyFrom(), PCB_TEXTBOX::CopyFrom(), PCB_TRACK::CopyFrom(), PCB_VIA::CopyFrom(), ZONE::CopyFrom(), PAD_TOOL::copyPadSettings(), MULTICHANNEL_TOOL::copyRuleAreaContents(), FOOTPRINT::CoverageRatio(), PNS_KICAD_IFACE::createBoardItem(), CreateItemForType(), BOARD_ADAPTER::createLayers(), CONVERT_TOOL::CreateLines(), PCB_BASE_FRAME::CreateNewFootprint(), ZONE_CREATE_HELPER::createNewZone(), BOARD_ADAPTER::createTrackWithMargin(), SCH_INSPECTION_TOOL::CrossProbe(), SCH_SCREEN::DeleteItem(), EDIT_TOOL::DeleteItems(), API_HANDLER_SCH::deleteItemsInternal(), SCH_BUS_ENTRY_BASE::Deserialize(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_FIELD_PROPERTIES::DIALOG_FIELD_PROPERTIES(), DIALOG_GROUP_PROPERTIES::DIALOG_GROUP_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), KICAD_DIFF::PCB_DIFFER::diffProperties(), KICAD_DIFF::DiffSymbolElements(), DimensionEndpointsBound(), DimensionHasValueMode(), PCB_DRAW_PANEL_GAL::DisplayBoard(), SCH_EDIT_TOOL::DoDelete(), APPEARANCE_CONTROLS::doesBoardItemNeedRebuild(), DIALOG_GLOBAL_DELETION::DoGlobalDeletions(), EDIT_TOOL::doMoveSelection(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SELECTION_TOOL::doSelectionMenu(), KIGFX::PCB_PAINTER::Draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), DRAWING_TOOL::DrawDimension(), KIGFX::SCH_PAINTER::drawItemBoundingBox(), SCH_DRAWING_TOOLS::DrawSheet(), CONNECTION_SUBGRAPH::driverName(), CN_ITEM::Dump(), EDIT_TOOL::Duplicate(), SCH_ITEM::Duplicate(), FOOTPRINT::DuplicateItem(), EDA_ITEM_DESC::EDA_ITEM_DESC(), EDA_TEXT_DESC::EDA_TEXT_DESC(), SCH_EDIT_TOOL::EditField(), SCH_EDIT_TOOL::editFieldText(), SCH_EDIT_TOOL::EditProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextBoxProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextProperties(), enclosedByAreaFunc(), SCH_SELECTION_TOOL::EnterGroup(), CONNECTION_GRAPH::ercCheckBusToBusConflicts(), CONNECTION_GRAPH::ercCheckBusToBusEntryConflicts(), CONNECTION_GRAPH::ercCheckBusToNetConflicts(), CONNECTION_GRAPH::ercCheckDanglingWireEndpoints(), CONNECTION_GRAPH::ercCheckFloatingWires(), CONNECTION_GRAPH::ercCheckLabels(), CONNECTION_GRAPH::ercCheckMultipleDrivers(), CONNECTION_GRAPH::ercCheckNoConnects(), DRC_ENGINE::EvalRules(), DRC_RULE_CONDITION::EvaluateFor(), DRC_ENGINE::EvalZoneConnection(), CONNECTION_GRAPH::ExchangeItem(), CONNECTION_SUBGRAPH::ExchangeItem(), SCH_SELECTION_TOOL::expandConnectionWithGraph(), SYMBOL_EDITOR_EDIT_TOOL::ExplodeStackedPin(), extractDiffPairCoupledItems(), MATCH_PROPERTIES_CATALOG::Family(), PCB_SELECTION_TOOL::FilterCollectorForFreePads(), BOARD_INSPECTION_TOOL::filterCollectorForInspection(), PCB_SELECTION_TOOL::FilterCollectorForMarkers(), PCB_SELECTION_TOOL::FilterCollectorForTableCells(), PCB_PROPERTIES_PANEL::filterOutReadOnlyGenChildren(), ORCAD_CONVERTER::finalizeNetNames(), TEARDROP_MANAGER::findAnchorPointsOnTrack(), MULTICHANNEL_TOOL::findComponentsInRuleArea(), PCB_SELECTION_TOOL::FindItem(), PNS::TOPOLOGY::findLinesFromVia(), NETLIST_EXPORTER_BASE::findNextSymbol(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), MULTICHANNEL_TOOL::findOtherItemsInRuleArea(), findParent(), MULTICHANNEL_TOOL::findRoutingInRuleArea(), FindSnapGraphic(), FindSnapPad(), FindSnapTrack(), findTableCell(), DRC_TOOL::FixDRCErrorMenuText(), SCH_IO_ALTIUM::fixupSymbolPinNameNumbers(), flattenGroups(), EDIT_TOOL::Flip(), PCB_SHAPE::Flip(), PCB_IO_KICAD_SEXPR::Format(), SCH_IO_KICAD_LEGACY::Format(), SCH_IO_KICAD_SEXPR::Format(), SCH_IO_KICAD_SEXPR::Format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), SCH_MARKER::FromProto(), BOARD_ITEM::GetBoard(), BOARD_ITEM::GetBoard(), GetBoardItemWidth(), PCB_TRACK::GetBoundingBox(), SCH_LABEL_BASE::GetBoundingBox(), getBoundingBox(), DRC_ENGINE::GetCachedOwnClearance(), getClosestGroup(), getClosestGroup(), KIGFX::DS_RENDER_SETTINGS::GetColor(), KIGFX::GERBVIEW_RENDER_SETTINGS::GetColor(), SCH_MOVE_TOOL::getConnectedDragItems(), SCH_MOVE_TOOL::getConnectedItems(), CONNECTIVITY_DATA::GetConnectedPadsAndVias(), FOOTPRINT::GetCoverageArea(), CONNECTION_GRAPH::getDefaultConnection(), CONNECTION_SUBGRAPH::GetDriverPriority(), SCH_ITEM::GetEffectivePenWidth(), PCBEXPR_CONTEXT::GetEffectiveType(), getFieldFunc(), PCB_TRACK::GetFriendlyName(), PCB_GROUP_TOOL::getGroupFromItem(), SCH_GROUP_TOOL::getGroupFromItem(), PCB_SHAPE::getHatchingKnockouts(), getInferredSymbols(), PCB_TRACK::GetItemDescription(), EE_GRID_HELPER::GetItemGrid(), PCB_GRID_HELPER::GetItemGrid(), PCB_PROPERTIES_PANEL::getItemValue(), SCH_PROPERTIES_PANEL::getItemValue(), BOARD_ITEM::GetLayer(), PL_EDITOR_FRAME::GetLayoutFromRedoList(), PL_EDITOR_FRAME::GetLayoutFromUndoList(), PCB_SHAPE::GetLibraryBezierC1(), PCB_SHAPE::GetLibraryBezierC2(), PCB_SHAPE::GetLibraryPolyShape(), getMinDist(), PCB_DIMENSION_BASE::GetMsgPanelInfo(), PCB_TRACK::GetMsgPanelInfo(), SCH_LABEL_BASE::GetMsgPanelInfo(), SCH_SCREEN::GetNeededJunctions(), CONNECTION_SUBGRAPH::GetNetclassesForDriver(), CONNECTIVITY_DATA::GetNetItems(), GetNetNavigatorItemText(), SCH_SYMBOL::GetPinPhysicalPosition(), KIGFX::SCH_PAINTER::getRenderColor(), SCH_RULE_AREA::GetResolvedNetclasses(), GROUP_SEARCH_HANDLER::getResultCell(), LABEL_SEARCH_HANDLER::getResultCell(), TEXT_SEARCH_HANDLER::getResultCell(), GetSchItemAsText(), ALIGN_DISTRIBUTE_TOOL::GetSelections(), SCH_PROPERTIES_PANEL::getSinglePinMappedSymbol(), CONVERT_TOOL::getStartEndPoints(), KIGFX::SCH_PAINTER::getTextThickness(), GetTypeDesc(), PCBEXPR_COMPONENT_CLASS_REF::GetValue(), DIALOG_FIND_BY_PROPERTIES::getVariantAwareValue(), TEARDROP_MANAGER::GetWidth(), PCB_SELECTION_TOOL::grabUnconnected(), GraphicEditShape(), graphicNetCode(), PCB_SELECTION_TOOL::GuessSelectionCandidates(), SCH_SELECTION_TOOL::GuessSelectionCandidates(), API_HANDLER_BOARD::handleCreateUpdateItemsInternal(), API_HANDLER_SCH::handleCreateUpdateItemsInternal(), API_HANDLER_BOARD::handleFlipItems(), API_HANDLER_BOARD::handleGetBoundingBox(), API_HANDLER_SCH::handleGetItems(), API_HANDLER_SCH::handleGetItemsById(), hasComponentClassFunc(), hash_fp_item(), hashDimension(), BOARD::HasItemsOnLayer(), KIGFX::PCB_PAINTER::HasUniformColor(), SCH_SELECTION_TOOL::highlight(), BOARD_INSPECTION_TOOL::HighlightItem(), BOARD_INSPECTION_TOOL::highlightNet(), highlightNet(), SCH_FIELD::HitTest(), SCH_FIELD::HitTest(), SCH_LABEL_BASE::HitTest(), SCH_LABEL_BASE::HitTest(), SCH_LABEL_BASE::HitTest(), PCB_SELECTION_TOOL::hitTestDistance(), EE_GRAPHIC_TOOL::ImportGraphics(), PCB_POINT_EDITOR::Init(), PCB_SELECTION_TOOL::Init(), SCH_EDIT_TOOL::Init(), SCH_POINT_EDITOR::Init(), SCH_SELECTION_TOOL::Init(), ODB_LAYER_ENTITY::InitDrillData(), DRC_ENGINE::InitializeClearanceCache(), SCH_MOVE_TOOL::initializeMoveOperation(), ROUTER_TOOL::InlineBreakTrack(), ROUTER_TOOL::InlineDrag(), DRC_RTREE::Insert(), EE_RTREE::insert(), GENERAL_COLLECTOR::Inspect(), SCH_COLLECTOR::Inspect(), TEST_COLLECTOR::Inspect(), BOARD_INSPECTION_TOOL::InspectConstraints(), BOARD_INSPECTION_TOOL::InspectDRCError(), isBlindBuriedViaFunc(), isBlindVia(), isBuriedVia(), CONNECTIVITY_DATA::IsConnectedOnLayer(), isCopper(), SCH_LINE_WIRE_BUS_TOOL::IsDrawingLineWireOrBus(), PCB_SELECTION_TOOL::isExpandableGraphicShape(), ALLEGRO::BOARD_BUILDER::GRAPHIC_DEDUP::IsFirst(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), CADSTAR_PCB_ARCHIVE_LOADER::isFootprint(), isGraphicItemForDrop(), BOARD_ITEM::IsGroupableType(), SCH_ITEM::IsGroupableType(), PNS_PCBNEW_RULE_RESOLVER::IsKeepout(), isKeepoutZone(), PCB_PROPERTIES_PANEL::isKeyEditable(), SCH_PROPERTIES_PANEL::isKeyEditable(), isMaskAperture(), isMicroVia(), isNoGeometryItem(), PNS_PCBNEW_RULE_RESOLVER::IsNonPlatedSlot(), isNPTHPad(), isNPTHPadWithNoCopper(), PCB_TRACK::IsNull(), BOARD_ITEM::IsOnCopperLayer(), SCH_LINE::IsParallel(), isPlatedFunc(), TEARDROP_MANAGER::IsRound(), KICAD_DIFF::isSheetItem(), isStackedViaFunc(), PNS::ROUTER::isStartingPointRoutable(), SCH_ITEM::IsType(), TEARDROP_MANAGER::IsUniformlyRound(), ItemHasDRCViolation(), itemHasEditableCorners(), itemIsIncludedByFilter(), DIALOG_FIND_BY_PROPERTIES::itemMatchesPropertyCriteria(), PCB_SELECTION_TOOL::itemPassesFilter(), SCH_SELECTION_TOOL::itemPassesFilter(), SCH_EDIT_TOOL::JustifyText(), EE_GRID_HELPER::layoutBounds(), PCB_GRID_HELPER::layoutBounds(), EE_GRID_HELPER::layoutPins(), CADSTAR_SCH_ARCHIVE_LOADER::loadHierarchicalSheetPins(), CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), PCB_SELECTION_TOOL::Main(), SCH_SELECTION_TOOL::Main(), EDIT_POINTS_FACTORY::Make(), PCB_POINT_EDITOR::makePoints(), SCH_POINT_EDITOR::makePointsAndBehavior(), CONVERT_TOOL::makePolysFromChainedSegs(), GENERATOR_TOOL::MakeViaStackFromSelection(), CONNECTIVITY_DATA::MarkItemNetAsDirty(), CN_CONNECTIVITY_ALGO::markItemNetAsDirty(), DRC_TEST_PROVIDER_SOLDER_MASK::maskApertureBridgeExcluded(), memberKey(), memberOfGroupFunc(), memberOfSheetFunc(), memberOfSheetOrChildrenFunc(), SCH_LINE::MergeOverlap(), PCB_GROUP::Mirror(), SCH_EDIT_TOOL::Mirror(), SYMBOL_EDITOR_EDIT_TOOL::Mirror(), PNS_KICAD_IFACE::modifyBoardItem(), BOARD_EDITOR_CONTROL::modifyLockSelected(), SCH_MOVE_TOOL::moveItem(), MoveSchematicItem(), moveSelectionBy(), SCH_SELECTION_TOOL::narrowSelection(), BOARD::noteDrillModelChange(), ARRAY_TOOL::onDialogClosed(), DIALOG_DRC::OnDRCItemSelected(), FOOTPRINT_EDIT_FRAME::OnEditItemRequest(), PCB_EDIT_FRAME::OnEditItemRequest(), DIALOG_GENERATORS::OnItemSelected(), PCB_PROPERTIES_PANEL::onKeyRenamed(), SCH_PROPERTIES_PANEL::onKeyRenamed(), EDA_3D_CANVAS::OnLeftUp(), EDA_3D_CANVAS::OnMouseMove(), SCH_EDIT_FRAME::onNetNavigatorSelection(), PCB_PROPERTIES_PANEL::onNewItemLeftBlank(), DIALOG_GENERATORS::OnRebuildTypeClick(), PCB_POINT_EDITOR::OnSelectionChange(), ALLEGRO::BOARD_BUILDER::GRAPHIC_KEY_EQ::operator()(), ALLEGRO::BOARD_BUILDER::GRAPHIC_KEY_HASH::operator()(), BOARD::cmp_drawings::operator()(), BOARD::cmp_items::operator()(), BOARD_ITEM::ptr_cmp::operator()(), CN_VISITOR::operator()(), FOOTPRINT::cmp_drawings::operator()(), KI_TEST::kitest_cmp_drawings::operator()(), PCB_SHAPE::cmp_drawings::operator()(), PCB_TRACK::cmp_tracks::operator()(), SCH_BUS_ENTRY_BASE::operator<(), SCH_FIELD::operator<(), SCH_ITEM::operator<(), SCH_JUNCTION::operator<(), SCH_LINE::operator<(), SCH_SHEET::operator<(), SCH_SYMBOL::operator<(), SCH_TABLE::operator<(), SCH_TEXT::operator<(), SCH_TEXTBOX::operator<(), PCB_REFERENCE_IMAGE::operator=(), SCH_BITMAP::operator=(), SCH_SHEET::operator=(), SCH_SYMBOL::operator=(), BOARD::operator==(), FOOTPRINT::operator==(), PAD::operator==(), PCB_ARC::operator==(), PCB_ARC::operator==(), PCB_CONSTRAINT::operator==(), PCB_DIMENSION_BASE::operator==(), PCB_DRILL_CHART::operator==(), PCB_DRILL_MAP::operator==(), PCB_FIELD::operator==(), PCB_GRID_ITEM::operator==(), PCB_GROUP::operator==(), PCB_POINT::operator==(), PCB_REFERENCE_IMAGE::operator==(), PCB_SHAPE::operator==(), PCB_SHAPE::operator==(), PCB_TABLE::operator==(), PCB_TABLECELL::operator==(), PCB_TARGET::operator==(), PCB_TEXT::operator==(), PCB_TEXTBOX::operator==(), PCB_TRACK::operator==(), PCB_VIA::operator==(), PCB_VIA::operator==(), SCH_BITMAP::operator==(), SCH_BUS_ENTRY_BASE::operator==(), SCH_FIELD::operator==(), SCH_FIELD::operator==(), SCH_GROUP::operator==(), SCH_ITEM::operator==(), SCH_JUNCTION::operator==(), SCH_LINE::operator==(), SCH_NO_CONNECT::operator==(), SCH_SHAPE::operator==(), SCH_SHEET::operator==(), SCH_SHEET_PIN::operator==(), SCH_SYMBOL::operator==(), SCH_TABLE::operator==(), SCH_TABLECELL::operator==(), SCH_TEXT::operator==(), SCH_TEXTBOX::operator==(), ZONE::operator==(), ZONE::operator==(), API_HANDLER_SCH::packSchItem(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_SHAPE(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), SCH_EASYEDAPRO_V3_PARSER::ParseSchematic(), SCH_IO_KICAD_SEXPR_PARSER::parseSchField(), PCB_CONTROL::Paste(), SCH_EDITOR_CONTROL::Paste(), ZONE_PAINTER::PCB_PAINTER(), PCB_TABLECELL_DESC::PCB_TABLECELL_DESC(), PCB_GROUP_TOOL::PickNewMember(), SCH_GROUP_TOOL::PickNewMember(), SCH_DRAWING_TOOLS::PlaceNextSymbolUnit(), SCH_LABEL_BASE::Plot(), BRDITEMS_PLOTTER::PlotBoardGraphicItem(), SCH_MOVE_TOOL::prepareSelection(), OUTSET_ROUTINE::ProcessItem(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::processItem(), BACK_ANNOTATE::processNetNameChange(), CONNECTION_GRAPH::processSubGraphs(), BOARD_COMMIT::propagateDamage(), EDIT_TOOL::Properties(), SCH_EDIT_TOOL::Properties(), SYMBOL_EDITOR_EDIT_TOOL::Properties(), PCB_SELECTION_TOOL::pruneObscuredSelectionCandidates(), BOARD_COMMIT::Push(), SCH_COMMIT::pushSchEdit(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), SCH_EDIT_FRAME::PutDataInPreviousState(), EE_GRID_HELPER::queryVisible(), PCB_GRID_HELPER::queryVisible(), BOARD_REANNOTATE_TOOL::ReannotateDuplicates(), PCB_SELECTION_TOOL::RebuildSelection(), SCHEMATIC::RecalculateConnections(), refOfSolid(), SCH_MOVE_TOOL::refreshSelectionTraits(), SCH_BASE_FRAME::RefreshZoomDependentItems(), GENERATOR_TOOL::RegenerateSelected(), PCB_CONTROL::rehatchBoardItem(), BOARD::Remove(), CN_CONNECTIVITY_ALGO::Remove(), FOOTPRINT::Remove(), KIGFX::PCB_VIEW::Remove(), SCH_SCREEN::Remove(), EE_RTREE::remove(), BOARD::RemoveAllItemsOnLayer(), PCB_POINT_EDITOR::removeCorner(), LIB_SYMBOL::RemoveDrawItem(), SCH_PROPERTIES_PANEL::removeField(), SCH_BASE_FRAME::RemoveFromScreen(), CONNECTION_SUBGRAPH::RemoveItem(), PNS_KICAD_IFACE::RemoveItem(), SCH_SHEET::RemovePin(), SCH_EDIT_TOOL::RepeatDrawItem(), SCH_FIND_REPLACE_TOOL::ReplaceAll(), BOARD_INSPECTION_TOOL::reportClearance(), SCH_SELECTION_TOOL::RequestSelection(), KI_TEST::RequireBoardItemWithTypeAndId(), CONNECTION_GRAPH::resolveAllDrivers(), ResolveConstrainableItem(), SCHEMATIC::resolveCrossReference(), EE_GRID_HELPER::ResolveSnap(), PCB_GRID_HELPER::ResolveSnap(), BOARD::ResolveTextVar(), SCH_LABEL_BASE::ResolveTextVar(), DS_PROXY_UNDO_ITEM::Restore(), BOARD_COMMIT::Revert(), SCH_COMMIT::Revert(), PL_EDITOR_FRAME::RollbackFromUndo(), EDIT_TOOL::Rotate(), SCH_EDIT_TOOL::Rotate(), DRC_TEST_PROVIDER_CONNECTIVITY::Run(), DRC_TEST_PROVIDER_DISALLOW::Run(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::Run(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::Run(), DRC_TEST_PROVIDER_SILK_CLEARANCE::Run(), DRC_TEST_PROVIDER_TRACK_ANGLE::Run(), DRC_TEST_PROVIDER_TRACK_SEGMENT_LENGTH::Run(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveField(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveField(), SCH_IO_KICAD_LEGACY_LIB_CACHE::savePin(), SCH_IO_KICAD_SEXPR_LIB_CACHE::savePin(), CLIPBOARD_IO::SaveSelection(), SCH_IO_KICAD_SEXPR::saveShape(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveSymbolDrawItem(), SCH_IO_KICAD_LEGACY_LIB_CACHE::saveText(), SCH_IO_KICAD_SEXPR::saveText(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveText(), SCH_IO_KICAD_SEXPR::saveTextBox(), SCH_IO_KICAD_SEXPR_LIB_CACHE::saveTextBox(), SCH_FIELD::SCH_FIELD(), SCH_SCREEN::Schematic(), POWER_SEARCH_HANDLER::Search(), SYMBOL_SEARCH_HANDLER::Search(), TEXT_SEARCH_HANDLER::Search(), CONVERT_TOOL::SegmentToArc(), PCB_SELECTION_TOOL::select(), PCB_SELECTION_TOOL::Selectable(), SCH_SELECTION_TOOL::Selectable(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), SCH_SELECTION_TOOL::SelectConnection(), selectionSpecFromItem(), PCB_SELECTION_TOOL::selectSameSheet(), PCB_SELECTION_TOOL::selectUnconnected(), PCB_EDIT_FRAME::SendCrossProbeItem(), SCH_BUS_ENTRY_BASE::Serialize(), PCB_POINT_EDITOR::setAltConstraint(), ITEM_PICKER::SetItem(), SCH_LABEL_BASE::SetLabelShape(), PCB_BASE_FRAME::SetPlotSettings(), SCH_MOVE_TOOL::setupItemsForDrag(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), PCB_EDIT_FRAME::ShowFindDialog(), SCH_BASE_FRAME::ShowFindReplaceDialog(), FOOTPRINT::Similarity(), LIB_SYMBOL::Similarity(), PAD::Similarity(), PCB_ARC::Similarity(), PCB_BOARD_OUTLINE::Similarity(), PCB_CONSTRAINT::Similarity(), PCB_DIMENSION_BASE::Similarity(), PCB_DRILL_CHART::Similarity(), PCB_DRILL_MAP::Similarity(), PCB_FIELD::Similarity(), PCB_GRID_ITEM::Similarity(), PCB_GROUP::Similarity(), PCB_POINT::Similarity(), PCB_REFERENCE_IMAGE::Similarity(), PCB_SHAPE::Similarity(), PCB_TABLE::Similarity(), PCB_TABLECELL::Similarity(), PCB_TARGET::Similarity(), PCB_TEXT::Similarity(), PCB_TEXTBOX::Similarity(), PCB_TRACK::Similarity(), PCB_VIA::Similarity(), SCH_BITMAP::Similarity(), SCH_BUS_ENTRY_BASE::Similarity(), SCH_FIELD::Similarity(), SCH_GROUP::Similarity(), SCH_JUNCTION::Similarity(), SCH_LINE::Similarity(), SCH_NO_CONNECT::Similarity(), SCH_PIN::Similarity(), SCH_SHAPE::Similarity(), SCH_SHEET::Similarity(), SCH_SHEET_PIN::Similarity(), SCH_SYMBOL::Similarity(), SCH_TABLE::Similarity(), SCH_TABLECELL::Similarity(), SCH_TEXT::Similarity(), SCH_TEXTBOX::Similarity(), ZONE::Similarity(), SCH_EDITOR_CONTROL::SimProbe(), SCH_EDITOR_CONTROL::SimTune(), stableDriverIdentity(), ALLEGRO::BOARD_BUILDER::stampIds(), PNS::LINE_PLACER::Start(), EDIT_TOOL::Swap(), SCH_EDIT_TOOL::Swap(), SYMBOL_EDITOR_EDIT_TOOL::Swap(), FOOTPRINT::swapData(), PAD::swapData(), PCB_ARC::swapData(), PCB_BARCODE::swapData(), PCB_CONSTRAINT::swapData(), PCB_DIM_ALIGNED::swapData(), PCB_DIM_CENTER::swapData(), PCB_DIM_LEADER::swapData(), PCB_DIM_ORTHOGONAL::swapData(), PCB_DIM_RADIAL::swapData(), PCB_DRILL_CHART::swapData(), PCB_DRILL_MAP::swapData(), PCB_FIELD::swapData(), PCB_GRID_ITEM::swapData(), PCB_GROUP::swapData(), PCB_MARKER::swapData(), PCB_POINT::swapData(), PCB_REFERENCE_IMAGE::swapData(), PCB_TABLE::swapData(), PCB_TABLECELL::swapData(), PCB_TARGET::swapData(), PCB_TEXT::swapData(), PCB_TEXTBOX::swapData(), PCB_TRACK::swapData(), PCB_TUNING_PATTERN::swapData(), PCB_VIA::swapData(), PCB_VIA_STITCH::swapData(), SCH_BITMAP::swapData(), SCH_FIELD::swapData(), SCH_GROUP::swapData(), SCH_JUNCTION::swapData(), SCH_NO_CONNECT::swapData(), SCH_SHEET::swapData(), SCH_SHEET_PIN::swapData(), SCH_SYMBOL::swapData(), SCH_TABLE::swapData(), ZONE::swapData(), EDIT_TOOL::SwapGateNets(), EDIT_TOOL::SwapPadNets(), SCH_EDIT_TOOL::SwapPins(), PNS_KICAD_IFACE_BASE::syncGraphicalItem(), PCB_SHAPE::syncLibCoords(), PNS_KICAD_IFACE_BASE::syncTextItem(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::testAgainstEdge(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testGraphicClearances(), DRC_TEST_PROVIDER_HOLE_TO_HOLE::testHoleAgainstHole(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DRC_TEST_PROVIDER_SOLDER_MASK::testItemAgainstItems(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstZones(), DRC_TEST_PROVIDER_SOLDER_MASK::testMaskItemAgainstZones(), ERC_TESTER::TestMissingNetclasses(), ERC_TESTER::TestNoConnectPins(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadClearances(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testSingleLayerItemAgainstItem(), ERC_TESTER::TestTextVars(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackClearances(), CONNECTIVITY_DATA::TestTrackEndpointDangling(), PANEL_SETUP_LAYERS::TransferDataFromWindow(), DIALOG_FIELD_PROPERTIES::TransferDataToWindow(), DIALOG_FOOTPRINT_FIELDS_TABLE::TransferDataToWindow(), DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow(), PCB_SHAPE::transformFp(), PCB_TRACK::TransformShapeToPolygon(), SCH_LINE_WIRE_BUS_TOOL::TrimOverLappingWires(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), BOARD_COMMIT::undoLevelItem(), undoListContainsShapesOrFootprints(), SCH_SELECTION_TOOL::unhighlight(), PCB_SELECTION_TOOL::unrouteSegment(), PCB_SELECTION_TOOL::unrouteSelected(), KIGFX::PCB_VIEW::Update(), KIGFX::SCH_VIEW::Update(), NET_CHAIN_MENU::update(), SCH_SHEET_PATH::UpdateAllScreenReferences(), PCB_EDIT_FRAME::UpdateDesignBlockFromSelection(), SCH_EDIT_FRAME::UpdateDesignBlockFromSelection(), DIALOG_FIELD_PROPERTIES::UpdateField(), CONNECTION_GRAPH::updateGenericItemConnectivity(), SCH_BASE_FRAME::UpdateItem(), PCB_POINT_EDITOR::updateItem(), PL_POINT_EDITOR::updateItem(), PCB_CONTROL::UpdateMessagePanel(), EDIT_TOOL::updateModificationPoint(), SCH_EDITOR_CONTROL::UpdateNetHighlighting(), PL_POINT_EDITOR::updatePoints(), SCH_MOVE_TOOL::updateStoredPositions(), DIALOG_CREATE_NET_CHAIN::validateAndCreate(), PCB_PROPERTIES_PANEL::valueChanged(), SCH_PROPERTIES_PANEL::valueChanged(), PCB_PROPERTIES_PANEL::valueChanging(), SCH_BUS_ENTRY_BASE::ViewGetLayers(), SYMBOL::ViewGetLayers(), GERBER_DRAW_ITEM::Visit(), PCB_GROUP::Visit(), PCB_TRACK::Visit(), SCH_GROUP::Visit(), SCH_SHEET::Visit(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::visitItem(), and DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::visitItem().
| void FOOTPRINT::UpdateFields | ( | const std::vector< PCB_FIELD > & | aFields, |
| std::vector< PCB_FIELD * > & | aAdded, | ||
| std::vector< PCB_FIELD * > & | aDetached ) |
Replace the fields with aFields, reusing the existing mandatory field objects.
Destroying and recreating a mandatory field invalidates every pointer to it, including the board's item-by-id cache entry, and leaves the footprint without a reference or a value for as long as the rebuild takes. The const field accessors return nullptr in that state, so anything reading the footprint meanwhile dereferences null.
| aFields | is the new field set, mandatory fields included. |
| aAdded | receives the fields created here, which the footprint now owns. |
| aDetached | receives the fields dropped here, which the caller must dispose of. |
Definition at line 952 of file footprint.cpp.
References Add(), EDA_ITEM::ClearEditFlags(), PCB_FIELD::CloneField(), alg::contains(), GetField(), InvalidateGeometryCaches(), m_fields, Remove(), and EDA_ITEM::SetParent().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inherited |
Helper function to get a list of fonts for fontconfig to add to the library.
This is necessary because EMBEDDED_FILES lives in common at the moment and fontconfig is in libkicommon. This will create the cache files in the KiCad cache directory (if they do not already exist) and return the temp files names
Definition at line 650 of file embedded_files.cpp.
References EMBEDDED_FILES::EMBEDDED_FILE::FONT, GetTemporaryFileName(), m_files, m_fontFiles, and name.
Referenced by ORCAD_CONVERTER::applyFont(), SCH_SCREEN::FixupEmbeddedData(), PCB_IO_KICAD_SEXPR_PARSER::Parse(), and SCH_IO_KICAD_SEXPR_PARSER::ParseSymbol().
|
inline |
read/write accessors:
Definition at line 939 of file footprint.h.
References GetField(), and VALUE.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::addAttribute(), PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), AutoPositionFields(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ZONE_FILLER::buildCopperItemClearances(), ALTIUM_PCB::ConvertTexts6ToFootprintItemOnLayer(), DIPTRACE::PCB_PARSER::CreateFootprint(), PCB_BASE_FRAME::CreateNewFootprint(), BOARD::ExchangeFootprint(), PCB_IO_KICAD_SEXPR::format(), FOOTPRINT_SEARCH_HANDLER::getResultCell(), GetValue(), idf_export_footprint(), PCB_IO_EAGLE::loadElements(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary(), FABMASTER::loadFootprints(), PCB_IO_PADS::loadFootprints(), PCB_IO_PADS_BINARY::loadFootprints(), PCB_IO_EAGLE::orientFootprintAndText(), PCB_IO_EAGLE::packageText(), BRDITEMS_PLOTTER::PlotFootprintTextItems(), SPRINT_LAYOUT_PARSER::processText(), and SetValue().
|
inline |
The const versions to keep the compiler happy.
Definition at line 943 of file footprint.h.
References GetField(), and VALUE.
|
overridevirtual |
Return the bounding box of the item covering all its layers.
Reimplemented from EDA_ITEM.
Definition at line 3378 of file footprint.cpp.
References BOARD_ITEM::BOARD, BOARD_ITEM::GetBoard(), GetBoundingBox(), and BOX2< Vec >::Inflate().
|
inlinevirtualinherited |
Draw the parts of the object belonging to layer aLayer.
An alternative way for drawing objects if there is no #PAINTER assigned for the view or if the PAINTER doesn't know how to paint this particular implementation of VIEW_ITEM. The preferred way of drawing is to design an appropriate PAINTER object, the method below is intended only for quick hacks and debugging purposes.
| aLayer | is the current drawing layer. |
| aView | is a pointer to the VIEW device we are drawing on. |
Reimplemented in CONSTRAINT_BADGE_ITEM, DS_PROXY_VIEW_ITEM, EDIT_POINTS, KIGFX::ANCHOR_DEBUG, KIGFX::CONSTRUCTION_GEOM, KIGFX::ORIGIN_VIEWITEM, KIGFX::PREVIEW::ARC_ASSISTANT, KIGFX::PREVIEW::BEZIER_ASSISTANT, KIGFX::PREVIEW::ELLIPSE_ASSISTANT, KIGFX::PREVIEW::RULER_ITEM, KIGFX::PREVIEW::SELECTION_AREA, KIGFX::PREVIEW::SIMPLE_OVERLAY_ITEM, KIGFX::PREVIEW::TWO_POINT_ASSISTANT, KIGFX::SNAP_INDICATOR, KIGFX::VIEW_GROUP, KIGFX::VIEW_OVERLAY, MY_DRAWING, PCB_TUNING_PATTERN, PCB_VIA_STITCH, RATSNEST_VIEW_ITEM, RECT_RADIUS_TEXT_ITEM, ROUTER_PREVIEW_ITEM, ROUTER_STATUS_VIEW_ITEM, TUNING_STATUS_VIEW_ITEM, and VIEW_OVERLAY.
Definition at line 123 of file view_item.h.
References VIEW.
Referenced by KIGFX::VIEW::draw(), and KIGFX::VIEW::updateItemGeometry().
|
overridevirtual |
Return the all the layers within the VIEW the object is painted on.
For instance, a PAD spans zero or more copper layers and a few technical layers. ViewDraw() or PAINTER::Draw() is repeatedly called for each of the layers returned by ViewGetLayers(), depending on the rendering order.
Reimplemented from BOARD_ITEM.
Definition at line 3293 of file footprint.cpp.
References B_Cu, B_SilkS, BOARD_ITEM::BOARD_ITEM(), F_Cu, F_SilkS, KI_FALLTHROUGH, LAYER_ANCHOR, LAYER_CONFLICTS_SHADOW, LAYER_FOOTPRINTS_BK, LAYER_FOOTPRINTS_FR, m_drawings, BOARD_ITEM::m_layer, and m_pads.
|
overridevirtual |
Return the level of detail (LOD) of the item.
A level of detail is the minimal VIEW scale that is sufficient for an item to be shown on a given layer.
Use LOD_HIDE and LOD_SHOW constants to hide or show the item unconditionally.
Use lodScaleForThreshold() to calculate the LOD scale for when the item passes a certain threshold size on screen.
| aLayer | is the current drawing layer. |
| aView | is a pointer to the VIEW device we are drawing on. |
Reimplemented from KIGFX::VIEW_ITEM.
Definition at line 3345 of file footprint.cpp.
References B_Cu, F_Cu, IsConflicting(), KIGFX::VIEW::IsLayerVisible(), LAYER_ANCHOR, LAYER_CONFLICTS_SHADOW, LAYER_FOOTPRINTS_BK, LAYER_FOOTPRINTS_FR, KIGFX::VIEW_ITEM::LOD_HIDE, KIGFX::VIEW_ITEM::LOD_SHOW, and BOARD_ITEM::m_layer.
|
inlineinherited |
Definition at line 157 of file view_item.h.
References m_viewPrivData.
Referenced by KIGFX::VIEW::Add(), KIGFX::VIEW::draw(), KIGFX::VIEW::HasItem(), KIGFX::VIEW::Hide(), KIGFX::VIEW::invalidateItem(), KIGFX::VIEW::IsHiddenOnOverlay(), KIGFX::VIEW::IsVisible(), KIGFX::VIEW::CLEAR_LAYER_CACHE_VISITOR::operator()(), KIGFX::VIEW::DRAW_ITEM_VISITOR::operator()(), KIGFX::VIEW::RECACHE_ITEM_VISITOR::operator()(), KIGFX::VIEW::UPDATE_COLOR_VISITOR::operator()(), KIGFX::VIEW::UPDATE_DEPTH_VISITOR::operator()(), KIGFX::VIEW::SetVisible(), KIGFX::VIEW::Update(), KIGFX::VIEW::updateItemColor(), KIGFX::VIEW::updateItemGeometry(), and KIGFX::VIEW::updateLayers().
|
overridevirtual |
May be re-implemented for each derived class in order to handle all the types given by its member data.
Implementations should call inspector->Inspect() on types in aScanTypes, and may use IterateForward() to do so on lists of such data.
| inspector | An INSPECTOR instance to use in the inspection. |
| testData | Arbitrary data used by the inspector. |
| aScanTypes | Which KICAD_T types are of interest and the order in which they should be processed. |
Reimplemented from EDA_ITEM.
Definition at line 3137 of file footprint.cpp.
References CONTINUE, GetClass(), EDA_ITEM::IterateForward(), m_constraints, m_drawings, m_fields, m_groups, m_pads, m_points, m_zones, PCB_BARCODE_T, PCB_CONSTRAINT_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_FIELD_T, PCB_FOOTPRINT_T, PCB_GROUP_T, PCB_PAD_T, PCB_POINT_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TABLECELL_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_ZONE_T, and QUIT.
|
inherited |
Output formatter for the embedded files.
| aOut | is the output formatter. |
| aWriteData | is true if the actual data should be written. This is false when writing an element that is already embedded in a file that itself has embedded files (boards, schematics, etc.). |
Definition at line 210 of file embedded_files.cpp.
References EMBEDDED_FILES::EMBEDDED_FILE::compressedEncodedData, EMBEDDED_FILES::EMBEDDED_FILE::data_hash, EMBEDDED_FILES::EMBEDDED_FILE::DATASHEET, EMBEDDED_FILES::EMBEDDED_FILE::FONT, m_files, MIME_BASE64_LENGTH, EMBEDDED_FILES::EMBEDDED_FILE::MODEL, EMBEDDED_FILES::EMBEDDED_FILE::name, name, OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), EMBEDDED_FILES::EMBEDDED_FILE::type, and EMBEDDED_FILES::EMBEDDED_FILE::WORKSHEET.
Referenced by PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), and SCH_IO_KICAD_SEXPR_LIB_CACHE::SaveSymbol().
|
inlineinherited |
Definition at line 159 of file eda_item.h.
References m_flags.
Referenced by SCH_SELECTION_TOOL::SelectMultiple().
|
inline |
Definition at line 410 of file footprint.h.
References m_zones.
Referenced by KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), KI_TEST::CheckFootprint(), KICAD_DIFF::CollectFootprintDiffContextItems(), DeserializeDefinition(), KICAD_DIFF::PCB_DIFFER::diffFootprintChildren(), BOARD::ExchangeFootprint(), KICAD_DIFF::ExtractFootprintGeometry(), FootprintNeedsUpdate(), PCB_IO_KICAD_SEXPR::format(), FOOTPRINT_EDIT_FRAME::GetDocumentExtents(), API_HANDLER_FOOTPRINT::handleGetItems(), DSN::SPECCTRA_DB::makeIMAGE(), MoveAnchorPosition(), operator=(), pasteFootprintItemsToFootprintEditor(), PCB_SELECTION_TOOL::Selectable(), and SerializeDefinition().
|
inline |
Definition at line 411 of file footprint.h.
References m_zones.
|
staticconstexprprotectedinherited |
Return this constant from ViewGetLOD() to hide the item unconditionally.
Definition at line 176 of file view_item.h.
Referenced by lodScaleForThreshold(), KIGFX::VIEW_GROUP::ViewDraw(), FOOTPRINT::ViewGetLOD(), PAD::ViewGetLOD(), PCB_BARCODE::ViewGetLOD(), PCB_DIMENSION_BASE::ViewGetLOD(), PCB_FIELD::ViewGetLOD(), PCB_GRID_ITEM::ViewGetLOD(), PCB_GROUP::ViewGetLOD(), PCB_POINT::ViewGetLOD(), PCB_REFERENCE_IMAGE::ViewGetLOD(), PCB_SHAPE::ViewGetLOD(), PCB_TABLE::ViewGetLOD(), PCB_TEXT::ViewGetLOD(), PCB_TEXTBOX::ViewGetLOD(), PCB_TRACK::ViewGetLOD(), PCB_VIA::ViewGetLOD(), SCH_GROUP::ViewGetLOD(), SCH_LINE::ViewGetLOD(), and ZONE::ViewGetLOD().
|
staticconstexprprotectedinherited |
Return this constant from ViewGetLOD() to show the item unconditionally.
Definition at line 181 of file view_item.h.
Referenced by lodScaleForThreshold(), FOOTPRINT::ViewGetLOD(), GERBER_DRAW_ITEM::ViewGetLOD(), ViewGetLOD(), PAD::ViewGetLOD(), PCB_BARCODE::ViewGetLOD(), PCB_DIMENSION_BASE::ViewGetLOD(), PCB_FIELD::ViewGetLOD(), PCB_GRID_ITEM::ViewGetLOD(), PCB_GROUP::ViewGetLOD(), PCB_POINT::ViewGetLOD(), PCB_REFERENCE_IMAGE::ViewGetLOD(), PCB_SHAPE::ViewGetLOD(), PCB_TABLE::ViewGetLOD(), PCB_TEXT::ViewGetLOD(), PCB_TEXTBOX::ViewGetLOD(), PCB_TRACK::ViewGetLOD(), PCB_VIA::ViewGetLOD(), SCH_GROUP::ViewGetLOD(), SCH_LINE::ViewGetLOD(), and ZONE::ViewGetLOD().
|
private |
Definition at line 1560 of file footprint.h.
Referenced by Add3DModel(), FOOTPRINT(), FOOTPRINT(), GetMsgPanelInfo(), Models(), Models(), operator=(), and operator=().
|
private |
Definition at line 1535 of file footprint.h.
Referenced by AllowMissingCourtyard(), FOOTPRINT(), FOOTPRINT(), and SetAllowMissingCourtyard().
|
private |
Definition at line 1536 of file footprint.h.
Referenced by AllowSolderMaskBridges(), FOOTPRINT(), FOOTPRINT(), and SetAllowSolderMaskBridges().
|
private |
Definition at line 1557 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), GetFlag(), IncrementFlag(), and SetFlag().
|
private |
Definition at line 1498 of file footprint.h.
Referenced by Deserialize(), FOOTPRINT(), FOOTPRINT(), GetAttributes(), GetFootprintType(), IsBoardOnly(), IsDNP(), IsExcludedFromBOM(), IsExcludedFromPosFiles(), IsExcludedFromSim(), operator=(), operator=(), Serialize(), SetAttributes(), SetBoardOnly(), SetDNP(), SetExcludedFromBOM(), SetExcludedFromPosFiles(), SetExcludedFromSim(), and SetFootprintType().
|
mutableprotectedinherited |
Definition at line 576 of file board_item.h.
Referenced by BOARD::CacheAndReturnItemById(), BOARD::CacheItemById(), BOARD::ClearItemByIdCache(), IsIndexedInBoard(), SetUuid(), BOARD::UncacheItemById(), BOARD::UncacheItemByPtr(), and ~BOARD_ITEM().
|
private |
Definition at line 1540 of file footprint.h.
Referenced by FOOTPRINT(), GetLocalClearance(), GetLocalClearance(), operator=(), operator=(), and SetLocalClearance().
|
private |
Definition at line 1571 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), FOOTPRINT(), GetComponentClass(), GetComponentClassAsString(), GetMsgPanelInfo(), GetStaticComponentClass(), InvalidateComponentClassCache(), operator=(), operator=(), RecomputeComponentClass(), and SetStaticComponentClass().
|
private |
Definition at line 1492 of file footprint.h.
Referenced by Add(), Constraints(), Constraints(), operator=(), operator=(), Remove(), RunOnChildren(), Visit(), and ~FOOTPRINT().
|
mutableprivate |
Definition at line 1567 of file footprint.h.
Referenced by BuildCourtyardCaches(), Flip(), GetCachedCourtyard(), GetCourtyard(), InvalidateGeometryCaches(), MoveAnchorPosition(), operator=(), operator=(), SetOrientation(), SetPosition(), and SetTransformScale().
|
mutableprivate |
Definition at line 1568 of file footprint.h.
Referenced by GetCourtyard(), and InvalidateGeometryCaches().
|
protectedinherited |
Definition at line 615 of file eda_item.h.
Referenced by ClearCustomProperties(), GetCustomProperties(), GetCustomPropertiesAsInspectables(), GetCustomProperty(), HasCustomProperties(), operator=(), RemoveConflictingCustomProperties(), RemoveCustomProperty(), SetCustomProperties(), SetCustomProperty(), LIB_SYMBOL::SetParent(), PCB_BARCODE::swapData(), PCB_REFERENCE_IMAGE::swapData(), PCB_SHAPE::swapData(), PCB_TABLE::swapData(), and SCH_ITEM::SwapItemData().
|
private |
Definition at line 1488 of file footprint.h.
Referenced by Add(), ApplyDefaultSettings(), BuildNetTieCache(), CheckClippedSilk(), CheckNetTies(), FixUuids(), Flip(), GetBoundingBox(), GetBoundingHull(), GetBoundingHull(), GetLayerBoundingBox(), GetSide(), GraphicalItems(), GraphicalItems(), HitTest(), HitTest(), HitTestOnLayer(), HitTestOnLayer(), IsOnLayer(), operator=(), operator=(), operator==(), Remove(), Rotate(), RunOnChildren(), SetOrientation(), SetPosition(), SetTransformScale(), TextOnly(), ViewGetLayers(), Visit(), and ~FOOTPRINT().
|
private |
Flag that this footprint should automatically treat sets of two or more pads with the same number as jumpered pin groups.
Definition at line 1533 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), GetDuplicatePadNumbersAreJumpers(), operator=(), operator=(), and SetDuplicatePadNumbersAreJumpers().
|
mutableprotectedinherited |
Per-key cache of dynamic property descriptors for m_customProperties, owned by this object.
Mirrors the per-object field-property caches used by FOOTPRINT / SCH_SYMBOL / SCH_SHEET; entries linger after a key is removed but are simply not enumerated.
Definition at line 621 of file eda_item.h.
Referenced by GetCustomPropertiesAsInspectables(), and RemoveCustomProperty().
|
mutableprivate |
Definition at line 1518 of file footprint.h.
Referenced by GetDynamicProperties().
|
protectedinherited |
If set, fonts will be embedded in the element on save.
Otherwise, font files embedded in the element will be removed on save.
Definition at line 307 of file embedded_files.h.
Referenced by EMBEDDED_FILES(), EMBEDDED_FILES(), FOOTPRINT::FOOTPRINT(), FOOTPRINT::FOOTPRINT(), GetAreFontsEmbedded(), operator=(), operator=(), and SetAreFontsEmbedded().
|
private |
Definition at line 1562 of file footprint.h.
Referenced by ClearExtrudedBody(), EnsureExtrudedBody(), Flip(), FOOTPRINT(), GetExtrudedBody(), GetExtrudedBody(), HasExtrudedBody(), operator=(), operator=(), and SetExtrudedBody().
|
private |
Definition at line 1487 of file footprint.h.
Referenced by Add(), ApplyDefaultSettings(), CheckNetTies(), DeserializeDefinition(), FixUuids(), Flip(), FOOTPRINT(), FOOTPRINT(), GetBoundingBox(), GetField(), GetField(), GetField(), GetFields(), GetFields(), GetFields(), GetNextFieldOrdinal(), IsOnLayer(), MoveAnchorPosition(), operator=(), operator=(), Remove(), Rotate(), RunOnChildren(), SerializeDefinition(), SetOrientation(), SetPosition(), SetTransformScale(), TransformFPShapesToPolySet(), UpdateFields(), Visit(), and ~FOOTPRINT().
|
privateinherited |
Definition at line 304 of file embedded_files.h.
Referenced by AddFile(), AddFile(), EMBEDDED_FILES(), EMBEDDED_FILES(), GetFileAddedCallback(), operator=(), operator=(), and SetFileAddedCallback().
|
private |
Definition at line 1500 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), GetFileFormatVersionAtLoad(), and SetFileFormatVersionAtLoad().
|
privateinherited |
Definition at line 302 of file embedded_files.h.
Referenced by AddFile(), AddFile(), AssignSharedFrom(), ClearEmbeddedFiles(), ClearEmbeddedFonts(), EMBEDDED_FILES(), EMBEDDED_FILES(), EmbeddedFileMap(), GetEmbeddedFile(), GetTemporaryFileName(), HasFile(), IsEmpty(), operator=(), operator=(), RemoveFile(), UpdateFontFiles(), and WriteEmbeddedFiles().
|
private |
Definition at line 1555 of file footprint.h.
Referenced by Deserialize(), FOOTPRINT(), GetFilters(), Serialize(), and SetFilters().
|
protectedinherited |
Definition at line 606 of file eda_item.h.
Referenced by ClearFlags(), DS_DRAW_ITEM_BASE::DS_DRAW_ITEM_BASE(), EDA_ITEM(), EDA_ITEM(), EDA_ITEM(), SCH_PIN::GetBoundingBox(), GetEditFlags(), GetFlags(), PCB_TRACK::GetMsgPanelInfoBase_Common(), SCH_LINE::GetSelectedPoints(), GetTempFlags(), HasFlag(), SCH_FIELD::HitTest(), SCH_FIELD::HitTest(), SCH_JUNCTION::HitTest(), SCH_JUNCTION::HitTest(), SCH_LINE::HitTest(), SCH_LINE::HitTest(), SCH_PIN::HitTest(), SCH_PIN::HitTest(), SCH_SHAPE::HitTest(), SCH_SHAPE::HitTest(), SCH_SYMBOL::HitTest(), SCH_SYMBOL::HitTest(), SCH_TEXT::HitTest(), SCH_TEXT::HitTest(), ZONE::InitDataFromSrcInCopyCtor(), IsBrightened(), SCH_ITEM::IsConnected(), IsEntered(), IsModified(), IsMoving(), IsNew(), IsSelected(), IsShownAsBitmap(), SCH_LINE::MirrorHorizontally(), SCH_LINE::MirrorVertically(), operator=(), PCB_SHAPE::operator==(), SCH_LINE::Rotate(), SetFlags(), LIB_SYMBOL::Similarity(), PCB_SHAPE::Similarity(), PCB_REFERENCE_IMAGE::swapData(), PCB_SHAPE::swapData(), SCH_ITEM::SwapFlags(), SCH_PIN::ViewBBox(), and XorFlags().
|
private |
Definition at line 1496 of file footprint.h.
Referenced by Flip(), FOOTPRINT(), operator=(), operator=(), and SetLayer().
|
privateinherited |
Definition at line 303 of file embedded_files.h.
Referenced by EMBEDDED_FILES(), EMBEDDED_FILES(), GetFontFiles(), operator=(), operator=(), and UpdateFontFiles().
|
privateinherited |
Additional transparency for diff'ing items.
Definition at line 206 of file view_item.h.
Referenced by GetForcedTransparency(), KIGFX::VIEW::DRAW_ITEM_VISITOR::operator()(), SetForcedTransparency(), and VIEW_ITEM().
|
protectedinherited |
Definition at line 612 of file eda_item.h.
Referenced by EDA_ITEM(), EDA_ITEM(), ZONE::InitDataFromSrcInCopyCtor(), IsForceVisible(), operator=(), PCB_SHAPE::operator==(), SetForceVisible(), LIB_SYMBOL::SetParent(), PCB_SHAPE::Similarity(), PCB_REFERENCE_IMAGE::swapData(), and PCB_SHAPE::swapData().
|
private |
Definition at line 1497 of file footprint.h.
Referenced by FOOTPRINT(), GetFPID(), GetFPIDAsString(), GetLIB_ID(), GetLibNickname(), GetMsgPanelInfo(), GetName(), operator=(), operator=(), ResolveTextVar(), SetFPID(), and SetFPIDAsString().
|
private |
Definition at line 1499 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), IsLocked(), IsPlaced(), LegacyPadsLocked(), NeedsPlaced(), operator=(), operator=(), SetIsPlaced(), SetLocked(), and SetNeedsPlaced().
|
mutableprivate |
Definition at line 1516 of file footprint.h.
Referenced by Flip(), FOOTPRINT(), GetBoundingBox(), GetBoundingHull(), InvalidateGeometryCaches(), MoveAnchorPosition(), operator=(), operator=(), SetOrientation(), SetPosition(), and SetTransformScale().
|
mutableprivate |
Definition at line 1515 of file footprint.h.
Referenced by GetBoundingBox(), GetBoundingHull(), and InvalidateGeometryCaches().
|
protectedinherited |
The group this item belongs to, if any. No ownership implied.
Definition at line 608 of file eda_item.h.
Referenced by EDA_ITEM(), EDA_ITEM(), EDA_ITEM(), GetParentGroup(), operator=(), SCH_LINE::SCH_LINE(), and SetParentGroup().
|
private |
Definition at line 1491 of file footprint.h.
Referenced by Add(), FixUuids(), Groups(), Groups(), operator=(), operator=(), Remove(), RunOnChildren(), Visit(), and ~FOOTPRINT().
|
private |
Definition at line 1564 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), GetInitialComments(), operator=(), operator=(), SetInitialComments(), and ~FOOTPRINT().
|
privateinherited |
Definition at line 204 of file view_item.h.
Referenced by IsBOARD_ITEM(), and VIEW_ITEM().
|
protectedinherited |
Definition at line 572 of file board_item.h.
Referenced by BOARD_ITEM(), BOARD_ITEM(), IsKnockout(), operator=(), PCB_SHAPE::operator==(), SetIsKnockout(), PCB_SHAPE::Similarity(), PCB_BARCODE::swapData(), PCB_REFERENCE_IMAGE::swapData(), and PCB_SHAPE::swapData().
|
protectedinherited |
Definition at line 573 of file board_item.h.
Referenced by BOARD_ITEM(), BOARD_ITEM(), IsLocked(), operator=(), PCB_SHAPE::operator==(), SetLocked(), PCB_SHAPE::Similarity(), PCB_BARCODE::swapData(), PCB_DRILL_MAP::swapData(), PCB_REFERENCE_IMAGE::swapData(), PCB_SHAPE::swapData(), and PCB_TABLE::swapData().
|
protectedinherited |
Definition at line 611 of file eda_item.h.
Referenced by EDA_ITEM(), EDA_ITEM(), IsRollover(), operator=(), SetIsRollover(), and LIB_SYMBOL::SetParent().
|
privateinherited |
Definition at line 203 of file view_item.h.
Referenced by IsSCH_ITEM(), and VIEW_ITEM().
|
private |
A list of jumper pad groups, each of which is a set of pad numbers that should be jumpered together (treated as internally connected for the purposes of connectivity)
Definition at line 1529 of file footprint.h.
Referenced by FOOTPRINT(), GetJumperPadGroup(), JumperPadGroups(), JumperPadGroups(), operator=(), and operator=().
|
private |
Definition at line 1551 of file footprint.h.
Referenced by FOOTPRINT(), GetKeywords(), GetMsgPanelInfo(), operator=(), operator=(), and SetKeywords().
|
private |
Definition at line 1556 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), operator=(), and operator=().
|
protectedinherited |
Definition at line 571 of file board_item.h.
Referenced by PCB_BARCODE::AssembleBarcode(), BOARD_ITEM(), BOARD_ITEM(), PCB_BARCODE::computeCacheKey(), PCB_BARCODE::Deserialize(), FOOTPRINT::FOOTPRINT(), PCB_BARCODE::GetBoundingHull(), PCB_VIA::GetDrillConstraint(), GetLayer(), FOOTPRINT::GetLayer(), PCB_GENERATOR::GetLayer(), PCB_SHAPE::GetLayer(), GetLayerName(), GetLayerSet(), PCB_SHAPE::GetLayerSet(), PCB_TRACK::GetLayerSet(), PCB_REFERENCE_IMAGE::GetMsgPanelInfo(), PAD::GetPrincipalLayer(), PCB_SHAPE::GetSolderMaskExpansion(), PCB_TRACK::GetSolderMaskExpansion(), PCB_TRACK::GetWidthConstraint(), PCB_VIA::GetWidthConstraint(), IsOnLayer(), PCB_SHAPE::IsOnLayer(), PCB_TRACK::IsOnLayer(), IsSideSpecific(), PCB_SHAPE::IsType(), operator=(), PCB_ARC::operator==(), PCB_REFERENCE_IMAGE::operator==(), PCB_SHAPE::operator==(), PCB_TARGET::operator==(), PCB_TRACK::operator==(), PCB_VIA::operator==(), PCB_BARCODE::PCB_BARCODE(), PCB_DIMENSION_BASE::PCB_DIMENSION_BASE(), PCB_TARGET::PCB_TARGET(), PCB_TARGET::PCB_TARGET(), PCB_POINT::Serialize(), PCB_REFERENCE_IMAGE::Serialize(), SetLayer(), PCB_BARCODE::SetLayer(), PCB_GENERATOR::SetLayer(), PCB_TABLE::SetLayer(), PAD::SetLayerSet(), PCB_ARC::Similarity(), PCB_REFERENCE_IMAGE::Similarity(), PCB_TRACK::Similarity(), PCB_VIA::Similarity(), PCB_DIMENSION_BASE::StyleFromSettings(), PCB_BARCODE::swapData(), PCB_DRILL_MAP::swapData(), PCB_REFERENCE_IMAGE::swapData(), PCB_SHAPE::swapData(), PCB_TABLE::swapData(), PCB_BARCODE::TransformShapeToPolygon(), ViewGetLayers(), FOOTPRINT::ViewGetLayers(), PCB_REFERENCE_IMAGE::ViewGetLayers(), PCB_SHAPE::ViewGetLayers(), PCB_TRACK::ViewGetLayers(), FOOTPRINT::ViewGetLOD(), PCB_BARCODE::ViewGetLOD(), PCB_POINT::ViewGetLOD(), PCB_REFERENCE_IMAGE::ViewGetLOD(), PCB_SHAPE::ViewGetLOD(), PCB_TABLE::ViewGetLOD(), PCB_TEXT::ViewGetLOD(), PCB_TEXTBOX::ViewGetLOD(), and PCB_TRACK::ViewGetLOD().
|
private |
Definition at line 1550 of file footprint.h.
Referenced by FOOTPRINT(), GetLibDescription(), GetMsgPanelInfo(), operator=(), operator=(), and SetLibDescription().
|
private |
Definition at line 1558 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), GetLink(), operator=(), operator=(), and SetLink().
|
protectedinherited |
Definition at line 613 of file eda_item.h.
Referenced by ClearFlags(), IsBrightened(), IsNetHighlighted(), operator=(), SetNetHighlighted(), and LIB_SYMBOL::SetParent().
|
private |
Definition at line 1525 of file footprint.h.
Referenced by BuildNetTieCache(), and GetNetTieCache().
|
private |
Definition at line 1522 of file footprint.h.
Referenced by AddNetTiePadGroup(), ClearNetTiePadGroups(), DeserializeDefinition(), FOOTPRINT(), GetNetTiePadGroups(), IsNetTie(), MapPadNumbersToNetTieGroups(), operator=(), and operator=().
|
private |
Definition at line 1489 of file footprint.h.
Referenced by Add(), CheckClippedSilk(), CheckNetTies(), CopyFrom(), DuplicateItem(), FindPadByNumber(), FindPadByUuid(), FixUuids(), Flip(), GetBoundingBox(), GetBoundingHull(), GetBoundingHull(), GetLayerBoundingBox(), GetLikelyAttribute(), GetNetTiePads(), GetNextPadNumber(), GetNumberedPadCount(), GetPad(), GetPadCount(), GetPads(), GetSide(), GetUniquePadNumbers(), HitTest(), HitTest(), HitTestOnLayer(), HitTestOnLayer(), IsOnLayer(), MapPadNumbersToNetTieGroups(), MoveAnchorPosition(), operator=(), operator=(), operator==(), Pads(), Pads(), Remove(), RunOnChildren(), SetOrientation(), SetPosition(), SetTransformScale(), Similarity(), TransformPadsToPolySet(), ViewGetLayers(), Visit(), and ~FOOTPRINT().
|
protectedinherited |
Owner.
Definition at line 607 of file eda_item.h.
Referenced by PCB_BOARD_OUTLINE::CopyPros(), SCH_FIELD::Deserialize(), SCH_FIELD::DoHypertextAction(), EDA_ITEM(), EDA_ITEM(), EDA_ITEM(), SCH_FIELD::GetBoundingBox(), SCH_FIELD::GetDefaultLayer(), SCH_FIELD::GetDrawRotation(), SCH_FIELD::GetMenuImage(), PAD::GetMsgPanelInfo(), PCB_DIMENSION_BASE::GetMsgPanelInfo(), SCH_FIELD::GetName(), BOARD_ITEM::GetParent(), GetParent(), SCH_SHEET_PIN::GetParent(), BOARD_ITEM::GetParentAsString(), SCH_FIELD::GetParentPosition(), SCH_FIELD::GetPosition(), SCH_TEXT::GetShownText(), SCH_FIELD::GetText(), SCH_FIELD::getUnescapedText(), SCH_FIELD::GetUntranslatedName(), SCH_FIELD::HitTest(), SCH_FIELD::IsLocked(), SCH_PIN::IsStacked(), SCH_FIELD::Matches(), BOARD_BOUNDING_BOX::operator=(), operator=(), PAD::operator==(), PCB_BOARD_OUTLINE::operator==(), SCH_FIELD::operator==(), SCH_FIELD::Plot(), SCH_LABEL_BASE::Plot(), SCH_FIELD::Replace(), SCH_ITEM::ResolveText(), SCH_LABEL_BASE::ResolveTextVar(), SCH_FIELD::SCH_FIELD(), SCH_SYMBOL::SCH_SYMBOL(), SCH_FIELD::Serialize(), SetModified(), SetParent(), SCH_FIELD::SetPosition(), SCH_FIELD::SetText(), PAD::Similarity(), PCB_BOARD_OUTLINE::Similarity(), PCB_REFERENCE_IMAGE::swapData(), and PCB_SHAPE::swapData().
|
private |
Definition at line 1552 of file footprint.h.
Referenced by Deserialize(), FOOTPRINT(), GetPath(), IsWithinSchematicSheet(), operator=(), operator=(), Serialize(), and SetPath().
|
private |
Definition at line 1493 of file footprint.h.
Referenced by Add(), DuplicateItem(), FixUuids(), Flip(), GetBoundingBox(), GetLayerBoundingBox(), HitTest(), MoveAnchorPosition(), operator=(), operator=(), operator==(), Points(), Points(), Remove(), RunOnChildren(), SetOrientation(), SetPosition(), SetTransformScale(), Visit(), and ~FOOTPRINT().
|
private |
Definition at line 1548 of file footprint.h.
Referenced by FOOTPRINT(), GetBoundingBox(), GetBoundingHull(), GetBoundingHull(), GetLayerBoundingBox(), GetPrivateLayers(), operator=(), operator=(), SetPrivateLayers(), and TextOnly().
|
protectedinherited |
Definition at line 610 of file eda_item.h.
Referenced by GetRolloverPos(), and SetIsRollover().
|
private |
Definition at line 1576 of file footprint.h.
Referenced by GetSearchTerms().
|
private |
Definition at line 1554 of file footprint.h.
Referenced by Deserialize(), FOOTPRINT(), GetSheetfile(), Serialize(), and SetSheetfile().
|
private |
Definition at line 1553 of file footprint.h.
Referenced by Deserialize(), FOOTPRINT(), GetSheetname(), Serialize(), and SetSheetname().
|
private |
Definition at line 1541 of file footprint.h.
Referenced by FOOTPRINT(), GetLocalSolderMaskMargin(), operator=(), operator=(), and SetLocalSolderMaskMargin().
|
private |
Definition at line 1542 of file footprint.h.
Referenced by FOOTPRINT(), GetLocalSolderPasteMargin(), operator=(), operator=(), and SetLocalSolderPasteMargin().
|
private |
Definition at line 1543 of file footprint.h.
Referenced by FOOTPRINT(), GetLocalSolderPasteMarginRatio(), operator=(), operator=(), and SetLocalSolderPasteMarginRatio().
|
private |
Definition at line 1546 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), GetStackupLayers(), SetStackupLayers(), and SetStackupMode().
|
private |
Definition at line 1547 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), GetStackupMode(), SetStackupLayers(), and SetStackupMode().
|
privateinherited |
Run time identification, keep private so it can never be changed after a ctor sets it.
Definition at line 603 of file eda_item.h.
Referenced by EDA_ITEM(), EDA_ITEM(), EDA_ITEM(), IsType(), and Type().
|
private |
Definition at line 1495 of file footprint.h.
Referenced by Flip(), FOOTPRINT(), GetBoundingBox(), GetOrientation(), GetOrientationDegrees(), GetPosition(), GetScaleX(), GetScaleY(), GetTransform(), Move(), operator=(), operator=(), RescaleAroundPoint(), Rotate(), SetOrientation(), SetPosition(), SetScaleX(), SetScaleY(), and SetTransformScale().
|
private |
Definition at line 1570 of file footprint.h.
Referenced by ClearTransientComponentClassNames(), GetTransientComponentClassNames(), and SetTransientComponentClassNames().
|
private |
Definition at line 1574 of file footprint.h.
Referenced by GetUnitInfo(), and SetUnitInfo().
|
inherited |
Definition at line 597 of file eda_item.h.
Referenced by SCH_RULE_AREA::addContainedItem(), PCB_POINT_EDITOR::addCorner(), SCH_RULE_AREA::addDirective(), SCH_SYMBOL::AddHierarchicalReference(), RC_ITEM::AddItem(), SCHEMATIC::AdoptContent(), SCH_EDIT_FRAME::AnnotateSymbols(), KICAD_DIFF::SCH_MERGE_APPLIER::Apply(), bindDimensionEndpoints(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), HOVER_PICKER::Brighten(), SCH_SHEET_LIST::BuildSheetList(), BOARD::BulkRemoveStaleTeardrops(), BOARD::CacheAndReturnItemById(), BOARD::CacheItemById(), PCB_POINT_EDITOR::chamferCorner(), SCH_SHEET_PATH::CheckForMissingSymbolInstances(), SCH_SHEET_PATH::Cmp(), DRC_TEST_PROVIDER_SOLDER_MASK::collectBridge(), collectConstraintCluster(), CollectConstraintScopeIds(), collectImportedUuids(), SCH_ITEM::compare(), SCH_SHAPE::compare(), SCH_INSPECTION_TOOL::CompareSchematicWithHistory(), PCB_IO_IPC2581::componentName(), KICAD_DIFF::ConfigurePcbDiffCanvasContext(), KICAD_DIFF::ConfigureSchDiffCanvasContext(), constraintMemberForEditPoint(), ORCAD_CONVERTER::Convert(), ORCAD_CONVERTER::convertPage(), SCHEMATIC::ConvertRefsToKIIDs(), ORCAD_CONVERTER::convertUnreferencedPages(), SCH_EDIT_TABLE_TOOL::copyCell(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::createActualDerivedSymbol(), createTopLevelSheet(), PCB_GROUP::DeepDuplicate(), SCH_BITMAP::Deserialize(), SCH_BUS_ENTRY_BASE::Deserialize(), SCH_JUNCTION::Deserialize(), SCH_LINE::Deserialize(), SCH_NO_CONNECT::Deserialize(), SCH_PIN::Deserialize(), SCH_RULE_AREA::Deserialize(), SCH_SHAPE::Deserialize(), SCH_SHEET::Deserialize(), SCH_SHEET_PIN::Deserialize(), SCH_SYMBOL::Deserialize(), SCH_TABLE::Deserialize(), SCH_TEXT::Deserialize(), SCH_TEXTBOX::Deserialize(), SCH_GROUP::DeserializeGroup(), CONSTRAINT_EDIT_TOOL::DiagnoseAfterMove(), BOARD_INSPECTION_TOOL::DiffFootprint(), KICAD_DIFF::PCB_DIFFER::diffFootprintChildren(), SCH_INSPECTION_TOOL::DiffSymbol(), DimensionEndpointsBound(), ZONE_FILLER_TOOL::DirtyZone(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIGFX::PCB_PAINTER::drawDrillSymbol(), EDIT_TOOL::Duplicate(), FOOTPRINT::Duplicate(), LIB_SYMBOL::Duplicate(), SCH_ITEM::Duplicate(), SYMBOL_EDITOR_EDIT_TOOL::Duplicate(), EDA_ITEM(), BOARD::ExchangeFootprint(), PAD_TOOL::explodePad(), NETLIST_EXPORTER_ALLEGRO::extractComponentsInfo(), BOARD::FillItemMap(), SCH_SHEET_LIST::FillItemMap(), ORCAD_CONVERTER::finalizeNetNames(), FindDimensionLengthConstraint(), FOOTPRINT_EDIT_FRAME::findOrCreateFootprintInstanceTab(), MULTICHANNEL_TOOL::findOtherItemsInRuleArea(), MULTICHANNEL_TOOL::findRoutingInRuleArea(), KIGIT_PCB_MERGE::findSetDifferences(), SCH_EDITOR_CONTROL::FindSymbolAndItem(), SCH_EDIT_FRAME::FocusOnItem(), SYMBOL_EDIT_FRAME::FocusOnItem(), PCB_BASE_FRAME::FocusOnItems(), SCH_IO_KICAD_SEXPR::Format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::format(), SCH_MARKER::FromProto(), BOARD::GetCachedItemById(), DRC_ENGINE::GetCachedOwnClearance(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getDataStoreKey(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::getDataStoreKey(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::getDataStoreKey(), SCH_PIN::GetDefaultNetName(), RC_ITEM::GetJsonViolation(), PAD::GetMsgPanelInfo(), DIALOG_BOARD_REANNOTATE::GetNewRefDes(), SCH_SYMBOL::GetRef(), GetSymbolReferences(), PCB_MARKER::GetUUID(), SCH_MARKER::GetUUID(), hashConstraint(), ZONE::HigherPriority(), WIDGET_DIFF_CANVAS::HighlightChange(), DRC_ENGINE::InitializeClearanceCache(), SCH_SHEET_PATH::IsContainedWithin(), SCH_SHEET::IsVirtualRootSheet(), NETLIST_EXPORTER_BASE::itemNetName(), EESCHEMA_JOBS_HANDLER::JobImport(), FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard(), DRC_ENGINE::loadImplicitRules(), EESCHEMA_HELPERS::LoadSchematic(), SCH_IO_PADS::LoadSchematicFile(), SCH_EDIT_FRAME::LoadSheetFromFile(), SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic(), KICAD_DIFF::PCB_DIFFER::makeDescriptor(), NETLIST_EXPORTER_XML::makeSymbols(), ISSUE24290_FIXTURE::makeTopLevelSheet(), SCH_EDIT_FRAME::mapExistingAnnotation(), MATCH_PROPERTIES_TOOL::Match(), MatchPendingStackExpansion(), ORCAD_CONVERTER::minimizeNetLabels(), SCH_CONNECTIVITY::NAVIGATION_QUERY::NetItems(), DIALOG_CREATE_NET_CHAIN::OnFindPathClicked(), SCH_EDIT_FRAME::OpenProjectFiles(), BOARD::cmp_drawings::operator()(), BOARD::cmp_items::operator()(), BOARD_ITEM::ptr_cmp::operator()(), CompareByUuid::operator()(), FOOTPRINT::cmp_drawings::operator()(), FOOTPRINT::cmp_pads::operator()(), FOOTPRINT::cmp_zones::operator()(), PCB_POINT::cmp_points::operator()(), PCB_SHAPE::cmp_drawings::operator()(), PCB_TRACK::cmp_tracks::operator()(), ERC_SCH_PIN_CONTEXT::operator<(), SCH_SYMBOL::operator<(), ERC_SCH_PIN_CONTEXT::operator==(), PAD::operator==(), SCH_FIELD::operator==(), packLabel(), PackSymbol(), PAD::PAD(), SCH_IO_KICAD_SEXPR_PARSER::parseEllipseBody(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), SCH_IO_KICAD_SEXPR_PARSER::parseSchTextBoxContent(), SCH_EDITOR_CONTROL::Paste(), SCH_SHEET_PATH::PathAsString(), PCB_VIA::PCB_VIA(), processTextItem(), SCH_SHEET_PATH::push_back(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), NETLIST_EXPORTER_SPICE::ReadSchematicAndLibraries(), BOARD::RebindItemUuid(), SCH_CONNECTIVITY::NETCHAIN_MANAGER::rebuild(), ORCAD_CONVERTER::recordNetNameMap(), SCH_MOVE_TOOL::recordRedundantJunctions(), WIDGET_DIFF_CANVAS::refreshItemDimming(), BOARD::Remove(), PCB_POINT_EDITOR::removeCorner(), SCH_RULE_AREA::RemoveDirective(), SCH_SYMBOL::RemoveInstance(), SCH_RULE_AREA::RemoveItem(), SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::RemoveSymbol(), CONSTRAINT_OVERLAY::render(), SCH_SCREENS::ReplaceDuplicateTimeStamps(), ReSolveAfterShapeResize(), PCB_IO_KICAD_SEXPR_PARSER::resolveConstraints(), PCB_IO_KICAD_SEXPR_PARSER::resolveGroups(), BOARD::ResolveItem(), SCH_SHEET_PATH::ResolveItem(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::resolveSilkDisposition(), EE_GRID_HELPER::ResolveSnap(), PCB_GRID_HELPER::ResolveSnap(), DRC_TEST_PROVIDER_SILK_CLEARANCE::Run(), SCH_IO_KICAD_SEXPR::saveBitmap(), SCH_IO_KICAD_SEXPR::saveBusEntry(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), SCH_IO_KICAD_SEXPR::saveGroup(), SCH_IO_KICAD_SEXPR::saveJunction(), SCH_IO_KICAD_SEXPR::saveLine(), SCH_IO_KICAD_SEXPR::saveNoConnect(), SCH_EDIT_FRAME::SaveProject(), SCH_IO_KICAD_SEXPR::saveShape(), SCH_IO_KICAD_LEGACY::saveSheet(), SCH_IO_KICAD_SEXPR::saveSheet(), SCH_IO_KICAD_LEGACY::saveSymbol(), SCH_IO_KICAD_SEXPR::saveSymbol(), SCH_IO_KICAD_SEXPR::saveTable(), SCH_IO_KICAD_SEXPR::saveText(), SCH_IO_KICAD_SEXPR::saveTextBox(), SCH_PIN::SCH_PIN(), SCH_REFERENCE::SCH_REFERENCE(), SCH_SHEET::SCH_SHEET(), SCH_SYMBOL::SCH_SYMBOL(), FOOTPRINT::Serialize(), PAD::Serialize(), PCB_ARC::Serialize(), PCB_BARCODE::Serialize(), PCB_CONSTRAINT::Serialize(), PCB_DIMENSION_BASE::Serialize(), PCB_DRILL_MAP::Serialize(), PCB_GRID_ITEM::Serialize(), PCB_GROUP::Serialize(), PCB_POINT::Serialize(), PCB_REFERENCE_IMAGE::Serialize(), PCB_SHAPE::Serialize(), PCB_TABLE::Serialize(), PCB_TEXT::Serialize(), PCB_TEXTBOX::Serialize(), PCB_TRACK::Serialize(), PCB_VIA::Serialize(), SCH_BITMAP::Serialize(), SCH_BUS_ENTRY_BASE::Serialize(), SCH_GLOBALLABEL::Serialize(), SCH_GROUP::Serialize(), SCH_JUNCTION::Serialize(), SCH_LINE::Serialize(), SCH_NO_CONNECT::Serialize(), SCH_PIN::Serialize(), SCH_RULE_AREA::Serialize(), SCH_SHAPE::Serialize(), SCH_SHEET::Serialize(), SCH_SHEET_PIN::Serialize(), SCH_SYMBOL::Serialize(), SCH_TABLE::Serialize(), SCH_TEXT::Serialize(), SCH_TEXTBOX::Serialize(), ZONE::Serialize(), PAD::SetAttribute(), PCB_VIA::SetBottomLayer(), SetDimensionValueMode(), RC_ITEM::SetItems(), BOARD_CONNECTED_ITEM::SetLayer(), PCB_VIA::SetLayerPair(), PAD::SetLayerSet(), BOARD_CONNECTED_ITEM::SetNetCode(), SCH_EDITOR_CONTROL::setPastedSymbolInstances(), CONSTRAINT_EDIT_TOOL::setSelectedConstraint(), SCHEMATIC::SetSheetNumberAndCount(), TEARDROP_MANAGER::setTeardropPriorities(), NETINFO_ITEM::SetTerminal(), PCB_VIA::SetTopLayer(), BOARD_ITEM::SetUuid(), BOARD_ITEM::SetUuidDirect(), LIB_SYMBOL::Similarity(), PAD::Similarity(), PCB_DIMENSION_BASE::Similarity(), PCB_FIELD::Similarity(), SCH_BITMAP::Similarity(), SCH_BUS_ENTRY_BASE::Similarity(), SCH_FIELD::Similarity(), SCH_JUNCTION::Similarity(), SCH_LABEL_BASE::Similarity(), SCH_LINE::Similarity(), SCH_NO_CONNECT::Similarity(), SCH_PIN::Similarity(), SCH_SHAPE::Similarity(), SCH_TEXT::Similarity(), SCH_TEXTBOX::Similarity(), SCH_DRAWING_TOOLS::SingleClickPlace(), SCH_SHEET_LIST::SortByHierarchicalPageNumbers(), stableDriverIdentity(), SCH_SYMBOL::SyncOtherUnits(), SCH_SHEET::SyncUuidToScreen(), TEARDROP_MANAGER::teardropUuid(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::testAgainstEdge(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testGraphicClearances(), testGroupEqual(), DRC_TEST_PROVIDER_HOLE_TO_HOLE::testHoleAgainstHole(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadClearances(), ERC_TESTER::TestSameLocalGlobalLabel(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testSingleLayerItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackClearances(), ToProto(), DIALOG_LABEL_PROPERTIES::TransferDataFromWindow(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), unpackLabel(), NET_CHAIN_MENU::update(), REPLACE_TERMINAL_PAD_MENU::update(), CONSTRAINT_EDIT_TOOL::updateConstraintMsgPanel(), BOARD_NETLIST_UPDATER::updateFootprintGroup(), PCB_POINT_EDITOR::updateItem(), PCB_CONTROL::UpdateMessagePanel(), PL_EDITOR_CONTROL::UpdateMessagePanel(), SCH_INSPECTION_TOOL::UpdateMessagePanel(), BOARD_NETLIST_UPDATER::UpdateNetlist(), SCH_EDITOR_CONTROL::updatePastedSheet(), SCH_EDITOR_CONTROL::updatePastedSymbol(), SCH_API_SAVE::UpdateProjectFile(), BOARD::UpdateRatsnestExclusions(), DIALOG_FOOTPRINT_FIELDS_TABLE::updateSelectionItems(), DIALOG_SYMBOL_FIELDS_TABLE::updateSelectionItems(), SCH_SHEET_LIST::UpdateSymbolInstanceData(), PCB_DIMENSION_BASE::ViewGetLOD(), PCB_SHAPE::ViewGetLOD(), NETLIST_EXPORTER_CADSTAR::writeNetlist(), NETLIST_EXPORTER_ORCADPCB2::writeNetlist(), and NETLIST_EXPORTER_PADS::writeNetlist().
|
private |
Variant data for this footprint, keyed by variant name.
Definition at line 1503 of file footprint.h.
Referenced by AddVariant(), DeleteVariant(), Deserialize(), FOOTPRINT(), GetVariant(), GetVariant(), GetVariants(), HasVariant(), operator=(), operator=(), Remove(), RenameVariant(), Serialize(), and SetVariant().
|
privateinherited |
Definition at line 205 of file view_item.h.
Referenced by KIGFX::VIEW::Add(), KIGFX::VIEW::OnDestroy(), KIGFX::VIEW::unlinkItem(), KIGFX::VIEW::updateBbox(), KIGFX::VIEW::updateLayers(), VIEW_ITEM(), viewPrivData(), and ~VIEW_ITEM().
|
private |
Definition at line 1539 of file footprint.h.
Referenced by FOOTPRINT(), FOOTPRINT(), GetLocalZoneConnection(), GetZoneConnectionOverrides(), operator=(), operator=(), and SetLocalZoneConnection().
|
private |
Definition at line 1490 of file footprint.h.
Referenced by Add(), CheckNetTies(), DuplicateItem(), FixUuids(), Flip(), GetBoundingBox(), GetBoundingHull(), GetBoundingHull(), GetLayerBoundingBox(), GetSide(), HitTest(), HitTest(), HitTestOnLayer(), HitTestOnLayer(), IsOnLayer(), operator=(), operator=(), operator==(), Remove(), RunOnChildren(), SetOrientation(), SetPosition(), SetTransformScale(), Visit(), Zones(), Zones(), and ~FOOTPRINT().
|
staticinherited |
A value of wxPoint(0,0) which can be passed to the Draw() functions.
Definition at line 232 of file board_item.h.
Referenced by BOARD::GetPosition().