22 #include "mbsim/links/floating_frame_link.h" 24 #include "mbsim/utils/boost_parameters.h" 25 #include "mbsim/utils/openmbv_utils.h" 29 template <
class Sig>
class Function;
32 namespace MBSimPhysics {
38 void init(
InitStage stage,
const MBSim::InitConfigSet &config)
override;
39 void initializeUsingXML(xercesc::DOMElement *element)
override;
43 using FloatingFrameLink::connect;
49 void updateGeneralizedPositions()
override { updrrel =
false; }
50 void updateGeneralizedVelocities()
override { updvrel =
false; }
51 void updatelaF()
override;
53 bool isActive()
const override {
return true; }
54 bool gActiveChanged()
override {
return false; }
55 bool isSingleValued()
const override {
return true; }
57 BOOST_PARAMETER_MEMBER_FUNCTION( (
void), enableOpenMBV, MBSim::tag, (optional (sideOfInteraction,(MBSim::OpenMBVInteractionArrow::SideOfInteraction),MBSim::OpenMBVInteractionArrow::action)(scaleLength,(
double),1)(scaleSize,(
double),1)(referencePoint,(MBSim::OpenMBVArrow::ReferencePoint),MBSim::OpenMBVArrow::toPoint)(colorRepresentation,(MBSim::OpenMBVArrow::ColorRepresentation),MBSim::OpenMBVArrow::none)(minimalColorValue,(
double),0)(maximalColorValue,(
double),1)(diffuseColor,(
const fmatvec::Vec3&),
"[-1;1;1]")(transparency,(
double),0)(pointSize,(
double),0)(lineWidth,(
double),0))) {
58 ombvArrow =
std::shared_ptr<MBSim::OpenMBVInteractionArrow>(
new MBSim::OpenMBVInteractionArrow(sideOfInteraction,scaleLength,scaleSize,MBSim::OpenMBVArrow::toHead,referencePoint,colorRepresentation,minimalColorValue,maximalColorValue,diffuseColor,transparency,pointSize,lineWidth));
65 std::vector<std::shared_ptr<OpenMBV::Arrow>> openMBVForce;
std::vector< Frame * > frame
Definition: aerodynamics.h:29