24 #include "mbsim/element.h"
25 #include "mbsim/contour_pdata.h"
26 #include "mbsim/frame.h"
27 #include "mbsim/mbsim_event.h"
29 #ifdef HAVE_OPENMBVCPPINTERFACE
38 class ContourPointData;
39 class ContactKinematics;
65 virtual std::string
getType()
const {
return "Contour"; }
66 virtual void plot(
double t,
double dt = 1);
121 virtual fmatvec::Vec
computeLagrangeParameter(
const fmatvec::Vec &WrPoint) {
throw MBSimError(
"ERROR computeLagrangeParameter(const fmatvec::Vec &WrPoint): Not implemented for this contour: \"" + this->
getType() +
"\".");
return 0; }
187 Frame* getFrame() {
return &
R; }
188 const fmatvec::Vec& getReferencePosition()
const {
return R.getPosition(); }
189 const fmatvec::SqrMat& getReferenceOrientation()
const {
return R.getOrientation(); }
190 const fmatvec::Vec& getReferenceVelocity()
const {
return R.getVelocity(); }
191 const fmatvec::Vec& getReferenceAngularVelocity()
const {
return R.getAngularVelocity(); }
192 const fmatvec::Mat& getReferenceJacobianOfTranslation(
int j=0)
const {
return R.getJacobianOfTranslation(j); }
193 const fmatvec::Mat& getReferenceJacobianOfRotation(
int j=0)
const {
return R.getJacobianOfRotation(j); }
194 fmatvec::Mat& getReferenceJacobianOfTranslation(
int j=0) {
return R.getJacobianOfTranslation(j); }
195 fmatvec::Mat& getReferenceJacobianOfRotation(
int j=0) {
return R.getJacobianOfRotation(j); }
196 const fmatvec::Vec& getReferenceGyroscopicAccelerationOfTranslation()
const {
return R.getGyroscopicAccelerationOfTranslation(); }
197 const fmatvec::Vec& getReferenceGyroscopicAccelerationOfRotation()
const {
return R.getGyroscopicAccelerationOfRotation(); }
198 fmatvec::Vec& getReferenceGyroscopicAccelerationOfTranslation() {
return R.getGyroscopicAccelerationOfTranslation(); }
199 fmatvec::Vec& getReferenceGyroscopicAccelerationOfRotation() {
return R.getGyroscopicAccelerationOfRotation(); }
201 int gethSize(
int i=0)
const {
return hSize[i]; }
202 int gethInd(
int i=0)
const {
return hInd[i]; }
203 void sethSize(
int size,
int i=0) {
hSize[i] = size; }
204 void sethInd(
int ind,
int i=0) { hInd[i] = ind; }
241 # ifdef HAVE_OPENMBVCPPINTERFACE
242 , openMBVRigidBody(0)
249 std::string
getType()
const {
return "RigidContour"; }
250 virtual void plot(
double t,
double dt = 1);
267 #ifdef HAVE_OPENMBVCPPINTERFACE
268 OpenMBV::RigidBody *openMBVRigidBody;