LibrePCB Developers Documentation
|
The Trace class represents a trace within a board. More...
#include <trace.h>
Public Types | |
enum class | Event |
typedef Slot< Trace, Event > | OnEditedSlot |
Public Member Functions | |
Trace ()=delete | |
Trace (const Trace &other) noexcept | |
Trace (const Uuid &uuid, const Trace &other) noexcept | |
Trace (const Uuid &uuid, const Layer &layer, const PositiveLength &width, const TraceAnchor &start, const TraceAnchor &end) noexcept | |
Trace (const SExpression &node) | |
~Trace () noexcept | |
const Uuid & | getUuid () const noexcept |
const Layer & | getLayer () const noexcept |
const PositiveLength & | getWidth () const noexcept |
const TraceAnchor & | getStartPoint () const noexcept |
const TraceAnchor & | getEndPoint () const noexcept |
bool | setUuid (const Uuid &uuid) noexcept |
bool | setLayer (const Layer &layer) noexcept |
bool | setWidth (const PositiveLength &width) noexcept |
bool | setStartPoint (const TraceAnchor &start) noexcept |
bool | setEndPoint (const TraceAnchor &end) noexcept |
void | serialize (SExpression &root) const |
Serialize into librepcb::SExpression node. More... | |
bool | operator== (const Trace &rhs) const noexcept |
bool | operator!= (const Trace &rhs) const noexcept |
Trace & | operator= (const Trace &rhs) noexcept |
Public Attributes | |
Signal< Trace, Event > | onEdited |
Private Attributes | |
Uuid | mUuid |
const Layer * | mLayer |
PositiveLength | mWidth |
TraceAnchor | mStart |
TraceAnchor | mEnd |
The Trace class represents a trace within a board.
The main purpose of this class is to serialize and deserialize traces.
typedef Slot<Trace, Event> OnEditedSlot |
|
strong |
|
delete |
|
noexcept |
|
explicit |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
root | Root node to serialize into. |
|
noexcept |
|
inlinenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |