0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / StepDimTol / StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol.cxx
1 // Created on: 2015-08-06
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_LengthMeasureWithUnit.hxx>
19 #include <StepBasic_MeasureWithUnit.hxx>
20 #include <StepDimTol_GeometricToleranceTarget.hxx>
21 #include <StepDimTol_GeometricToleranceWithDatumReference.hxx>
22 #include <StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol.hxx>
23 #include <StepDimTol_GeometricToleranceWithModifiers.hxx>
24 #include <StepRepr_ShapeAspect.hxx>
25 #include <TCollection_HAsciiString.hxx>
26
27 IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol,StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod)
28
29 //=======================================================================
30 //function : StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol
31 //purpose  : 
32 //=======================================================================
33 StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol::StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol()
34 {
35 }
36
37
38 //=======================================================================
39 //function : Init
40 //purpose  : 
41 //=======================================================================
42
43 void StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol::Init
44   (const Handle(TCollection_HAsciiString)& theName,
45    const Handle(TCollection_HAsciiString)& theDescription,
46    const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
47    const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
48    const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
49    const Handle(StepDimTol_GeometricToleranceWithModifiers)& theGTWM,
50    const Handle(StepBasic_LengthMeasureWithUnit)& theMaxTol,
51    const StepDimTol_GeometricToleranceType theType)
52 {
53   StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod::
54     Init(theName, theDescription, theMagnitude, theTolerancedShapeAspect, theGTWDR, theGTWM, theType);
55   myMaxTol = theMaxTol;
56 }
57
58 //=======================================================================
59 //function : Init
60 //purpose  : 
61 //=======================================================================
62
63 void StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol::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 Handle(StepBasic_LengthMeasureWithUnit)& theMaxTol,
71    const StepDimTol_GeometricToleranceType theType)
72 {
73   StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod::
74     Init(theName, theDescription, theMagnitude, theTolerancedShapeAspect, theGTWDR, theGTWM, theType);
75   myMaxTol = theMaxTol;
76 }