21 void print(
const QString& indent =
"")
const;
26 QString
getid()
const override;
76 Types::Port srcPort()
const;
77 Types::Port dstPort()
const;
79 QString srcPortSubFlow()
const override;
80 QString dstPortSubFlow()
const override;
86 void setId(
const QString& arg);
136 void setSrcPort(Types::Port port);
137 void setDstPort(Types::Port port);
138 void setSrcPortSubFlow(
const QString& subFlowId);
139 void setDstPortSubFlow(
const QString& subFlowId);
144 QJsonObject
toJson()
const;
170 Types::Port mDstPort;
176QDataStream& operator<<(QDataStream& out,
const QVector<std::shared_ptr<TransitionSaveInfo>>& nodes);
177QDataStream& operator>>(QDataStream& in, QVector<std::shared_ptr<TransitionSaveInfo>>& nodes);
178QDataStream& operator<<(QDataStream& out,
const QVector<std::shared_ptr<ITransition>>& nodes);
179QDataStream& operator>>(QDataStream& in, QVector<std::shared_ptr<ITransition>>& nodes);
QPointF srcShift() const
Gets the source shift of the transition.
Definition transition_info.cpp:66
QPointF dstShift() const
Gets the destination shift of the transition.
Definition transition_info.cpp:76
static TransitionSaveInfo fromJson(const QJsonObject &data)
Creates a TransitionSaveInfo object from a JSON object.
Definition transition_info.cpp:194
QString getlabel() const override
Gets the label of the transition.
Definition transition_info.cpp:41
QString mDstId
The source shift of the transition.
Definition transition_info.h:165
TransitionSaveInfo()
Constructs a new TransitionSaveInfo object.
Definition transition_info.cpp:11
void setLabel(const QString &arg)
Sets the label of the transition.
Definition transition_info.cpp:106
QString mEvent
The label of the transition.
Definition transition_info.h:159
QString getid() const override
Gets the ID of the transition.
Definition transition_info.cpp:36
QPointF mDstPoint
The destination ID of the transition.
Definition transition_info.h:166
Types::Port mSrcPort
The destination shift of the transition.
Definition transition_info.h:169
QPointF dstPoint() const
Gets the destination point of the transition.
Definition transition_info.cpp:71
void setDstShift(const QPointF &arg)
Sets the destination shift of the transition.
Definition transition_info.cpp:141
void setId(const QString &arg)
Sets the ID of the transition.
Definition transition_info.cpp:101
QPointF mSrcPoint
The source ID of the transition.
Definition transition_info.h:162
QString getdstId() const override
Gets the destination ID of the transition.
Definition transition_info.cpp:56
void setSrcId(const QString &arg)
Sets the source ID of the transition.
Definition transition_info.cpp:116
QString mSrcId
The event associated with the transition.
Definition transition_info.h:161
QPointF mDstShift
The destination point of the transition.
Definition transition_info.h:167
QJsonObject toJson() const
Converts the transition save info to a JSON object.
Definition transition_info.cpp:168
void setEvent(const QString &arg)
Sets the event associated with the transition.
Definition transition_info.cpp:111
void setDstPoint(const QPointF &arg)
Sets the destination point of the transition.
Definition transition_info.cpp:136
QPointF mSrcShift
The source point of the transition.
Definition transition_info.h:163
QString getsrcId() const override
Gets the source ID of the transition.
Definition transition_info.cpp:51
void setSrcShift(const QPointF &arg)
Sets the source shift of the transition.
Definition transition_info.cpp:126
QString getevent() const override
Gets the event associated with the transition.
Definition transition_info.cpp:46
QString mLabel
The ID of the transition.
Definition transition_info.h:158
QPointF srcPoint() const
Gets the source point of the transition.
Definition transition_info.cpp:61
void setSrcPoint(const QPointF &arg)
Sets the source point of the transition.
Definition transition_info.cpp:121
void setDstId(const QString &arg)
Sets the destination ID of the transition.
Definition transition_info.cpp:131