LibrePCB Developers Documentation
|
The FootprintPad class represents a pad of a footprint. More...
#include <footprintpad.h>
Public Types | |
enum class | Shape |
enum class | ComponentSide |
enum class | Function |
enum class | Event |
typedef Slot< FootprintPad, Event > | OnEditedSlot |
Public Member Functions | |
FootprintPad ()=delete | |
FootprintPad (const FootprintPad &other) noexcept | |
FootprintPad (const Uuid &uuid, const tl::optional< Uuid > &pkgPadUuid, const Point &pos, const Angle &rot, Shape shape, const PositiveLength &width, const PositiveLength &height, const UnsignedLimitedRatio &radius, const Path &customShapeOutline, const MaskConfig &autoStopMask, const MaskConfig &autoSolderPaste, const UnsignedLength &copperClearance, ComponentSide side, Function function, const PadHoleList &holes) noexcept | |
FootprintPad (const SExpression &node) | |
~FootprintPad () noexcept | |
const Uuid & | getUuid () const noexcept |
const tl::optional< Uuid > & | getPackagePadUuid () const noexcept |
const Point & | getPosition () const noexcept |
const Angle & | getRotation () const noexcept |
Shape | getShape () const noexcept |
const PositiveLength & | getWidth () const noexcept |
const PositiveLength & | getHeight () const noexcept |
const UnsignedLimitedRatio & | getRadius () const noexcept |
const Path & | getCustomShapeOutline () const noexcept |
const MaskConfig & | getStopMaskConfig () const noexcept |
const MaskConfig & | getSolderPasteConfig () const noexcept |
const UnsignedLength & | getCopperClearance () const noexcept |
ComponentSide | getComponentSide () const noexcept |
Function | getFunction () const noexcept |
bool | getFunctionIsFiducial () const noexcept |
bool | getFunctionNeedsSoldering () const noexcept |
const PadHoleList & | getHoles () const noexcept |
PadHoleList & | getHoles () noexcept |
bool | isTht () const noexcept |
bool | isOnLayer (const Layer &layer) const noexcept |
const Layer & | getSmtLayer () const noexcept |
bool | hasTopCopper () const noexcept |
bool | hasBottomCopper () const noexcept |
bool | hasAutoTopStopMask () const noexcept |
bool | hasAutoBottomStopMask () const noexcept |
bool | hasAutoTopSolderPaste () const noexcept |
bool | hasAutoBottomSolderPaste () const noexcept |
PadGeometry | getGeometry () const noexcept |
QHash< const Layer *, QList< PadGeometry > > | buildPreviewGeometries () const noexcept |
bool | setPackagePadUuid (const tl::optional< Uuid > &pad) noexcept |
bool | setPosition (const Point &pos) noexcept |
bool | setRotation (const Angle &rot) noexcept |
bool | setShape (Shape shape) noexcept |
bool | setWidth (const PositiveLength &width) noexcept |
bool | setHeight (const PositiveLength &height) noexcept |
bool | setRadius (const UnsignedLimitedRatio &radius) noexcept |
bool | setCustomShapeOutline (const Path &outline) noexcept |
bool | setStopMaskConfig (const MaskConfig &config) noexcept |
bool | setSolderPasteConfig (const MaskConfig &config) noexcept |
bool | setCopperClearance (const UnsignedLength &clearance) noexcept |
bool | setComponentSide (ComponentSide side) noexcept |
bool | setFunction (Function function) noexcept |
void | serialize (SExpression &root) const |
Serialize into librepcb::SExpression node. More... | |
bool | operator== (const FootprintPad &rhs) const noexcept |
bool | operator!= (const FootprintPad &rhs) const noexcept |
FootprintPad & | operator= (const FootprintPad &rhs) noexcept |
Static Public Member Functions | |
static UnsignedLimitedRatio | getRecommendedRadius (const PositiveLength &width, const PositiveLength &height) noexcept |
static QString | getFunctionDescriptionTr (Function function) noexcept |
Public Attributes | |
Signal< FootprintPad, Event > | onEdited |
Private Member Functions | |
void | holesEdited (const PadHoleList &list, int index, const std::shared_ptr< const PadHole > &hole, PadHoleList::Event event) noexcept |
Private Attributes | |
Uuid | mUuid |
tl::optional< Uuid > | mPackagePadUuid |
Point | mPosition |
Angle | mRotation |
Shape | mShape |
PositiveLength | mWidth |
PositiveLength | mHeight |
UnsignedLimitedRatio | mRadius |
Path | mCustomShapeOutline |
Empty if not needed; Implicitly closed. More... | |
MaskConfig | mStopMaskConfig |
MaskConfig | mSolderPasteConfig |
UnsignedLength | mCopperClearance |
ComponentSide | mComponentSide |
Function | mFunction |
PadHoleList | mHoles |
If not empty, it's a THT pad. More... | |
PadHoleList::OnEditedSlot | mHolesEditedSlot |
The FootprintPad class represents a pad of a footprint.
typedef Slot<FootprintPad, Event> OnEditedSlot |
|
strong |
|
strong |
|
strong |
|
strong |
|
delete |
|
noexcept |
|
noexcept |
|
explicit |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
root | Root node to serialize into. |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
staticnoexcept |
|
staticnoexcept |
|
privatenoexcept |
Signal<FootprintPad, Event> onEdited |
|
private |
|
private |
The connected package pad
This is the UUID of the package pad where this footprint pad is connected to. It can be tl::nullopt, which means that the footprint pad is electrically not connected (e.g. for mechanical-only pads).
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Empty if not needed; Implicitly closed.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
If not empty, it's a THT pad.
|
private |