12class QGraphicsPixmapItem;
31 explicit Node(QGraphicsItem *parent =
nullptr);
64 void updateWirelessColor(
Status status);
67 QGraphicsPixmapItem *m_wirelessIndicator =
nullptr;
68 QColor m_wirelessColor;
Enums::WirelessMode WirelessMode
Abstract base class for all graphical circuit elements.
GraphicElement(ElementType type, QGraphicsItem *parent=nullptr)
Constructs a graphic element of the given type, fetching all properties from the metadata registry.
Node(QGraphicsItem *parent=nullptr)
Constructs the element with optional parent.
WirelessMode wirelessMode() const override
Returns the current wireless routing mode (None / Tx / Rx).
void setWirelessMode(WirelessMode mode)
Sets the wireless routing mode and adjusts port requirements accordingly.
void updatePortsProperties() override
Recalculates port positions for the current port count.
bool hasWirelessMode() const override
Returns true — Node supports wireless mode configuration.
void save(QDataStream &stream, SerializationOptions options) const override
void load(QDataStream &stream, SerializationContext &context) override
Loads the graphic element through a binary data stream.
void updateLogic() override
Copies the single input value to the single output (pass-through).
Bundles all per-deserialization state so that load() overrides receive it through one explicit parame...
Options passed to GraphicElement::save() (and friends); the save-side counterpart of SerializationCon...