1 #ifndef __ACTIONDRAWCIRCLECR_H__
2 #define __ACTIONDRAWCIRCLECR_H__
5 #include "actioninterface.h"
8 * This action class can handle user events to draw simple arcs with the
9 * center, radius, start and end angle given.
11 * @author James Hammons
12 * @author Andrew Mustun
14 class ActionDrawCircleCR: public ActionInterface
21 SetCenter, /**< Setting the center point. */
22 SetRadius /**< Setting radius in command line. */
26 ActionDrawCircleCR(EntityContainer & container, GraphicView & graphicView);
27 ~ActionDrawCircleCR();
29 virtual RS2::ActionType rtti();
31 virtual void init(int status = 0);
32 virtual void trigger();
33 virtual void mouseMoveEvent(QMouseEvent * e);
34 virtual void mouseReleaseEvent(QMouseEvent * e);
35 virtual void coordinateEvent(Vector * e);
36 virtual void commandEvent(CommandEvent * e);
37 virtual QStringList getAvailableCommands();
38 virtual void hideOptions();
39 virtual void showOptions();
40 virtual void updateMouseButtonHints();
41 virtual void updateMouseCursor();
42 virtual void updateToolBar();
44 void setRadius(double r);
48 * Circle data defined so far.
53 #endif // __ACTIONDRAWCIRCLECR_H__