本文整理汇总了C++中step::RefPtr::getMomentY方法的典型用法代码示例。如果您正苦于以下问题:C++ RefPtr::getMomentY方法的具体用法?C++ RefPtr::getMomentY怎么用?C++ RefPtr::getMomentY使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类step::RefPtr
的用法示例。
在下文中一共展示了RefPtr::getMomentY方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
Step::RefPtr<ifc2x3::IfcStructuralLoadLinearForce> StructuralLoadLinearForce = static_cast<ifc2x3::IfcStructuralLoadLinearForce* > (ListIfcStructuralLoad[0].get());
TEST_ASSERT(StructuralLoadLinearForce->getLinearForceX()==1);
TEST_ASSERT(StructuralLoadLinearForce->getLinearForceY()==1);
TEST_ASSERT(StructuralLoadLinearForce->getLinearForceZ()==1);
TEST_ASSERT(StructuralLoadLinearForce->getLinearMomentX()==1);
TEST_ASSERT(StructuralLoadLinearForce->getLinearMomentY()==1);
TEST_ASSERT(StructuralLoadLinearForce->getLinearMomentZ()==1);
}
if(dynamic_cast<ifc2x3::IfcStructuralLoadPlanarForce* > (ListIfcStructuralLoad[1].get()))
{
Step::RefPtr<ifc2x3::IfcStructuralLoadPlanarForce> StructuralLoadPlanarForce = static_cast<ifc2x3::IfcStructuralLoadPlanarForce* > (ListIfcStructuralLoad[1].get());
TEST_ASSERT(StructuralLoadPlanarForce->getPlanarForceX()==2);
TEST_ASSERT(StructuralLoadPlanarForce->getPlanarForceY()==2);
TEST_ASSERT(StructuralLoadPlanarForce->getPlanarForceZ()==2);
}
if(dynamic_cast<ifc2x3::IfcStructuralLoadSingleDisplacement* > (ListIfcStructuralLoad[2].get()))
{
Step::RefPtr<ifc2x3::IfcStructuralLoadSingleDisplacement> StructuralLoadSingleDisplacement = static_cast<ifc2x3::IfcStructuralLoadSingleDisplacement* > (ListIfcStructuralLoad[2].get());
TEST_ASSERT(StructuralLoadSingleDisplacement->getDisplacementX()==3);
TEST_ASSERT(StructuralLoadSingleDisplacement->getDisplacementY()==3);
TEST_ASSERT(StructuralLoadSingleDisplacement->getDisplacementZ()==3);
TEST_ASSERT(StructuralLoadSingleDisplacement->getRotationalDisplacementRX()==3);
TEST_ASSERT(StructuralLoadSingleDisplacement->getRotationalDisplacementRY()==3);
TEST_ASSERT(StructuralLoadSingleDisplacement->getRotationalDisplacementRZ()==3);
}
if(dynamic_cast<ifc2x3::IfcStructuralLoadSingleForce* > (ListIfcStructuralLoad[3].get()))
{
Step::RefPtr<ifc2x3::IfcStructuralLoadSingleForce> StructuralLoadSingleForce = static_cast<ifc2x3::IfcStructuralLoadSingleForce* > (ListIfcStructuralLoad[3].get());
TEST_ASSERT(StructuralLoadSingleForce->getForceX()==4);
TEST_ASSERT(StructuralLoadSingleForce->getForceY()==4);
TEST_ASSERT(StructuralLoadSingleForce->getForceZ()==4);
TEST_ASSERT(StructuralLoadSingleForce->getMomentX()==4);
TEST_ASSERT(StructuralLoadSingleForce->getMomentY()==4);
TEST_ASSERT(StructuralLoadSingleForce->getMomentZ()==4);
}
if(dynamic_cast<ifc2x3::IfcStructuralLoadTemperature* > (ListIfcStructuralLoad[4].get()))
{
Step::RefPtr<ifc2x3::IfcStructuralLoadTemperature> StructuralLoadTemperature = static_cast<ifc2x3::IfcStructuralLoadTemperature* > (ListIfcStructuralLoad[4].get());
TEST_ASSERT(StructuralLoadTemperature->getDeltaT_Constant()==5);
TEST_ASSERT(StructuralLoadTemperature->getDeltaT_Y()==5);
TEST_ASSERT(StructuralLoadTemperature->getDeltaT_Z()==5);
}
Step::RefPtr< ifc2x3::IfcStructuralLoad > StructuralAppliedLoad = eds->createIfcStructuralLoadLinearForce();
static_cast<Step::RefPtr<ifc2x3::IfcStructuralLoadLinearForce> > (StructuralAppliedLoad)->setLinearForceX(0);
static_cast<Step::RefPtr<ifc2x3::IfcStructuralLoadLinearForce> > (StructuralAppliedLoad)->setLinearForceY(0);
static_cast<Step::RefPtr<ifc2x3::IfcStructuralLoadLinearForce> > (StructuralAppliedLoad)->setLinearForceZ(0);
static_cast<Step::RefPtr<ifc2x3::IfcStructuralLoadLinearForce> > (StructuralAppliedLoad)->setLinearMomentX(0);
static_cast<Step::RefPtr<ifc2x3::IfcStructuralLoadLinearForce> > (StructuralAppliedLoad)->setLinearMomentY(0);
static_cast<Step::RefPtr<ifc2x3::IfcStructuralLoadLinearForce> > (StructuralAppliedLoad)->setLinearMomentZ(0);
StructuralLinearActionVarying->setAppliedLoad(StructuralAppliedLoad);
ListIfcStructuralLoad = StructuralLinearActionVarying->getVaryingAppliedLoads();
if(dynamic_cast<ifc2x3::IfcStructuralLoadLinearForce* > (ListIfcStructuralLoad[0].get()))
{
Step::RefPtr<ifc2x3::IfcStructuralLoadLinearForce> StructuralLoadLinearForce = static_cast<ifc2x3::IfcStructuralLoadLinearForce* > (ListIfcStructuralLoad[0].get());
TEST_ASSERT(StructuralLoadLinearForce->getLinearForceX()==0);
TEST_ASSERT(StructuralLoadLinearForce->getLinearForceY()==0);
TEST_ASSERT(StructuralLoadLinearForce->getLinearForceZ()==0);
TEST_ASSERT(StructuralLoadLinearForce->getLinearMomentX()==0);
TEST_ASSERT(StructuralLoadLinearForce->getLinearMomentY()==0);
TEST_ASSERT(StructuralLoadLinearForce->getLinearMomentZ()==0);
}
if(dynamic_cast<ifc2x3::IfcStructuralLoadLinearForce* > (ListIfcStructuralLoad[1].get()))
{