LibrePCB Developers Documentation
NetLine Class Referencefinal

The NetLine class represents a net line within a schematic. More...

#include <netline.h>

+ Collaboration diagram for NetLine:

Public Types

enum class  Event
 
typedef Slot< NetLine, EventOnEditedSlot
 

Public Member Functions

 NetLine ()=delete
 
 NetLine (const NetLine &other) noexcept
 
 NetLine (const Uuid &uuid, const NetLine &other) noexcept
 
 NetLine (const Uuid &uuid, const UnsignedLength &width, const NetLineAnchor &start, const NetLineAnchor &end) noexcept
 
 NetLine (const SExpression &node)
 
 ~NetLine () noexcept
 
const UuidgetUuid () const noexcept
 
const UnsignedLengthgetWidth () const noexcept
 
const NetLineAnchorgetStartPoint () const noexcept
 
const NetLineAnchorgetEndPoint () const noexcept
 
bool setUuid (const Uuid &uuid) noexcept
 
bool setWidth (const UnsignedLength &width) noexcept
 
bool setStartPoint (const NetLineAnchor &start) noexcept
 
bool setEndPoint (const NetLineAnchor &end) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const NetLine &rhs) const noexcept
 
bool operator!= (const NetLine &rhs) const noexcept
 
NetLineoperator= (const NetLine &rhs) noexcept
 

Public Attributes

Signal< NetLine, EventonEdited
 

Private Attributes

Uuid mUuid
 
UnsignedLength mWidth
 
NetLineAnchor mStart
 
NetLineAnchor mEnd
 

Detailed Description

The NetLine class represents a net line within a schematic.

The main purpose of this class is to serialize and deserialize schematic net lines.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
UuidChanged 
WidthChanged 
StartPointChanged 
EndPointChanged 

Constructor & Destructor Documentation

◆ NetLine() [1/5]

NetLine ( )
delete

◆ NetLine() [2/5]

NetLine ( const NetLine other)
noexcept

◆ NetLine() [3/5]

NetLine ( const Uuid uuid,
const NetLine other 
)
noexcept

◆ NetLine() [4/5]

NetLine ( const Uuid uuid,
const UnsignedLength width,
const NetLineAnchor start,
const NetLineAnchor end 
)
noexcept

◆ NetLine() [5/5]

NetLine ( const SExpression node)
explicit

◆ ~NetLine()

~NetLine ( )
noexcept

Member Function Documentation

◆ getUuid()

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

◆ getWidth()

const UnsignedLength & getWidth ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getStartPoint()

const NetLineAnchor & getStartPoint ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getEndPoint()

const NetLineAnchor & getEndPoint ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setUuid()

bool setUuid ( const Uuid uuid)
noexcept

◆ setWidth()

bool setWidth ( const UnsignedLength width)
noexcept

◆ setStartPoint()

bool setStartPoint ( const NetLineAnchor start)
noexcept

◆ setEndPoint()

bool setEndPoint ( const NetLineAnchor end)
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 NetLine rhs) const
noexcept

◆ operator!=()

bool operator!= ( const NetLine rhs) const
inlinenoexcept

◆ operator=()

NetLine & operator= ( const NetLine rhs)
noexcept

Member Data Documentation

◆ onEdited

Signal<NetLine, Event> onEdited

◆ mUuid

Uuid mUuid
private

◆ mWidth

UnsignedLength mWidth
private

◆ mStart

NetLineAnchor mStart
private

◆ mEnd

NetLineAnchor mEnd
private

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