b311480e |
1 | // Created on: 2004-09-02 |
2 | // Created by: Oleg FEDYAEV |
973c2be1 |
3 | // Copyright (c) 2004-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
973c2be1 |
7 | // This library is free software; you can redistribute it and / or modify it |
8 | // under the terms of the GNU Lesser General Public version 2.1 as published |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
15 | |
4e57c75e |
16 | #include <BOPAlgo_CheckResult.ixx> |
7fd59977 |
17 | |
18 | //======================================================================= |
4e57c75e |
19 | // function: BOPAlgo_CheckResult() |
7fd59977 |
20 | // purpose: |
21 | //======================================================================= |
4e57c75e |
22 | BOPAlgo_CheckResult::BOPAlgo_CheckResult() : myStatus(BOPAlgo_CheckUnknown) |
7fd59977 |
23 | { |
24 | } |
25 | |
4e57c75e |
26 | void BOPAlgo_CheckResult::SetShape1(const TopoDS_Shape& TheShape) |
7fd59977 |
27 | { |
28 | myShape1 = TheShape; |
29 | } |
30 | |
4e57c75e |
31 | void BOPAlgo_CheckResult::AddFaultyShape1(const TopoDS_Shape& TheShape) |
7fd59977 |
32 | { |
33 | myFaulty1.Append(TheShape); |
34 | } |
35 | |
4e57c75e |
36 | void BOPAlgo_CheckResult::SetShape2(const TopoDS_Shape& TheShape) |
7fd59977 |
37 | { |
38 | myShape2 = TheShape; |
39 | } |
40 | |
4e57c75e |
41 | void BOPAlgo_CheckResult::AddFaultyShape2(const TopoDS_Shape& TheShape) |
7fd59977 |
42 | { |
43 | myFaulty2.Append(TheShape); |
44 | } |
45 | |
4e57c75e |
46 | const TopoDS_Shape& BOPAlgo_CheckResult::GetShape1() const |
7fd59977 |
47 | { |
48 | return myShape1; |
49 | } |
50 | |
4e57c75e |
51 | const TopoDS_Shape & BOPAlgo_CheckResult::GetShape2() const |
7fd59977 |
52 | { |
53 | return myShape2; |
54 | } |
55 | |
4e57c75e |
56 | const BOPCol_ListOfShape& BOPAlgo_CheckResult::GetFaultyShapes1() const |
7fd59977 |
57 | { |
58 | return myFaulty1; |
59 | } |
60 | |
4e57c75e |
61 | const BOPCol_ListOfShape& BOPAlgo_CheckResult::GetFaultyShapes2() const |
7fd59977 |
62 | { |
63 | return myFaulty2; |
64 | } |
65 | |
4e57c75e |
66 | void BOPAlgo_CheckResult::SetCheckStatus(const BOPAlgo_CheckStatus TheStatus) |
7fd59977 |
67 | { |
68 | myStatus = TheStatus; |
69 | } |
70 | |
4e57c75e |
71 | BOPAlgo_CheckStatus BOPAlgo_CheckResult::GetCheckStatus() const |
7fd59977 |
72 | { |
73 | return myStatus; |
74 | } |