7fd59977 |
1 | // File: BOPTools_CheckResult.cxx |
2 | // Created: 02.09.04 16:26:31 |
3 | // Author: Oleg FEDYAEV |
4 | // Copyright: Open Cascade 2003 |
5 | |
6 | #include <BOPTools_CheckResult.ixx> |
7 | |
8 | //======================================================================= |
9 | //function : BOPTools_CheckResult() |
10 | //purpose : |
11 | //======================================================================= |
12 | |
13 | BOPTools_CheckResult::BOPTools_CheckResult() : myStatus(BOPTools_CHKUNKNOWN), myGeometry(0) |
14 | { |
15 | } |
16 | |
17 | //======================================================================= |
18 | //function : AddShape() |
19 | //purpose : |
20 | //======================================================================= |
21 | |
22 | void BOPTools_CheckResult::AddShape(const TopoDS_Shape & TheShape) |
23 | { |
24 | myShapes.Append(TheShape); |
25 | } |
26 | |
27 | //======================================================================= |
28 | //function : GetShapes() |
29 | //purpose : |
30 | //======================================================================= |
31 | |
32 | const TopTools_ListOfShape & BOPTools_CheckResult::GetShapes() const |
33 | { |
34 | return myShapes; |
35 | } |
36 | |
37 | //======================================================================= |
38 | //function : SetCheckStatus() |
39 | //purpose : |
40 | //======================================================================= |
41 | |
42 | void BOPTools_CheckResult::SetCheckStatus(const BOPTools_CheckStatus TheStatus) |
43 | { |
44 | myStatus = TheStatus; |
45 | } |
46 | |
47 | //======================================================================= |
48 | //function : GetCheckStatus() |
49 | //purpose : |
50 | //======================================================================= |
51 | |
52 | BOPTools_CheckStatus BOPTools_CheckResult::GetCheckStatus() const |
53 | { |
54 | return myStatus; |
55 | } |
56 | |
57 | //======================================================================= |
58 | //function : SetGeometry() |
59 | //purpose : |
60 | //======================================================================= |
61 | |
62 | void BOPTools_CheckResult::SetInterferenceGeometry(const Handle(Geom_Geometry)& TheGeometry) |
63 | { |
64 | myGeometry = TheGeometry; |
65 | } |
66 | |
67 | //======================================================================= |
68 | //function : GetGeometry() |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | const Handle(Geom_Geometry)& BOPTools_CheckResult::GetInterferenceGeometry() const |
73 | { |
74 | return myGeometry; |
75 | } |