#include <transitionArc.h>
Public Member Functions | |
TransitionArc (Editor *parent, State *ss, State *es, const QString &label, bool leftOriented, bool dimmed, bool radius) | |
virtual | ~TransitionArc () |
virtual void | adjust () |
The only method where graphics changes are computed. | |
virtual QString | getTypeName () const |
virtual QString | getVCCommand () const |
VauCanSon-G transition command. | |
virtual void | setLabelPosition () |
Protected Attributes | |
QPointF | a_point |
QPointF | b_point |
bool | radius |
Definition at line 6 of file transitionArc.h.
TransitionArc::TransitionArc | ( | Editor * | parent, | |
State * | ss, | |||
State * | es, | |||
const QString & | label, | |||
bool | leftOriented, | |||
bool | dimmed, | |||
bool | radius | |||
) |
Definition at line 12 of file transitionArc.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.
TransitionArc::~TransitionArc | ( | ) | [virtual] |
Definition at line 26 of file transitionArc.cpp.
References DBGLOG.
void TransitionArc::adjust | ( | ) | [virtual] |
The only method where graphics changes are computed.
Implements Transition.
Definition at line 31 of file transitionArc.cpp.
References a_point, b_point, Transition::createStrokes(), DEF_ARC_ANGLE, Transition::eFIND_FIRST, Transition::endPoint, Transition::endState, Transition::findIntersectedPoints(), Transition::getArrowPolygon(), State::getMyPolygon(), State::getWidth(), TwoStatesTransition::leftOriented, M_PI, Transition::p, Transition::pa, radius, RELLOG, setLabelPosition(), Transition::startPoint, and Transition::startState.
Referenced by TransitionArc().
QString TransitionArc::getTypeName | ( | ) | const [virtual] |
Implements Transition.
Definition at line 147 of file transitionArc.cpp.
References radius.
Referenced by getVCCommand().
QString TransitionArc::getVCCommand | ( | ) | const [virtual] |
VauCanSon-G transition command.
Implements Transition.
Definition at line 203 of file transitionArc.cpp.
References Transition::endState, State::getName(), Transition::getNextLabelsVCCommand(), getTypeName(), TwoStatesTransition::getTypeNameSuffix(), Transition::label, LabelX::posParam(), Transition::startState, and LabelX::text().
void TransitionArc::setLabelPosition | ( | ) | [virtual] |
Reimplemented from Transition.
Definition at line 138 of file transitionArc.cpp.
References LabelX::getHeight(), LabelX::getWidth(), Transition::label, TwoStatesTransition::leftOriented, and LabelX::posParam().
Referenced by adjust(), and TransitionArc().
QPointF TransitionArc::a_point [protected] |
Definition at line 25 of file transitionArc.h.
Referenced by adjust().
QPointF TransitionArc::b_point [protected] |
Definition at line 26 of file transitionArc.h.
Referenced by adjust().
bool TransitionArc::radius [protected] |
Definition at line 23 of file transitionArc.h.
Referenced by adjust(), and getTypeName().