1 #ifndef __ACTIONDRAWLINERELANGLE_H__
2 #define __ACTIONDRAWLINERELANGLE_H__
5 #include "actioninterface.h"
11 * This action class can handle user events to draw lines with a given angle
14 * @author James Hammons
15 * @author Andrew Mustun
17 class ActionDrawLineRelAngle: public ActionInterface
21 SetEntity, /**< Choose entity. */
22 SetPos, /**< Choose position. */
23 SetAngle, /**< Set angle in console. */
24 SetLength /**< Set length in console. */
28 ActionDrawLineRelAngle(EntityContainer & container, GraphicView & graphicView, double angle = 0.0, bool fixedAngle = false);
29 ~ActionDrawLineRelAngle();
31 virtual RS2::ActionType rtti();
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();
43 void setAngle(double a);
45 void setLength(double l);
52 /** Chosen position */
54 /** Data of new line */
70 #endif // __ACTIONDRAWLINERELANGLE_H__