![]() |
LibrePCB Developers Documentation
|
The SymbolPin class represents one pin of a symbol. More...
#include <symbolpin.h>
Public Types | |
enum | Event |
typedef Slot< SymbolPin, Event > | OnEditedSlot |
Public Member Functions | |
SymbolPin ()=delete | |
SymbolPin (const SymbolPin &other) noexcept | |
SymbolPin (const Uuid &uuid, const CircuitIdentifier &name, const Point &position, const UnsignedLength &length, const Angle &rotation) noexcept | |
SymbolPin (const SExpression &node, const Version &fileFormat) | |
~SymbolPin () noexcept | |
const Uuid & | getUuid () const noexcept |
const CircuitIdentifier & | getName () const noexcept |
const Point & | getPosition () const noexcept |
const UnsignedLength & | getLength () const noexcept |
const Angle & | getRotation () const noexcept |
bool | setPosition (const Point &pos) noexcept |
bool | setLength (const UnsignedLength &length) noexcept |
bool | setRotation (const Angle &rotation) noexcept |
bool | setName (const CircuitIdentifier &name) noexcept |
void | registerGraphicsItem (SymbolPinGraphicsItem &item) noexcept |
void | unregisterGraphicsItem (SymbolPinGraphicsItem &item) noexcept |
void | serialize (SExpression &root) const override |
Serialize the object into an existing S-Expression node. More... | |
bool | operator== (const SymbolPin &rhs) const noexcept |
bool | operator!= (const SymbolPin &rhs) const noexcept |
SymbolPin & | operator= (const SymbolPin &rhs) noexcept |
![]() | |
SerializableObject () noexcept | |
virtual | ~SerializableObject () noexcept |
SExpression | serializeToDomElement (const QString &name) const |
Serialize the object to a new S-Expression node. More... | |
Public Attributes | |
Signal< SymbolPin, Event > | onEdited |
Private Attributes | |
Uuid | mUuid |
CircuitIdentifier | mName |
Point | mPosition |
UnsignedLength | mLength |
Angle | mRotation |
SymbolPinGraphicsItem * | mRegisteredGraphicsItem |
Additional Inherited Members | |
![]() | |
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) |
The SymbolPin class represents one pin of a symbol.
Following information is considered as the "interface" of a pin and must therefore never be changed:
typedef Slot<SymbolPin, Event> OnEditedSlot |
|
strong |
|
delete |
|
noexcept |
SymbolPin | ( | const SExpression & | node, |
const Version & | fileFormat | ||
) |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
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.
root | The target DOM root node |
Exception | This method throws an exception if an error occurs. |
Implements SerializableObject.
|
noexcept |
|
inlinenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |