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 | #include <StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.ixx> |
15 | |
16 | |
17 | //======================================================================= |
18 | //function : StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol |
19 | //purpose : |
20 | //======================================================================= |
21 | |
22 | StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol() |
23 | { |
24 | } |
25 | |
26 | |
27 | //======================================================================= |
28 | //function : Init |
29 | //purpose : |
30 | //======================================================================= |
31 | |
32 | void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::Init |
33 | (const Handle(TCollection_HAsciiString)& aName, |
34 | const Handle(TCollection_HAsciiString)& aDescription, |
35 | const Handle(StepBasic_MeasureWithUnit)& aMagnitude, |
36 | const Handle(StepRepr_ShapeAspect)& aTolerancedShapeAspect, |
37 | const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR, |
38 | const Handle(StepDimTol_ModifiedGeometricTolerance)& aMGT) |
39 | { |
40 | SetName(aName); |
41 | SetDescription(aDescription); |
42 | SetMagnitude(aMagnitude); |
43 | SetTolerancedShapeAspect(aTolerancedShapeAspect); |
44 | myGeometricToleranceWithDatumReference = aGTWDR; |
45 | myModifiedGeometricTolerance = aMGT; |
46 | } |
47 | |
48 | |
49 | //======================================================================= |
50 | //function : SetGeometricToleranceWithDatumReference |
51 | //purpose : |
52 | //======================================================================= |
53 | |
54 | void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetGeometricToleranceWithDatumReference |
55 | (const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR) |
56 | { |
57 | myGeometricToleranceWithDatumReference = aGTWDR; |
58 | } |
59 | |
60 | |
61 | //======================================================================= |
62 | //function : GetGeometricToleranceWithDatumReference |
63 | //purpose : |
64 | //======================================================================= |
65 | |
66 | Handle(StepDimTol_GeometricToleranceWithDatumReference) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetGeometricToleranceWithDatumReference() const |
67 | { |
68 | return myGeometricToleranceWithDatumReference; |
69 | } |
70 | |
71 | |
72 | //======================================================================= |
73 | //function : SetModifiedGeometricTolerance |
74 | //purpose : |
75 | //======================================================================= |
76 | |
77 | void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetModifiedGeometricTolerance |
78 | (const Handle(StepDimTol_ModifiedGeometricTolerance)& aMGT) |
79 | { |
80 | myModifiedGeometricTolerance = aMGT; |
81 | } |
82 | |
83 | |
84 | //======================================================================= |
85 | //function : GetModifiedGeometricTolerance |
86 | //purpose : |
87 | //======================================================================= |
88 | |
89 | Handle(StepDimTol_ModifiedGeometricTolerance) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetModifiedGeometricTolerance() const |
90 | { |
91 | return myModifiedGeometricTolerance; |
92 | } |
93 | |
94 | |
95 | //======================================================================= |
96 | //function : SetPositionTolerance |
97 | //purpose : |
98 | //======================================================================= |
99 | |
100 | void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetPositionTolerance |
101 | (const Handle(StepDimTol_PositionTolerance)& aPT) |
102 | { |
103 | myPositionTolerance = aPT; |
104 | } |
105 | |
106 | |
107 | //======================================================================= |
108 | //function : GetPositionTolerance |
109 | //purpose : |
110 | //======================================================================= |
111 | |
112 | Handle(StepDimTol_PositionTolerance) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetPositionTolerance() const |
113 | { |
114 | return myPositionTolerance; |
115 | } |
116 | |