LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BI_NetPoint Class Referencefinal

The BI_NetPoint class. More...

#include <bi_netpoint.h>

+ Inheritance diagram for BI_NetPoint:
+ Collaboration diagram for BI_NetPoint:

Public Member Functions

 BI_NetPoint ()=delete
 
 BI_NetPoint (const BI_NetPoint &other)=delete
 
 BI_NetPoint (BI_NetSegment &segment, const BI_NetPoint &other)
 
 BI_NetPoint (BI_NetSegment &segment, const SExpression &node)
 
 BI_NetPoint (BI_NetSegment &segment, const Point &position)
 
 ~BI_NetPoint () noexcept
 
const UuidgetUuid () const noexcept
 
BI_NetSegmentgetNetSegment () const noexcept
 
NetSignalgetNetSignalOfNetSegment () const noexcept
 
bool isUsed () const noexcept
 
GraphicsLayergetLayerOfLines () const noexcept
 
bool isSelectable () const noexceptoverride
 
void setPosition (const Point &position) 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 noexceptoverride
 
const PointgetPosition () const noexceptoverride
 
bool getIsMirrored () const noexceptoverride
 
QPainterPath getGrabAreaScenePx () const noexceptoverride
 
void setSelected (bool selected) noexceptoverride
 
void registerNetLine (BI_NetLine &netline) override
 
void unregisterNetLine (BI_NetLine &netline) override
 
const QSet< BI_NetLine * > & getNetLines () const noexceptoverride
 
BI_NetPointoperator= (const BI_NetPoint &rhs)=delete
 
bool operator== (const BI_NetPoint &rhs) noexcept
 
bool operator!= (const BI_NetPoint &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...
 
- Public Member Functions inherited from IF_ErcMsgProvider
 IF_ErcMsgProvider ()
 
virtual ~IF_ErcMsgProvider ()
 
virtual const char * getErcMsgOwnerClassName () const noexcept=0
 

Private Member Functions

void init ()
 

Private Attributes

QScopedPointer< BGI_NetPointmGraphicsItem
 
QMetaObject::Connection mHighlightChangedConnection
 
BI_NetSegmentmNetSegment
 
Uuid mUuid
 
Point mPosition
 
QSet< BI_NetLine * > mRegisteredNetLines
 all registered netlines More...
 
QScopedPointer< ErcMsgmErcMsgDeadNetPoint
 The ERC message for dead netpoints. More...
 

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_NetPoint class.

Constructor & Destructor Documentation

BI_NetPoint ( )
delete
BI_NetPoint ( const BI_NetPoint other)
delete
BI_NetPoint ( BI_NetSegment segment,
const BI_NetPoint other 
)

+ Here is the call graph for this function:

BI_NetPoint ( BI_NetSegment segment,
const SExpression node 
)

+ Here is the call graph for this function:

BI_NetPoint ( BI_NetSegment segment,
const Point position 
)

+ Here is the call graph for this function:

~BI_NetPoint ( )
noexcept

Member Function Documentation

const Uuid& getUuid ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

BI_NetSegment& getNetSegment ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

NetSignal & getNetSignalOfNetSegment ( ) const
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool isUsed ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

GraphicsLayer * getLayerOfLines ( ) const
noexcept

+ Here is the caller graph for this function:

bool isSelectable ( ) const
overridevirtualnoexcept

Implements BI_Base.

+ Here is the caller graph for this function:

void setPosition ( const Point position)
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addToBoard ( )
overridevirtual

Implements BI_Base.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void removeFromBoard ( )
overridevirtual

Implements BI_Base.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

Type_t getType ( ) const
inlineoverridevirtualnoexcept

Implements BI_Base.

const Point& getPosition ( ) const
inlineoverridevirtualnoexcept

Implements BI_Base.

+ Here is the caller graph for this function:

bool getIsMirrored ( ) const
inlineoverridevirtualnoexcept

Implements BI_Base.

QPainterPath getGrabAreaScenePx ( ) const
overridevirtualnoexcept

Implements BI_Base.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

void registerNetLine ( BI_NetLine netline)
overridevirtual

Implements BI_NetLineAnchor.

+ Here is the call graph for this function:

void unregisterNetLine ( BI_NetLine netline)
overridevirtual

Implements BI_NetLineAnchor.

+ Here is the call graph for this function:

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

Implements BI_NetLineAnchor.

BI_NetPoint& operator= ( const BI_NetPoint rhs)
delete
bool operator== ( const BI_NetPoint rhs)
inlinenoexcept
bool operator!= ( const BI_NetPoint rhs)
inlinenoexcept
void init ( )
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

QScopedPointer<BGI_NetPoint> mGraphicsItem
private
QMetaObject::Connection mHighlightChangedConnection
private
BI_NetSegment& mNetSegment
private
Uuid mUuid
private
Point mPosition
private
QSet<BI_NetLine*> mRegisteredNetLines
private

all registered netlines

QScopedPointer<ErcMsg> mErcMsgDeadNetPoint
private

The ERC message for dead netpoints.


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