![]() |
LibrePCB Developers Documentation
|
The Trace class represents a trace within a board. More...
#include <trace.h>
Collaboration diagram for Trace: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 &a, const TraceAnchor &b) noexcept | |
| Trace (const SExpression &node) | |
| ~Trace () noexcept | |
| const Uuid & | getUuid () const noexcept |
| const Layer & | getLayer () const noexcept |
| const PositiveLength & | getWidth () const noexcept |
| const TraceAnchor & | getP1 () const noexcept |
| const TraceAnchor & | getP2 () const noexcept |
| bool | setUuid (const Uuid &uuid) noexcept |
| bool | setLayer (const Layer &layer) noexcept |
| bool | setWidth (const PositiveLength &width) noexcept |
| bool | setAnchors (TraceAnchor a, TraceAnchor b) noexcept |
| void | serialize (SExpression &root) const |
| Serialize into librepcb::SExpression node. | |
| 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 |
Static Private Member Functions | |
| static void | normalizeAnchors (TraceAnchor &start, TraceAnchor &end) noexcept |
Private Attributes | |
| Uuid | mUuid |
| const Layer * | mLayer |
| PositiveLength | mWidth |
| TraceAnchor | mP1 |
| TraceAnchor | mP2 |
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 |
Here is the call graph for this function:
|
noexcept |
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
|
noexcept |
| void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
| root | Root node to serialize into. |
Here is the call graph for this function:
|
noexcept |
|
inlinenoexcept |
|
staticprivatenoexcept |
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |