LibrePCB Developers Documentation
NetLabel Class Referencefinal

The NetLabel class represents a net text label of a schematic. More...

#include <netlabel.h>

+ Collaboration diagram for NetLabel:

Public Types

enum class  Event
 
typedef Slot< NetLabel, EventOnEditedSlot
 

Public Member Functions

 NetLabel ()=delete
 
 NetLabel (const NetLabel &other) noexcept
 
 NetLabel (const Uuid &uuid, const NetLabel &other) noexcept
 
 NetLabel (const Uuid &uuid, const Point &position, const Angle &rotation, bool mirrored) noexcept
 
 NetLabel (const SExpression &node)
 
 ~NetLabel () noexcept
 
const UuidgetUuid () const noexcept
 
const PointgetPosition () const noexcept
 
const AnglegetRotation () const noexcept
 
bool getMirrored () const noexcept
 
bool setUuid (const Uuid &uuid) noexcept
 
bool setPosition (const Point &position) noexcept
 
bool setRotation (const Angle &rotation) noexcept
 
bool setMirrored (const bool mirrored) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const NetLabel &rhs) const noexcept
 
bool operator!= (const NetLabel &rhs) const noexcept
 
NetLabeloperator= (const NetLabel &rhs) noexcept
 

Public Attributes

Signal< NetLabel, EventonEdited
 

Private Attributes

Uuid mUuid
 
Point mPosition
 
Angle mRotation
 
bool mMirrored
 

Detailed Description

The NetLabel class represents a net text label of a schematic.

The main purpose of this class is to serialize and deserialize net labels contained in schematics.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
UuidChanged 
PositionChanged 
RotationChanged 
MirroredChanged 

Constructor & Destructor Documentation

◆ NetLabel() [1/5]

NetLabel ( )
delete

◆ NetLabel() [2/5]

NetLabel ( const NetLabel other)
noexcept

◆ NetLabel() [3/5]

NetLabel ( const Uuid uuid,
const NetLabel other 
)
noexcept

◆ NetLabel() [4/5]

NetLabel ( const Uuid uuid,
const Point position,
const Angle rotation,
bool  mirrored 
)
noexcept

◆ NetLabel() [5/5]

NetLabel ( const SExpression node)
explicit

◆ ~NetLabel()

~NetLabel ( )
noexcept

Member Function Documentation

◆ getUuid()

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

◆ getPosition()

const Point & getPosition ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getRotation()

const Angle & getRotation ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getMirrored()

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

◆ setUuid()

bool setUuid ( const Uuid uuid)
noexcept

◆ setPosition()

bool setPosition ( const Point position)
noexcept

◆ setRotation()

bool setRotation ( const Angle rotation)
noexcept

◆ setMirrored()

bool setMirrored ( const bool  mirrored)
noexcept

◆ serialize()

void serialize ( SExpression root) const

Serialize into librepcb::SExpression node.

Parameters
rootRoot node to serialize into.
+ Here is the call graph for this function:

◆ operator==()

bool operator== ( const NetLabel rhs) const
noexcept

◆ operator!=()

bool operator!= ( const NetLabel rhs) const
inlinenoexcept

◆ operator=()

NetLabel & operator= ( const NetLabel rhs)
noexcept

Member Data Documentation

◆ onEdited

Signal<NetLabel, Event> onEdited

◆ mUuid

Uuid mUuid
private

◆ mPosition

Point mPosition
private

◆ mRotation

Angle mRotation
private

◆ mMirrored

bool mMirrored
private

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