7fd59977 |
1 | // File: BOP_EdgeInfo.cxx |
2 | // Created: Mon Apr 9 10:29:58 2001 |
3 | // Author: Peter KURNEV |
4 | // <pkv@irinox> |
5 | |
6 | #include <BOP_EdgeInfo.ixx> |
7 | |
8 | //======================================================================= |
9 | // function: BOP_EdgeInfo::BOP_EdgeInfo |
10 | // purpose: |
11 | //======================================================================= |
12 | BOP_EdgeInfo::BOP_EdgeInfo() |
13 | : |
14 | myPassed(Standard_False), |
15 | myInFlag(Standard_False), |
16 | myAngle (-1.) |
17 | {} |
18 | |
19 | //======================================================================= |
20 | // function: SetEdge |
21 | // purpose: |
22 | //======================================================================= |
23 | void BOP_EdgeInfo::SetEdge(const TopoDS_Edge& anEdge) |
24 | { |
25 | myEdge=anEdge; |
26 | } |
27 | |
28 | //======================================================================= |
29 | // function: SetPassed |
30 | // purpose: |
31 | //======================================================================= |
32 | void BOP_EdgeInfo::SetPassed(const Standard_Boolean aFlag) |
33 | { |
34 | myPassed=aFlag; |
35 | } |
36 | //======================================================================= |
37 | // function: SetInFlag |
38 | // purpose: |
39 | //======================================================================= |
40 | void BOP_EdgeInfo::SetInFlag(const Standard_Boolean aFlag) |
41 | { |
42 | myInFlag=aFlag; |
43 | } |
44 | |
45 | //======================================================================= |
46 | // function: SetAngle |
47 | // purpose: |
48 | //======================================================================= |
49 | void BOP_EdgeInfo::SetAngle(const Standard_Real anAngle) |
50 | { |
51 | myAngle=anAngle; |
52 | } |
53 | |
54 | //======================================================================= |
55 | // function: Edge |
56 | // purpose: |
57 | //======================================================================= |
58 | const TopoDS_Edge& BOP_EdgeInfo::Edge()const |
59 | { |
60 | return myEdge; |
61 | } |
62 | |
63 | //======================================================================= |
64 | // function: Passed |
65 | // purpose: |
66 | //======================================================================= |
67 | Standard_Boolean BOP_EdgeInfo::Passed()const |
68 | { |
69 | return myPassed; |
70 | } |
71 | //======================================================================= |
72 | // function: IsIn |
73 | // purpose: |
74 | //======================================================================= |
75 | Standard_Boolean BOP_EdgeInfo::IsIn()const |
76 | { |
77 | return myInFlag; |
78 | } |
79 | |
80 | //======================================================================= |
81 | // function: Angle |
82 | // purpose: |
83 | //======================================================================= |
84 | Standard_Real BOP_EdgeInfo::Angle()const |
85 | { |
86 | return myAngle; |
87 | } |