1 #include <StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol.ixx>
4 //=======================================================================
5 //function : StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol
7 //=======================================================================
9 StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol()
14 //=======================================================================
17 //=======================================================================
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)
28 SetDescription(aDescription);
29 SetMagnitude(aMagnitude);
30 SetTolerancedShapeAspect(aTolerancedShapeAspect);
31 myGeometricToleranceWithDatumReference = aGTWDR;
32 myModifiedGeometricTolerance = aMGT;
36 //=======================================================================
37 //function : SetGeometricToleranceWithDatumReference
39 //=======================================================================
41 void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetGeometricToleranceWithDatumReference
42 (const Handle(StepDimTol_GeometricToleranceWithDatumReference)& aGTWDR)
44 myGeometricToleranceWithDatumReference = aGTWDR;
48 //=======================================================================
49 //function : GetGeometricToleranceWithDatumReference
51 //=======================================================================
53 Handle(StepDimTol_GeometricToleranceWithDatumReference) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetGeometricToleranceWithDatumReference() const
55 return myGeometricToleranceWithDatumReference;
59 //=======================================================================
60 //function : SetModifiedGeometricTolerance
62 //=======================================================================
64 void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetModifiedGeometricTolerance
65 (const Handle(StepDimTol_ModifiedGeometricTolerance)& aMGT)
67 myModifiedGeometricTolerance = aMGT;
71 //=======================================================================
72 //function : GetModifiedGeometricTolerance
74 //=======================================================================
76 Handle(StepDimTol_ModifiedGeometricTolerance) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetModifiedGeometricTolerance() const
78 return myModifiedGeometricTolerance;
82 //=======================================================================
83 //function : SetPositionTolerance
85 //=======================================================================
87 void StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::SetPositionTolerance
88 (const Handle(StepDimTol_PositionTolerance)& aPT)
90 myPositionTolerance = aPT;
94 //=======================================================================
95 //function : GetPositionTolerance
97 //=======================================================================
99 Handle(StepDimTol_PositionTolerance) StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::GetPositionTolerance() const
101 return myPositionTolerance;