LibrePCB Developers Documentation
Loading...
Searching...
No Matches
BoardPadData Class Referencefinal

The BoardPadData class represents a pad in a board. More...

#include <boardpaddata.h>

+ Inheritance diagram for BoardPadData:
+ Collaboration diagram for BoardPadData:

Public Types

enum class  Event
 
typedef Slot< BoardPadData, EventOnEditedSlot
 
- Public Types inherited from Pad
enum class  Shape
 
enum class  ComponentSide
 
enum class  Function
 

Public Member Functions

 BoardPadData ()=delete
 
 BoardPadData (const BoardPadData &other) noexcept
 
 BoardPadData (const Uuid &uuid, const BoardPadData &other) noexcept
 
 BoardPadData (const Uuid &uuid, 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, bool locked) noexcept
 
 BoardPadData (const SExpression &node)
 
 ~BoardPadData () noexcept
 
PadHoleListgetHoles () noexcept
 
bool isLocked () const 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
 
bool setLocked (bool locked) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node.
 
bool operator== (const BoardPadData &rhs) const noexcept
 
bool operator!= (const BoardPadData &rhs) const noexcept
 
BoardPadDataoperator= (const BoardPadData &rhs) noexcept
 
const PadHoleListgetHoles () const noexcept
 
- Public Member Functions inherited from Pad
 Pad ()=delete
 
 Pad (const Pad &other) noexcept
 
 Pad (const Uuid &uuid, const Pad &other) noexcept
 
 Pad (const Uuid &uuid, 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
 
 Pad (const SExpression &node)
 
virtual ~Pad () noexcept
 
const UuidgetUuid () const noexcept
 
const PointgetPosition () const noexcept
 
const AnglegetRotation () const noexcept
 
Shape getShape () const noexcept
 
const PositiveLengthgetWidth () const noexcept
 
const PositiveLengthgetHeight () const noexcept
 
const UnsignedLimitedRatiogetRadius () const noexcept
 
const PathgetCustomShapeOutline () const noexcept
 
const MaskConfiggetStopMaskConfig () const noexcept
 
const MaskConfiggetSolderPasteConfig () const noexcept
 
const UnsignedLengthgetCopperClearance () const noexcept
 
ComponentSide getComponentSide () const noexcept
 
Function getFunction () const noexcept
 
bool getFunctionIsFiducial () const noexcept
 
bool getFunctionNeedsSoldering () const noexcept
 
const PadHoleListgetHoles () const noexcept
 
bool isTht () const noexcept
 
bool isOnLayer (const Layer &layer) const noexcept
 
const LayergetSmtLayer () 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 operator== (const Pad &rhs) const noexcept
 
bool operator!= (const Pad &rhs) const noexcept
 

Public Attributes

Signal< BoardPadData, EventonEdited
 

Private Member Functions

void holesEdited (const PadHoleList &list, int index, const std::shared_ptr< const PadHole > &hole, PadHoleList::Event event) noexcept
 

Private Attributes

bool mLocked
 
PadHoleList::OnEditedSlot mHolesEditedSlot
 

Additional Inherited Members

- Static Public Member Functions inherited from Pad
static UnsignedLimitedRatio getRecommendedRadius (const PositiveLength &width, const PositiveLength &height) noexcept
 
static QString getFunctionDescriptionTr (Function function) noexcept
 
- Protected Attributes inherited from Pad
Uuid mUuid
 
Point mPosition
 
Angle mRotation
 
Shape mShape
 
PositiveLength mWidth
 
PositiveLength mHeight
 
UnsignedLimitedRatio mRadius
 
Path mCustomShapeOutline
 Empty if not needed; Implicitly closed.
 
MaskConfig mStopMaskConfig
 
MaskConfig mSolderPasteConfig
 
UnsignedLength mCopperClearance
 
ComponentSide mComponentSide
 
Function mFunction
 
PadHoleList mHoles
 If not empty, it's a THT pad.
 

Detailed Description

The BoardPadData class represents a pad in a board.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
UuidChanged 
PositionChanged 
RotationChanged 
ShapeChanged 
WidthChanged 
HeightChanged 
RadiusChanged 
CustomShapeOutlineChanged 
StopMaskConfigChanged 
SolderPasteConfigChanged 
CopperClearanceChanged 
ComponentSideChanged 
FunctionChanged 
HolesEdited 
LockedChanged 

Constructor & Destructor Documentation

◆ BoardPadData() [1/5]

BoardPadData ( )
delete

◆ BoardPadData() [2/5]

BoardPadData ( const BoardPadData other)
noexcept

◆ BoardPadData() [3/5]

BoardPadData ( const Uuid uuid,
const BoardPadData other 
)
noexcept

◆ BoardPadData() [4/5]

BoardPadData ( const Uuid uuid,
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,
bool  locked 
)
noexcept

◆ BoardPadData() [5/5]

BoardPadData ( const SExpression node)
explicit

◆ ~BoardPadData()

~BoardPadData ( )
noexcept

Member Function Documentation

◆ getHoles() [1/2]

PadHoleList & getHoles ( )
inlinenoexcept
+ Here is the caller graph for this function:

◆ isLocked()

bool isLocked ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setPosition()

bool setPosition ( const Point pos)
noexcept

◆ setRotation()

bool setRotation ( const Angle rot)
noexcept

◆ setShape()

bool setShape ( Shape  shape)
noexcept

◆ setWidth()

bool setWidth ( const PositiveLength width)
noexcept

◆ setHeight()

bool setHeight ( const PositiveLength height)
noexcept

◆ setRadius()

bool setRadius ( const UnsignedLimitedRatio radius)
noexcept

◆ setCustomShapeOutline()

bool setCustomShapeOutline ( const Path outline)
noexcept

◆ setStopMaskConfig()

bool setStopMaskConfig ( const MaskConfig config)
noexcept

◆ setSolderPasteConfig()

bool setSolderPasteConfig ( const MaskConfig config)
noexcept

◆ setCopperClearance()

bool setCopperClearance ( const UnsignedLength clearance)
noexcept

◆ setComponentSide()

bool setComponentSide ( ComponentSide  side)
noexcept
+ Here is the caller graph for this function:

◆ setFunction()

bool setFunction ( Function  function)
noexcept

◆ setLocked()

bool setLocked ( bool  locked)
noexcept

◆ serialize()

void serialize ( SExpression root) const

Serialize into librepcb::SExpression node.

Parameters
rootRoot node to serialize into.
+ Here is the call graph for this function:

◆ operator==()

bool operator== ( const BoardPadData rhs) const
noexcept

◆ operator!=()

bool operator!= ( const BoardPadData rhs) const
inlinenoexcept

◆ operator=()

BoardPadData & operator= ( const BoardPadData rhs)
noexcept

◆ holesEdited()

void holesEdited ( const PadHoleList list,
int  index,
const std::shared_ptr< const PadHole > &  hole,
PadHoleList::Event  event 
)
privatenoexcept

◆ getHoles() [2/2]

const PadHoleList & getHoles ( ) const
inlinenoexcept

Member Data Documentation

◆ onEdited

◆ mLocked

bool mLocked
private

◆ mHolesEditedSlot

PadHoleList::OnEditedSlot mHolesEditedSlot
private

The documentation for this class was generated from the following files: