28a73c1f |
1 | // Created on: 2015-08-11 |
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_GeometricToleranceWithDatumReference.hxx> |
21 | #include <StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol.hxx> |
22 | #include <StepDimTol_UnequallyDisposedGeometricTolerance.hxx> |
23 | #include <StepRepr_ShapeAspect.hxx> |
24 | #include <TCollection_HAsciiString.hxx> |
25 | |
26 | //======================================================================= |
27 | //function : StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol |
28 | //purpose : |
29 | //======================================================================= |
30 | StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol::StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol() |
31 | { |
32 | } |
33 | |
34 | |
35 | //======================================================================= |
36 | //function : Init |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | void StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol::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 StepDimTol_GeometricToleranceType theType, |
47 | const Handle(StepDimTol_UnequallyDisposedGeometricTolerance)& theUDGT) |
48 | { |
49 | StepDimTol_GeoTolAndGeoTolWthDatRef::Init(theName, theDescription, theMagnitude, |
50 | theTolerancedShapeAspect, theGTWDR, theType); |
51 | myUnequallyDisposedGeometricTolerance = theUDGT; |
52 | } |
53 | |
54 | //======================================================================= |
55 | //function : Init |
56 | //purpose : |
57 | //======================================================================= |
58 | |
59 | void StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol::Init |
60 | (const Handle(TCollection_HAsciiString)& theName, |
61 | const Handle(TCollection_HAsciiString)& theDescription, |
62 | const Handle(StepBasic_MeasureWithUnit)& theMagnitude, |
63 | const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect, |
64 | const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR, |
65 | const StepDimTol_GeometricToleranceType theType, |
66 | const Handle(StepDimTol_UnequallyDisposedGeometricTolerance)& theUDGT) |
67 | { |
68 | StepDimTol_GeoTolAndGeoTolWthDatRef::Init(theName, theDescription, theMagnitude, |
69 | theTolerancedShapeAspect, theGTWDR, theType); |
70 | myUnequallyDisposedGeometricTolerance = theUDGT; |
71 | } |