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 Member Functions

 BI_Via ()=delete
 
 BI_Via (const BI_Via &other)=delete
 
 BI_Via (BI_NetSegment &netsegment, const BI_Via &other)
 
 BI_Via (BI_NetSegment &netsegment, const Via &via)
 
 BI_Via (BI_NetSegment &netsegment, const SExpression &node)
 
 ~BI_Via () noexcept
 
BI_NetSegmentgetNetSegment () const noexcept
 
NetSignalgetNetSignalOfNetSegment () const noexcept
 
const ViagetVia () const noexcept
 
const UuidgetUuid () const noexcept
 
Via::Shape getShape () const noexcept
 
const PositiveLengthgetDrillDiameter () const noexcept
 
const PositiveLengthgetSize () const noexcept
 
bool isUsed () const noexcept
 
bool isOnLayer (const QString &layerName) const noexcept
 
bool isSelectable () const noexcept override
 
TraceAnchor toTraceAnchor () const noexcept override
 
void setPosition (const Point &position) noexcept
 
void setShape (Via::Shape shape) noexcept
 
void setSize (const PositiveLength &size) noexcept
 
void setDrillDiameter (const PositiveLength &diameter) noexcept
 
void addToBoard () override
 
void removeFromBoard () override
 
void serialize (SExpression &root) const override
 Serialize the object into an existing S-Expression node. More...
 
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_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 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
 
- Public Member Functions inherited from SerializableObject
 SerializableObject () noexcept
 
virtual ~SerializableObject () noexcept
 
SExpression serializeToDomElement (const QString &name) const
 Serialize the object to a new S-Expression node. More...
 

Private Member Functions

void init ()
 
void boardOrNetAttributesChanged ()
 

Private Attributes

Via mVia
 
BI_NetSegmentmNetSegment
 
QScopedPointer< BGI_ViamGraphicsItem
 
QMetaObject::Connection mHighlightChangedConnection
 
QSet< BI_NetLine * > mRegisteredNetLines
 

Additional Inherited Members

- Public Types inherited from BI_Base
enum  Type_t
 
- Static Public Member Functions inherited from SerializableObject
template<typename T >
static void serializeObjectContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName)
 
- 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_Via class.

Constructor & Destructor Documentation

◆ BI_Via() [1/5]

BI_Via ( )
delete

◆ BI_Via() [2/5]

BI_Via ( const BI_Via other)
delete

◆ BI_Via() [3/5]

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

◆ BI_Via() [4/5]

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

◆ BI_Via() [5/5]

BI_Via ( BI_NetSegment netsegment,
const SExpression node 
)
+ 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 call graph for this function:
+ Here is the caller graph for this function:

◆ getNetSignalOfNetSegment()

NetSignal & getNetSignalOfNetSegment ( ) const
noexcept
+ 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:

◆ getShape()

Via::Shape getShape ( ) 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:

◆ isUsed()

bool isUsed ( ) const
inlinenoexcept
+ 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:

◆ isSelectable()

bool isSelectable ( ) const
overridevirtualnoexcept

Implements BI_Base.

+ Here is the caller graph for this function:

◆ toTraceAnchor()

TraceAnchor toTraceAnchor ( ) const
overridevirtualnoexcept

Implements BI_NetLineAnchor.

+ 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:

◆ setShape()

void setShape ( Via::Shape  shape)
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 call graph for this function:
+ Here is the caller graph for this function:

◆ setDrillDiameter()

void setDrillDiameter ( const PositiveLength diameter)
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:

◆ serialize()

void serialize ( SExpression root) const
overridevirtual

Serialize the object into an existing S-Expression node.

This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.

Note
The generated S-Expression node has always the format of the application's major version (it's not possible to generate DOMs of older versions).
Parameters
rootThe target DOM root node
Exceptions
ExceptionThis method throws an exception if an error occurs.

Implements SerializableObject.

+ 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 call graph for this function:
+ Here is the caller graph for this function:

◆ getIsMirrored()

bool getIsMirrored ( ) const
inlineoverridevirtualnoexcept

Implements BI_Base.

+ Here is the call graph for this function:

◆ getGrabAreaScenePx()

QPainterPath getGrabAreaScenePx ( ) const
overridevirtualnoexcept

Implements BI_Base.

+ Here is the call graph for this function:
+ 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:
+ Here is the caller graph for this function:

◆ unregisterNetLine()

void unregisterNetLine ( BI_NetLine netline)
overridevirtual

Implements BI_NetLineAnchor.

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

◆ getNetLines()

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

Implements BI_NetLineAnchor.

+ Here is the call graph for this function:

◆ operator=()

BI_Via& operator= ( const BI_Via rhs)
delete
+ Here is the caller graph for this function:

◆ operator==()

bool operator== ( const BI_Via rhs)
inlinenoexcept

◆ operator!=()

bool operator!= ( const BI_Via rhs)
inlinenoexcept
+ Here is the call graph for this function:

◆ init()

void init ( )
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ boardOrNetAttributesChanged()

void boardOrNetAttributesChanged ( )
private
+ Here is the caller graph for this function:

Member Data Documentation

◆ mVia

Via mVia
private

◆ mNetSegment

BI_NetSegment& mNetSegment
private

◆ mGraphicsItem

QScopedPointer<BGI_Via> mGraphicsItem
private

◆ mHighlightChangedConnection

QMetaObject::Connection mHighlightChangedConnection
private

◆ mRegisteredNetLines

QSet<BI_NetLine*> mRegisteredNetLines
private

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