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

The SI_NetLabel class. More...

#include <si_netlabel.h>

+ Inheritance diagram for SI_NetLabel:
+ Collaboration diagram for SI_NetLabel:

Public Member Functions

 SI_NetLabel ()=delete
 
 SI_NetLabel (const SI_NetLabel &other)=delete
 
 SI_NetLabel (SI_NetSegment &segment, const SExpression &node)
 
 SI_NetLabel (SI_NetSegment &segment, const Point &position, const Angle &rotation)
 
 ~SI_NetLabel () noexcept
 
const UuidgetUuid () const noexcept
 
const AnglegetRotation () const noexcept
 
SI_NetSegmentgetNetSegment () const noexcept
 
NetSignalgetNetSignalOfNetSegment () const noexcept
 
void setPosition (const Point &position) noexcept
 
void setRotation (const Angle &rotation) noexcept
 
void updateAnchor () 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
 
SI_NetLabeloperator= (const SI_NetLabel &rhs)=delete
 
- 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 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 ()
 

Private Attributes

QScopedPointer< SGI_NetLabelmGraphicsItem
 
QMetaObject::Connection mNameChangedConnection
 
QMetaObject::Connection mHighlightChangedConnection
 
SI_NetSegmentmNetSegment
 
Uuid mUuid
 
Point mPosition
 
Angle mRotation
 

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

Constructor & Destructor Documentation

SI_NetLabel ( )
delete
SI_NetLabel ( const SI_NetLabel other)
delete
SI_NetLabel ( SI_NetSegment segment,
const SExpression node 
)
explicit

+ Here is the call graph for this function:

SI_NetLabel ( SI_NetSegment segment,
const Point position,
const Angle rotation 
)
explicit

+ Here is the call graph for this function:

~SI_NetLabel ( )
noexcept

Member Function Documentation

const Uuid& getUuid ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

const Angle& getRotation ( ) const
inlinenoexcept

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

void setPosition ( const Point position)
noexcept

+ Here is the caller graph for this function:

void setRotation ( const Angle rotation)
noexcept

+ Here is the caller graph for this function:

void updateAnchor ( )
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 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:

SI_NetLabel& operator= ( const SI_NetLabel rhs)
delete
void init ( )
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

QScopedPointer<SGI_NetLabel> mGraphicsItem
private
QMetaObject::Connection mNameChangedConnection
private
QMetaObject::Connection mHighlightChangedConnection
private
SI_NetSegment& mNetSegment
private
Uuid mUuid
private
Point mPosition
private
Angle mRotation
private

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