0026859: Export of GDT from XCAF to STEP
[occt.git] / src / StepDimTol / StepDimTol_GeoTolAndGeoTolWthMod.cxx
1 // Created on: 2015-08-10
2 // Created by: Irina KRYLOVA
3 // Copyright (c) 2015 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16
17 #include <Standard_Type.hxx>
18 #include <StepBasic_MeasureWithUnit.hxx>
19 #include <StepDimTol_GeometricToleranceTarget.hxx>
20 #include <StepDimTol_GeoTolAndGeoTolWthMod.hxx>
21 #include <StepDimTol_GeometricToleranceWithModifiers.hxx>
22 #include <StepRepr_ShapeAspect.hxx>
23 #include <TCollection_HAsciiString.hxx>
24
25 //=======================================================================
26 //function : StepDimTol_GeoTolAndGeoTolWthMod
27 //purpose  : 
28 //=======================================================================
29 StepDimTol_GeoTolAndGeoTolWthMod::StepDimTol_GeoTolAndGeoTolWthMod()
30 {
31 }
32
33
34 //=======================================================================
35 //function : Init
36 //purpose  : 
37 //=======================================================================
38
39 void StepDimTol_GeoTolAndGeoTolWthMod::Init
40   (const Handle(TCollection_HAsciiString)& theName,
41    const Handle(TCollection_HAsciiString)& theDescription,
42    const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
43    const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
44    const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
45    const StepDimTol_GeometricToleranceType theType)
46 {
47   SetName(theName);
48   SetDescription(theDescription);
49   SetMagnitude(theMagnitude);
50   SetTolerancedShapeAspect(theTolerancedShapeAspect);
51   myGeometricToleranceWithModifiers = theGTWM;
52   myToleranceType = theType;
53 }
54
55 //=======================================================================
56 //function : Init
57 //purpose  : 
58 //=======================================================================
59
60 void StepDimTol_GeoTolAndGeoTolWthMod::Init
61   (const Handle(TCollection_HAsciiString)& theName,
62    const Handle(TCollection_HAsciiString)& theDescription,
63    const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
64    const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
65    const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
66    const StepDimTol_GeometricToleranceType theType)
67 {
68   SetName(theName);
69   SetDescription(theDescription);
70   SetMagnitude(theMagnitude);
71   SetTolerancedShapeAspect(theTolerancedShapeAspect);
72   myGeometricToleranceWithModifiers = theGTWM;
73   myToleranceType = theType;
74 }