00001 #ifndef _TRANSITIONVARC_H_2565645773590_ 00002 #define _TRANSITIONVARC_H_2565645773590_ 00003 00004 #include "twoStatesTransition.h" 00005 00006 class TransitionVArc : public TwoStatesTransition 00007 { 00008 public: 00009 TransitionVArc(Editor *parent, State *ss, State *es, const QString &label, 00010 bool leftOriented, bool dimmed); 00011 virtual ~TransitionVArc(); 00012 00013 virtual void adjust(); 00014 virtual void setLabelPosition(); 00015 00016 virtual QString getTypeName() const; 00017 00018 virtual void setArcAngle(int aa) { arcangle = aa; adjust(); } 00019 virtual void setNCurv(float nc) { ncurv = nc; } 00020 virtual int getArcAngle() const { return arcangle; } 00021 virtual float getNCurv() const { return ncurv; } 00022 00023 virtual QString getVCCommand() const; 00024 virtual QString getGraphMLParams() const; 00025 //virtual QString getEPS() const; 00026 00027 protected: 00028 //void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0); 00029 00030 int arcangle; 00031 float ncurv; 00032 00033 //float r; // radius of arc 00034 //float startAngle; 00035 //float endAngle; 00036 00037 QPointF a_point; 00038 QPointF b_point; 00039 }; 00040 00041 #endif //_TRANSITIONVARC_H_2565645773590_