1 // Created on: 2015-08-06
2 // Created by: Irina KRYLOVA
3 // Copyright (c) 2015 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
17 #include <Standard_Type.hxx>
18 #include <StepBasic_MeasureWithUnit.hxx>
19 #include <StepDimTol_GeometricToleranceTarget.hxx>
20 #include <StepDimTol_GeometricToleranceWithDatumReference.hxx>
21 #include <StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod.hxx>
22 #include <StepDimTol_GeometricToleranceWithModifiers.hxx>
23 #include <StepRepr_ShapeAspect.hxx>
24 #include <TCollection_HAsciiString.hxx>
26 //=======================================================================
27 //function : StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod
29 //=======================================================================
30 StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod::StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod()
35 //=======================================================================
38 //=======================================================================
40 void StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod::Init
41 (const Handle(TCollection_HAsciiString)& theName,
42 const Handle(TCollection_HAsciiString)& theDescription,
43 const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
44 const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
45 const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
46 const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
47 const StepDimTol_GeometricToleranceType theType)
50 SetDescription(theDescription);
51 SetMagnitude(theMagnitude);
52 SetTolerancedShapeAspect(theTolerancedShapeAspect);
53 myGeometricToleranceWithDatumReference = theGTWDR;
54 myGeometricToleranceWithModifiers = theGTWM;
55 myToleranceType = theType;
58 //=======================================================================
61 //=======================================================================
63 void StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod::Init
64 (const Handle(TCollection_HAsciiString)& theName,
65 const Handle(TCollection_HAsciiString)& theDescription,
66 const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
67 const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
68 const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
69 const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
70 const StepDimTol_GeometricToleranceType theType)
73 SetDescription(theDescription);
74 SetMagnitude(theMagnitude);
75 SetTolerancedShapeAspect(theTolerancedShapeAspect);
76 myGeometricToleranceWithDatumReference = theGTWDR;
77 myGeometricToleranceWithModifiers = theGTWM;
78 myToleranceType = theType;