1 // Created on: 2003-06-04
2 // Created by: Galina KULIKOVA
3 // Copyright (c) 2003-2014 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.
16 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
18 #include <Standard_Type.hxx>
19 #include <StepBasic_MeasureWithUnit.hxx>
20 #include <StepDimTol_GeometricTolerance.hxx>
21 #include <StepDimTol_GeometricToleranceTarget.hxx>
22 #include <StepRepr_ShapeAspect.hxx>
23 #include <TCollection_HAsciiString.hxx>
25 //=======================================================================
26 //function : StepDimTol_GeometricTolerance
28 //=======================================================================
29 StepDimTol_GeometricTolerance::StepDimTol_GeometricTolerance ()
33 //=======================================================================
36 //=======================================================================
38 void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString) &aName,
39 const Handle(TCollection_HAsciiString) &aDescription,
40 const Handle(StepBasic_MeasureWithUnit) &aMagnitude,
41 const StepDimTol_GeometricToleranceTarget &aTolerancedShapeAspect)
46 theDescription = aDescription;
48 theMagnitude = aMagnitude;
50 theTolerancedShapeAspect = aTolerancedShapeAspect;
53 //=======================================================================
56 //=======================================================================
58 void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString) &aName,
59 const Handle(TCollection_HAsciiString) &aDescription,
60 const Handle(StepBasic_MeasureWithUnit) &aMagnitude,
61 const Handle(StepRepr_ShapeAspect) &aTolerancedShapeAspect)
66 theDescription = aDescription;
68 theMagnitude = aMagnitude;
70 theTolerancedShapeAspect.SetValue(aTolerancedShapeAspect);
73 //=======================================================================
76 //=======================================================================
78 Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Name () const
83 //=======================================================================
86 //=======================================================================
88 void StepDimTol_GeometricTolerance::SetName (const Handle(TCollection_HAsciiString) &aName)
93 //=======================================================================
94 //function : Description
96 //=======================================================================
98 Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Description () const
100 return theDescription;
103 //=======================================================================
104 //function : SetDescription
106 //=======================================================================
108 void StepDimTol_GeometricTolerance::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
110 theDescription = aDescription;
113 //=======================================================================
114 //function : Magnitude
116 //=======================================================================
118 Handle(StepBasic_MeasureWithUnit) StepDimTol_GeometricTolerance::Magnitude () const
123 //=======================================================================
124 //function : SetMagnitude
126 //=======================================================================
128 void StepDimTol_GeometricTolerance::SetMagnitude (const Handle(StepBasic_MeasureWithUnit) &aMagnitude)
130 theMagnitude = aMagnitude;
133 //=======================================================================
134 //function : TolerancedShapeAspect
136 //=======================================================================
138 StepDimTol_GeometricToleranceTarget StepDimTol_GeometricTolerance::TolerancedShapeAspect () const
140 return theTolerancedShapeAspect;
143 //=======================================================================
144 //function : SetTolerancedShapeAspect
146 //=======================================================================
148 void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect) &aTolerancedShapeAspect)
150 theTolerancedShapeAspect.SetValue(aTolerancedShapeAspect);
153 //=======================================================================
154 //function : SetTolerancedShapeAspect
156 //=======================================================================
158 void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget &aTolerancedShapeAspect)
160 theTolerancedShapeAspect = aTolerancedShapeAspect;