1 #ifndef __ACTIONDRAWARCTANGENTIAL_H__
2 #define __ACTIONDRAWARCTANGENTIAL_H__
4 #include "actioninterface.h"
11 * This action class can handle user events to draw
12 * arcs with three points given.
14 * @author James Hammons
15 * @author Andrew Mustun
17 class ActionDrawArcTangential: public ActionInterface
24 SetBaseEntity, /**< Setting base entity. */
25 SetEndAngle /**< Setting end angle. */
29 ActionDrawArcTangential(EntityContainer & container, GraphicView & graphicView);
30 ~ActionDrawArcTangential();
32 virtual RS2::ActionType rtti();
34 virtual void init(int status = 0);
35 virtual void trigger();
36 void preparePreview();
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();
47 void setRadius(double r);
54 AtomicEntity * baseEntity;
56 * Start point of base entity clicked?
60 * Point that determines end angle.
64 * Arc data calculated.
69 #endif // __ACTIONDRAWARCTANGENTIAL_H__