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 IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeometricTolerance,MMgt_TShared)
27 //=======================================================================
28 //function : StepDimTol_GeometricTolerance
30 //=======================================================================
31 StepDimTol_GeometricTolerance::StepDimTol_GeometricTolerance ()
35 //=======================================================================
38 //=======================================================================
40 void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theName,
41 const Handle(TCollection_HAsciiString) &theDescription,
42 const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
43 const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect)
48 myDescription = theDescription;
50 myMagnitude = theMagnitude;
52 myTolerancedShapeAspect = theTolerancedShapeAspect;
55 //=======================================================================
58 //=======================================================================
60 void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theName,
61 const Handle(TCollection_HAsciiString) &theDescription,
62 const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
63 const Handle(StepRepr_ShapeAspect) &theTolerancedShapeAspect)
68 myDescription = theDescription;
70 myMagnitude = theMagnitude;
72 myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect);
75 //=======================================================================
78 //=======================================================================
80 Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Name () const
85 //=======================================================================
88 //=======================================================================
90 void StepDimTol_GeometricTolerance::SetName (const Handle(TCollection_HAsciiString) &theName)
95 //=======================================================================
96 //function : Description
98 //=======================================================================
100 Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Description () const
102 return myDescription;
105 //=======================================================================
106 //function : SetDescription
108 //=======================================================================
110 void StepDimTol_GeometricTolerance::SetDescription (const Handle(TCollection_HAsciiString) &theDescription)
112 myDescription = theDescription;
115 //=======================================================================
116 //function : Magnitude
118 //=======================================================================
120 Handle(StepBasic_MeasureWithUnit) StepDimTol_GeometricTolerance::Magnitude () const
125 //=======================================================================
126 //function : SetMagnitude
128 //=======================================================================
130 void StepDimTol_GeometricTolerance::SetMagnitude (const Handle(StepBasic_MeasureWithUnit) &theMagnitude)
132 myMagnitude = theMagnitude;
135 //=======================================================================
136 //function : TolerancedShapeAspect
138 //=======================================================================
140 StepDimTol_GeometricToleranceTarget StepDimTol_GeometricTolerance::TolerancedShapeAspect () const
142 return myTolerancedShapeAspect;
145 //=======================================================================
146 //function : SetTolerancedShapeAspect
148 //=======================================================================
150 void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect) &theTolerancedShapeAspect)
152 myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect);
155 //=======================================================================
156 //function : SetTolerancedShapeAspect
158 //=======================================================================
160 void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect)
162 myTolerancedShapeAspect = theTolerancedShapeAspect;