KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pad.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2018 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#pragma once
26
27#include <mutex>
28#include <array>
29
31#include <core/arraydim.h>
32#include <core/mirror.h>
33#include <geometry/eda_angle.h>
36#include <lset.h>
37#include <padstack.h>
38#include <zones.h>
39
40class PCB_SHAPE;
41class SHAPE;
42class SHAPE_SEGMENT;
43
44class LINE_READER;
45class EDA_3D_CANVAS;
46class FOOTPRINT;
47
48namespace KIGFX
49{
50 class VIEW;
51}
52
54{
55public:
56 PAD( FOOTPRINT* parent );
57
58 // Copy constructor & operator= are needed because the list of basic shapes
59 // must be duplicated in copy.
60 PAD( const PAD& aPad );
61 PAD& operator=( const PAD &aOther );
62
63 void Serialize( google::protobuf::Any &aContainer ) const override;
64 bool Deserialize( const google::protobuf::Any &aContainer ) override;
65
66 /*
67 * Default layers used for pads, according to the pad type.
68 *
69 * This is default values only, they can be changed for a given pad.
70 */
71 static LSET PTHMask();
72 static LSET SMDMask();
73 static LSET ConnSMDMask();
75 static LSET UnplatedHoleMask();
76 static LSET ApertureMask();
77
78 static inline bool ClassOf( const EDA_ITEM* aItem )
79 {
80 return aItem && PCB_PAD_T == aItem->Type();
81 }
82
83 bool IsType( const std::vector<KICAD_T>& aScanTypes ) const override
84 {
85 if( BOARD_CONNECTED_ITEM::IsType( aScanTypes ) )
86 return true;
87
88 for( KICAD_T scanType : aScanTypes )
89 {
90 if( HasHole() )
91 {
92 if( scanType == PCB_LOCATE_HOLE_T )
93 return true;
94 else if( scanType == PCB_LOCATE_PTH_T && m_attribute != PAD_ATTRIB::NPTH )
95 return true;
96 else if( scanType == PCB_LOCATE_NPTH_T && m_attribute == PAD_ATTRIB::NPTH )
97 return true;
98 }
99 }
100
101 return false;
102 }
103
104 bool HasHole() const override
105 {
106 return GetDrillSizeX() > 0 && GetDrillSizeY() > 0;
107 }
108
109 bool HasDrilledHole() const override
110 {
111 return HasHole() && GetDrillSizeX() == GetDrillSizeY();
112 }
113
114 bool IsLocked() const override;
115
123 void ImportSettingsFrom( const PAD& aMasterPad );
124
128 bool IsFlipped() const;
129
133 void SetNumber( const wxString& aNumber ) { m_number = aNumber; }
134 const wxString& GetNumber() const { return m_number; }
135
139 bool CanHaveNumber() const;
140
144 void SetPinFunction( const wxString& aName ) { m_pinFunction = aName; }
145 const wxString& GetPinFunction() const { return m_pinFunction; }
146
150 void SetPinType( const wxString& aType ) { m_pinType = aType; }
151 const wxString& GetPinType() const { return m_pinType; }
152
157 bool SameLogicalPadAs( const PAD* aOther ) const
158 {
159 // hide tricks behind sensible API
160 return GetParentFootprint() == aOther->GetParentFootprint()
161 && !m_number.IsEmpty() && m_number == aOther->m_number;
162 }
163
167 bool SharesNetTieGroup( const PAD* aOther ) const;
168
173 bool IsNoConnectPad() const;
174
179 bool IsFreePad() const;
180
184 void SetShape( PCB_LAYER_ID aLayer, PAD_SHAPE aShape )
185 {
186 m_padStack.SetShape( aShape, aLayer );
187 SetDirty();
188 }
189
193 PAD_SHAPE GetShape( PCB_LAYER_ID aLayer ) const { return m_padStack.Shape( aLayer ); }
194
195 // Used for the properties panel, which does not support padstacks at the moment
196 void SetFrontShape( PAD_SHAPE aShape );
197
199
200 void SetPosition( const VECTOR2I& aPos ) override
201 {
202 m_pos = aPos;
203 SetDirty();
204 }
205
206 VECTOR2I GetPosition() const override { return m_pos; }
207
212 {
213 return m_padStack.AnchorShape( aLayer );
214 }
215
220 {
222 }
223
230 {
232 }
233
241 {
242 m_padStack.SetAnchorShape( aShape == PAD_SHAPE::RECTANGLE
243 ? PAD_SHAPE::RECTANGLE
244 : PAD_SHAPE::CIRCLE,
245 aLayer );
246 SetDirty();
247 }
248
252 bool IsOnCopperLayer() const override;
253
254 void SetY( int y ) { m_pos.y = y; SetDirty(); }
255 void SetX( int x ) { m_pos.x = x; SetDirty(); }
256
257 void SetSize( PCB_LAYER_ID aLayer, const VECTOR2I& aSize )
258 {
259 m_padStack.SetSize( aSize, aLayer );
260 SetDirty();
261 }
262 const VECTOR2I& GetSize( PCB_LAYER_ID aLayer ) const { return m_padStack.Size( aLayer ); }
263
264 // These accessors are for the properties panel, which does not have the ability to deal with
265 // custom padstacks where the properties can vary by layer. The properties should be disabled
266 // in the GUI when the padstack mode is set to anything other than NORMAL, but so that the code
267 // compiles, these are set up to work with the front layer (in other words, assume the mode is
268 // NORMAL, where F_Cu stores the whole padstack data)
269 void SetSizeX( const int aX )
270 {
271 if( aX > 0 )
272 {
274 SetDirty();
275 }
276 }
277
278 int GetSizeX() const { return m_padStack.Size( PADSTACK::ALL_LAYERS ).x; }
279
280 void SetSizeY( const int aY )
281 {
282 if( aY > 0 )
283 {
285 SetDirty();
286 }
287 }
288
289 int GetSizeY() const { return m_padStack.Size( PADSTACK::ALL_LAYERS ).y; }
290
291 void SetDelta( PCB_LAYER_ID aLayer, const VECTOR2I& aSize )
292 {
293 m_padStack.TrapezoidDeltaSize( aLayer ) = aSize;
294 SetDirty();
295 }
296
297 const VECTOR2I& GetDelta( PCB_LAYER_ID aLayer ) const
298 {
299 return m_padStack.TrapezoidDeltaSize( aLayer );
300 }
301
302 void SetDrillSize( const VECTOR2I& aSize ) { m_padStack.Drill().size = aSize; SetDirty(); }
303 const VECTOR2I& GetDrillSize() const { return m_padStack.Drill().size; }
304 void SetDrillSizeX( const int aX );
305 int GetDrillSizeX() const { return m_padStack.Drill().size.x; }
306 void SetDrillSizeY( const int aY ) { m_padStack.Drill().size.y = aY; SetDirty(); }
307 int GetDrillSizeY() const { return m_padStack.Drill().size.y; }
308
309 void SetOffset( PCB_LAYER_ID aLayer, const VECTOR2I& aOffset )
310 {
311 m_padStack.Offset( aLayer ) = aOffset;
312 SetDirty();
313 }
314
315 const VECTOR2I& GetOffset( PCB_LAYER_ID aLayer ) const { return m_padStack.Offset( aLayer ); }
316
317 VECTOR2I GetCenter() const override { return GetPosition(); }
318
319 const PADSTACK& Padstack() const { return m_padStack; }
321 void SetPadstack( const PADSTACK& aPadstack ) { m_padStack = aPadstack; }
322
334 void AddPrimitivePoly( PCB_LAYER_ID aLayer, const SHAPE_POLY_SET& aPoly, int aThickness,
335 bool aFilled );
336 void AddPrimitivePoly( PCB_LAYER_ID aLayer, const std::vector<VECTOR2I>& aPoly, int aThickness,
337 bool aFilled );
338
351 void MergePrimitivesAsPolygon( PCB_LAYER_ID aLayer, SHAPE_POLY_SET* aMergedPolygon,
352 ERROR_LOC aErrorLoc = ERROR_INSIDE ) const;
353
359
363 const std::vector<std::shared_ptr<PCB_SHAPE>>& GetPrimitives( PCB_LAYER_ID aLayer ) const
364 {
365 return m_padStack.Primitives( aLayer );
366 }
367
368 void Flip( const VECTOR2I& VECTOR2I, FLIP_DIRECTION aFlipDirection ) override;
369
374 void FlipPrimitives( FLIP_DIRECTION aFlipDirection );
375
380 void ReplacePrimitives( PCB_LAYER_ID aLayer,
381 const std::vector<std::shared_ptr<PCB_SHAPE>>& aPrimitivesList );
382
387 void AppendPrimitives( PCB_LAYER_ID aLayer,
388 const std::vector<std::shared_ptr<PCB_SHAPE>>& aPrimitivesList );
389
393 void AddPrimitive( PCB_LAYER_ID aLayer, PCB_SHAPE* aPrimitive );
394
400 void SetOrientation( const EDA_ANGLE& aAngle );
401 void SetFPRelativeOrientation( const EDA_ANGLE& aAngle );
402
408
409 // For property system
410 void SetOrientationDegrees( double aOrientation )
411 {
412 SetOrientation( EDA_ANGLE( aOrientation, DEGREES_T ) );
413 }
415 {
417 }
418
419 void SetDrillShape( PAD_DRILL_SHAPE aShape );
421
422 bool IsDirty() const
423 {
425 }
426
427 void SetDirty()
428 {
429 m_shapesDirty = true;
432 }
433
434 void SetLayerSet( const LSET& aLayers ) override { m_padStack.SetLayerSet( aLayers ); }
435 LSET GetLayerSet() const override { return m_padStack.LayerSet(); }
436
437 void SetAttribute( PAD_ATTRIB aAttribute );
439
440 void SetProperty( PAD_PROP aProperty );
441 PAD_PROP GetProperty() const { return m_property; }
442
443 // We don't currently have an attribute for APERTURE, and adding one will change the file
444 // format, so for now just infer a copper-less pad to be an APERTURE pad.
445 bool IsAperturePad() const
446 {
447 return ( m_padStack.LayerSet() & LSET::AllCuMask() ).none();
448 }
449
450 void SetPadToDieLength( int aLength ) { m_lengthPadToDie = aLength; }
451 int GetPadToDieLength() const { return m_lengthPadToDie; }
452
453 std::optional<int> GetLocalClearance() const override { return m_padStack.Clearance(); }
454 void SetLocalClearance( std::optional<int> aClearance ) { m_padStack.Clearance() = aClearance; }
455
456 std::optional<int> GetLocalSolderMaskMargin() const { return m_padStack.SolderMaskMargin(); }
457 void SetLocalSolderMaskMargin( std::optional<int> aMargin )
458 {
459 m_padStack.SolderMaskMargin() = aMargin;
460 }
461
462 std::optional<int> GetLocalSolderPasteMargin() const { return m_padStack.SolderPasteMargin(); }
463 void SetLocalSolderPasteMargin( std::optional<int> aMargin )
464 {
465 m_padStack.SolderPasteMargin() = aMargin;
466 }
467
468 std::optional<double> GetLocalSolderPasteMarginRatio() const
469 {
471 }
472 void SetLocalSolderPasteMarginRatio( std::optional<double> aRatio )
473 {
475 }
476
479 {
480 return m_padStack.ZoneConnection().value_or( ZONE_CONNECTION::INHERITED );
481 }
482
490 int GetOwnClearance( PCB_LAYER_ID aLayer, wxString* aSource = nullptr ) const override;
491
501 void TransformShapeToPolygon( SHAPE_POLY_SET& aBuffer, PCB_LAYER_ID aLayer, int aClearance,
502 int aMaxError, ERROR_LOC aErrorLoc = ERROR_INSIDE,
503 bool ignoreLineWidth = false ) const override;
504
514 bool TransformHoleToPolygon( SHAPE_POLY_SET& aBuffer, int aClearance, int aError,
515 ERROR_LOC aErrorLoc = ERROR_INSIDE ) const;
516
531 virtual std::shared_ptr<SHAPE>
533 FLASHING flashPTHPads = FLASHING::DEFAULT ) const override;
534
535 const std::shared_ptr<SHAPE_POLY_SET>& GetEffectivePolygon( PCB_LAYER_ID aLayer,
536 ERROR_LOC aErrorLoc = ERROR_INSIDE ) const;
537
541 std::shared_ptr<SHAPE_SEGMENT> GetEffectiveHoleShape() const override;
542
548 int GetBoundingRadius() const;
549
556 std::optional<int> GetLocalClearance( wxString* aSource ) const override;
557
564 std::optional<int> GetClearanceOverrides( wxString* aSource ) const override;
565
576 int GetSolderMaskExpansion( PCB_LAYER_ID aLayer ) const;
577
590
591 ZONE_CONNECTION GetZoneConnectionOverrides( wxString* aSource = nullptr ) const;
592
597 void SetLocalThermalSpokeWidthOverride( std::optional<int> aWidth )
598 {
599 m_padStack.ThermalSpokeWidth() = aWidth;
600 }
601 std::optional<int> GetLocalThermalSpokeWidthOverride() const
602 {
604 }
605
606 int GetLocalSpokeWidthOverride( wxString* aSource = nullptr ) const;
607
613 void SetThermalSpokeAngle( const EDA_ANGLE& aAngle )
614 {
616 }
618 {
620 }
621
622 // For property system
623 void SetThermalSpokeAngleDegrees( double aAngle )
624 {
626 }
628 {
630 }
631
632 void SetThermalGap( int aGap ) { m_padStack.ThermalGap() = aGap; }
633 int GetThermalGap() const { return m_padStack.ThermalGap().value_or( 0 ); }
634
635 int GetLocalThermalGapOverride( wxString* aSource ) const;
636
637 std::optional<int> GetLocalThermalGapOverride() const
638 {
639 return m_padStack.ThermalGap();
640 }
641 void SetLocalThermalGapOverride( const std::optional<int>& aOverride )
642 {
643 m_padStack.ThermalGap() = aOverride;
644 }
645
651 void SetRoundRectCornerRadius( PCB_LAYER_ID aLayer, double aRadius );
652 int GetRoundRectCornerRadius( PCB_LAYER_ID aLayer ) const;
653
654 VECTOR2I ShapePos( PCB_LAYER_ID aLayer ) const;
655
662 void SetRoundRectRadiusRatio( PCB_LAYER_ID aLayer, double aRadiusScale );
664 {
665 return m_padStack.RoundRectRadiusRatio( aLayer );
666 }
667
668 // For properties panel, which only supports normal padstacks
669 void SetFrontRoundRectRadiusRatio( double aRadiusScale );
671 {
673 }
674
675 // For properties panel, which only supports normal padstacks
676 void SetFrontRoundRectRadiusSize( int aRadius );
677 int GetFrontRoundRectRadiusSize() const;
678
685 void SetChamferRectRatio( PCB_LAYER_ID aLayer, double aChamferScale );
686 double GetChamferRectRatio( PCB_LAYER_ID aLayer ) const
687 {
688 return m_padStack.ChamferRatio( aLayer );
689 }
690
698 void SetChamferPositions( PCB_LAYER_ID aLayer, int aPositions )
699 {
700 m_padStack.SetChamferPositions( aPositions, aLayer );
701 }
702
704 {
705 return m_padStack.ChamferPositions( aLayer );
706 }
707
711 int GetSubRatsnest() const { return m_subRatsnest; }
712 void SetSubRatsnest( int aSubRatsnest ) { m_subRatsnest = aSubRatsnest; }
713
719 void SetRemoveUnconnected( bool aSet )
720 {
724 }
725
727 {
729 }
730
735 void SetKeepTopBottom( bool aSet )
736 {
740 }
741
742 bool GetKeepTopBottom() const
743 {
746 }
747
749 {
751 }
752
754 {
756 }
757
759 {
761 {
763 return false;
764
766 return true;
767
769 {
770 if( aLayer == m_padStack.Drill().start || aLayer == m_padStack.Drill().end )
771 return false;
772 }
773 }
774
775 return true;
776 }
777
778 void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override;
779
780 bool IsOnLayer( PCB_LAYER_ID aLayer ) const override
781 {
782 return m_padStack.LayerSet().test( aLayer );
783 }
784
793 bool FlashLayer( int aLayer, bool aOnlyCheckIfPermitted = false ) const;
794
795 bool CanFlashLayer( int aLayer )
796 {
797 return FlashLayer( aLayer, true );
798 }
799
800 PCB_LAYER_ID GetLayer() const override;
801
806
814 bool FlashLayer( LSET aLayers ) const;
815
816 bool HitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const override;
817 bool HitTest( const BOX2I& aRect, bool aContained, int aAccuracy = 0 ) const override;
818
819
827 std::vector<PCB_SHAPE*> Recombine( bool aIsDryRun, int aMaxError );
828
829 wxString GetClass() const override
830 {
831 return wxT( "PAD" );
832 }
833
837 const BOX2I GetBoundingBox() const override;
838
845 static int Compare( const PAD* aPadRef, const PAD* aPadCmp );
846
847 void Move( const VECTOR2I& aMoveVector ) override
848 {
849 m_pos += aMoveVector;
850 SetDirty();
851 }
852
853 void Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle ) override;
854
855 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const override;
856
857 BITMAPS GetMenuImage() const override;
858
862 wxString ShowPadShape( PCB_LAYER_ID aLayer ) const;
863
867 wxString ShowPadAttr() const;
868
869 EDA_ITEM* Clone() const override;
870
876 PAD* ClonePad() const
877 {
878 return (PAD*) Clone();
879 }
880
885 void BuildEffectiveShapes() const;
886 void BuildEffectivePolygon( ERROR_LOC aErrorLoc = ERROR_INSIDE ) const;
887
888 virtual std::vector<int> ViewGetLayers() const override;
889
890 double ViewGetLOD( int aLayer, const KIGFX::VIEW* aView ) const override;
891
892 virtual const BOX2I ViewBBox() const override;
893
895
897
898 void SetZoneLayerOverride( PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride );
899
900 void CheckPad( UNITS_PROVIDER* aUnitsProvider, bool aForPadProperties,
901 const std::function<void( int aErrorCode,
902 const wxString& aMsg )>& aErrorHandler ) const;
903
904 double Similarity( const BOARD_ITEM& aOther ) const override;
905
906 bool operator==( const PAD& aOther ) const;
907 bool operator==( const BOARD_ITEM& aBoardItem ) const override;
908
909#if defined(DEBUG)
910 virtual void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
911#endif
912
913protected:
914 virtual void swapData( BOARD_ITEM* aImage ) override;
915
916private:
917 const SHAPE_COMPOUND& buildEffectiveShape( PCB_LAYER_ID aLayer ) const;
918
919 void addPadPrimitivesToPolygon( PCB_LAYER_ID aLayer, SHAPE_POLY_SET* aMergedPolygon, int aError,
920 ERROR_LOC aErrorLoc ) const;
921
922 void doCheckPad( PCB_LAYER_ID aLayer, UNITS_PROVIDER* aUnitsProvider, bool aForPadProperties,
923 const std::function<void( int aErrorCode,
924 const wxString& aMsg )>& aErrorHandler ) const;
925
926private:
927 wxString m_number; // Pad name (pin number in schematic)
928 wxString m_pinFunction; // Pin name in schematic
929 wxString m_pinType; // Pin electrical type in schematic
930
931 VECTOR2I m_pos; // Pad Position on board
932
934
935 // Must be set to true to force rebuild shapes to draw (after geometry change for instance)
936 typedef std::map<PCB_LAYER_ID, std::shared_ptr<SHAPE_COMPOUND>> LAYER_SHAPE_MAP;
937 mutable bool m_shapesDirty;
938 mutable std::mutex m_shapesBuildingLock;
941 mutable std::shared_ptr<SHAPE_SEGMENT> m_effectiveHoleShape;
942
943 typedef std::map<PCB_LAYER_ID, std::array<std::shared_ptr<SHAPE_POLY_SET>, 2>> LAYER_POLYGON_MAP;
944 mutable bool m_polyDirty[2];
945 mutable std::mutex m_polyBuildingLock;
948
949 int m_subRatsnest; // Variable used to handle subnet (block) number in
950 // ratsnest computations
951
952 PAD_ATTRIB m_attribute = PAD_ATTRIB::PTH;
953
954 PAD_PROP m_property; // Property in fab files (BGA, FIDUCIAL, TESTPOINT, etc.)
955
956 int m_lengthPadToDie; // Length net from pad to die, inside the package
957
959 std::map<PCB_LAYER_ID, ZONE_LAYER_OVERRIDE> m_zoneLayerOverrides;
960};
ERROR_LOC
When approximating an arc or circle, should the error be placed on the outside or inside of the curve...
Definition: approximation.h:32
@ ERROR_OUTSIDE
Definition: approximation.h:33
@ ERROR_INSIDE
Definition: approximation.h:34
BITMAPS
A list of all bitmap identifiers.
Definition: bitmaps_list.h:33
ZONE_LAYER_OVERRIDE
Conditionally flashed vias and pads that interact with zones of different priority can be very squirr...
Definition: board_item.h:66
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition: board_item.h:79
FOOTPRINT * GetParentFootprint() const
Definition: board_item.cpp:298
Implement a canvas based on a wxGLCanvas.
Definition: eda_3d_canvas.h:51
double AsDegrees() const
Definition: eda_angle.h:113
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:89
KICAD_T Type() const
Returns the type of object.
Definition: eda_item.h:101
virtual bool IsType(const std::vector< KICAD_T > &aScanTypes) const
Check whether the item is one of the listed types.
Definition: eda_item.h:176
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Definition: view.h:67
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
Definition: richio.h:93
LSET is a set of PCB_LAYER_IDs.
Definition: lset.h:37
static LSET AllCuMask(int aCuLayerCount=MAX_CU_LAYERS)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
Definition: lset.cpp:564
A PADSTACK defines the characteristics of a single or multi-layer pad, in the IPC sense of the word.
Definition: padstack.h:124
CUSTOM_SHAPE_ZONE_MODE CustomShapeInZoneMode() const
Definition: padstack.h:326
void SetCustomShapeInZoneMode(CUSTOM_SHAPE_ZONE_MODE aM)
Definition: padstack.h:327
std::optional< int > & Clearance(PCB_LAYER_ID aLayer=F_Cu)
Definition: padstack.cpp:1181
std::optional< double > & SolderPasteMarginRatio(PCB_LAYER_ID aLayer=F_Cu)
Definition: padstack.cpp:1220
void SetThermalSpokeAngle(EDA_ANGLE aAngle, PCB_LAYER_ID aLayer=F_Cu)
Definition: padstack.cpp:1289
void SetUnconnectedLayerMode(UNCONNECTED_LAYER_MODE aMode)
Definition: padstack.h:307
std::optional< int > & ThermalSpokeWidth(PCB_LAYER_ID aLayer=F_Cu)
Definition: padstack.cpp:1246
std::optional< int > & SolderPasteMargin(PCB_LAYER_ID aLayer=F_Cu)
Definition: padstack.cpp:1207
std::optional< int > & SolderMaskMargin(PCB_LAYER_ID aLayer=F_Cu)
Definition: padstack.cpp:1193
const LSET & LayerSet() const
Definition: padstack.h:274
void SetShape(PAD_SHAPE aShape, PCB_LAYER_ID aLayer)
Definition: padstack.cpp:1053
VECTOR2I & TrapezoidDeltaSize(PCB_LAYER_ID aLayer)
Definition: padstack.cpp:1110
VECTOR2I & Offset(PCB_LAYER_ID aLayer)
Definition: padstack.cpp:1086
EDA_ANGLE ThermalSpokeAngle(PCB_LAYER_ID aLayer=F_Cu) const
Definition: padstack.cpp:1281
void SetChamferPositions(int aPositions, PCB_LAYER_ID aLayer)
Definition: padstack.cpp:1175
UNCONNECTED_LAYER_MODE UnconnectedLayerMode() const
Definition: padstack.h:306
std::optional< int > & ThermalGap(PCB_LAYER_ID aLayer=F_Cu)
Definition: padstack.cpp:1258
PAD_SHAPE Shape(PCB_LAYER_ID aLayer) const
Definition: padstack.cpp:1047
DRILL_PROPS & Drill()
Definition: padstack.h:300
void SetAnchorShape(PAD_SHAPE aShape, PCB_LAYER_ID aLayer)
Definition: padstack.cpp:1104
CUSTOM_SHAPE_ZONE_MODE
Definition: padstack.h:158
int & ChamferPositions(PCB_LAYER_ID aLayer)
Definition: padstack.cpp:1163
const VECTOR2I & Size(PCB_LAYER_ID aLayer) const
Definition: padstack.cpp:1068
double RoundRectRadiusRatio(PCB_LAYER_ID aLayer) const
Definition: padstack.cpp:1122
UNCONNECTED_LAYER_MODE
! Whether or not to remove the copper shape for unconnected layers
Definition: padstack.h:151
PAD_SHAPE AnchorShape(PCB_LAYER_ID aLayer) const
Definition: padstack.cpp:1098
void SetSize(const VECTOR2I &aSize, PCB_LAYER_ID aLayer)
Definition: padstack.cpp:1059
double ChamferRatio(PCB_LAYER_ID aLayer) const
Definition: padstack.cpp:1151
static constexpr PCB_LAYER_ID ALL_LAYERS
! Temporary layer identifier to identify code that is not padstack-aware
Definition: padstack.h:144
EDA_ANGLE GetOrientation() const
Definition: padstack.h:293
void SetLayerSet(const LSET &aSet)
Definition: padstack.h:276
std::optional< ZONE_CONNECTION > & ZoneConnection(PCB_LAYER_ID aLayer=F_Cu)
Definition: padstack.cpp:1234
std::vector< std::shared_ptr< PCB_SHAPE > > & Primitives(PCB_LAYER_ID aLayer)
Definition: padstack.cpp:1295
Definition: pad.h:54
void SetAnchorPadShape(PCB_LAYER_ID aLayer, PAD_SHAPE aShape)
Set the shape of the anchor pad for custom shaped pads.
Definition: pad.h:240
bool IsAperturePad() const
Definition: pad.h:445
void SetAttribute(PAD_ATTRIB aAttribute)
Definition: pad.cpp:835
int GetOwnClearance(PCB_LAYER_ID aLayer, wxString *aSource=nullptr) const override
Return the pad's "own" clearance in internal units.
Definition: pad.cpp:1099
void CheckPad(UNITS_PROVIDER *aUnitsProvider, bool aForPadProperties, const std::function< void(int aErrorCode, const wxString &aMsg)> &aErrorHandler) const
Definition: pad.cpp:2162
virtual void swapData(BOARD_ITEM *aImage) override
Definition: pad.cpp:1892
PAD_PROP GetProperty() const
Definition: pad.h:441
bool GetRemoveUnconnected() const
Definition: pad.h:726
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
Definition: pad.cpp:139
double GetFrontRoundRectRadiusRatio() const
Definition: pad.h:670
void doCheckPad(PCB_LAYER_ID aLayer, UNITS_PROVIDER *aUnitsProvider, bool aForPadProperties, const std::function< void(int aErrorCode, const wxString &aMsg)> &aErrorHandler) const
Definition: pad.cpp:2272
std::optional< int > GetClearanceOverrides(wxString *aSource) const override
Return any clearance overrides set in the "classic" (ie: pre-rule) system.
Definition: pad.cpp:1087
void SetPinType(const wxString &aType)
Set the pad electrical type.
Definition: pad.h:150
LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
Definition: pad.h:435
const std::vector< std::shared_ptr< PCB_SHAPE > > & GetPrimitives(PCB_LAYER_ID aLayer) const
Accessor to the basic shape list for custom-shaped pads.
Definition: pad.h:363
const ZONE_LAYER_OVERRIDE & GetZoneLayerOverride(PCB_LAYER_ID aLayer) const
Definition: pad.cpp:202
int GetSizeX() const
Definition: pad.h:278
void MergePrimitivesAsPolygon(PCB_LAYER_ID aLayer, SHAPE_POLY_SET *aMergedPolygon, ERROR_LOC aErrorLoc=ERROR_INSIDE) const
Merge all basic shapes to a SHAPE_POLY_SET.
int GetRoundRectCornerRadius(PCB_LAYER_ID aLayer) const
Definition: pad.cpp:442
bool FlashLayer(int aLayer, bool aOnlyCheckIfPermitted=false) const
Check to see whether the pad should be flashed on the specific layer.
Definition: pad.cpp:341
void SetLocalThermalGapOverride(const std::optional< int > &aOverride)
Definition: pad.h:641
bool IsDirty() const
Definition: pad.h:422
virtual std::shared_ptr< SHAPE > GetEffectiveShape(PCB_LAYER_ID aLayer, FLASHING flashPTHPads=FLASHING::DEFAULT) const override
Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes.
Definition: pad.cpp:512
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
Definition: pad.cpp:1272
const BOX2I GetBoundingBox() const override
The bounding box is cached, so this will be efficient most of the time.
Definition: pad.cpp:826
bool IsOnLayer(PCB_LAYER_ID aLayer) const override
Test to see if this object is on the given layer.
Definition: pad.h:780
int GetDrillSizeY() const
Definition: pad.h:307
std::map< PCB_LAYER_ID, std::shared_ptr< SHAPE_COMPOUND > > LAYER_SHAPE_MAP
Definition: pad.h:936
void AddPrimitivePoly(PCB_LAYER_ID aLayer, const SHAPE_POLY_SET &aPoly, int aThickness, bool aFilled)
Has meaning only for custom shape pads.
std::optional< double > GetLocalSolderPasteMarginRatio() const
Definition: pad.h:468
void SetFrontShape(PAD_SHAPE aShape)
Definition: pad.cpp:883
const wxString & GetPinType() const
Definition: pad.h:151
void SetZoneLayerOverride(PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)
Definition: pad.cpp:210
const VECTOR2I & GetDrillSize() const
Definition: pad.h:303
PAD_ATTRIB GetAttribute() const
Definition: pad.h:438
static LSET PTHMask()
layer set for a through hole pad
Definition: pad.cpp:270
static int Compare(const PAD *aPadRef, const PAD *aPadCmp)
Compare two pads and return 0 if they are equal.
Definition: pad.cpp:1487
void SetUnconnectedLayerMode(PADSTACK::UNCONNECTED_LAYER_MODE aMode)
Definition: pad.h:748
void SetRemoveUnconnected(bool aSet)
Definition: pad.h:719
const wxString & GetPinFunction() const
Definition: pad.h:145
std::mutex m_shapesBuildingLock
Definition: pad.h:938
void SetThermalGap(int aGap)
Definition: pad.h:632
bool CanHaveNumber() const
Indicates whether or not the pad can have a number.
Definition: pad.cpp:217
void SetThermalSpokeAngle(const EDA_ANGLE &aAngle)
The orientation of the thermal spokes.
Definition: pad.h:613
wxString m_pinType
Definition: pad.h:929
bool Deserialize(const google::protobuf::Any &aContainer) override
Deserializes the given protobuf message into this object.
Definition: pad.cpp:164
const wxString & GetNumber() const
Definition: pad.h:134
double ViewGetLOD(int aLayer, const KIGFX::VIEW *aView) const override
Return the level of detail (LOD) of the item.
Definition: pad.cpp:1727
const VECTOR2I & GetDelta(PCB_LAYER_ID aLayer) const
Definition: pad.h:297
void SetFrontRoundRectRadiusRatio(double aRadiusScale)
Definition: pad.cpp:462
void BuildEffectiveShapes() const
Rebuild the effective shape cache (and bounding box and radius) for the pad and clears the dirty bit.
Definition: pad.cpp:587
PAD_SHAPE GetFrontShape() const
Definition: pad.h:198
static bool ClassOf(const EDA_ITEM *aItem)
Definition: pad.h:78
void SetLocalSolderPasteMarginRatio(std::optional< double > aRatio)
Definition: pad.h:472
PAD & operator=(const PAD &aOther)
Definition: pad.cpp:122
void SetLocalThermalSpokeWidthOverride(std::optional< int > aWidth)
Set the width of the thermal spokes connecting the pad to a zone.
Definition: pad.h:597
void SetShape(PCB_LAYER_ID aLayer, PAD_SHAPE aShape)
Set the new shape of this pad.
Definition: pad.h:184
std::shared_ptr< SHAPE_SEGMENT > m_effectiveHoleShape
Definition: pad.h:941
bool IsLocked() const override
Definition: pad.cpp:231
VECTOR2I GetCenter() const override
This defaults to the center of the bounding box if not overridden.
Definition: pad.h:317
VECTOR2I GetPosition() const override
Definition: pad.h:206
void SetProperty(PAD_PROP aProperty)
Definition: pad.cpp:902
void SetThermalSpokeAngleDegrees(double aAngle)
Definition: pad.h:623
EDA_ANGLE GetThermalSpokeAngle() const
Definition: pad.h:617
std::map< PCB_LAYER_ID, ZONE_LAYER_OVERRIDE > m_zoneLayerOverrides
Definition: pad.h:959
bool ConditionallyFlashed(PCB_LAYER_ID aLayer) const
Definition: pad.h:758
PAD_ATTRIB m_attribute
Definition: pad.h:952
void Flip(const VECTOR2I &VECTOR2I, FLIP_DIRECTION aFlipDirection) override
Flip this object, i.e.
Definition: pad.cpp:935
void Move(const VECTOR2I &aMoveVector) override
Move this object.
Definition: pad.h:847
std::vector< PCB_SHAPE * > Recombine(bool aIsDryRun, int aMaxError)
Recombines the pad with other graphical shapes in the footprint.
Definition: pad.cpp:2024
PCB_LAYER_ID GetPrincipalLayer() const
Definition: pad.cpp:319
void SetDirty()
Definition: pad.h:427
static LSET UnplatedHoleMask()
layer set for a mechanical unplated through hole pad
Definition: pad.cpp:291
void SetDelta(PCB_LAYER_ID aLayer, const VECTOR2I &aSize)
Definition: pad.h:291
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
Definition: pad.cpp:1637
std::map< PCB_LAYER_ID, std::array< std::shared_ptr< SHAPE_POLY_SET >, 2 > > LAYER_POLYGON_MAP
Definition: pad.h:943
double GetOrientationDegrees() const
Definition: pad.h:414
bool SameLogicalPadAs(const PAD *aOther) const
Before we had custom pad shapes it was common to have multiple overlapping pads to represent a more c...
Definition: pad.h:157
void Rotate(const VECTOR2I &aRotCentre, const EDA_ANGLE &aAngle) override
Rotate this object.
Definition: pad.cpp:1502
PADSTACK m_padStack
Definition: pad.h:933
void FlipPrimitives(FLIP_DIRECTION aFlipDirection)
Flip (mirror) the primitives left to right or top to bottom, around the anchor position in custom pad...
Definition: pad.cpp:998
LAYER_SHAPE_MAP m_effectiveShapes
Definition: pad.h:940
bool IsNoConnectPad() const
Definition: pad.cpp:257
int GetDrillSizeX() const
Definition: pad.h:305
PAD_PROP m_property
Definition: pad.h:954
double GetRoundRectRadiusRatio(PCB_LAYER_ID aLayer) const
Definition: pad.h:663
void SetKeepTopBottom(bool aSet)
Definition: pad.h:735
void DeletePrimitivesList(PCB_LAYER_ID aLayer=UNDEFINED_LAYER)
Clear the basic shapes list.
PAD_SHAPE GetShape(PCB_LAYER_ID aLayer) const
Definition: pad.h:193
void TransformShapeToPolygon(SHAPE_POLY_SET &aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc=ERROR_INSIDE, bool ignoreLineWidth=false) const override
Convert the pad shape to a closed polygon.
Definition: pad.cpp:1917
PADSTACK & Padstack()
Definition: pad.h:320
void SetNumber(const wxString &aNumber)
Set the pad number (note that it can be alphanumeric, such as the array reference "AA12").
Definition: pad.h:133
void SetFrontRoundRectRadiusSize(int aRadius)
Definition: pad.cpp:472
wxString ShowPadAttr() const
Definition: pad.cpp:1527
wxString m_pinFunction
Definition: pad.h:928
void AddPrimitive(PCB_LAYER_ID aLayer, PCB_SHAPE *aPrimitive)
Add item to the custom shape primitives list.
void SetDrillShape(PAD_DRILL_SHAPE aShape)
Definition: pad.cpp:431
int m_effectiveBoundingRadius
Definition: pad.h:947
void SetLocalSolderMaskMargin(std::optional< int > aMargin)
Definition: pad.h:457
void SetOffset(PCB_LAYER_ID aLayer, const VECTOR2I &aOffset)
Definition: pad.h:309
bool GetKeepTopBottom() const
Definition: pad.h:742
void SetLocalZoneConnection(ZONE_CONNECTION aType)
Definition: pad.h:477
void SetChamferRectRatio(PCB_LAYER_ID aLayer, double aChamferScale)
Has meaning only for chamfered rectangular pads.
Definition: pad.cpp:492
int GetSolderMaskExpansion(PCB_LAYER_ID aLayer) const
Definition: pad.cpp:1125
std::optional< int > GetLocalClearance() const override
Return any local clearances set in the "classic" (ie: pre-rule) system.
Definition: pad.h:453
void ImportSettingsFrom(const PAD &aMasterPad)
Import the pad settings from aMasterPad.
Definition: pad.cpp:1821
double Similarity(const BOARD_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
Definition: pad.cpp:2457
bool IsOnCopperLayer() const override
Definition: pad.cpp:1031
void SetDrillSizeX(const int aX)
Definition: pad.cpp:420
void SetPadstack(const PADSTACK &aPadstack)
Definition: pad.h:321
void SetPosition(const VECTOR2I &aPos) override
Definition: pad.h:200
const SHAPE_COMPOUND & buildEffectiveShape(PCB_LAYER_ID aLayer) const
Definition: pad.cpp:623
const PADSTACK & Padstack() const
Definition: pad.h:319
const VECTOR2I & GetOffset(PCB_LAYER_ID aLayer) const
Definition: pad.h:315
VECTOR2I m_pos
Definition: pad.h:931
void BuildEffectivePolygon(ERROR_LOC aErrorLoc=ERROR_INSIDE) const
Definition: pad.cpp:779
static LSET ConnSMDMask()
layer set for a SMD pad on Front layer used for edge board connectors
Definition: pad.cpp:284
void SetDrillSize(const VECTOR2I &aSize)
Definition: pad.h:302
bool IsFreePad() const
Definition: pad.cpp:263
wxString GetClass() const override
Return the class name.
Definition: pad.h:829
bool CanFlashLayer(int aLayer)
Definition: pad.h:795
int m_subRatsnest
Definition: pad.h:949
EDA_ANGLE GetOrientation() const
Return the rotation angle of the pad.
Definition: pad.h:406
void SetSize(PCB_LAYER_ID aLayer, const VECTOR2I &aSize)
Definition: pad.h:257
PADSTACK::CUSTOM_SHAPE_ZONE_MODE GetCustomShapeInZoneOpt() const
Definition: pad.h:219
PAD_DRILL_SHAPE GetDrillShape() const
Definition: pad.h:420
void ReplacePrimitives(PCB_LAYER_ID aLayer, const std::vector< std::shared_ptr< PCB_SHAPE > > &aPrimitivesList)
Clear the current custom shape primitives list and import a new list.
int GetChamferPositions(PCB_LAYER_ID aLayer) const
Definition: pad.h:703
void SetY(int y)
Definition: pad.h:254
static LSET ApertureMask()
layer set for an aperture pad
Definition: pad.cpp:298
virtual const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
Definition: pad.cpp:1786
bool m_shapesDirty
Definition: pad.h:937
std::mutex m_polyBuildingLock
Definition: pad.h:945
void SetRoundRectCornerRadius(PCB_LAYER_ID aLayer, double aRadius)
Has meaning only for rounded rectangle pads.
Definition: pad.cpp:448
static LSET SMDMask()
layer set for a SMD pad on Front layer
Definition: pad.cpp:277
std::optional< int > GetLocalSolderPasteMargin() const
Definition: pad.h:462
int GetFrontRoundRectRadiusSize() const
Definition: pad.cpp:482
const std::shared_ptr< SHAPE_POLY_SET > & GetEffectivePolygon(PCB_LAYER_ID aLayer, ERROR_LOC aErrorLoc=ERROR_INSIDE) const
Definition: pad.cpp:500
void SetX(int x)
Definition: pad.h:255
void SetChamferPositions(PCB_LAYER_ID aLayer, int aPositions)
Has meaning only for chamfered rectangular pads.
Definition: pad.h:698
std::optional< int > GetLocalSolderMaskMargin() const
Definition: pad.h:456
void SetLocalSolderPasteMargin(std::optional< int > aMargin)
Definition: pad.h:463
int GetSizeY() const
Definition: pad.h:289
std::optional< int > GetLocalThermalGapOverride() const
Definition: pad.h:637
PCB_LAYER_ID GetLayer() const override
Return the primary layer this item is on.
Definition: pad.cpp:313
void addPadPrimitivesToPolygon(PCB_LAYER_ID aLayer, SHAPE_POLY_SET *aMergedPolygon, int aError, ERROR_LOC aErrorLoc) const
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
Definition: pad.cpp:1540
void SetPinFunction(const wxString &aName)
Set the pad function (pin name in schematic)
Definition: pad.h:144
EDA_ANGLE GetFPRelativeOrientation() const
Definition: pad.cpp:926
double GetChamferRectRatio(PCB_LAYER_ID aLayer) const
Definition: pad.h:686
bool m_polyDirty[2]
Definition: pad.h:944
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
Definition: pad.cpp:1405
void SetFPRelativeOrientation(const EDA_ANGLE &aAngle)
Definition: pad.cpp:917
void SetCustomShapeInZoneOpt(PADSTACK::CUSTOM_SHAPE_ZONE_MODE aOption)
Set the option for the custom pad shape to use as clearance area in copper zones.
Definition: pad.h:229
int GetBoundingRadius() const
Return the radius of a minimum sized circle which fully encloses this pad.
Definition: pad.cpp:578
void ClearZoneLayerOverrides()
Definition: pad.cpp:193
void SetOrientation(const EDA_ANGLE &aAngle)
Set the rotation angle of the pad.
Definition: pad.cpp:910
std::mutex m_zoneLayerOverridesMutex
Definition: pad.h:958
std::optional< int > GetLocalThermalSpokeWidthOverride() const
Definition: pad.h:601
PADSTACK::UNCONNECTED_LAYER_MODE GetUnconnectedLayerMode() const
Definition: pad.h:753
VECTOR2I GetSolderPasteMargin(PCB_LAYER_ID aLayer) const
Usually < 0 (mask shape smaller than pad)because the margin can be dependent on the pad size,...
Definition: pad.cpp:1171
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
Definition: pad.cpp:1631
void AppendPrimitives(PCB_LAYER_ID aLayer, const std::vector< std::shared_ptr< PCB_SHAPE > > &aPrimitivesList)
Import a custom shape primitive list (composed of basic shapes) and add items to the current list.
wxString m_number
Definition: pad.h:927
bool HasDrilledHole() const override
Definition: pad.h:109
LAYER_POLYGON_MAP m_effectivePolygons
Definition: pad.h:946
void SetLocalClearance(std::optional< int > aClearance)
Definition: pad.h:454
int GetSubRatsnest() const
Definition: pad.h:711
void SetSizeX(const int aX)
Definition: pad.h:269
ZONE_CONNECTION GetLocalZoneConnection() const
Definition: pad.h:478
int m_lengthPadToDie
Definition: pad.h:956
bool HasHole() const override
Definition: pad.h:104
void SetDrillSizeY(const int aY)
Definition: pad.h:306
double GetThermalSpokeAngleDegrees() const
Definition: pad.h:627
PAD * ClonePad() const
Same as Clone, but returns a PAD item.
Definition: pad.h:876
int GetThermalGap() const
Definition: pad.h:633
VECTOR2I ShapePos(PCB_LAYER_ID aLayer) const
Definition: pad.cpp:1016
std::shared_ptr< SHAPE_SEGMENT > GetEffectiveHoleShape() const override
Return a SHAPE_SEGMENT object representing the pad's hole.
Definition: pad.cpp:569
void SetOrientationDegrees(double aOrientation)
Definition: pad.h:410
ZONE_CONNECTION GetZoneConnectionOverrides(wxString *aSource=nullptr) const
Definition: pad.cpp:1234
void SetLayerSet(const LSET &aLayers) override
Definition: pad.h:434
bool SharesNetTieGroup(const PAD *aOther) const
Definition: pad.cpp:240
PAD_SHAPE GetAnchorPadShape(PCB_LAYER_ID aLayer) const
Definition: pad.h:211
void SetRoundRectRadiusRatio(PCB_LAYER_ID aLayer, double aRadiusScale)
Has meaning only for rounded rectangle pads.
Definition: pad.cpp:454
void SetSubRatsnest(int aSubRatsnest)
Definition: pad.h:712
int GetLocalSpokeWidthOverride(wxString *aSource=nullptr) const
Definition: pad.cpp:1254
bool TransformHoleToPolygon(SHAPE_POLY_SET &aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc=ERROR_INSIDE) const
Build the corner list of the polygonal drill shape in the board coordinate system.
Definition: pad.cpp:1900
void SetPadToDieLength(int aLength)
Definition: pad.h:450
bool IsFlipped() const
Definition: pad.cpp:305
bool operator==(const PAD &aOther) const
Definition: pad.cpp:2442
bool IsType(const std::vector< KICAD_T > &aScanTypes) const override
Check whether the item is one of the listed types.
Definition: pad.h:83
wxString ShowPadShape(PCB_LAYER_ID aLayer) const
Definition: pad.cpp:1511
void SetSizeY(const int aY)
Definition: pad.h:280
int GetPadToDieLength() const
Definition: pad.h:451
BOX2I m_effectiveBoundingBox
Definition: pad.h:939
const VECTOR2I & GetSize(PCB_LAYER_ID aLayer) const
Definition: pad.h:262
virtual std::vector< int > ViewGetLayers() const override
Return the all the layers within the VIEW the object is painted on.
Definition: pad.cpp:1655
Represent a set of closed polygons.
An abstract shape on 2D plane.
Definition: shape.h:126
@ DEGREES_T
Definition: eda_angle.h:31
FLASHING
Enum used during connectivity building to ensure we do not query connectivity while building the data...
Definition: layer_ids.h:183
PCB_LAYER_ID
A quick note on layer IDs:
Definition: layer_ids.h:60
@ UNDEFINED_LAYER
Definition: layer_ids.h:61
@ F_Cu
Definition: layer_ids.h:64
FLIP_DIRECTION
Definition: mirror.h:27
The Cairo implementation of the graphics abstraction layer.
Definition: color4d.cpp:247
PAD_DRILL_SHAPE
The set of pad drill shapes, used with PAD::{Set,Get}DrillShape()
Definition: padstack.h:69
PAD_ATTRIB
The set of pad shapes, used with PAD::{Set,Get}Attribute().
Definition: padstack.h:81
PAD_SHAPE
The set of pad shapes, used with PAD::{Set,Get}Shape()
Definition: padstack.h:52
PAD_PROP
The set of pad properties used in Gerber files (Draw files, and P&P files) to define some properties ...
Definition: padstack.h:98
PCB_LAYER_ID start
Definition: padstack.h:242
PCB_LAYER_ID end
Definition: padstack.h:243
VECTOR2I size
Drill diameter (x == y) or slot dimensions (x != y)
Definition: padstack.h:240
PAD_DRILL_SHAPE shape
Definition: padstack.h:241
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition: typeinfo.h:78
@ PCB_LOCATE_NPTH_T
Definition: typeinfo.h:129
@ PCB_LOCATE_PTH_T
Definition: typeinfo.h:128
@ PCB_PAD_T
class PAD, a pad in a footprint
Definition: typeinfo.h:87
@ PCB_LOCATE_HOLE_T
Definition: typeinfo.h:127
ZONE_CONNECTION
How pads are covered by copper in zone.
Definition: zones.h:47