LibrePCB Developers Documentation
BI_Via Class Referencefinal

The BI_Via class. More...

#include <bi_via.h>

+ Inheritance diagram for BI_Via:
+ Collaboration diagram for BI_Via:

Public Types

enum class  Event
 
typedef Slot< BI_Via, EventOnEditedSlot
 

Public Member Functions

 BI_Via ()=delete
 
 BI_Via (const BI_Via &other)=delete
 
 BI_Via (BI_NetSegment &netsegment, const Via &via)
 
 ~BI_Via () noexcept
 
BI_NetSegmentgetNetSegment () const noexcept
 
const PointgetPosition () const noexcept override
 
const ViagetVia () const noexcept
 
const UuidgetUuid () const noexcept
 
const PositiveLengthgetDrillDiameter () const noexcept
 
const PositiveLengthgetSize () const noexcept
 
const tl::optional< PositiveLength > & getStopMaskDiameterTop () const noexcept
 
const tl::optional< PositiveLength > & getStopMaskDiameterBottom () const noexcept
 
bool isUsed () const noexcept
 
tl::optional< std::pair< const Layer *, const Layer * > > getDrillLayerSpan () const noexcept
 
TraceAnchor toTraceAnchor () const noexcept override
 
void setLayers (const Layer &from, const Layer &to)
 
void setPosition (const Point &position) noexcept
 
void setSize (const PositiveLength &size) noexcept
 
void setDrillDiameter (const PositiveLength &diameter) noexcept
 
void setExposureConfig (const MaskConfig &config) 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_Viaoperator= (const BI_Via &rhs)=delete
 
bool operator== (const BI_Via &rhs) noexcept
 
bool operator!= (const BI_Via &rhs) noexcept
 
- 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 void addToBoard ()
 
virtual void removeFromBoard ()
 
BI_Baseoperator= (const BI_Base &rhs)=delete
 
- Public Member Functions inherited from BI_NetLineAnchor
 BI_NetLineAnchor () noexcept=default
 
virtual ~BI_NetLineAnchor () noexcept=default
 
virtual void registerNetLine (BI_NetLine &netline)=0
 
virtual void unregisterNetLine (BI_NetLine &netline)=0
 
virtual const QSet< BI_NetLine * > & getNetLines () const noexcept=0
 
virtual const PointgetPosition () const noexcept=0
 
virtual TraceAnchor toTraceAnchor () const noexcept=0
 
std::vector< PositiveLengthgetLineWidths () const noexcept
 
UnsignedLength getMaxLineWidth () const noexcept
 
UnsignedLength getMedianLineWidth () const noexcept
 
BI_NetSegmentgetNetSegmentOfLines () const noexcept
 

Public Attributes

Signal< BI_Via, EventonEdited
 

Private Member Functions

void updateStopMaskDiameters () noexcept
 

Private Attributes

Via mVia
 
BI_NetSegmentmNetSegment
 
QMetaObject::Connection mNetSignalNameChangedConnection
 
tl::optional< PositiveLengthmStopMaskDiameterTop
 
tl::optional< PositiveLengthmStopMaskDiameterBottom
 
QSet< BI_NetLine * > mRegisteredNetLines
 

Additional Inherited Members

- Protected Attributes inherited from BI_Base
BoardmBoard
 

Detailed Description

The BI_Via class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
LayersChanged 
PositionChanged 
SizeChanged 
DrillDiameterChanged 
NetSignalNameChanged 
StopMaskDiametersChanged 

Constructor & Destructor Documentation

◆ BI_Via() [1/3]

BI_Via ( )
delete

◆ BI_Via() [2/3]

BI_Via ( const BI_Via other)
delete

◆ BI_Via() [3/3]

BI_Via ( BI_NetSegment netsegment,
const Via via 
)
+ Here is the call graph for this function:

◆ ~BI_Via()

~BI_Via ( )
noexcept

Member Function Documentation

◆ getNetSegment()

BI_NetSegment & getNetSegment ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getPosition()

const Point & getPosition ( ) const
inlineoverridevirtualnoexcept

Implements BI_NetLineAnchor.

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

◆ getVia()

const Via & getVia ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getUuid()

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

◆ getDrillDiameter()

const PositiveLength & getDrillDiameter ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSize()

const PositiveLength & getSize ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getStopMaskDiameterTop()

const tl::optional< PositiveLength > & getStopMaskDiameterTop ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getStopMaskDiameterBottom()

const tl::optional< PositiveLength > & getStopMaskDiameterBottom ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isUsed()

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

◆ getDrillLayerSpan()

tl::optional< std::pair< const Layer *, const Layer * > > getDrillLayerSpan ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toTraceAnchor()

TraceAnchor toTraceAnchor ( ) const
overridevirtualnoexcept

Implements BI_NetLineAnchor.

+ Here is the call graph for this function:

◆ setLayers()

void setLayers ( const Layer from,
const Layer to 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPosition()

void setPosition ( const Point position)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSize()

void setSize ( const PositiveLength size)
noexcept
+ Here is the caller graph for this function:

◆ setDrillDiameter()

void setDrillDiameter ( const PositiveLength diameter)
noexcept
+ Here is the caller graph for this function:

◆ setExposureConfig()

void setExposureConfig ( const MaskConfig config)
noexcept
+ Here is the caller graph for this function:

◆ addToBoard()

void addToBoard ( )
overridevirtual

Reimplemented from BI_Base.

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

◆ removeFromBoard()

void removeFromBoard ( )
overridevirtual

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_Via & operator= ( const BI_Via rhs)
delete

◆ operator==()

bool operator== ( const BI_Via rhs)
inlinenoexcept

◆ operator!=()

bool operator!= ( const BI_Via rhs)
inlinenoexcept

◆ updateStopMaskDiameters()

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

Member Data Documentation

◆ onEdited

Signal<BI_Via, Event> onEdited

◆ mVia

Via mVia
private

◆ mNetSegment

BI_NetSegment& mNetSegment
private

◆ mNetSignalNameChangedConnection

QMetaObject::Connection mNetSignalNameChangedConnection
private

◆ mStopMaskDiameterTop

tl::optional<PositiveLength> mStopMaskDiameterTop
private

◆ mStopMaskDiameterBottom

tl::optional<PositiveLength> mStopMaskDiameterBottom
private

◆ mRegisteredNetLines

QSet<BI_NetLine*> mRegisteredNetLines
private

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