Skip to content

Commit

Permalink
Move the header for ForceProducer up in swig interface so that Extern…
Browse files Browse the repository at this point in the history
…alForce has correct inheritance in Java (#3914)
  • Loading branch information
aymanhab authored Sep 26, 2024
1 parent 292147c commit 2eaffcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Bindings/simulation.i
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,15 @@ OpenSim::ModelComponentSet<OpenSim::Constraint>;
%include <OpenSim/Simulation/Model/ConstraintSet.h>

%include <OpenSim/Simulation/Model/Force.h>
%include <OpenSim/Simulation/Model/ForceProducer.h>

%template(SetForces) OpenSim::Set<OpenSim::Force, OpenSim::ModelComponent>;
%template(ModelComponentSetForces) OpenSim::ModelComponentSet<OpenSim::Force>;
%include <OpenSim/Simulation/Model/ForceSet.h>
%include <OpenSim/Simulation/Model/ExternalForce.h>
%template(SetExternalForces) OpenSim::Set<OpenSim::ExternalForce, OpenSim::ModelComponent>;
%template(ModelComponentSetExternalForces) OpenSim::ModelComponentSet<OpenSim::ExternalForce>;

%include <OpenSim/Simulation/Model/ForceProducer.h>
%include <OpenSim/Simulation/Model/TwoFrameLinker.h>
%template(TwoFrameLinkerForce) OpenSim::TwoFrameLinker<OpenSim::Force, OpenSim::PhysicalFrame>;
%template(TwoFrameLinkerForceProducer) OpenSim::TwoFrameLinker<OpenSim::ForceProducer, OpenSim::PhysicalFrame>;
Expand Down

0 comments on commit 2eaffcc

Please sign in to comment.