0022627: Change OCCT memory management defaults
[occt.git] / src / BOP / BOP_CheckResult.cxx
1 // File:      BOP_CheckResult.cxx
2 // Created:   02.09.04 16:26:31
3 // Author:    Oleg FEDYAEV
4 // Copyright: Open Cascade 2003
5
6 #include <BOP_CheckResult.ixx>
7
8 //=======================================================================
9 // function:  BOP_CheckResult()
10 // purpose: 
11 //=======================================================================
12 BOP_CheckResult::BOP_CheckResult() : myStatus(BOP_CheckUnknown)
13 {
14 }
15
16 void BOP_CheckResult::SetShape1(const TopoDS_Shape& TheShape)
17 {
18   myShape1 = TheShape;
19 }
20
21 void BOP_CheckResult::AddFaultyShape1(const TopoDS_Shape& TheShape)
22 {
23   myFaulty1.Append(TheShape);
24 }
25
26 void BOP_CheckResult::SetShape2(const TopoDS_Shape& TheShape)
27 {
28   myShape2 = TheShape;
29 }
30
31 void BOP_CheckResult::AddFaultyShape2(const TopoDS_Shape& TheShape)
32 {
33   myFaulty2.Append(TheShape);
34 }
35
36 const TopoDS_Shape& BOP_CheckResult::GetShape1() const
37 {
38   return myShape1;
39 }
40
41 const TopoDS_Shape & BOP_CheckResult::GetShape2() const
42 {
43   return myShape2;
44 }
45
46 const TopTools_ListOfShape& BOP_CheckResult::GetFaultyShapes1() const
47 {
48   return myFaulty1;
49 }
50
51 const TopTools_ListOfShape& BOP_CheckResult::GetFaultyShapes2() const
52 {
53   return myFaulty2;
54 }
55
56 void BOP_CheckResult::SetCheckStatus(const BOP_CheckStatus TheStatus)
57 {
58   myStatus = TheStatus;
59 }
60
61 BOP_CheckStatus BOP_CheckResult::GetCheckStatus() const
62 {
63   return myStatus;
64 }