0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / BOPAlgo / BOPAlgo_CheckResult.cxx
1 // Created on: 2004-09-02
2 // Created by: Oleg FEDYAEV
3 // Copyright (c) 2004-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License 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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16
17 #include <BOPAlgo_CheckResult.hxx>
18 #include <TopoDS_Shape.hxx>
19
20 //=======================================================================
21 // function:  BOPAlgo_CheckResult()
22 // purpose: 
23 //=======================================================================
24 BOPAlgo_CheckResult::BOPAlgo_CheckResult() 
25
26   myStatus(BOPAlgo_CheckUnknown),
27   myMaxDist1(0.),
28   myMaxDist2(0.),
29   myMaxPar1(0.),
30   myMaxPar2(0.)
31 {
32 }
33
34 void BOPAlgo_CheckResult::SetShape1(const TopoDS_Shape& TheShape)
35 {
36   myShape1 = TheShape;
37 }
38
39 void BOPAlgo_CheckResult::AddFaultyShape1(const TopoDS_Shape& TheShape)
40 {
41   myFaulty1.Append(TheShape);
42 }
43
44 void BOPAlgo_CheckResult::SetShape2(const TopoDS_Shape& TheShape)
45 {
46   myShape2 = TheShape;
47 }
48
49 void BOPAlgo_CheckResult::AddFaultyShape2(const TopoDS_Shape& TheShape)
50 {
51   myFaulty2.Append(TheShape);
52 }
53
54 const TopoDS_Shape& BOPAlgo_CheckResult::GetShape1() const
55 {
56   return myShape1;
57 }
58
59 const TopoDS_Shape & BOPAlgo_CheckResult::GetShape2() const
60 {
61   return myShape2;
62 }
63
64 const TopTools_ListOfShape& BOPAlgo_CheckResult::GetFaultyShapes1() const
65 {
66   return myFaulty1;
67 }
68
69 const TopTools_ListOfShape& BOPAlgo_CheckResult::GetFaultyShapes2() const
70 {
71   return myFaulty2;
72 }
73
74 void BOPAlgo_CheckResult::SetCheckStatus(const BOPAlgo_CheckStatus TheStatus)
75 {
76   myStatus = TheStatus;
77 }
78
79 BOPAlgo_CheckStatus BOPAlgo_CheckResult::GetCheckStatus() const
80 {
81   return myStatus;
82 }
83
84 void BOPAlgo_CheckResult::SetMaxDistance1(const Standard_Real theDist)
85 {
86   myMaxDist1 = theDist;
87 }
88
89 void BOPAlgo_CheckResult::SetMaxDistance2(const Standard_Real theDist)
90 {
91   myMaxDist2 = theDist;
92 }
93
94 void BOPAlgo_CheckResult::SetMaxParameter1(const Standard_Real thePar)
95 {
96   myMaxPar1 = thePar;
97 }
98
99 void BOPAlgo_CheckResult::SetMaxParameter2(const Standard_Real thePar)
100 {
101   myMaxPar2 = thePar;
102 }
103
104 Standard_Real BOPAlgo_CheckResult::GetMaxDistance1() const
105 {
106   return myMaxDist1;
107 }
108
109 Standard_Real BOPAlgo_CheckResult::GetMaxDistance2() const
110 {
111   return myMaxDist2;
112 }
113
114 Standard_Real BOPAlgo_CheckResult::GetMaxParameter1() const
115 {
116   return myMaxPar1;
117 }
118
119 Standard_Real BOPAlgo_CheckResult::GetMaxParameter2() const
120 {
121   return myMaxPar2;
122 }