42cf5bc1 |
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> |
28a73c1f |
23 | #include <StepDimTol_GeometricToleranceTarget.hxx> |
42cf5bc1 |
24 | class TCollection_HAsciiString; |
25 | class StepBasic_MeasureWithUnit; |
28a73c1f |
26 | class StepDimTol_GeometricToleranceTarget; |
42cf5bc1 |
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 | |
28a73c1f |
43 | //! Initialize all fields (own and inherited) AP214 |
2f220b97 |
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); |
28a73c1f |
48 | |
49 | //! Initialize all fields (own and inherited) AP242 |
2f220b97 |
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); |
42cf5bc1 |
54 | |
55 | //! Returns field Name |
56 | Standard_EXPORT Handle(TCollection_HAsciiString) Name() const; |
57 | |
58 | //! Set field Name |
2f220b97 |
59 | Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& theName); |
42cf5bc1 |
60 | |
61 | //! Returns field Description |
62 | Standard_EXPORT Handle(TCollection_HAsciiString) Description() const; |
63 | |
64 | //! Set field Description |
2f220b97 |
65 | Standard_EXPORT void SetDescription (const Handle(TCollection_HAsciiString)& theDescription); |
42cf5bc1 |
66 | |
67 | //! Returns field Magnitude |
68 | Standard_EXPORT Handle(StepBasic_MeasureWithUnit) Magnitude() const; |
69 | |
70 | //! Set field Magnitude |
2f220b97 |
71 | Standard_EXPORT void SetMagnitude (const Handle(StepBasic_MeasureWithUnit)& theMagnitude); |
42cf5bc1 |
72 | |
73 | //! Returns field TolerancedShapeAspect |
28a73c1f |
74 | //! Note: in AP214(203) type of this attribute can be only StepRepr_ShapeAspect |
75 | Standard_EXPORT StepDimTol_GeometricToleranceTarget TolerancedShapeAspect() const; |
42cf5bc1 |
76 | |
28a73c1f |
77 | //! Set field TolerancedShapeAspect AP214 |
2f220b97 |
78 | Standard_EXPORT void SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect); |
42cf5bc1 |
79 | |
28a73c1f |
80 | //! Set field TolerancedShapeAspect AP242 |
2f220b97 |
81 | Standard_EXPORT void SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect); |
28a73c1f |
82 | |
42cf5bc1 |
83 | |
84 | |
85 | |
86 | DEFINE_STANDARD_RTTI(StepDimTol_GeometricTolerance,MMgt_TShared) |
87 | |
88 | protected: |
89 | |
90 | |
91 | |
92 | |
93 | private: |
94 | |
95 | |
2f220b97 |
96 | Handle(TCollection_HAsciiString) myName; |
97 | Handle(TCollection_HAsciiString) myDescription; |
98 | Handle(StepBasic_MeasureWithUnit) myMagnitude; |
99 | StepDimTol_GeometricToleranceTarget myTolerancedShapeAspect; |
42cf5bc1 |
100 | |
101 | |
102 | }; |
103 | |
104 | |
105 | |
106 | |
107 | |
108 | |
109 | |
110 | #endif // _StepDimTol_GeometricTolerance_HeaderFile |