973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
5 | // This library is free software; you can redistribute it and/or modify it under |
6 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
7 | // by the Free Software Foundation, with special exception defined in the file |
8 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
9 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
b311480e |
13 | |
7fd59977 |
14 | |
42cf5bc1 |
15 | #include <Standard_Type.hxx> |
16 | #include <StepBasic_MeasureWithUnit.hxx> |
17 | #include <StepDimTol_GeometricToleranceWithDatumReference.hxx> |
18 | #include <StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.hxx> |
19 | #include <StepDimTol_ModifiedGeometricTolerance.hxx> |
20 | #include <StepDimTol_PositionTolerance.hxx> |
21 | #include <StepRepr_ShapeAspect.hxx> |
22 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
23 | |
24 | //======================================================================= |
25 | //function : StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol |
26 | //purpose : |
27 | //======================================================================= |
7fd59977 |
28 | StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol() |
29 | { |
30 | } |
31 | |
32 | |
33 | //======================================================================= |
34 | //function : Init |
35 | //purpose : |
36 | //======================================================================= |
37 | |
38 | void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::Init |
39 | (const Handle(TCollection_HAsciiString)& aName, |
40 | const Handle(TCollection_HAsciiString)& aDescription, |
41 | const Handle(StepBasic_MeasureWithUnit)& aMagnitude, |
42 | const Handle(StepRepr_ShapeAspect)& aTolerancedShapeAspect, |
43 | const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR, |
44 | const Handle(StepDimTol_ModifiedGeometricTolerance)& aMGT) |
45 | { |
46 | SetName(aName); |
47 | SetDescription(aDescription); |
48 | SetMagnitude(aMagnitude); |
49 | SetTolerancedShapeAspect(aTolerancedShapeAspect); |
50 | myGeometricToleranceWithDatumReference = aGTWDR; |
51 | myModifiedGeometricTolerance = aMGT; |
52 | } |
53 | |
54 | |
55 | //======================================================================= |
56 | //function : SetGeometricToleranceWithDatumReference |
57 | //purpose : |
58 | //======================================================================= |
59 | |
60 | void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetGeometricToleranceWithDatumReference |
61 | (const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR) |
62 | { |
63 | myGeometricToleranceWithDatumReference = aGTWDR; |
64 | } |
65 | |
66 | |
67 | //======================================================================= |
68 | //function : GetGeometricToleranceWithDatumReference |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | Handle(StepDimTol_GeometricToleranceWithDatumReference) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetGeometricToleranceWithDatumReference() const |
73 | { |
74 | return myGeometricToleranceWithDatumReference; |
75 | } |
76 | |
77 | |
78 | //======================================================================= |
79 | //function : SetModifiedGeometricTolerance |
80 | //purpose : |
81 | //======================================================================= |
82 | |
83 | void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetModifiedGeometricTolerance |
84 | (const Handle(StepDimTol_ModifiedGeometricTolerance)& aMGT) |
85 | { |
86 | myModifiedGeometricTolerance = aMGT; |
87 | } |
88 | |
89 | |
90 | //======================================================================= |
91 | //function : GetModifiedGeometricTolerance |
92 | //purpose : |
93 | //======================================================================= |
94 | |
95 | Handle(StepDimTol_ModifiedGeometricTolerance) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetModifiedGeometricTolerance() const |
96 | { |
97 | return myModifiedGeometricTolerance; |
98 | } |
99 | |
100 | |
101 | //======================================================================= |
102 | //function : SetPositionTolerance |
103 | //purpose : |
104 | //======================================================================= |
105 | |
106 | void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetPositionTolerance |
107 | (const Handle(StepDimTol_PositionTolerance)& aPT) |
108 | { |
109 | myPositionTolerance = aPT; |
110 | } |
111 | |
112 | |
113 | //======================================================================= |
114 | //function : GetPositionTolerance |
115 | //purpose : |
116 | //======================================================================= |
117 | |
118 | Handle(StepDimTol_PositionTolerance) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetPositionTolerance() const |
119 | { |
120 | return myPositionTolerance; |
121 | } |
122 | |