1 // Created on: 2015-08-11
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_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol.hxx>
22 #include <StepDimTol_UnequallyDisposedGeometricTolerance.hxx>
23 #include <StepRepr_ShapeAspect.hxx>
24 #include <TCollection_HAsciiString.hxx>
26 IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol,StepDimTol_GeoTolAndGeoTolWthDatRef)
28 //=======================================================================
29 //function : StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol
31 //=======================================================================
32 StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol::StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol()
37 //=======================================================================
40 //=======================================================================
42 void StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol::Init
43 (const Handle(TCollection_HAsciiString)& theName,
44 const Handle(TCollection_HAsciiString)& theDescription,
45 const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
46 const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
47 const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
48 const StepDimTol_GeometricToleranceType theType,
49 const Handle(StepDimTol_UnequallyDisposedGeometricTolerance)& theUDGT)
51 StepDimTol_GeoTolAndGeoTolWthDatRef::Init(theName, theDescription, theMagnitude,
52 theTolerancedShapeAspect, theGTWDR, theType);
53 myUnequallyDisposedGeometricTolerance = theUDGT;
56 //=======================================================================
59 //=======================================================================
61 void StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol::Init
62 (const Handle(TCollection_HAsciiString)& theName,
63 const Handle(TCollection_HAsciiString)& theDescription,
64 const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
65 const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
66 const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
67 const StepDimTol_GeometricToleranceType theType,
68 const Handle(StepDimTol_UnequallyDisposedGeometricTolerance)& theUDGT)
70 StepDimTol_GeoTolAndGeoTolWthDatRef::Init(theName, theDescription, theMagnitude,
71 theTolerancedShapeAspect, theGTWDR, theType);
72 myUnequallyDisposedGeometricTolerance = theUDGT;