1 #ifndef __ACTIONDRAWARC_H__
2 #define __ACTIONDRAWARC_H__
4 #include "actioninterface.h"
8 * This action class can handle user events to draw simple arcs with the
9 * center, radius, start- and endangle given.
11 * @author James Hammons
12 * @author Andrew Mustun
14 class ActionDrawArc: public ActionInterface
21 SetCenter, /**< Setting the center point. */
22 SetRadius, /**< Setting the radius. */
23 SetAngle1, /**< Setting the startpoint. */
24 SetAngle2, /**< Setting the endpoint. */
25 SetIncAngle, /**< Setting the included angle. */
26 SetChordLength /**< Setting carc chord length. */
30 ActionDrawArc(EntityContainer & container, GraphicView & graphicView);
33 virtual RS2::ActionType rtti();
35 virtual void init(int status = 0);
36 virtual void trigger();
37 virtual void mouseMoveEvent(QMouseEvent * e);
38 virtual void mouseReleaseEvent(QMouseEvent * e);
39 virtual void coordinateEvent(Vector * e);
40 virtual void commandEvent(CommandEvent * e);
41 virtual QStringList getAvailableCommands();
42 virtual void hideOptions();
43 virtual void showOptions();
44 virtual void updateMouseButtonHints();
45 virtual void updateMouseCursor();
46 virtual void updateToolBar();
48 void setReversed(bool r);
52 * Arc data defined so far.
57 #endif // __ACTIONDRAWARC_H__