#include <transitionVArc.h>
Public Member Functions | |
TransitionVArc (Editor *parent, State *ss, State *es, const QString &label, bool leftOriented, bool dimmed) | |
virtual | ~TransitionVArc () |
virtual void | adjust () |
The only method where graphics changes are computed. | |
virtual int | getArcAngle () const |
virtual QString | getGraphMLParams () const |
GraphML export. | |
virtual float | getNCurv () const |
virtual QString | getTypeName () const |
virtual QString | getVCCommand () const |
VauCanSon-G transition command. | |
virtual void | setArcAngle (int aa) |
for VArc and VCurve | |
virtual void | setLabelPosition () |
virtual void | setNCurv (float nc) |
Protected Attributes | |
QPointF | a_point |
int | arcangle |
QPointF | b_point |
float | ncurv |
Definition at line 6 of file transitionVArc.h.
TransitionVArc::TransitionVArc | ( | Editor * | parent, | |
State * | ss, | |||
State * | es, | |||
const QString & | label, | |||
bool | leftOriented, | |||
bool | dimmed | |||
) |
Definition at line 16 of file transitionVArc.cpp.
References adjust(), DEF_ARC_LAB_POS, Transition::dimEdgeLabelColor, Transition::edgeLabelColor, Transition::label, TwoStatesTransition::leftOriented, Transition::m_labelFontSize, setLabelPosition(), LabelX::setPosParam(), Z_TR_LABEL, and Z_TRANSITION.
TransitionVArc::~TransitionVArc | ( | ) | [virtual] |
Definition at line 30 of file transitionVArc.cpp.
References DBGLOG.
void TransitionVArc::adjust | ( | ) | [virtual] |
The only method where graphics changes are computed.
Implements Transition.
Definition at line 35 of file transitionVArc.cpp.
References a_point, arcangle, b_point, Transition::createStrokes(), DBGLOG, Transition::eFIND_FIRST, Transition::endPoint, Transition::endState, Transition::findIntersectedPoints(), Transition::getArrowPolygon(), State::getMyPolygon(), State::getWidth(), M_PI, ncurv, Transition::p, Transition::pa, RELLOG, setLabelPosition(), Transition::startPoint, and Transition::startState.
Referenced by setArcAngle(), and TransitionVArc().
virtual int TransitionVArc::getArcAngle | ( | ) | const [inline, virtual] |
Reimplemented from Transition.
Definition at line 20 of file transitionVArc.h.
References arcangle.
Referenced by getGraphMLParams(), and getVCCommand().
QString TransitionVArc::getGraphMLParams | ( | ) | const [virtual] |
GraphML export.
Reimplemented from Transition.
Definition at line 246 of file transitionVArc.cpp.
References DEF_ARC_ANGLE, DEF_ARC_CURV, getArcAngle(), and getNCurv().
virtual float TransitionVArc::getNCurv | ( | ) | const [inline, virtual] |
Reimplemented from Transition.
Definition at line 21 of file transitionVArc.h.
References ncurv.
Referenced by getGraphMLParams(), and getVCCommand().
QString TransitionVArc::getTypeName | ( | ) | const [virtual] |
Implements Transition.
Definition at line 156 of file transitionVArc.cpp.
Referenced by getVCCommand().
QString TransitionVArc::getVCCommand | ( | ) | const [virtual] |
VauCanSon-G transition command.
Implements Transition.
Definition at line 212 of file transitionVArc.cpp.
References DEF_ARC_ANGLE, DEF_ARC_CURV, Transition::endState, getArcAngle(), State::getName(), getNCurv(), Transition::getNextLabelsVCCommand(), getTypeName(), TwoStatesTransition::getTypeNameSuffix(), Transition::label, TwoStatesTransition::leftOriented, LabelX::posParam(), Transition::startState, and LabelX::text().
virtual void TransitionVArc::setArcAngle | ( | int | ) | [inline, virtual] |
for VArc and VCurve
Reimplemented from Transition.
Definition at line 18 of file transitionVArc.h.
References adjust(), and arcangle.
void TransitionVArc::setLabelPosition | ( | ) | [virtual] |
Reimplemented from Transition.
Definition at line 147 of file transitionVArc.cpp.
References LabelX::getHeight(), LabelX::getWidth(), Transition::label, TwoStatesTransition::leftOriented, and LabelX::posParam().
Referenced by adjust(), and TransitionVArc().
virtual void TransitionVArc::setNCurv | ( | float | nc | ) | [inline, virtual] |
QPointF TransitionVArc::a_point [protected] |
Definition at line 37 of file transitionVArc.h.
Referenced by adjust().
int TransitionVArc::arcangle [protected] |
Definition at line 30 of file transitionVArc.h.
Referenced by adjust(), getArcAngle(), and setArcAngle().
QPointF TransitionVArc::b_point [protected] |
Definition at line 38 of file transitionVArc.h.
Referenced by adjust().
float TransitionVArc::ncurv [protected] |
Definition at line 31 of file transitionVArc.h.
Referenced by adjust(), getNCurv(), and setNCurv().