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 | |
25 | //======================================================================= |
26 | //function : StepDimTol_GeometricTolerance |
27 | //purpose : |
28 | //======================================================================= |
7fd59977 |
29 | StepDimTol_GeometricTolerance::StepDimTol_GeometricTolerance () |
30 | { |
31 | } |
32 | |
33 | //======================================================================= |
34 | //function : Init |
35 | //purpose : |
36 | //======================================================================= |
37 | |
2f220b97 |
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) |
7fd59977 |
42 | { |
43 | |
2f220b97 |
44 | myName = theName; |
7fd59977 |
45 | |
2f220b97 |
46 | myDescription = theDescription; |
7fd59977 |
47 | |
2f220b97 |
48 | myMagnitude = theMagnitude; |
7fd59977 |
49 | |
2f220b97 |
50 | myTolerancedShapeAspect = theTolerancedShapeAspect; |
7fd59977 |
51 | } |
52 | |
28a73c1f |
53 | //======================================================================= |
54 | //function : Init |
55 | //purpose : |
56 | //======================================================================= |
57 | |
2f220b97 |
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) |
28a73c1f |
62 | { |
63 | |
2f220b97 |
64 | myName = theName; |
28a73c1f |
65 | |
2f220b97 |
66 | myDescription = theDescription; |
28a73c1f |
67 | |
2f220b97 |
68 | myMagnitude = theMagnitude; |
28a73c1f |
69 | |
2f220b97 |
70 | myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect); |
28a73c1f |
71 | } |
72 | |
7fd59977 |
73 | //======================================================================= |
74 | //function : Name |
75 | //purpose : |
76 | //======================================================================= |
77 | |
78 | Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Name () const |
79 | { |
2f220b97 |
80 | return myName; |
7fd59977 |
81 | } |
82 | |
83 | //======================================================================= |
84 | //function : SetName |
85 | //purpose : |
86 | //======================================================================= |
87 | |
2f220b97 |
88 | void StepDimTol_GeometricTolerance::SetName (const Handle(TCollection_HAsciiString) &theName) |
7fd59977 |
89 | { |
2f220b97 |
90 | myName = theName; |
7fd59977 |
91 | } |
92 | |
93 | //======================================================================= |
94 | //function : Description |
95 | //purpose : |
96 | //======================================================================= |
97 | |
98 | Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Description () const |
99 | { |
2f220b97 |
100 | return myDescription; |
7fd59977 |
101 | } |
102 | |
103 | //======================================================================= |
104 | //function : SetDescription |
105 | //purpose : |
106 | //======================================================================= |
107 | |
2f220b97 |
108 | void StepDimTol_GeometricTolerance::SetDescription (const Handle(TCollection_HAsciiString) &theDescription) |
7fd59977 |
109 | { |
2f220b97 |
110 | myDescription = theDescription; |
7fd59977 |
111 | } |
112 | |
113 | //======================================================================= |
114 | //function : Magnitude |
115 | //purpose : |
116 | //======================================================================= |
117 | |
118 | Handle(StepBasic_MeasureWithUnit) StepDimTol_GeometricTolerance::Magnitude () const |
119 | { |
2f220b97 |
120 | return myMagnitude; |
7fd59977 |
121 | } |
122 | |
123 | //======================================================================= |
124 | //function : SetMagnitude |
125 | //purpose : |
126 | //======================================================================= |
127 | |
2f220b97 |
128 | void StepDimTol_GeometricTolerance::SetMagnitude (const Handle(StepBasic_MeasureWithUnit) &theMagnitude) |
7fd59977 |
129 | { |
2f220b97 |
130 | myMagnitude = theMagnitude; |
7fd59977 |
131 | } |
132 | |
133 | //======================================================================= |
134 | //function : TolerancedShapeAspect |
135 | //purpose : |
136 | //======================================================================= |
137 | |
28a73c1f |
138 | StepDimTol_GeometricToleranceTarget StepDimTol_GeometricTolerance::TolerancedShapeAspect () const |
7fd59977 |
139 | { |
2f220b97 |
140 | return myTolerancedShapeAspect; |
7fd59977 |
141 | } |
142 | |
143 | //======================================================================= |
144 | //function : SetTolerancedShapeAspect |
145 | //purpose : |
146 | //======================================================================= |
147 | |
2f220b97 |
148 | void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect) &theTolerancedShapeAspect) |
28a73c1f |
149 | { |
2f220b97 |
150 | myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect); |
28a73c1f |
151 | } |
152 | |
153 | //======================================================================= |
154 | //function : SetTolerancedShapeAspect |
155 | //purpose : |
156 | //======================================================================= |
157 | |
2f220b97 |
158 | void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect) |
7fd59977 |
159 | { |
2f220b97 |
160 | myTolerancedShapeAspect = theTolerancedShapeAspect; |
7fd59977 |
161 | } |