-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathSketcher_CommandPoint.hxx
78 lines (63 loc) · 1.68 KB
/
Sketcher_CommandPoint.hxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/**
* \file Sketcher_CommandPoint.hxx
* \brief Header file for the class Sketcher_CommandPoint
* \author <a href="mailto:[email protected]?subject=Sketcher_CommandPoint.hxx">Sergei Maslov</a>
*/
#ifndef Sketcher_CommandPOINT_H
#define Sketcher_CommandPOINT_H
#include "Sketcher_Command.hxx"
#include <AIS_Point.hxx>
DEFINE_STANDARD_HANDLE(Sketcher_CommandPoint,Sketcher_Command)
//Command entering Point
class Sketcher_CommandPoint : public Sketcher_Command
{
public:
// Type management
DEFINE_STANDARD_RTTIEXT(Sketcher_CommandPoint, Sketcher_Command)
enum PointAction { Nothing,Input_Point};
/**
* \fn Sketcher_CommandPoint()
* \brief Constructs a Sketcher_CommandPoint
*/
Standard_EXPORT Sketcher_CommandPoint();
/**
* \fn ~Sketcher_CommandPoint()
* \brief destructor
*/
Standard_EXPORT ~Sketcher_CommandPoint();
/**
* \fn Action()
* \brief turn command to active state
*/
Standard_EXPORT void Action();
/**
* \fn MouseInputEvent(const gp_Pnt2d& thePnt2d )
* \brief input event handler
* \return Standard_Boolean
* \param thePnt2d const gp_Pnt2d&
*/
Standard_EXPORT Standard_Boolean MouseInputEvent(const gp_Pnt2d& thePnt2d);
/**
* \fn MouseMoveEvent(const gp_Pnt2d& thePnt2d )
* \brief mouse move handler
* \return void
* \param thePnt2d const gp_Pnt2d&
*/
Standard_EXPORT void MouseMoveEvent(const gp_Pnt2d& thePnt2d);
/**
* \fn CancelEvent()
* \brief cancel event handler, stop entering object
* \return void
*/
Standard_EXPORT void CancelEvent();
/**
* \fn GetTypeOfMethod()
* \brief get command Method
* \return Sketcher_ObjectTypeOfMethod
*/
Standard_EXPORT Sketcher_ObjectTypeOfMethod GetTypeOfMethod();
private:
//members
PointAction myPointAction;
};
#endif