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 <StepElement_CurveElementSectionDerivedDefinitions.ixx>
20 //=======================================================================
21 //function : StepElement_CurveElementSectionDerivedDefinitions
23 //=======================================================================
25 StepElement_CurveElementSectionDerivedDefinitions::StepElement_CurveElementSectionDerivedDefinitions ()
29 //=======================================================================
32 //=======================================================================
34 void StepElement_CurveElementSectionDerivedDefinitions::Init (const Handle(TCollection_HAsciiString) &aCurveElementSectionDefinition_Description,
35 const Standard_Real aCurveElementSectionDefinition_SectionAngle,
36 const Standard_Real aCrossSectionalArea,
37 const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aShearArea,
38 const Handle(TColStd_HArray1OfReal) &aSecondMomentOfArea,
39 const Standard_Real aTorsionalConstant,
40 const StepElement_MeasureOrUnspecifiedValue &aWarpingConstant,
41 const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfCentroid,
42 const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfShearCentre,
43 const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfNonStructuralMass,
44 const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass,
45 const StepElement_MeasureOrUnspecifiedValue &aPolarMoment)
47 StepElement_CurveElementSectionDefinition::Init(aCurveElementSectionDefinition_Description,
48 aCurveElementSectionDefinition_SectionAngle);
50 theCrossSectionalArea = aCrossSectionalArea;
52 theShearArea = aShearArea;
54 theSecondMomentOfArea = aSecondMomentOfArea;
56 theTorsionalConstant = aTorsionalConstant;
58 theWarpingConstant = aWarpingConstant;
60 theLocationOfCentroid = aLocationOfCentroid;
62 theLocationOfShearCentre = aLocationOfShearCentre;
64 theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
66 theNonStructuralMass = aNonStructuralMass;
68 thePolarMoment = aPolarMoment;
71 //=======================================================================
72 //function : CrossSectionalArea
74 //=======================================================================
76 Standard_Real StepElement_CurveElementSectionDerivedDefinitions::CrossSectionalArea () const
78 return theCrossSectionalArea;
81 //=======================================================================
82 //function : SetCrossSectionalArea
84 //=======================================================================
86 void StepElement_CurveElementSectionDerivedDefinitions::SetCrossSectionalArea (const Standard_Real aCrossSectionalArea)
88 theCrossSectionalArea = aCrossSectionalArea;
91 //=======================================================================
92 //function : ShearArea
94 //=======================================================================
96 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::ShearArea () const
101 //=======================================================================
102 //function : SetShearArea
104 //=======================================================================
106 void StepElement_CurveElementSectionDerivedDefinitions::SetShearArea (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aShearArea)
108 theShearArea = aShearArea;
111 //=======================================================================
112 //function : SecondMomentOfArea
114 //=======================================================================
116 Handle(TColStd_HArray1OfReal) StepElement_CurveElementSectionDerivedDefinitions::SecondMomentOfArea () const
118 return theSecondMomentOfArea;
121 //=======================================================================
122 //function : SetSecondMomentOfArea
124 //=======================================================================
126 void StepElement_CurveElementSectionDerivedDefinitions::SetSecondMomentOfArea (const Handle(TColStd_HArray1OfReal) &aSecondMomentOfArea)
128 theSecondMomentOfArea = aSecondMomentOfArea;
131 //=======================================================================
132 //function : TorsionalConstant
134 //=======================================================================
136 Standard_Real StepElement_CurveElementSectionDerivedDefinitions::TorsionalConstant () const
138 return theTorsionalConstant;
141 //=======================================================================
142 //function : SetTorsionalConstant
144 //=======================================================================
146 void StepElement_CurveElementSectionDerivedDefinitions::SetTorsionalConstant (const Standard_Real aTorsionalConstant)
148 theTorsionalConstant = aTorsionalConstant;
151 //=======================================================================
152 //function : WarpingConstant
154 //=======================================================================
156 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::WarpingConstant () const
158 return theWarpingConstant;
161 //=======================================================================
162 //function : SetWarpingConstant
164 //=======================================================================
166 void StepElement_CurveElementSectionDerivedDefinitions::SetWarpingConstant (const StepElement_MeasureOrUnspecifiedValue &aWarpingConstant)
168 theWarpingConstant = aWarpingConstant;
171 //=======================================================================
172 //function : LocationOfCentroid
174 //=======================================================================
176 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfCentroid () const
178 return theLocationOfCentroid;
181 //=======================================================================
182 //function : SetLocationOfCentroid
184 //=======================================================================
186 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfCentroid (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfCentroid)
188 theLocationOfCentroid = aLocationOfCentroid;
191 //=======================================================================
192 //function : LocationOfShearCentre
194 //=======================================================================
196 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfShearCentre () const
198 return theLocationOfShearCentre;
201 //=======================================================================
202 //function : SetLocationOfShearCentre
204 //=======================================================================
206 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfShearCentre (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfShearCentre)
208 theLocationOfShearCentre = aLocationOfShearCentre;
211 //=======================================================================
212 //function : LocationOfNonStructuralMass
214 //=======================================================================
216 Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfNonStructuralMass () const
218 return theLocationOfNonStructuralMass;
221 //=======================================================================
222 //function : SetLocationOfNonStructuralMass
224 //=======================================================================
226 void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfNonStructuralMass (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfNonStructuralMass)
228 theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
231 //=======================================================================
232 //function : NonStructuralMass
234 //=======================================================================
236 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::NonStructuralMass () const
238 return theNonStructuralMass;
241 //=======================================================================
242 //function : SetNonStructuralMass
244 //=======================================================================
246 void StepElement_CurveElementSectionDerivedDefinitions::SetNonStructuralMass (const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass)
248 theNonStructuralMass = aNonStructuralMass;
251 //=======================================================================
252 //function : PolarMoment
254 //=======================================================================
256 StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::PolarMoment () const
258 return thePolarMoment;
261 //=======================================================================
262 //function : SetPolarMoment
264 //=======================================================================
266 void StepElement_CurveElementSectionDerivedDefinitions::SetPolarMoment (const StepElement_MeasureOrUnspecifiedValue &aPolarMoment)
268 thePolarMoment = aPolarMoment;