b311480e |
1 | // Created on: 2003-06-04 |
2 | // Created by: Galina KULIKOVA |
973c2be1 |
3 | // Copyright (c) 2003-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
b311480e |
15 | |
7fd59977 |
16 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2 |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <Standard_Type.hxx> |
19 | #include <StepBasic_MeasureWithUnit.hxx> |
20 | #include <StepDimTol_GeometricTolerance.hxx> |
28a73c1f |
21 | #include <StepDimTol_GeometricToleranceTarget.hxx> |
42cf5bc1 |
22 | #include <StepRepr_ShapeAspect.hxx> |
23 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
24 | |
92efcf78 |
25 | IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeometricTolerance,MMgt_TShared) |
26 | |
7fd59977 |
27 | //======================================================================= |
28 | //function : StepDimTol_GeometricTolerance |
29 | //purpose : |
30 | //======================================================================= |
7fd59977 |
31 | StepDimTol_GeometricTolerance::StepDimTol_GeometricTolerance () |
32 | { |
33 | } |
34 | |
35 | //======================================================================= |
36 | //function : Init |
37 | //purpose : |
38 | //======================================================================= |
39 | |
2f220b97 |
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) |
7fd59977 |
44 | { |
45 | |
2f220b97 |
46 | myName = theName; |
7fd59977 |
47 | |
2f220b97 |
48 | myDescription = theDescription; |
7fd59977 |
49 | |
2f220b97 |
50 | myMagnitude = theMagnitude; |
7fd59977 |
51 | |
2f220b97 |
52 | myTolerancedShapeAspect = theTolerancedShapeAspect; |
7fd59977 |
53 | } |
54 | |
28a73c1f |
55 | //======================================================================= |
56 | //function : Init |
57 | //purpose : |
58 | //======================================================================= |
59 | |
2f220b97 |
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) |
28a73c1f |
64 | { |
65 | |
2f220b97 |
66 | myName = theName; |
28a73c1f |
67 | |
2f220b97 |
68 | myDescription = theDescription; |
28a73c1f |
69 | |
2f220b97 |
70 | myMagnitude = theMagnitude; |
28a73c1f |
71 | |
2f220b97 |
72 | myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect); |
28a73c1f |
73 | } |
74 | |
7fd59977 |
75 | //======================================================================= |
76 | //function : Name |
77 | //purpose : |
78 | //======================================================================= |
79 | |
80 | Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Name () const |
81 | { |
2f220b97 |
82 | return myName; |
7fd59977 |
83 | } |
84 | |
85 | //======================================================================= |
86 | //function : SetName |
87 | //purpose : |
88 | //======================================================================= |
89 | |
2f220b97 |
90 | void StepDimTol_GeometricTolerance::SetName (const Handle(TCollection_HAsciiString) &theName) |
7fd59977 |
91 | { |
2f220b97 |
92 | myName = theName; |
7fd59977 |
93 | } |
94 | |
95 | //======================================================================= |
96 | //function : Description |
97 | //purpose : |
98 | //======================================================================= |
99 | |
100 | Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Description () const |
101 | { |
2f220b97 |
102 | return myDescription; |
7fd59977 |
103 | } |
104 | |
105 | //======================================================================= |
106 | //function : SetDescription |
107 | //purpose : |
108 | //======================================================================= |
109 | |
2f220b97 |
110 | void StepDimTol_GeometricTolerance::SetDescription (const Handle(TCollection_HAsciiString) &theDescription) |
7fd59977 |
111 | { |
2f220b97 |
112 | myDescription = theDescription; |
7fd59977 |
113 | } |
114 | |
115 | //======================================================================= |
116 | //function : Magnitude |
117 | //purpose : |
118 | //======================================================================= |
119 | |
120 | Handle(StepBasic_MeasureWithUnit) StepDimTol_GeometricTolerance::Magnitude () const |
121 | { |
2f220b97 |
122 | return myMagnitude; |
7fd59977 |
123 | } |
124 | |
125 | //======================================================================= |
126 | //function : SetMagnitude |
127 | //purpose : |
128 | //======================================================================= |
129 | |
2f220b97 |
130 | void StepDimTol_GeometricTolerance::SetMagnitude (const Handle(StepBasic_MeasureWithUnit) &theMagnitude) |
7fd59977 |
131 | { |
2f220b97 |
132 | myMagnitude = theMagnitude; |
7fd59977 |
133 | } |
134 | |
135 | //======================================================================= |
136 | //function : TolerancedShapeAspect |
137 | //purpose : |
138 | //======================================================================= |
139 | |
28a73c1f |
140 | StepDimTol_GeometricToleranceTarget StepDimTol_GeometricTolerance::TolerancedShapeAspect () const |
7fd59977 |
141 | { |
2f220b97 |
142 | return myTolerancedShapeAspect; |
7fd59977 |
143 | } |
144 | |
145 | //======================================================================= |
146 | //function : SetTolerancedShapeAspect |
147 | //purpose : |
148 | //======================================================================= |
149 | |
2f220b97 |
150 | void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect) &theTolerancedShapeAspect) |
28a73c1f |
151 | { |
2f220b97 |
152 | myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect); |
28a73c1f |
153 | } |
154 | |
155 | //======================================================================= |
156 | //function : SetTolerancedShapeAspect |
157 | //purpose : |
158 | //======================================================================= |
159 | |
2f220b97 |
160 | void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect) |
7fd59977 |
161 | { |
2f220b97 |
162 | myTolerancedShapeAspect = theTolerancedShapeAspect; |
7fd59977 |
163 | } |