0028417: Using PRECOMPILED HEADER to speed up compilation time
[occt.git] / src / StepDimTol / StepDimTol_GeometricTolerance.hxx
1 // Created on: 2003-06-04
2 // Created by: Galina KULIKOVA
3 // Copyright (c) 2003-2014 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 #ifndef _StepDimTol_GeometricTolerance_HeaderFile
17 #define _StepDimTol_GeometricTolerance_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
21
22 #include <MMgt_TShared.hxx>
23 #include <StepDimTol_GeometricToleranceTarget.hxx>
24 class TCollection_HAsciiString;
25 class StepBasic_MeasureWithUnit;
26 class StepDimTol_GeometricToleranceTarget;
27 class StepRepr_ShapeAspect;
28
29
30 class StepDimTol_GeometricTolerance;
31 DEFINE_STANDARD_HANDLE(StepDimTol_GeometricTolerance, MMgt_TShared)
32
33 //! Representation of STEP entity GeometricTolerance
34 class StepDimTol_GeometricTolerance : public MMgt_TShared
35 {
36
37 public:
38
39   
40   //! Empty constructor
41   Standard_EXPORT StepDimTol_GeometricTolerance();
42   
43   //! Initialize all fields (own and inherited) AP214
44   Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theName, 
45                             const Handle(TCollection_HAsciiString)& theDescription, 
46                             const Handle(StepBasic_MeasureWithUnit)& theMagnitude, 
47                             const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect);
48
49     //! Initialize all fields (own and inherited) AP242
50   Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theName, 
51                             const Handle(TCollection_HAsciiString)& theDescription, 
52                             const Handle(StepBasic_MeasureWithUnit)& theMagnitude, 
53                             const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect);
54   
55   //! Returns field Name
56   Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
57   
58   //! Set field Name
59   Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& theName);
60   
61   //! Returns field Description
62   Standard_EXPORT Handle(TCollection_HAsciiString) Description() const;
63   
64   //! Set field Description
65   Standard_EXPORT void SetDescription (const Handle(TCollection_HAsciiString)& theDescription);
66   
67   //! Returns field Magnitude
68   Standard_EXPORT Handle(StepBasic_MeasureWithUnit) Magnitude() const;
69   
70   //! Set field Magnitude
71   Standard_EXPORT void SetMagnitude (const Handle(StepBasic_MeasureWithUnit)& theMagnitude);
72   
73   //! Returns field TolerancedShapeAspect
74   //! Note: in AP214(203) type of this attribute can be only StepRepr_ShapeAspect
75   Standard_EXPORT StepDimTol_GeometricToleranceTarget TolerancedShapeAspect() const;
76   
77   //! Set field TolerancedShapeAspect AP214
78   Standard_EXPORT void SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect);
79
80   //! Set field TolerancedShapeAspect AP242
81   Standard_EXPORT void SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect);
82
83
84
85
86   DEFINE_STANDARD_RTTIEXT(StepDimTol_GeometricTolerance,MMgt_TShared)
87
88 protected:
89
90
91
92
93 private:
94
95
96   Handle(TCollection_HAsciiString) myName;
97   Handle(TCollection_HAsciiString) myDescription;
98   Handle(StepBasic_MeasureWithUnit) myMagnitude;
99   StepDimTol_GeometricToleranceTarget myTolerancedShapeAspect;
100
101
102 };
103
104
105
106
107
108
109
110 #endif // _StepDimTol_GeometricTolerance_HeaderFile