1 #ifndef __ACTIONDRAWCIRCLE_H__
2 #define __ACTIONDRAWCIRCLE_H__
5 #include "actioninterface.h"
8 * This action class can handle user events to draw
9 * circles with a given center and a point on the circle line.
11 * @author James Hammons
12 * @author Andrew Mustun
14 class ActionDrawCircle: public ActionInterface
21 SetCenter, /**< Setting the center point. */
22 SetRadius /**< Setting the radius. */
26 ActionDrawCircle(EntityContainer & container, GraphicView & graphicView);
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();
46 * Circle data defined so far.
51 #endif // __ACTIONDRAWCIRCLE_H__