Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepDimTol / StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.cxx
1 #include <StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.ixx>
2
3
4 //=======================================================================
5 //function : StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol
6 //purpose  : 
7 //=======================================================================
8
9 StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol()
10 {
11 }
12
13
14 //=======================================================================
15 //function : Init
16 //purpose  : 
17 //=======================================================================
18
19 void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::Init
20   (const Handle(TCollection_HAsciiString)& aName,
21    const Handle(TCollection_HAsciiString)& aDescription,
22    const Handle(StepBasic_MeasureWithUnit)& aMagnitude,
23    const Handle(StepRepr_ShapeAspect)& aTolerancedShapeAspect,
24    const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR,
25    const Handle(StepDimTol_ModifiedGeometricTolerance)& aMGT)
26 {
27   SetName(aName);
28   SetDescription(aDescription);
29   SetMagnitude(aMagnitude);
30   SetTolerancedShapeAspect(aTolerancedShapeAspect);
31   myGeometricToleranceWithDatumReference = aGTWDR;
32   myModifiedGeometricTolerance = aMGT;
33 }
34
35
36 //=======================================================================
37 //function : SetGeometricToleranceWithDatumReference
38 //purpose  : 
39 //=======================================================================
40
41 void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetGeometricToleranceWithDatumReference
42   (const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR) 
43 {
44   myGeometricToleranceWithDatumReference = aGTWDR;
45 }
46
47
48 //=======================================================================
49 //function : GetGeometricToleranceWithDatumReference
50 //purpose  : 
51 //=======================================================================
52
53 Handle(StepDimTol_GeometricToleranceWithDatumReference) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetGeometricToleranceWithDatumReference() const
54 {
55   return myGeometricToleranceWithDatumReference;
56 }
57
58
59 //=======================================================================
60 //function : SetModifiedGeometricTolerance
61 //purpose  : 
62 //=======================================================================
63
64 void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetModifiedGeometricTolerance
65   (const Handle(StepDimTol_ModifiedGeometricTolerance)& aMGT) 
66 {
67   myModifiedGeometricTolerance = aMGT;
68 }
69
70
71 //=======================================================================
72 //function : GetModifiedGeometricTolerance
73 //purpose  : 
74 //=======================================================================
75
76 Handle(StepDimTol_ModifiedGeometricTolerance) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetModifiedGeometricTolerance() const
77 {
78   return myModifiedGeometricTolerance;
79 }
80
81
82 //=======================================================================
83 //function : SetPositionTolerance
84 //purpose  : 
85 //=======================================================================
86
87 void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetPositionTolerance
88   (const Handle(StepDimTol_PositionTolerance)& aPT) 
89 {
90   myPositionTolerance = aPT;
91 }
92
93
94 //=======================================================================
95 //function : GetPositionTolerance
96 //purpose  : 
97 //=======================================================================
98
99 Handle(StepDimTol_PositionTolerance) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetPositionTolerance() const
100 {
101   return myPositionTolerance;
102 }
103