mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-08 18:40:55 +03:00
274 lines
11 KiB
C++
274 lines
11 KiB
C++
// Created on: 2002-12-12
|
|
// Created by: data exchange team
|
|
// Copyright (c) 2002-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
|
|
|
|
#include <Standard_Type.hxx>
|
|
#include <StepElement_CurveElementSectionDerivedDefinitions.hxx>
|
|
#include <StepElement_MeasureOrUnspecifiedValue.hxx>
|
|
#include <TCollection_HAsciiString.hxx>
|
|
|
|
IMPLEMENT_STANDARD_RTTIEXT(StepElement_CurveElementSectionDerivedDefinitions,StepElement_CurveElementSectionDefinition)
|
|
|
|
//=======================================================================
|
|
//function : StepElement_CurveElementSectionDerivedDefinitions
|
|
//purpose :
|
|
//=======================================================================
|
|
StepElement_CurveElementSectionDerivedDefinitions::StepElement_CurveElementSectionDerivedDefinitions ()
|
|
{
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : Init
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::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)
|
|
{
|
|
StepElement_CurveElementSectionDefinition::Init(aCurveElementSectionDefinition_Description,
|
|
aCurveElementSectionDefinition_SectionAngle);
|
|
|
|
theCrossSectionalArea = aCrossSectionalArea;
|
|
|
|
theShearArea = aShearArea;
|
|
|
|
theSecondMomentOfArea = aSecondMomentOfArea;
|
|
|
|
theTorsionalConstant = aTorsionalConstant;
|
|
|
|
theWarpingConstant = aWarpingConstant;
|
|
|
|
theLocationOfCentroid = aLocationOfCentroid;
|
|
|
|
theLocationOfShearCentre = aLocationOfShearCentre;
|
|
|
|
theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
|
|
|
|
theNonStructuralMass = aNonStructuralMass;
|
|
|
|
thePolarMoment = aPolarMoment;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : CrossSectionalArea
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_Real StepElement_CurveElementSectionDerivedDefinitions::CrossSectionalArea () const
|
|
{
|
|
return theCrossSectionalArea;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetCrossSectionalArea
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::SetCrossSectionalArea (const Standard_Real aCrossSectionalArea)
|
|
{
|
|
theCrossSectionalArea = aCrossSectionalArea;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : ShearArea
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::ShearArea () const
|
|
{
|
|
return theShearArea;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetShearArea
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::SetShearArea (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aShearArea)
|
|
{
|
|
theShearArea = aShearArea;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SecondMomentOfArea
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Handle(TColStd_HArray1OfReal) StepElement_CurveElementSectionDerivedDefinitions::SecondMomentOfArea () const
|
|
{
|
|
return theSecondMomentOfArea;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetSecondMomentOfArea
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::SetSecondMomentOfArea (const Handle(TColStd_HArray1OfReal) &aSecondMomentOfArea)
|
|
{
|
|
theSecondMomentOfArea = aSecondMomentOfArea;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : TorsionalConstant
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_Real StepElement_CurveElementSectionDerivedDefinitions::TorsionalConstant () const
|
|
{
|
|
return theTorsionalConstant;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetTorsionalConstant
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::SetTorsionalConstant (const Standard_Real aTorsionalConstant)
|
|
{
|
|
theTorsionalConstant = aTorsionalConstant;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : WarpingConstant
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::WarpingConstant () const
|
|
{
|
|
return theWarpingConstant;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetWarpingConstant
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::SetWarpingConstant (const StepElement_MeasureOrUnspecifiedValue &aWarpingConstant)
|
|
{
|
|
theWarpingConstant = aWarpingConstant;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : LocationOfCentroid
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfCentroid () const
|
|
{
|
|
return theLocationOfCentroid;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetLocationOfCentroid
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfCentroid (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfCentroid)
|
|
{
|
|
theLocationOfCentroid = aLocationOfCentroid;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : LocationOfShearCentre
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfShearCentre () const
|
|
{
|
|
return theLocationOfShearCentre;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetLocationOfShearCentre
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfShearCentre (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfShearCentre)
|
|
{
|
|
theLocationOfShearCentre = aLocationOfShearCentre;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : LocationOfNonStructuralMass
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) StepElement_CurveElementSectionDerivedDefinitions::LocationOfNonStructuralMass () const
|
|
{
|
|
return theLocationOfNonStructuralMass;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetLocationOfNonStructuralMass
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::SetLocationOfNonStructuralMass (const Handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) &aLocationOfNonStructuralMass)
|
|
{
|
|
theLocationOfNonStructuralMass = aLocationOfNonStructuralMass;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : NonStructuralMass
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::NonStructuralMass () const
|
|
{
|
|
return theNonStructuralMass;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetNonStructuralMass
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::SetNonStructuralMass (const StepElement_MeasureOrUnspecifiedValue &aNonStructuralMass)
|
|
{
|
|
theNonStructuralMass = aNonStructuralMass;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : PolarMoment
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
StepElement_MeasureOrUnspecifiedValue StepElement_CurveElementSectionDerivedDefinitions::PolarMoment () const
|
|
{
|
|
return thePolarMoment;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : SetPolarMoment
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
void StepElement_CurveElementSectionDerivedDefinitions::SetPolarMoment (const StepElement_MeasureOrUnspecifiedValue &aPolarMoment)
|
|
{
|
|
thePolarMoment = aPolarMoment;
|
|
}
|