Test for 0022778: Bug in BRepMesh
[occt.git] / src / StepElement / StepElement_CurveElementSectionDerivedDefinitions.cxx
1 // Created on: 2002-12-12
2 // Created by: data exchange team
3 // Copyright (c) 2002-2012 OPEN CASCADE SAS
4 //
5 // The content of this file is subject to the Open CASCADE Technology Public
6 // License Version 6.5 (the "License"). You may not use the content of this file
7 // except in compliance with the License. Please obtain a copy of the License
8 // at http://www.opencascade.org and read it completely before using this file.
9 //
10 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12 //
13 // The Original Code and all software distributed under the License is
14 // distributed on an "AS IS" basis, without warranty of any kind, and the
15 // Initial Developer hereby disclaims all such warranties, including without
16 // limitation, any warranties of merchantability, fitness for a particular
17 // purpose or non-infringement. Please see the License for the specific terms
18 // and conditions governing the rights and limitations under the License.
19
20 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
21
22 #include <StepElement_CurveElementSectionDerivedDefinitions.ixx>
23
24 //=======================================================================
25 //function : StepElement_CurveElementSectionDerivedDefinitions
26 //purpose  : 
27 //=======================================================================
28
29 StepElement_CurveElementSectionDerivedDefinitions::StepElement_CurveElementSectionDerivedDefinitions ()
30 {
31 }
32
33 //=======================================================================
34 //function : Init
35 //purpose  : 
36 //=======================================================================
37
38 void StepElement_CurveElementSectionDerivedDefinitions::Init (const Handle(TCollection_HAsciiString) &aCurveElementSectionDefinition_Description,
39                                                               const Standard_Real aCurveElementSectionDefinition_SectionAngle,
40                                                               const Standard_Real aCrossSectionalArea,
41                                                               const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aShearArea,
42                                                               const Handle(TColStd_HArray1OfReal) &aSecondMomentOfArea,
43                                                               const Standard_Real aTorsionalConstant,
44                                                               const StepElement_MeasureOrUnspecifiedValue &aWarpingConstant,
45                                                               const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfCentroid,
46                                                               const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfShearCentre,
47                                                               const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfNonStructuralMass,
48                                                               const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass,
49                                                               const StepElement_MeasureOrUnspecifiedValue &aPolarMoment)
50 {
51   StepElement_CurveElementSectionDefinition::Init(aCurveElementSectionDefinition_Description,
52                                                   aCurveElementSectionDefinition_SectionAngle);
53
54   theCrossSectionalArea = aCrossSectionalArea;
55
56   theShearArea = aShearArea;
57
58   theSecondMomentOfArea = aSecondMomentOfArea;
59
60   theTorsionalConstant = aTorsionalConstant;
61
62   theWarpingConstant = aWarpingConstant;
63
64   theLocationOfCentroid = aLocationOfCentroid;
65
66   theLocationOfShearCentre = aLocationOfShearCentre;
67
68   theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
69
70   theNonStructuralMass = aNonStructuralMass;
71
72   thePolarMoment = aPolarMoment;
73 }
74
75 //=======================================================================
76 //function : CrossSectionalArea
77 //purpose  : 
78 //=======================================================================
79
80 Standard_Real StepElement_CurveElementSectionDerivedDefinitions::CrossSectionalArea () const
81 {
82   return theCrossSectionalArea;
83 }
84
85 //=======================================================================
86 //function : SetCrossSectionalArea
87 //purpose  : 
88 //=======================================================================
89
90 void StepElement_CurveElementSectionDerivedDefinitions::SetCrossSectionalArea (const Standard_Real aCrossSectionalArea)
91 {
92   theCrossSectionalArea = aCrossSectionalArea;
93 }
94
95 //=======================================================================
96 //function : ShearArea
97 //purpose  : 
98 //=======================================================================
99
100 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::ShearArea () const
101 {
102   return theShearArea;
103 }
104
105 //=======================================================================
106 //function : SetShearArea
107 //purpose  : 
108 //=======================================================================
109
110 void StepElement_CurveElementSectionDerivedDefinitions::SetShearArea (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aShearArea)
111 {
112   theShearArea = aShearArea;
113 }
114
115 //=======================================================================
116 //function : SecondMomentOfArea
117 //purpose  : 
118 //=======================================================================
119
120 Handle(TColStd_HArray1OfReal) StepElement_CurveElementSectionDerivedDefinitions::SecondMomentOfArea () const
121 {
122   return theSecondMomentOfArea;
123 }
124
125 //=======================================================================
126 //function : SetSecondMomentOfArea
127 //purpose  : 
128 //=======================================================================
129
130 void StepElement_CurveElementSectionDerivedDefinitions::SetSecondMomentOfArea (const Handle(TColStd_HArray1OfReal) &aSecondMomentOfArea)
131 {
132   theSecondMomentOfArea = aSecondMomentOfArea;
133 }
134
135 //=======================================================================
136 //function : TorsionalConstant
137 //purpose  : 
138 //=======================================================================
139
140 Standard_Real StepElement_CurveElementSectionDerivedDefinitions::TorsionalConstant () const
141 {
142   return theTorsionalConstant;
143 }
144
145 //=======================================================================
146 //function : SetTorsionalConstant
147 //purpose  : 
148 //=======================================================================
149
150 void StepElement_CurveElementSectionDerivedDefinitions::SetTorsionalConstant (const Standard_Real aTorsionalConstant)
151 {
152   theTorsionalConstant = aTorsionalConstant;
153 }
154
155 //=======================================================================
156 //function : WarpingConstant
157 //purpose  : 
158 //=======================================================================
159
160 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::WarpingConstant () const
161 {
162   return theWarpingConstant;
163 }
164
165 //=======================================================================
166 //function : SetWarpingConstant
167 //purpose  : 
168 //=======================================================================
169
170 void StepElement_CurveElementSectionDerivedDefinitions::SetWarpingConstant (const StepElement_MeasureOrUnspecifiedValue &aWarpingConstant)
171 {
172   theWarpingConstant = aWarpingConstant;
173 }
174
175 //=======================================================================
176 //function : LocationOfCentroid
177 //purpose  : 
178 //=======================================================================
179
180 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfCentroid () const
181 {
182   return theLocationOfCentroid;
183 }
184
185 //=======================================================================
186 //function : SetLocationOfCentroid
187 //purpose  : 
188 //=======================================================================
189
190 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfCentroid (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfCentroid)
191 {
192   theLocationOfCentroid = aLocationOfCentroid;
193 }
194
195 //=======================================================================
196 //function : LocationOfShearCentre
197 //purpose  : 
198 //=======================================================================
199
200 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfShearCentre () const
201 {
202   return theLocationOfShearCentre;
203 }
204
205 //=======================================================================
206 //function : SetLocationOfShearCentre
207 //purpose  : 
208 //=======================================================================
209
210 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfShearCentre (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfShearCentre)
211 {
212   theLocationOfShearCentre = aLocationOfShearCentre;
213 }
214
215 //=======================================================================
216 //function : LocationOfNonStructuralMass
217 //purpose  : 
218 //=======================================================================
219
220 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfNonStructuralMass () const
221 {
222   return theLocationOfNonStructuralMass;
223 }
224
225 //=======================================================================
226 //function : SetLocationOfNonStructuralMass
227 //purpose  : 
228 //=======================================================================
229
230 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfNonStructuralMass (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfNonStructuralMass)
231 {
232   theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
233 }
234
235 //=======================================================================
236 //function : NonStructuralMass
237 //purpose  : 
238 //=======================================================================
239
240 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::NonStructuralMass () const
241 {
242   return theNonStructuralMass;
243 }
244
245 //=======================================================================
246 //function : SetNonStructuralMass
247 //purpose  : 
248 //=======================================================================
249
250 void StepElement_CurveElementSectionDerivedDefinitions::SetNonStructuralMass (const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass)
251 {
252   theNonStructuralMass = aNonStructuralMass;
253 }
254
255 //=======================================================================
256 //function : PolarMoment
257 //purpose  : 
258 //=======================================================================
259
260 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::PolarMoment () const
261 {
262   return thePolarMoment;
263 }
264
265 //=======================================================================
266 //function : SetPolarMoment
267 //purpose  : 
268 //=======================================================================
269
270 void StepElement_CurveElementSectionDerivedDefinitions::SetPolarMoment (const StepElement_MeasureOrUnspecifiedValue &aPolarMoment)
271 {
272   thePolarMoment = aPolarMoment;
273 }