-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathSketcher_SnapIntersection.hxx
89 lines (71 loc) · 1.98 KB
/
Sketcher_SnapIntersection.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
79
80
81
82
83
84
85
86
87
88
89
/**
* \file Sketcher_SnapIntersection.hxx
* \brief Header file for the class Sketcher_SnapIntersection
* \author <a href="mailto:[email protected]?subject=Sketcher_SnapIntersection.hxx">Sergei Maslov</a>
*/
#ifndef Sketcher_SNAPIntersection_H
#define Sketcher_SNAPIntersection_H
#include "Sketcher_Snap.hxx"
#include "Geom2d_Edge.hxx"
#include <Geom2d_Line.hxx>
#include <Geom2d_Curve.hxx>
#include <Geom2dAPI_InterCurveCurve.hxx>
#include <GeomAPI.hxx>
class Geom2d_Curve;
DEFINE_STANDARD_HANDLE(Sketcher_SnapIntersection,Sketcher_Snap)
//snap searching intersection point of objects
class Sketcher_SnapIntersection : public Sketcher_Snap
{
public:
// Type management
DEFINE_STANDARD_RTTIEXT(Sketcher_SnapIntersection, Sketcher_Snap)
/**
* \fn Sketcher_SnapIntersection()
* \brief Constructs a Sketcher_SnapIntersection
*/
Standard_EXPORT Sketcher_SnapIntersection();
/**
* \fn ~Sketcher_SnapIntersection()
* \brief Destructor
*/
Standard_EXPORT ~Sketcher_SnapIntersection();
/**
* \fn SelectEvent()
* \brief find new point
* \return void
*/
Standard_EXPORT void SelectEvent();
/**
* \fn GetSnapType()
* \brief get Snap type
* \return Sketcher_SnapType
*/
Standard_EXPORT Sketcher_SnapType GetSnapType();
/**
* \fn DrawRelation()
* \brief draw relation
* \return void
*/
Standard_EXPORT virtual void DrawRelation();
private:
//method
/**
* \fn findSecondObject(Standard_Integer start)
* \brief find intersection points for object with start index
* \return void
* \param start Standard_Integer
*/
Standard_EXPORT void findSecondObject(Standard_Integer start);
//members
Handle(Sketcher_Object) secondSObject;
Handle(Geom2d_Curve) cur1Geom2d_Curve;
Handle(Geom2d_Curve) cur2Geom2d_Curve;
Handle(Geom2d_Edge) cur1Geom2d_Edge;
Handle(Geom2d_Edge) cur2Geom2d_Edge;
Handle(Geom2d_Line) cur1Geom2d_Line;
Handle(Geom2d_Line) cur2Geom2d_Line;
Standard_Real bpu;
Geom2dAPI_InterCurveCurve my2dAPI_InterCurveCurve;
Handle(AIS_InteractiveObject) curHilightedObj2;
};
#endif