1 // Created on: 2015-08-10
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 <StepBasic_MeasureWithUnit.hxx>
18 #include <StepDimTol_GeoTolAndGeoTolWthMod.hxx>
19 #include <StepDimTol_GeometricToleranceWithModifiers.hxx>
20 #include <StepRepr_ShapeAspect.hxx>
21 #include <TCollection_HAsciiString.hxx>
23 IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeoTolAndGeoTolWthMod,StepDimTol_GeometricTolerance)
25 //=======================================================================
26 //function : StepDimTol_GeoTolAndGeoTolWthMod
28 //=======================================================================
29 StepDimTol_GeoTolAndGeoTolWthMod::StepDimTol_GeoTolAndGeoTolWthMod()
34 //=======================================================================
37 //=======================================================================
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)
48 SetDescription(theDescription);
49 SetMagnitude(theMagnitude);
50 SetTolerancedShapeAspect(theTolerancedShapeAspect);
51 myGeometricToleranceWithModifiers = theGTWM;
52 myToleranceType = theType;
55 //=======================================================================
58 //=======================================================================
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)
69 SetDescription(theDescription);
70 SetMagnitude(theMagnitude);
71 SetTolerancedShapeAspect(theTolerancedShapeAspect);
72 myGeometricToleranceWithModifiers = theGTWM;
73 myToleranceType = theType;