20 #ifndef _LINK_MECHANICS_H_
21 #define _LINK_MECHANICS_H_
25 #ifdef HAVE_OPENMBVCPPINTERFACE
62 virtual void updatedhdz(
double t);
70 std::string
getType()
const {
return "Link"; }
71 virtual void plot(
double t,
double dt = 1);
76 virtual void updateWRef(
const fmatvec::Mat& ref,
int i=0);
77 virtual void updateVRef(
const fmatvec::Mat& ref,
int i=0);
78 virtual void updatehRef(
const fmatvec::Vec &hRef,
int i=0);
79 virtual void updatedhdqRef(
const fmatvec::Mat& ref,
int i=0);
80 virtual void updatedhduRef(
const fmatvec::SqrMat& ref,
int i=0);
81 virtual void updatedhdtRef(
const fmatvec::Vec& ref,
int i=0);
82 virtual void updaterRef(
const fmatvec::Vec &ref,
int i=0);
97 #ifdef HAVE_OPENMBVCPPINTERFACE
98 void setOpenMBVForceArrow(OpenMBV::Arrow *arrow,
const std::vector<bool>& which);
99 void setOpenMBVMomentArrow(OpenMBV::Arrow *arrow,
const std::vector<bool>& which);
105 std::vector<fmatvec::Vec>
WF, WM;
110 std::vector<fmatvec::Mat>
fF, fM;
122 #ifdef HAVE_OPENMBVCPPINTERFACE
123 OpenMBV::Group *openMBVForceGrp;
124 std::vector<OpenMBV::Arrow*> openMBVArrowF;
125 std::vector<OpenMBV::Arrow*> openMBVArrowM;