0028832: MMgt_TShared can be replaced by Standard_Transient
[occt.git] / src / StepDimTol / StepDimTol_GeoTolAndGeoTolWthDatRef.cxx
CommitLineData
28a73c1f 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_GeometricToleranceWithDatumReference.hxx>
21#include <StepDimTol_GeoTolAndGeoTolWthDatRef.hxx>
22#include <StepRepr_ShapeAspect.hxx>
23#include <TCollection_HAsciiString.hxx>
24
92efcf78 25IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeoTolAndGeoTolWthDatRef,StepDimTol_GeometricTolerance)
26
28a73c1f 27//=======================================================================
28//function : StepDimTol_GeoTolAndGeoTolWthDatRef
29//purpose :
30//=======================================================================
31StepDimTol_GeoTolAndGeoTolWthDatRef::StepDimTol_GeoTolAndGeoTolWthDatRef()
32{
33}
34
35
36//=======================================================================
37//function : Init
38//purpose :
39//=======================================================================
40
41void StepDimTol_GeoTolAndGeoTolWthDatRef::Init
42 (const Handle(TCollection_HAsciiString)& theName,
43 const Handle(TCollection_HAsciiString)& theDescription,
44 const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
45 const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect,
46 const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
47 const StepDimTol_GeometricToleranceType theType)
48{
49 SetName(theName);
50 SetDescription(theDescription);
51 SetMagnitude(theMagnitude);
52 SetTolerancedShapeAspect(theTolerancedShapeAspect);
53 myGeometricToleranceWithDatumReference = theGTWDR;
54 myToleranceType = theType;
55}
56
57//=======================================================================
58//function : Init
59//purpose :
60//=======================================================================
61
62void StepDimTol_GeoTolAndGeoTolWthDatRef::Init
63 (const Handle(TCollection_HAsciiString)& theName,
64 const Handle(TCollection_HAsciiString)& theDescription,
65 const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
66 const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
67 const Handle(StepDimTol_GeometricToleranceWithDatumReference)& theGTWDR,
68 const StepDimTol_GeometricToleranceType theType)
69{
70 SetName(theName);
71 SetDescription(theDescription);
72 SetMagnitude(theMagnitude);
73 SetTolerancedShapeAspect(theTolerancedShapeAspect);
74 myGeometricToleranceWithDatumReference = theGTWDR;
75 myToleranceType = theType;
76}