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

The SI_NetPoint class. More...

#include <si_netpoint.h>

+ Inheritance diagram for SI_NetPoint:
+ Collaboration diagram for SI_NetPoint:

Public Member Functions

 SI_NetPoint ()=delete
 
 SI_NetPoint (const SI_NetPoint &other)=delete
 
 SI_NetPoint (SI_NetSegment &segment, const SExpression &node)
 
 SI_NetPoint (SI_NetSegment &segment, const Point &position)
 
 SI_NetPoint (SI_NetSegment &segment, SI_SymbolPin &pin)
 
 ~SI_NetPoint () noexcept
 
const UuidgetUuid () const noexcept
 
bool isVisibleJunction () const noexcept
 
bool isOpenLineEnd () const noexcept
 
SI_NetSegmentgetNetSegment () const noexcept
 
NetSignalgetNetSignalOfNetSegment () const noexcept
 
bool isUsed () const noexcept
 
void setPosition (const Point &position) noexcept
 
void addToSchematic () override
 
void removeFromSchematic () 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
 
QPainterPath getGrabAreaScenePx () const noexceptoverride
 
void setSelected (bool selected) noexceptoverride
 
void registerNetLine (SI_NetLine &netline) override
 
void unregisterNetLine (SI_NetLine &netline) override
 
const QSet< SI_NetLine * > & getNetLines () const noexceptoverride
 
SI_NetPointoperator= (const SI_NetPoint &rhs)=delete
 
bool operator== (const SI_NetPoint &rhs) noexcept
 
bool operator!= (const SI_NetPoint &rhs) noexcept
 
- Public Member Functions inherited from SI_Base
 SI_Base ()=delete
 
 SI_Base (const SI_Base &other)=delete
 
 SI_Base (Schematic &schematic) noexcept
 
virtual ~SI_Base () noexcept
 
ProjectgetProject () const noexcept
 
CircuitgetCircuit () const noexcept
 
SchematicgetSchematic () const noexcept
 
virtual bool isAddedToSchematic () const noexcept
 
virtual bool isSelected () const noexcept
 
SI_Baseoperator= (const SI_Base &rhs)=delete
 
- Public Member Functions inherited from SI_NetLineAnchor
 SI_NetLineAnchor () noexcept=default
 
virtual ~SI_NetLineAnchor () noexcept=default
 
- 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< SGI_NetPointmGraphicsItem
 
QMetaObject::Connection mHighlightChangedConnection
 
SI_NetSegmentmNetSegment
 
Uuid mUuid
 
Point mPosition
 
QSet< SI_NetLine * > mRegisteredNetLines
 all registered netlines More...
 
QScopedPointer< ErcMsgmErcMsgDeadNetPoint
 The ERC message for dead netpoints. More...
 

Additional Inherited Members

- Public Types inherited from SI_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 SI_Base
void addToSchematic (SGI_Base *item) noexcept
 
void removeFromSchematic (SGI_Base *item) noexcept
 
- Protected Attributes inherited from SI_Base
SchematicmSchematic
 

Detailed Description

The SI_NetPoint class.

Constructor & Destructor Documentation

SI_NetPoint ( )
delete
SI_NetPoint ( const SI_NetPoint other)
delete
SI_NetPoint ( SI_NetSegment segment,
const SExpression node 
)

+ Here is the call graph for this function:

SI_NetPoint ( SI_NetSegment segment,
const Point position 
)

+ Here is the call graph for this function:

SI_NetPoint ( SI_NetSegment segment,
SI_SymbolPin pin 
)
~SI_NetPoint ( )
noexcept

Member Function Documentation

const Uuid& getUuid ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

bool isVisibleJunction ( ) const
noexcept

+ Here is the caller graph for this function:

bool isOpenLineEnd ( ) const
noexcept

+ Here is the caller graph for this function:

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

void setPosition ( const Point position)
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addToSchematic ( )
overridevirtual

Implements SI_Base.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void removeFromSchematic ( )
overridevirtual

Implements SI_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 SI_Base.

const Point& getPosition ( ) const
inlineoverridevirtualnoexcept

Implements SI_Base.

+ Here is the caller graph for this function:

QPainterPath getGrabAreaScenePx ( ) const
overridevirtualnoexcept

Implements SI_Base.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setSelected ( bool  selected)
overridevirtualnoexcept

Reimplemented from SI_Base.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void registerNetLine ( SI_NetLine netline)
overridevirtual

Implements SI_NetLineAnchor.

+ Here is the call graph for this function:

void unregisterNetLine ( SI_NetLine netline)
overridevirtual

Implements SI_NetLineAnchor.

+ Here is the call graph for this function:

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

Implements SI_NetLineAnchor.

SI_NetPoint& operator= ( const SI_NetPoint rhs)
delete
bool operator== ( const SI_NetPoint rhs)
inlinenoexcept
bool operator!= ( const SI_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<SGI_NetPoint> mGraphicsItem
private
QMetaObject::Connection mHighlightChangedConnection
private
SI_NetSegment& mNetSegment
private
Uuid mUuid
private
Point mPosition
private
QSet<SI_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: