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) &theName,
39 const Handle(TCollection_HAsciiString) &theDescription,
40 const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
41 const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect)
46 myDescription = theDescription;
48 myMagnitude = theMagnitude;
50 myTolerancedShapeAspect = theTolerancedShapeAspect;
53 //=======================================================================
56 //=======================================================================
58 void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theName,
59 const Handle(TCollection_HAsciiString) &theDescription,
60 const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
61 const Handle(StepRepr_ShapeAspect) &theTolerancedShapeAspect)
66 myDescription = theDescription;
68 myMagnitude = theMagnitude;
70 myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect);
73 //=======================================================================
76 //=======================================================================
78 Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Name () const
83 //=======================================================================
86 //=======================================================================
88 void StepDimTol_GeometricTolerance::SetName (const Handle(TCollection_HAsciiString) &theName)
93 //=======================================================================
94 //function : Description
96 //=======================================================================
98 Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Description () const
100 return myDescription;
103 //=======================================================================
104 //function : SetDescription
106 //=======================================================================
108 void StepDimTol_GeometricTolerance::SetDescription (const Handle(TCollection_HAsciiString) &theDescription)
110 myDescription = theDescription;
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) &theMagnitude)
130 myMagnitude = theMagnitude;
133 //=======================================================================
134 //function : TolerancedShapeAspect
136 //=======================================================================
138 StepDimTol_GeometricToleranceTarget StepDimTol_GeometricTolerance::TolerancedShapeAspect () const
140 return myTolerancedShapeAspect;
143 //=======================================================================
144 //function : SetTolerancedShapeAspect
146 //=======================================================================
148 void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect) &theTolerancedShapeAspect)
150 myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect);
153 //=======================================================================
154 //function : SetTolerancedShapeAspect
156 //=======================================================================
158 void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect)
160 myTolerancedShapeAspect = theTolerancedShapeAspect;