#include <transitionVCurve.h>
Public Member Functions | |
TransitionVCurve (Editor *parent, State *ss, State *es, const QString &label, bool leftOriented, bool dimmed) | |
virtual | ~TransitionVCurve () |
virtual void | adjust () |
The only method where graphics changes are computed. | |
virtual int | getArcAngle () const |
virtual int | getArcAngleB () 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 | setArcAngleB (int aaB) |
only for VCurve | |
virtual void | setLabelPosition () |
virtual void | setNCurv (float nc) |
Private Attributes | |
QPointF | a_point |
int | arcangle |
int | arcangleB |
QPointF | b_point |
float | ncurv |
bool | radius |
QLineF | text_v |
Definition at line 6 of file transitionVCurve.h.
TransitionVCurve::TransitionVCurve | ( | Editor * | parent, | |
State * | ss, | |||
State * | es, | |||
const QString & | label, | |||
bool | leftOriented, | |||
bool | dimmed | |||
) |
Definition at line 12 of file transitionVCurve.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.
TransitionVCurve::~TransitionVCurve | ( | ) | [virtual] |
Definition at line 28 of file transitionVCurve.cpp.
References DBGLOG.
void TransitionVCurve::adjust | ( | ) | [virtual] |
The only method where graphics changes are computed.
Implements Transition.
Definition at line 33 of file transitionVCurve.cpp.
References a_point, arcangle, arcangleB, b_point, Transition::createStrokes(), 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 TransitionVCurve().
virtual int TransitionVCurve::getArcAngle | ( | ) | const [inline, virtual] |
Reimplemented from Transition.
Definition at line 22 of file transitionVCurve.h.
References arcangle.
Referenced by getGraphMLParams(), and getVCCommand().
virtual int TransitionVCurve::getArcAngleB | ( | ) | const [inline, virtual] |
Reimplemented from Transition.
Definition at line 23 of file transitionVCurve.h.
References arcangleB.
Referenced by getVCCommand().
QString TransitionVCurve::getGraphMLParams | ( | ) | const [virtual] |
GraphML export.
Reimplemented from Transition.
Definition at line 226 of file transitionVCurve.cpp.
References arcangle, arcangleB, DEF_VCURV_ANGLE, DEF_VCURV_ANGLE_B, DEF_VCURV_CURV, getArcAngle(), getNCurv(), and ncurv.
virtual float TransitionVCurve::getNCurv | ( | ) | const [inline, virtual] |
Reimplemented from Transition.
Definition at line 24 of file transitionVCurve.h.
References ncurv.
Referenced by getGraphMLParams(), and getVCCommand().
QString TransitionVCurve::getTypeName | ( | ) | const [virtual] |
Implements Transition.
Definition at line 131 of file transitionVCurve.cpp.
Referenced by getVCCommand().
QString TransitionVCurve::getVCCommand | ( | ) | const [virtual] |
VauCanSon-G transition command.
Implements Transition.
Definition at line 185 of file transitionVCurve.cpp.
References DEF_VCURV_ANGLE, DEF_VCURV_ANGLE_B, DEF_VCURV_CURV, DEF_VCURVR_ANGLE_B, Transition::endState, getArcAngle(), getArcAngleB(), State::getName(), getNCurv(), Transition::getNextLabelsVCCommand(), getTypeName(), TwoStatesTransition::getTypeNameSuffix(), Transition::label, LabelX::posParam(), Transition::startState, and LabelX::text().
virtual void TransitionVCurve::setArcAngle | ( | int | ) | [inline, virtual] |
for VArc and VCurve
Reimplemented from Transition.
Definition at line 19 of file transitionVCurve.h.
References arcangle.
virtual void TransitionVCurve::setArcAngleB | ( | int | ) | [inline, virtual] |
only for VCurve
Reimplemented from Transition.
Definition at line 20 of file transitionVCurve.h.
References arcangleB.
void TransitionVCurve::setLabelPosition | ( | ) | [virtual] |
Reimplemented from Transition.
Definition at line 122 of file transitionVCurve.cpp.
References LabelX::getHeight(), LabelX::getWidth(), Transition::label, TwoStatesTransition::leftOriented, and LabelX::posParam().
Referenced by adjust(), and TransitionVCurve().
virtual void TransitionVCurve::setNCurv | ( | float | nc | ) | [inline, virtual] |
QPointF TransitionVCurve::a_point [private] |
Definition at line 47 of file transitionVCurve.h.
Referenced by adjust().
int TransitionVCurve::arcangle [private] |
Definition at line 38 of file transitionVCurve.h.
Referenced by adjust(), getArcAngle(), getGraphMLParams(), and setArcAngle().
int TransitionVCurve::arcangleB [private] |
Definition at line 39 of file transitionVCurve.h.
Referenced by adjust(), getArcAngleB(), getGraphMLParams(), and setArcAngleB().
QPointF TransitionVCurve::b_point [private] |
Definition at line 48 of file transitionVCurve.h.
Referenced by adjust().
float TransitionVCurve::ncurv [private] |
Definition at line 40 of file transitionVCurve.h.
Referenced by adjust(), getGraphMLParams(), getNCurv(), and setNCurv().
bool TransitionVCurve::radius [private] |
Definition at line 34 of file transitionVCurve.h.
QLineF TransitionVCurve::text_v [private] |
Definition at line 36 of file transitionVCurve.h.