1 // Created on: 2002-12-12
2 // Created by: data exchange team
3 // Copyright (c) 2002-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 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
17
18 #include <Standard_Type.hxx>
19 #include <StepElement_CurveElementSectionDerivedDefinitions.hxx>
20 #include <StepElement_MeasureOrUnspecifiedValue.hxx>
21 #include <TCollection_HAsciiString.hxx>
22
IMPLEMENT_STANDARD_RTTIEXT(StepElement_CurveElementSectionDerivedDefinitions,StepElement_CurveElementSectionDefinition)23 IMPLEMENT_STANDARD_RTTIEXT(StepElement_CurveElementSectionDerivedDefinitions,StepElement_CurveElementSectionDefinition)
24
25 //=======================================================================
26 //function : StepElement_CurveElementSectionDerivedDefinitions
27 //purpose :
28 //=======================================================================
29 StepElement_CurveElementSectionDerivedDefinitions::StepElement_CurveElementSectionDerivedDefinitions ()
30 {
31 }
32
33 //=======================================================================
34 //function : Init
35 //purpose :
36 //=======================================================================
37
Init(const Handle (TCollection_HAsciiString)& aCurveElementSectionDefinition_Description,const Standard_Real aCurveElementSectionDefinition_SectionAngle,const Standard_Real aCrossSectionalArea,const Handle (StepElement_HArray1OfMeasureOrUnspecifiedValue)& aShearArea,const Handle (TColStd_HArray1OfReal)& aSecondMomentOfArea,const Standard_Real aTorsionalConstant,const StepElement_MeasureOrUnspecifiedValue & aWarpingConstant,const Handle (StepElement_HArray1OfMeasureOrUnspecifiedValue)& aLocationOfCentroid,const Handle (StepElement_HArray1OfMeasureOrUnspecifiedValue)& aLocationOfShearCentre,const Handle (StepElement_HArray1OfMeasureOrUnspecifiedValue)& aLocationOfNonStructuralMass,const StepElement_MeasureOrUnspecifiedValue & aNonStructuralMass,const StepElement_MeasureOrUnspecifiedValue & aPolarMoment)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
CrossSectionalArea() const80 Standard_Real StepElement_CurveElementSectionDerivedDefinitions::CrossSectionalArea () const
81 {
82 return theCrossSectionalArea;
83 }
84
85 //=======================================================================
86 //function : SetCrossSectionalArea
87 //purpose :
88 //=======================================================================
89
SetCrossSectionalArea(const Standard_Real aCrossSectionalArea)90 void StepElement_CurveElementSectionDerivedDefinitions::SetCrossSectionalArea (const Standard_Real aCrossSectionalArea)
91 {
92 theCrossSectionalArea = aCrossSectionalArea;
93 }
94
95 //=======================================================================
96 //function : ShearArea
97 //purpose :
98 //=======================================================================
99
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue)100 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::ShearArea () const
101 {
102 return theShearArea;
103 }
104
105 //=======================================================================
106 //function : SetShearArea
107 //purpose :
108 //=======================================================================
109
SetShearArea(const Handle (StepElement_HArray1OfMeasureOrUnspecifiedValue)& aShearArea)110 void StepElement_CurveElementSectionDerivedDefinitions::SetShearArea (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aShearArea)
111 {
112 theShearArea = aShearArea;
113 }
114
115 //=======================================================================
116 //function : SecondMomentOfArea
117 //purpose :
118 //=======================================================================
119
Handle(TColStd_HArray1OfReal)120 Handle(TColStd_HArray1OfReal) StepElement_CurveElementSectionDerivedDefinitions::SecondMomentOfArea () const
121 {
122 return theSecondMomentOfArea;
123 }
124
125 //=======================================================================
126 //function : SetSecondMomentOfArea
127 //purpose :
128 //=======================================================================
129
SetSecondMomentOfArea(const Handle (TColStd_HArray1OfReal)& aSecondMomentOfArea)130 void StepElement_CurveElementSectionDerivedDefinitions::SetSecondMomentOfArea (const Handle(TColStd_HArray1OfReal) &aSecondMomentOfArea)
131 {
132 theSecondMomentOfArea = aSecondMomentOfArea;
133 }
134
135 //=======================================================================
136 //function : TorsionalConstant
137 //purpose :
138 //=======================================================================
139
TorsionalConstant() const140 Standard_Real StepElement_CurveElementSectionDerivedDefinitions::TorsionalConstant () const
141 {
142 return theTorsionalConstant;
143 }
144
145 //=======================================================================
146 //function : SetTorsionalConstant
147 //purpose :
148 //=======================================================================
149
SetTorsionalConstant(const Standard_Real aTorsionalConstant)150 void StepElement_CurveElementSectionDerivedDefinitions::SetTorsionalConstant (const Standard_Real aTorsionalConstant)
151 {
152 theTorsionalConstant = aTorsionalConstant;
153 }
154
155 //=======================================================================
156 //function : WarpingConstant
157 //purpose :
158 //=======================================================================
159
WarpingConstant() const160 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::WarpingConstant () const
161 {
162 return theWarpingConstant;
163 }
164
165 //=======================================================================
166 //function : SetWarpingConstant
167 //purpose :
168 //=======================================================================
169
SetWarpingConstant(const StepElement_MeasureOrUnspecifiedValue & aWarpingConstant)170 void StepElement_CurveElementSectionDerivedDefinitions::SetWarpingConstant (const StepElement_MeasureOrUnspecifiedValue &aWarpingConstant)
171 {
172 theWarpingConstant = aWarpingConstant;
173 }
174
175 //=======================================================================
176 //function : LocationOfCentroid
177 //purpose :
178 //=======================================================================
179
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue)180 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfCentroid () const
181 {
182 return theLocationOfCentroid;
183 }
184
185 //=======================================================================
186 //function : SetLocationOfCentroid
187 //purpose :
188 //=======================================================================
189
SetLocationOfCentroid(const Handle (StepElement_HArray1OfMeasureOrUnspecifiedValue)& aLocationOfCentroid)190 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfCentroid (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfCentroid)
191 {
192 theLocationOfCentroid = aLocationOfCentroid;
193 }
194
195 //=======================================================================
196 //function : LocationOfShearCentre
197 //purpose :
198 //=======================================================================
199
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue)200 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfShearCentre () const
201 {
202 return theLocationOfShearCentre;
203 }
204
205 //=======================================================================
206 //function : SetLocationOfShearCentre
207 //purpose :
208 //=======================================================================
209
SetLocationOfShearCentre(const Handle (StepElement_HArray1OfMeasureOrUnspecifiedValue)& aLocationOfShearCentre)210 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfShearCentre (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfShearCentre)
211 {
212 theLocationOfShearCentre = aLocationOfShearCentre;
213 }
214
215 //=======================================================================
216 //function : LocationOfNonStructuralMass
217 //purpose :
218 //=======================================================================
219
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue)220 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfNonStructuralMass () const
221 {
222 return theLocationOfNonStructuralMass;
223 }
224
225 //=======================================================================
226 //function : SetLocationOfNonStructuralMass
227 //purpose :
228 //=======================================================================
229
SetLocationOfNonStructuralMass(const Handle (StepElement_HArray1OfMeasureOrUnspecifiedValue)& aLocationOfNonStructuralMass)230 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfNonStructuralMass (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfNonStructuralMass)
231 {
232 theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
233 }
234
235 //=======================================================================
236 //function : NonStructuralMass
237 //purpose :
238 //=======================================================================
239
NonStructuralMass() const240 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::NonStructuralMass () const
241 {
242 return theNonStructuralMass;
243 }
244
245 //=======================================================================
246 //function : SetNonStructuralMass
247 //purpose :
248 //=======================================================================
249
SetNonStructuralMass(const StepElement_MeasureOrUnspecifiedValue & aNonStructuralMass)250 void StepElement_CurveElementSectionDerivedDefinitions::SetNonStructuralMass (const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass)
251 {
252 theNonStructuralMass = aNonStructuralMass;
253 }
254
255 //=======================================================================
256 //function : PolarMoment
257 //purpose :
258 //=======================================================================
259
PolarMoment() const260 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::PolarMoment () const
261 {
262 return thePolarMoment;
263 }
264
265 //=======================================================================
266 //function : SetPolarMoment
267 //purpose :
268 //=======================================================================
269
SetPolarMoment(const StepElement_MeasureOrUnspecifiedValue & aPolarMoment)270 void StepElement_CurveElementSectionDerivedDefinitions::SetPolarMoment (const StepElement_MeasureOrUnspecifiedValue &aPolarMoment)
271 {
272 thePolarMoment = aPolarMoment;
273 }
274