![]() |
LibrePCB Developers Documentation
|
A pad in a board (either standalone or from a footprint) More...
#include <bi_pad.h>
Inheritance diagram for BI_Pad:
Collaboration diagram for BI_Pad:Public Types | |
| enum class | Event |
| typedef Slot< BI_Pad, Event > | OnEditedSlot |
Public Member Functions | |
| BI_Pad ()=delete | |
| BI_Pad (const BI_Pad &other)=delete | |
| BI_Pad (BI_NetSegment &netsegment, const BoardPadData &properties) | |
| Construct a board pad (not related to a footprint) | |
| BI_Pad (BI_Device &device, const Uuid &padUuid) | |
| Construct a footprint pad. | |
| ~BI_Pad () noexcept | |
| BI_NetSegment * | getNetSegment () const noexcept |
| BI_Device * | getDevice () const noexcept |
| const PackagePad * | getLibPackagePad () const noexcept |
| ComponentSignalInstance * | getComponentSignalInstance () const noexcept |
| NetSignal * | getNetSignal () const noexcept |
| const BoardPadData & | getProperties () const noexcept |
| const Uuid & | getUuid () const noexcept |
| const Point & | getPosition () const noexcept override |
| Get the absolute position of the pad (global scene coordinates) | |
| const Angle & | getRotation () const noexcept |
| Get the absolute rotation of the pad (global scene coordinates) | |
| bool | getMirrored () const noexcept |
| Get the absolute mirror state of the pad (global scene coordinates) | |
| Pad::ComponentSide | getComponentSide () const noexcept |
| const Layer & | getSolderLayer () const noexcept |
| bool | isOnLayer (const Layer &layer) const noexcept |
| const QString & | getText () const noexcept |
| bool | isUsed () const noexcept |
| const QHash< const Layer *, QList< PadGeometry > > & | getGeometries () const noexcept |
| TraceAnchor | toTraceAnchor () const noexcept override |
| void | setPosition (const Point &position) noexcept |
| void | setRotation (const Angle &rotation) noexcept |
| void | setShape (Pad::Shape shape) noexcept |
| void | setWidth (const PositiveLength &width) noexcept |
| void | setHeight (const PositiveLength &height) noexcept |
| void | setRadius (const UnsignedLimitedRatio &radius) noexcept |
| void | setCustomShapeOutline (const Path &outline) noexcept |
| void | setStopMaskConfig (const MaskConfig &config) noexcept |
| void | setSolderPasteConfig (const MaskConfig &config) noexcept |
| void | setCopperClearance (const UnsignedLength &clearance) noexcept |
| void | setComponentSideAndHoles (Pad::ComponentSide side, const PadHoleList &holes) |
| void | setFunction (Pad::Function function) noexcept |
| void | setLocked (bool locked) noexcept |
| void | addToBoard () override |
| void | removeFromBoard () override |
| void | registerNetLine (BI_NetLine &netline) override |
| void | unregisterNetLine (BI_NetLine &netline) override |
| const QSet< BI_NetLine * > & | getNetLines () const noexcept override |
| BI_Pad & | operator= (const BI_Pad &rhs)=delete |
Public Member Functions inherited from BI_Base | |
| BI_Base ()=delete | |
| BI_Base (const BI_Base &other)=delete | |
| BI_Base (Board &board) noexcept | |
| virtual | ~BI_Base () noexcept |
| Project & | getProject () const noexcept |
| Circuit & | getCircuit () const noexcept |
| Board & | getBoard () const noexcept |
| virtual bool | isAddedToBoard () const noexcept |
| BI_Base & | operator= (const BI_Base &rhs)=delete |
Public Member Functions inherited from BI_NetLineAnchor | |
| BI_NetLineAnchor () noexcept=default | |
| virtual | ~BI_NetLineAnchor () noexcept=default |
| std::vector< PositiveLength > | getLineWidths () const noexcept |
| std::optional< PositiveLength > | getMaxLineWidth () const noexcept |
| std::optional< PositiveLength > | getMedianLineWidth () const noexcept |
| BI_NetSegment * | getNetSegmentOfLines () const noexcept |
Public Attributes | |
| Signal< BI_Pad, Event > | onEdited |
Private Member Functions | |
| void | deviceEdited (const BI_Device &obj, BI_Device::Event event) noexcept |
| void | netSignalChanged (NetSignal *from, NetSignal *to) |
| void | updateTransform () noexcept |
| void | updateText () noexcept |
| void | updateGeometries () noexcept |
| void | invalidatePlanes () noexcept |
| QString | getLibraryDeviceName () const noexcept |
| QString | getComponentInstanceName () const noexcept |
| QString | getPadNameOrUuid () const noexcept |
| QString | getNetSignalName () const noexcept |
| UnsignedLength | getSizeForMaskOffsetCalculaton () const noexcept |
| QList< PadGeometry > | getGeometryOnLayer (const Layer &layer) const noexcept |
| QList< PadGeometry > | getGeometryOnCopperLayer (const Layer &layer) const noexcept |
| bool | isConnectedOnLayer (const Layer &layer) const noexcept |
Private Attributes | |
| BI_NetSegment * | mNetSegment |
| BI_Device * | mDevice |
| const FootprintPad * | mFootprintPad |
| const PackagePad * | mPackagePad |
| ComponentSignalInstance * | mComponentSignalInstance |
| BoardPadData | mProperties |
| Point | mPosition |
| Angle | mRotation |
| bool | mMirrored |
| QString | mText |
| QHash< const Layer *, QList< PadGeometry > > | mGeometries |
| QSet< BI_NetLine * > | mRegisteredNetLines |
| BI_Device::OnEditedSlot | mOnDeviceEditedSlot |
Additional Inherited Members | |
Protected Attributes inherited from BI_Base | |
| Board & | mBoard |
A pad in a board (either standalone or from a footprint)
| typedef Slot<BI_Pad, Event> OnEditedSlot |
|
strong |
|
delete |
| BI_Pad | ( | BI_NetSegment & | netsegment, |
| const BoardPadData & | properties | ||
| ) |
Construct a board pad (not related to a footprint)
| netsegment | Net segment of the pad. |
| properties | Pad properties. |
Here is the call graph for this function:Construct a footprint pad.
| device | The device of the pad's footprint. |
| padUuid | Footprint pad UUID. |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverridevirtualnoexcept |
Get the absolute position of the pad (global scene coordinates)
Implements BI_NetLineAnchor.
Here is the caller graph for this function:
|
inlinenoexcept |
Get the absolute rotation of the pad (global scene coordinates)
Here is the caller graph for this function:
|
inlinenoexcept |
Get the absolute mirror state of the pad (global scene coordinates)
Here is the caller graph for this function:
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
overridevirtualnoexcept |
Implements BI_NetLineAnchor.
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:| void setComponentSideAndHoles | ( | Pad::ComponentSide | side, |
| const PadHoleList & | holes | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from BI_Base.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from BI_Base.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
|
overridevirtual |
|
inlineoverridevirtualnoexcept |
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
|
private |
The net segment this pad is part of
|
private |
The device this pad is part of
|
private |
The footprint pad of the device
nullptr if this is a board pad!
|
private |
The package pad where this footprint pad is connected to
nullptr if this is a board pad or the footprint pad is not connected!
|
private |
The net signal where this footprint pad is connected to
nullptr if this is a board pad or the footprint pad is not connected!
|
private |
The pad's properties
If this is a footprint pad, the properties will be copied from the corresponding pad from the footprint in the project library and are considered read-only.
If this is a board pad, the properties are the single source of truth, and can be modified with the setters on this class.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |