本文整理汇总了C++中Skeleton::getNetForce方法的典型用法代码示例。如果您正苦于以下问题:C++ Skeleton::getNetForce方法的具体用法?C++ Skeleton::getNetForce怎么用?C++ Skeleton::getNetForce使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Skeleton
的用法示例。
在下文中一共展示了Skeleton::getNetForce方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnUpdate
//.........这里部分代码省略.........
}*/
/*mUpperArmCG.Format("%.1f",lengthConversion * CGs.UpperArm);//lDocPtr->getUpperArmCG().ValueText();
mUpperArmL.Format("%.1f",lengthConversion * lengths.UpperArm);//lDocPtr->getUpperArmL().ValueText();
if(Dg_Anthropometry::isred[7] == True)
mUpperArmCG.Format("%.1f",atof(mUpperArmL) * mCM_Upperarm);*/
mUpperArmWt.Format("%.1f",forceConversion * weights.UpperArm);//lDocPtr->getUpperArmWt().ValueText();
/* if(atof(mUpperArmLR) != Round_Double(Dg_Anthropometry::backr[7],1) && atof(mUpperArmCGR) == Round_Double(Dg_Anthropometry::backr[8],1))
{
mUpperArmLR.Format("%.1f",lengthConversion * lengths.UpperArmR);//mDocPtr->getHandWithFingersL().ValueText();
mUpperArmCGR.Format("%.1f",atof(mUpperArmLR) * mCM_Upperarm);
Dg_Anthropometry::backr[7] = atof(mUpperArmLR);
Dg_Anthropometry::backr[8] = atof(mUpperArmCGR);
}
else
{*/
mUpperArmCGR.Format("%.1f",lengthConversion * CGs.UpperArmR);//mDocPtr->getHandCG().ValueText();
mUpperArmLR.Format("%.1f",lengthConversion * lengths.UpperArmR);//mDocPtr->getHandWithFingersL().ValueText();
/* Dg_Anthropometry::backr[7] = atof(mUpperArmLR);
Dg_Anthropometry::backr[8] = atof(mUpperArmCGR);
}*/
/*mUpperArmCGR.Format("%.1f",lengthConversion * CGs.UpperArmR);//lDocPtr->getUpperArmCG().ValueText();
mUpperArmLR.Format("%.1f",lengthConversion * lengths.UpperArmR);//lDocPtr->getUpperArmL().ValueText();
if(Dg_Anthropometry::isred[7] == True)
mUpperArmCGR.Format("%.1f",atof(mUpperArmLR) * mCM_Upperarm);*/
mUpperArmWtR.Format("%.1f",forceConversion * weights.UpperArmR);//lDocPtr->getUpperArmWt().ValueText();
/* if((atof(mUpperLegL) != Round_Double(Dg_Anthropometry::backl[10],1) && atof(mUpperLegCG) == Round_Double(Dg_Anthropometry::backl[11],1)))
{
mUpperLegL.Format("%.1f",lengthConversion * lengths.UpperLeg);//mDocPtr->getHandWithFingersL().ValueText();
mUpperLegCG.Format("%.1f",atof(mUpperLegL) * mCM_UpperLeg);
Dg_Anthropometry::backl[10] = atof(mUpperLegL);
Dg_Anthropometry::backl[11] = atof(mUpperLegCG);
}
else
{*/
mUpperLegCG.Format("%.1f",lengthConversion * CGs.UpperLeg);//mDocPtr->getHandCG().ValueText();
mUpperLegL.Format("%.1f",lengthConversion * lengths.UpperLeg);//mDocPtr->getHandWithFingersL().ValueText();
/* Dg_Anthropometry::backl[10] = atof(mUpperLegL);
Dg_Anthropometry::backl[11] = atof(mUpperLegCG);
}*/
/*mUpperLegCG.Format("%.1f",lengthConversion * CGs.UpperLeg);//lDocPtr->getUpperLegCG().ValueText();
mUpperLegL.Format("%.1f",lengthConversion * lengths.UpperLeg);//lDocPtr->getUpperLegL().ValueText();
if(Dg_Anthropometry::isred[10] == True)
mUpperLegCG.Format("%.1f",atof(mUpperLegL) * mCM_UpperLeg);*/
mUpperLegWt.Format("%.1f",forceConversion * weights.UpperLeg);//lDocPtr->getUpperLegWt().ValueText();
/* if((atof(mUpperLegLR) != Round_Double(Dg_Anthropometry::backr[10],1) && atof(mUpperLegCGR) == Round_Double(Dg_Anthropometry::backr[11],1)))
{
mUpperLegLR.Format("%.1f",lengthConversion * lengths.UpperLegR);//mDocPtr->getHandWithFingersL().ValueText();
mUpperLegCGR.Format("%.1f",atof(mUpperLegLR) * mCM_UpperLeg);
Dg_Anthropometry::backr[10] = atof(mUpperLegLR);
Dg_Anthropometry::backr[11] = atof(mUpperLegCGR);
}
else
{*/
mUpperLegCGR.Format("%.1f",lengthConversion * CGs.UpperLegR);//mDocPtr->getHandCG().ValueText();
mUpperLegLR.Format("%.1f",lengthConversion * lengths.UpperLegR);//mDocPtr->getHandWithFingersL().ValueText();
/* Dg_Anthropometry::backr[10] = atof(mUpperLegLR);
Dg_Anthropometry::backr[11] = atof(mUpperLegCGR);
}*/
/* mUpperLegCGR.Format("%.1f",lengthConversion * CGs.UpperLegR);//lDocPtr->getUpperLegCG().ValueText();
mUpperLegLR.Format("%.1f",lengthConversion * lengths.UpperLegR);//lDocPtr->getUpperLegL().ValueText();
if(Dg_Anthropometry::isred[10] == True)
mUpperLegCGR.Format("%.1f",atof(mUpperLegLR) * mCM_UpperLeg);*/
mUpperLegWtR.Format("%.1f",forceConversion * weights.UpperLegR);//lDocPtr->getUpperLegWt().ValueText();
Skeleton* skel = lDocPtr->GetSkeleton();
const LowBackSagittalData_s& sagittal = skel->getLowBackSagittalData();
mDiaphramMomentL.Format("%.1f",sagittal.diaphramMomentArm);//lDocPtr->getDiaphramMomentL().ValueText();
mUpperBodyWt.Format("%.1f",(skel->getNetForce(JT_L5S1_TEMP) - skel->getNetForce(JT_LHAND) - skel->getNetForce(JT_RHAND)).length());//lDocPtr->getUpperBodyWt().ValueText();
// mShoulderToShoulderL.Format("%.1f",lengthConversion * lengths.ShoulderWidth);//lDocPtr->getShoulderToShoulderL().ValueText();
mUpperBodyL.Format("%.1f",lengthConversion * CGs.UpperLegR);
mUpperBodyCG.Format("%.1f",(skel->getNetForce(JT_L5S1_TEMP) - skel->getNetForce(JT_LHAND) - skel->getNetForce(JT_RHAND)).length());
mFactorsName = lDocPtr->GetFactors().mName;
mFooter = lDocPtr->ReportFooter();
UpdateData(FALSE);
UpdateUnits();
Skeleton &lSkeleton = *lDocPtr->GetSkeleton();
mHandForceTxtLVal.Format("%.1f", lSkeleton.getExtForce(JT_LHAND).length());
mHandForceTxtRVal.Format("%.1f", lSkeleton.getExtForce(JT_RHAND).length());
Vector3 offsetCoordinate = lDocPtr->getOffset();
Vector3 LHand = lSkeleton.getJoint(JT_LHAND);
mLeftHori.Format("%.1f", (LHand[1] - offsetCoordinate[1]));
mLeftLat.Format("%.1f", (LHand[0] - offsetCoordinate[0]));
mLeftVert.Format("%.1f", (LHand[2] - offsetCoordinate[2]));
Vector3 RHand = lSkeleton.getJoint(JT_RHAND);
mRightHori.Format("%.1f", (RHand[1] - offsetCoordinate[1]));
mRightLat.Format("%.1f", (RHand[0] - offsetCoordinate[0]));
mRightVert.Format("%.1f", (RHand[2] - offsetCoordinate[2]));
InvalidateRect(0);
}