LibrePCB Developers Documentation
BI_FootprintPad Class Referencefinal

The BI_FootprintPad class. More...

#include <bi_footprintpad.h>

+ Inheritance diagram for BI_FootprintPad:
+ Collaboration diagram for BI_FootprintPad:

Public Member Functions

 BI_FootprintPad ()=delete
 
 BI_FootprintPad (const BI_FootprintPad &other)=delete
 
 BI_FootprintPad (BI_Footprint &footprint, const Uuid &padUuid)
 
 ~BI_FootprintPad ()
 
const UuidgetLibPadUuid () const noexcept
 
QString getDisplayText () const noexcept
 
const AnglegetRotation () const noexcept
 
BI_FootprintgetFootprint () const noexcept
 
QString getLayerName () const noexcept
 
bool isOnLayer (const QString &layerName) const noexcept
 
const library::FootprintPadgetLibPad () const noexcept
 
ComponentSignalInstancegetComponentSignalInstance () const noexcept
 
NetSignalgetCompSigInstNetSignal () const noexcept
 
bool isUsed () const noexcept
 
bool isSelectable () const noexcept override
 
Path getOutline (const Length &expansion=Length(0)) const noexcept
 
Path getSceneOutline (const Length &expansion=Length(0)) const noexcept
 
void addToBoard () override
 
void removeFromBoard () override
 
void updatePosition () noexcept
 
Type_t getType () const noexcept override
 
const PointgetPosition () const noexcept override
 
bool getIsMirrored () const noexcept override
 
QPainterPath getGrabAreaScenePx () const noexcept override
 
void setSelected (bool selected) noexcept override
 
void registerNetLine (BI_NetLine &netline) override
 
void unregisterNetLine (BI_NetLine &netline) override
 
const QSet< BI_NetLine * > & getNetLines () const noexcept override
 
BI_FootprintPadoperator= (const BI_FootprintPad &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
 
ProjectgetProject () const noexcept
 
CircuitgetCircuit () const noexcept
 
BoardgetBoard () const noexcept
 
virtual bool isAddedToBoard () const noexcept
 
virtual bool isSelected () const noexcept
 
BI_Baseoperator= (const BI_Base &rhs)=delete
 
- Public Member Functions inherited from BI_NetLineAnchor
 BI_NetLineAnchor () noexcept=default
 
virtual ~BI_NetLineAnchor () noexcept=default
 
std::vector< PositiveLengthgetLineWidths () const noexcept
 
UnsignedLength getMaxLineWidth () const noexcept
 
UnsignedLength getMedianLineWidth () const noexcept
 
BI_NetSegmentgetNetSegmentOfLines () const noexcept
 

Private Slots

void footprintAttributesChanged ()
 
void componentSignalInstanceNetSignalChanged (NetSignal *from, NetSignal *to)
 

Private Member Functions

void updateGraphicsItemTransform () noexcept
 

Private Attributes

BI_FootprintmFootprint
 
const library::FootprintPadmFootprintPad
 
const library::PackagePadmPackagePad
 
ComponentSignalInstancemComponentSignalInstance
 
QMetaObject::Connection mHighlightChangedConnection
 
Point mPosition
 
Angle mRotation
 
QScopedPointer< BGI_FootprintPadmGraphicsItem
 
QSet< BI_NetLine * > mRegisteredNetLines
 

Additional Inherited Members

- Public Types inherited from BI_Base
enum  Type_t
 
- Protected Member Functions inherited from BI_Base
void addToBoard (QGraphicsItem *item) noexcept
 
void removeFromBoard (QGraphicsItem *item) noexcept
 
- Protected Attributes inherited from BI_Base
BoardmBoard
 

Detailed Description

The BI_FootprintPad class.

Constructor & Destructor Documentation

◆ BI_FootprintPad() [1/3]

BI_FootprintPad ( )
delete

◆ BI_FootprintPad() [2/3]

BI_FootprintPad ( const BI_FootprintPad other)
delete

◆ BI_FootprintPad() [3/3]

BI_FootprintPad ( BI_Footprint footprint,
const Uuid padUuid 
)
+ Here is the call graph for this function:

◆ ~BI_FootprintPad()

+ Here is the call graph for this function:

Member Function Documentation

◆ getLibPadUuid()

const Uuid & getLibPadUuid ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDisplayText()

QString getDisplayText ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRotation()

const Angle& getRotation ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getFootprint()

BI_Footprint& getFootprint ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getLayerName()

QString getLayerName ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isOnLayer()

bool isOnLayer ( const QString &  layerName) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLibPad()

const library::FootprintPad& getLibPad ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getComponentSignalInstance()

ComponentSignalInstance* getComponentSignalInstance ( ) const
inlinenoexcept

◆ getCompSigInstNetSignal()

NetSignal * getCompSigInstNetSignal ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isUsed()

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

◆ isSelectable()

bool isSelectable ( ) const
overridevirtualnoexcept

Implements BI_Base.

+ Here is the caller graph for this function:

◆ getOutline()

Path getOutline ( const Length expansion = Length(0)) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSceneOutline()

Path getSceneOutline ( const Length expansion = Length(0)) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToBoard()

void addToBoard ( )
overridevirtual

Implements BI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromBoard()

void removeFromBoard ( )
overridevirtual

Implements BI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updatePosition()

void updatePosition ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getType()

Type_t getType ( ) const
inlineoverridevirtualnoexcept

Implements BI_Base.

◆ getPosition()

const Point& getPosition ( ) const
inlineoverridevirtualnoexcept

Implements BI_Base.

+ Here is the caller graph for this function:

◆ getIsMirrored()

bool getIsMirrored ( ) const
overridevirtualnoexcept

Implements BI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getGrabAreaScenePx()

QPainterPath getGrabAreaScenePx ( ) const
overridevirtualnoexcept

Implements BI_Base.

+ Here is the caller graph for this function:

◆ setSelected()

void setSelected ( bool  selected)
overridevirtualnoexcept

Reimplemented from BI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerNetLine()

void registerNetLine ( BI_NetLine netline)
overridevirtual

Implements BI_NetLineAnchor.

+ Here is the call graph for this function:

◆ unregisterNetLine()

void unregisterNetLine ( BI_NetLine netline)
overridevirtual

Implements BI_NetLineAnchor.

+ Here is the call graph for this function:

◆ getNetLines()

const QSet<BI_NetLine*>& getNetLines ( ) const
inlineoverridevirtualnoexcept

Implements BI_NetLineAnchor.

+ Here is the caller graph for this function:

◆ operator=()

BI_FootprintPad& operator= ( const BI_FootprintPad rhs)
delete

◆ footprintAttributesChanged

void footprintAttributesChanged ( )
privateslot
+ Here is the caller graph for this function:

◆ componentSignalInstanceNetSignalChanged

void componentSignalInstanceNetSignalChanged ( NetSignal from,
NetSignal to 
)
privateslot
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateGraphicsItemTransform()

void updateGraphicsItemTransform ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mFootprint

BI_Footprint& mFootprint
private

◆ mFootprintPad

const library::FootprintPad* mFootprintPad
private

◆ mPackagePad

const library::PackagePad* mPackagePad
private

◆ mComponentSignalInstance

ComponentSignalInstance* mComponentSignalInstance
private

◆ mHighlightChangedConnection

QMetaObject::Connection mHighlightChangedConnection
private

◆ mPosition

Point mPosition
private

◆ mRotation

Angle mRotation
private

◆ mGraphicsItem

QScopedPointer<BGI_FootprintPad> mGraphicsItem
private

◆ mRegisteredNetLines

QSet<BI_NetLine*> mRegisteredNetLines
private

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