1 // Created on: 2002-12-12
2 // Created by: data exchange team
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
18 #include <Standard_Type.hxx>
19 #include <StepElement_CurveElementSectionDerivedDefinitions.hxx>
20 #include <StepElement_MeasureOrUnspecifiedValue.hxx>
21 #include <TCollection_HAsciiString.hxx>
23 IMPLEMENT_STANDARD_RTTIEXT(StepElement_CurveElementSectionDerivedDefinitions,StepElement_CurveElementSectionDefinition)
25 //=======================================================================
26 //function : StepElement_CurveElementSectionDerivedDefinitions
28 //=======================================================================
29 StepElement_CurveElementSectionDerivedDefinitions::StepElement_CurveElementSectionDerivedDefinitions ()
33 //=======================================================================
36 //=======================================================================
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)
51 StepElement_CurveElementSectionDefinition::Init(aCurveElementSectionDefinition_Description,
52 aCurveElementSectionDefinition_SectionAngle);
54 theCrossSectionalArea = aCrossSectionalArea;
56 theShearArea = aShearArea;
58 theSecondMomentOfArea = aSecondMomentOfArea;
60 theTorsionalConstant = aTorsionalConstant;
62 theWarpingConstant = aWarpingConstant;
64 theLocationOfCentroid = aLocationOfCentroid;
66 theLocationOfShearCentre = aLocationOfShearCentre;
68 theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
70 theNonStructuralMass = aNonStructuralMass;
72 thePolarMoment = aPolarMoment;
75 //=======================================================================
76 //function : CrossSectionalArea
78 //=======================================================================
80 Standard_Real StepElement_CurveElementSectionDerivedDefinitions::CrossSectionalArea () const
82 return theCrossSectionalArea;
85 //=======================================================================
86 //function : SetCrossSectionalArea
88 //=======================================================================
90 void StepElement_CurveElementSectionDerivedDefinitions::SetCrossSectionalArea (const Standard_Real aCrossSectionalArea)
92 theCrossSectionalArea = aCrossSectionalArea;
95 //=======================================================================
96 //function : ShearArea
98 //=======================================================================
100 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::ShearArea () const
105 //=======================================================================
106 //function : SetShearArea
108 //=======================================================================
110 void StepElement_CurveElementSectionDerivedDefinitions::SetShearArea (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aShearArea)
112 theShearArea = aShearArea;
115 //=======================================================================
116 //function : SecondMomentOfArea
118 //=======================================================================
120 Handle(TColStd_HArray1OfReal) StepElement_CurveElementSectionDerivedDefinitions::SecondMomentOfArea () const
122 return theSecondMomentOfArea;
125 //=======================================================================
126 //function : SetSecondMomentOfArea
128 //=======================================================================
130 void StepElement_CurveElementSectionDerivedDefinitions::SetSecondMomentOfArea (const Handle(TColStd_HArray1OfReal) &aSecondMomentOfArea)
132 theSecondMomentOfArea = aSecondMomentOfArea;
135 //=======================================================================
136 //function : TorsionalConstant
138 //=======================================================================
140 Standard_Real StepElement_CurveElementSectionDerivedDefinitions::TorsionalConstant () const
142 return theTorsionalConstant;
145 //=======================================================================
146 //function : SetTorsionalConstant
148 //=======================================================================
150 void StepElement_CurveElementSectionDerivedDefinitions::SetTorsionalConstant (const Standard_Real aTorsionalConstant)
152 theTorsionalConstant = aTorsionalConstant;
155 //=======================================================================
156 //function : WarpingConstant
158 //=======================================================================
160 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::WarpingConstant () const
162 return theWarpingConstant;
165 //=======================================================================
166 //function : SetWarpingConstant
168 //=======================================================================
170 void StepElement_CurveElementSectionDerivedDefinitions::SetWarpingConstant (const StepElement_MeasureOrUnspecifiedValue &aWarpingConstant)
172 theWarpingConstant = aWarpingConstant;
175 //=======================================================================
176 //function : LocationOfCentroid
178 //=======================================================================
180 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfCentroid () const
182 return theLocationOfCentroid;
185 //=======================================================================
186 //function : SetLocationOfCentroid
188 //=======================================================================
190 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfCentroid (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfCentroid)
192 theLocationOfCentroid = aLocationOfCentroid;
195 //=======================================================================
196 //function : LocationOfShearCentre
198 //=======================================================================
200 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfShearCentre () const
202 return theLocationOfShearCentre;
205 //=======================================================================
206 //function : SetLocationOfShearCentre
208 //=======================================================================
210 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfShearCentre (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfShearCentre)
212 theLocationOfShearCentre = aLocationOfShearCentre;
215 //=======================================================================
216 //function : LocationOfNonStructuralMass
218 //=======================================================================
220 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfNonStructuralMass () const
222 return theLocationOfNonStructuralMass;
225 //=======================================================================
226 //function : SetLocationOfNonStructuralMass
228 //=======================================================================
230 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfNonStructuralMass (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfNonStructuralMass)
232 theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
235 //=======================================================================
236 //function : NonStructuralMass
238 //=======================================================================
240 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::NonStructuralMass () const
242 return theNonStructuralMass;
245 //=======================================================================
246 //function : SetNonStructuralMass
248 //=======================================================================
250 void StepElement_CurveElementSectionDerivedDefinitions::SetNonStructuralMass (const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass)
252 theNonStructuralMass = aNonStructuralMass;
255 //=======================================================================
256 //function : PolarMoment
258 //=======================================================================
260 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::PolarMoment () const
262 return thePolarMoment;
265 //=======================================================================
266 //function : SetPolarMoment
268 //=======================================================================
270 void StepElement_CurveElementSectionDerivedDefinitions::SetPolarMoment (const StepElement_MeasureOrUnspecifiedValue &aPolarMoment)
272 thePolarMoment = aPolarMoment;