1 #ifndef __ACTIONDRAWELLIPSEAXIS_H__
2 #define __ACTIONDRAWELLIPSEAXIS_H__
5 #include "actioninterface.h"
8 * This action class can handle user events to draw ellipses with a center
9 * point and the endpoints of minor and major axis.
11 * @author James Hammons
12 * @author Andrew Mustun
14 class ActionDrawEllipseAxis: public ActionInterface
21 SetCenter, /**< Settinge the center. */
22 SetMajor, /**< Setting endpoint of major axis. */
23 SetMinor, /**< Setting minor/major ratio. */
24 SetAngle1, /**< Setting start angle. */
25 SetAngle2 /**< Setting end angle. */
29 ActionDrawEllipseAxis(EntityContainer & container, GraphicView & graphicView, bool isArc);
30 ~ActionDrawEllipseAxis();
32 virtual void init(int status = 0);
33 virtual void trigger();
34 virtual void mouseMoveEvent(QMouseEvent * e);
35 virtual void mouseReleaseEvent(QMouseEvent * e);
36 virtual void coordinateEvent(Vector * e);
37 virtual void commandEvent(CommandEvent * e);
38 virtual QStringList getAvailableCommands();
39 virtual void updateMouseButtonHints();
40 virtual void updateMouseCursor();
41 virtual void updateToolBar();
44 /** Center of ellipse */
46 /** Endpoint of major axis */
48 /** Ratio major / minor */
54 /** Do we produce an arc (true) or full ellipse (false) */
58 #endif // __ACTIONDRAWELLIPSEAXIS_H__