36 std::string saved_link;
37 std::shared_ptr<OpenMBVInteractionArrow> ombvForce, ombvMoment;
38 std::vector<std::shared_ptr<OpenMBV::Arrow>> openMBVForce, openMBVMoment;
43 double evalNone() {
return 1; }
44 double evalAbsoluteForce();
45 double evalAbsoluteMoment();
46 Frame *outputFrame {
nullptr };
51 void setOutputFrame(
Frame *outputFrame_) { outputFrame = outputFrame_; }
53 void init(
InitStage stage,
const InitConfigSet &config)
override;
55 void initializeUsingXML(xercesc::DOMElement *element)
override;
57 BOOST_PARAMETER_MEMBER_FUNCTION( (
void), enableOpenMBVForce, tag, (optional (sideOfInteraction,(OpenMBVInteractionArrow::SideOfInteraction),OpenMBVInteractionArrow::action)(scaleLength,(
double),1)(scaleSize,(
double),1)(components,(OpenMBVArrow::Components),OpenMBVArrow::vectorForm)(referencePoint,(OpenMBVArrow::ReferencePoint),OpenMBVArrow::toPoint)(colorRepresentation,(OpenMBVArrow::ColorRepresentation),OpenMBVArrow::none)(minimalColorValue,(
double),0)(maximalColorValue,(
double),1)(diffuseColor,(
const fmatvec::Vec3&),fmatvec::Vec3(std::vector<double>{-1,1,1}))(transparency,(
double),0)(pointSize,(
double),0)(lineWidth,(
double),0))) {
58 ombvForce = std::shared_ptr<OpenMBVInteractionArrow>(
new OpenMBVInteractionArrow(sideOfInteraction,scaleLength,scaleSize,OpenMBVArrow::toHead,referencePoint,colorRepresentation,minimalColorValue,maximalColorValue,diffuseColor,transparency,pointSize,lineWidth,components));
60 void setOMBVForce(
const std::shared_ptr<OpenMBVInteractionArrow> &arrow) { ombvForce=arrow; }
61 BOOST_PARAMETER_MEMBER_FUNCTION( (
void), enableOpenMBVMoment, tag, (optional (sideOfInteraction,(OpenMBVInteractionArrow::SideOfInteraction),OpenMBVInteractionArrow::action)(scaleLength,(
double),1)(scaleSize,(
double),1)(components,(OpenMBVArrow::Components),OpenMBVArrow::vectorForm)(referencePoint,(OpenMBVArrow::ReferencePoint),OpenMBVArrow::toPoint)(colorRepresentation,(OpenMBVArrow::ColorRepresentation),OpenMBVArrow::none)(minimalColorValue,(
double),0)(maximalColorValue,(
double),1)(diffuseColor,(
const fmatvec::Vec3&),fmatvec::Vec3(std::vector<double>{-1,1,1}))(transparency,(
double),0)(pointSize,(
double),0)(lineWidth,(
double),0))) {
62 ombvMoment = std::shared_ptr<OpenMBVInteractionArrow>(
new OpenMBVInteractionArrow(sideOfInteraction,scaleLength,scaleSize,OpenMBVArrow::toDoubleHead,referencePoint,colorRepresentation,minimalColorValue,maximalColorValue,diffuseColor,transparency,pointSize,lineWidth,components));
64 void setOMBVMoment(
const std::shared_ptr<OpenMBVInteractionArrow> &arrow) { ombvMoment=arrow; }
66 std::string saved_outputFrame;