From 1c5603f9e8bffb735948ac87aba06040944464d7 Mon Sep 17 00:00:00 2001 From: aymanhab Date: Mon, 30 Oct 2023 16:24:04 -0700 Subject: [PATCH] Update bindings --- .../org/opensim/modeling/AbstractPath.java | 67 +- .../src/org/opensim/modeling/Coordinate.java | 8 + .../opensim/modeling/FunctionBasedPath.java | 377 +++++ .../org/opensim/modeling/GeometryPath.java | 6 +- .../org/opensim/modeling/MocoControlGoal.java | 12 - .../src/org/opensim/modeling/MocoGoal.java | 40 + .../modeling/MocoOutputExtremumGoal.java | 23 - .../org/opensim/modeling/MocoOutputGoal.java | 23 - .../src/org/opensim/modeling/Model.java | 4 +- .../modeling/ReferencePtrCoordinate.java | 1418 +++++++++++++++++ .../modeling/SWIGTYPE_p_AbstractPath.java | 30 + .../modeling/SWIGTYPE_p_MatrixCharacter.java | 30 + .../modeling/SWIGTYPE_p_MatrixCommitment.java | 30 + .../SWIGTYPE_p_MatrixHelperT_Scalar_t.java | 30 + ...PE_p_MatrixHelperT_Scalar_t__DeepCopy.java | 30 + ...p_MatrixHelperT_Scalar_t__ShallowCopy.java | 30 + .../opensim/modeling/SWIGTYPE_p_Scalar.java | 30 + ...K__Rotation_T_double_t_unsigned_int_t.java | 30 + ...SimTK__SimTK__Quaternion_T_double_t_t.java | 30 + ...__SimTK__SimTK__Rotation_T_double_t_t.java | 30 + ...mTK__ReferencePtrT_Coordinate_const_t.java | 30 + ...SimTK__SimTK__Quaternion_T_double_t_t.java | 30 + ...__SimTK__SimTK__Rotation_T_double_t_t.java | 30 + ...SimTK__SimTK__MatT_3_3_double_3_1_t_t.java | 30 + ...SimTK__SimTK__Quaternion_T_double_t_t.java | 30 + ...__SimTK__SimTK__Rotation_T_double_t_t.java | 30 + ...SimTK__SimTK__MatT_3_3_double_3_1_t_t.java | 30 + ...SimTK__SimTK__Quaternion_T_double_t_t.java | 30 + ...__SimTK__SimTK__Rotation_T_double_t_t.java | 30 + ...mTK__SimTK__SimTK__Inertia_T_double_t.java | 30 + ...mTK__SimTK__MassProperties_T_double_t.java | 30 + ...__SimTK__SimTK__MatT_3_3_double_3_1_t.java | 30 + ...__SimTK__SimTK__Quaternion_T_double_t.java | 30 + ...TK__SimTK__SimTK__Rotation_T_double_t.java | 30 + ...__SimTK__SimTK__VecT_3_double_1_t_1_t.java | 30 + ...imTK__SimTK__SimTK__VecT_3_double_1_t.java | 30 + ...SimTK__SimTK__MatT_3_3_double_3_1_t_t.java | 30 + ...SimTK__SimTK__Quaternion_T_double_t_t.java | 30 + ...__SimTK__SimTK__Rotation_T_double_t_t.java | 30 + .../org/opensim/modeling/SWIGTYPE_p_TNeg.java | 30 + ...mTK__SimTK__MatT_3_3_double_3_1_t_t_t.java | 30 + ...mTK__SimTK__Quaternion_T_double_t_t_t.java | 30 + ...SimTK__SimTK__Rotation_T_double_t_t_t.java | 30 + .../modeling/SWIGTYPE_p_std__nullptr_t.java | 30 + ...__SimTK__DecorativeGeometry_const_p_t.java | 30 + ..._SimTK__Rotation_T_double_t_const_p_t.java | 30 + ...K__SimTK__VecT_3_double_1_t_const_p_t.java | 30 + ...PE_p_std__vectorT_OpenSim__Function_t.java | 30 + .../StdVectorReferencePtrCoordinate.java | 156 ++ .../modeling/VectorCoordinateRefs.java | 156 ++ .../src/org/opensim/modeling/VectorView.java | 4 + .../org/opensim/modeling/VectorViewVec3.java | 4 + .../org/opensim/modeling/opensimCommon.java | 28 + .../opensim/modeling/opensimCommonJNI.java | 2 + .../org/opensim/modeling/opensimMocoJNI.java | 16 +- .../opensim/modeling/opensimSimbodyJNI.java | 2 + .../modeling/opensimSimulationJNI.java | 212 ++- 57 files changed, 3592 insertions(+), 106 deletions(-) create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/FunctionBasedPath.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/ReferencePtrCoordinate.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_AbstractPath.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixCharacter.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixCommitment.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t__DeepCopy.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t__ShallowCopy.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_Scalar.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__Array_T_SimTK__SimTK__SimTK__Rotation_T_double_t_unsigned_int_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Inertia_T_double_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__MassProperties_T_double_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Quaternion_T_double_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Rotation_T_double_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_2_SimTK__SimTK__SimTK__VecT_3_double_1_t_1_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_3_double_1_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_TNeg.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Quaternion_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Rotation_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__nullptr_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__DecorativeGeometry_const_p_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_const_p_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__VecT_3_double_1_t_const_p_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__vectorT_OpenSim__Function_t.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/StdVectorReferencePtrCoordinate.java create mode 100644 Gui/opensim/modeling/src/org/opensim/modeling/VectorCoordinateRefs.java diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/AbstractPath.java b/Gui/opensim/modeling/src/org/opensim/modeling/AbstractPath.java index 17ef83673..7f3844e2b 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/AbstractPath.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/AbstractPath.java @@ -137,37 +137,6 @@ public void set_Appearance(Appearance value) { opensimSimulationJNI.AbstractPath_set_Appearance__SWIG_1(swigCPtr, this, Appearance.getCPtr(value), value); } - /** - * Get the current color of the path.
- *
- * This is the runtime, potentially state-dependent, color of the path. It
- * is the color used to display the path in that state (e.g., for UI
- * rendering).
- *
- * This color value is typically initialized with the default color (see:
- * `getDefaultColor`), but the color can change between simulation states
- * because downstream code (e.g. muscles) might call `setColor` to implement
- * state-dependent path coloring. - */ - public Vec3 getColor(State s) { - return new Vec3(opensimSimulationJNI.AbstractPath_getColor(swigCPtr, this, State.getCPtr(s), s), true); - } - - /** - * Set the current color of the path.
- *
- * Internally, sets the current color value of the path for the provided
- * state (e.g. using cache variables).
- *
- * The value of this variable is used as the color when the path is drawn,
- * which occurs with the state realized to Stage::Dynamics. Therefore, you
- * must call this method during realizeDynamics() or earlier in order for it
- * to have any effect. - */ - public void setColor(State s, Vec3 color) { - opensimSimulationJNI.AbstractPath_setColor(swigCPtr, this, State.getCPtr(s), s, Vec3.getCPtr(color), color); - } - /** * Get the current length of the path.
*
@@ -251,6 +220,42 @@ public void setDefaultColor(Vec3 color) { opensimSimulationJNI.AbstractPath_setDefaultColor(swigCPtr, this, Vec3.getCPtr(color), color); } + /** + * Get the current color of the path.
+ *
+ * This is the runtime, potentially state-dependent, color of the path. It
+ * is the color used to display the path in that state (e.g., for UI
+ * rendering).
+ *
+ * This color value is typically initialized with the default color (see:
+ * `getDefaultColor`), but the color can change between simulation states
+ * because downstream code (e.g. muscles) might call `setColor` to implement
+ * state-dependent path coloring.
+ *
+ * If not overridden in concrete implementations, this method returns the
+ * default color. + */ + public Vec3 getColor(State s) { + return new Vec3(opensimSimulationJNI.AbstractPath_getColor(swigCPtr, this, State.getCPtr(s), s), true); + } + + /** + * Set the current color of the path.
+ *
+ * Internally, sets the current color value of the path for the provided
+ * state (e.g. using cache variables).
+ *
+ * The value of this variable is used as the color when the path is drawn,
+ * which occurs with the state realized to Stage::Dynamics. Therefore, you
+ * must call this method during realizeDynamics() or earlier in order for it
+ * to have any effect.
+ *
+ * If not overridden in concrete implementations, this method does nothing. + */ + public void setColor(State s, Vec3 color) { + opensimSimulationJNI.AbstractPath_setColor(swigCPtr, this, State.getCPtr(s), s, Vec3.getCPtr(color), color); + } + /** * Get the current length of the path, *before* the last set of scaling
* operations were applied to it.
diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/Coordinate.java b/Gui/opensim/modeling/src/org/opensim/modeling/Coordinate.java index a81b76f76..9571184d9 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/Coordinate.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/Coordinate.java @@ -456,6 +456,14 @@ public String getSpeedName() { return opensimSimulationJNI.Coordinate_getSpeedName(swigCPtr, this); } + /** + * get the derivative of Coordinate's value from the state. This value is
+ * not* necessarily equal to the value returned by getSpeedValue(). + */ + public double getQDotValue(State s) { + return opensimSimulationJNI.Coordinate_getQDotValue(swigCPtr, this, State.getCPtr(s), s); + } + /** * get the default value for this coordinate. This is the value
* used if no value has been set prior to a simulation. diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/FunctionBasedPath.java b/Gui/opensim/modeling/src/org/opensim/modeling/FunctionBasedPath.java new file mode 100644 index 000000000..4f09011a4 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/FunctionBasedPath.java @@ -0,0 +1,377 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +/** + * A concrete class representing a path for muscles, ligaments, etc., based on
+ * `Function` objects. This class can be used when efficient computations of
+ * path length, lengthening speed, and moment arms are a priority (e.g., a
+ * direct collocation problem).
+ *
+ * Each instance of this class requires both a list of model coordinates that
+ * the path is dependent on and a function, l(q) , that computes the
+ * length of the path as a function of the coordinate values, q .
+ * Optionally, functions can be provided to compute the moment arms of the path
+ * as a function of the coordinate values and a function that computes the speed
+ * of the path as a function of the coordinate values and speeds.
+ *
+ * If the moment arm and/or speed functions are not provided, they will be
+ * computed from the length function based on van den Bogert et al. (2013) and
+ * Meyer et al. (2017):
+ *
+ * +r_i = -\frac{\partial l}{\partial q_i} \quad \forall q_i \in Q +
+ *
+ * +\dot{l} = \frac{dl}{dt} + = \sum_i \frac{\partial l}{\partial q_i} \frac{dq_i}{dt} + = \sum_i -r_i \dot{q}_i +
+ *
+ * Where,
+ * - r_i : the moment arm of the path with respect to coordinate
+ * _i . +- l : the length of the path. +- : the lengthening speed of the path. +- q_i : the i-th coordinate value. +- _i : the i-th coordinate value derivative. +- Q : the set of all coordinates. + +@note The moment arm expression above assumes that all constraints in the +model are workless (i.e., no `MovingPathPoint`s). Other path types (e.g., +`GeometryPath`) compute moment arms based on the generalized force applied to +joint given a unit force along the path, which does not rely on this +assumption (see `MomentArmSolver`). Please keep this in mind when providing +the path functions. See Sherman et al. (2013) for more details. + +@note _i is usually, but not necessarily, the same as the +generalized speed of the coordinate, u_i (e.g., see `BallJoint`). +Please keep this in mind when providing a speed function. See Sherman et al. +(2013) for more details. + +The length function and (if provided) the moment arm functions must have the +same number of arguments as the number of coordinates, where the order of the +arguments matches the order in the `coordinates` property. Each moment arm +function corresponds to a single coordinate, and the order of the functions +in the `moment_arm_functions` property must match the order in `coordinates`. +The speed function (if provided) must have twice as many arguments as the +number of coordinates, where the first half of the arguments are the +coordinate values and the second half are the coordinate speeds. Again, the +order of the value and speed arguments must match the order in the +`coordinates` property. + +The forces applied to the model by the path are computed by multiplying the +tension in the path by the moment arms. Therefore, this class only applies +mobility (i.e., generalized) forces to the model. + +References +---------- +- [1] Meyer AJ, Patten C, Fregly BJ (2017) "Lower extremity EMG-driven + modeling of walking with automated adjustment of musculoskeletal + geometry." PLoS ONE 12(7): e0179698. + https://doi.org/10.1371/journal.pone.0179698 +- [2] van den Bogert, A.J., Geijtenbeek, T., Even-Zohar, O. et al. (2013) "A + real-time system for biomechanical analysis of human movement and + muscle function." Med Biol Eng Comput 51, 1069–1077 (2013). + https://doi.org/10.1007/s11517-013-1076-z +- [3] Sherman MA, Seth A, Delp SL. (2013) "What is a Moment Arm? Calculating + Muscle Effectiveness in Biomechanical Models Using Generalized + Coordinates." ASME. International Design Engineering Technical + Conferences and Computers and Information in Engineering Conference, + Volume 7B: 9th International Conference on Multibody Systems, + Nonlinear Dynamics, and Control. + + */ +public class FunctionBasedPath extends AbstractPath { + private transient long swigCPtr; + + public FunctionBasedPath(long cPtr, boolean cMemoryOwn) { + super(opensimSimulationJNI.FunctionBasedPath_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + public static long getCPtr(FunctionBasedPath obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + public static long swigRelease(FunctionBasedPath obj) { + long ptr = 0; + if (obj != null) { + if (!obj.swigCMemOwn) + throw new RuntimeException("Cannot release ownership as memory is not owned"); + ptr = obj.swigCPtr; + obj.swigCMemOwn = false; + obj.delete(); + } + return ptr; + } + + @SuppressWarnings("deprecation") + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + opensimSimulationJNI.delete_FunctionBasedPath(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public static FunctionBasedPath safeDownCast(OpenSimObject obj) { + long cPtr = opensimSimulationJNI.FunctionBasedPath_safeDownCast(OpenSimObject.getCPtr(obj), obj); + return (cPtr == 0) ? null : new FunctionBasedPath(cPtr, false); + } + + public void assign(OpenSimObject aObject) { + opensimSimulationJNI.FunctionBasedPath_assign(swigCPtr, this, OpenSimObject.getCPtr(aObject), aObject); + } + + public static String getClassName() { + return opensimSimulationJNI.FunctionBasedPath_getClassName(); + } + + public OpenSimObject clone() { + long cPtr = opensimSimulationJNI.FunctionBasedPath_clone(swigCPtr, this); + return (cPtr == 0) ? null : new FunctionBasedPath(cPtr, true); + } + + public String getConcreteClassName() { + return opensimSimulationJNI.FunctionBasedPath_getConcreteClassName(swigCPtr, this); + } + + public void copyProperty_coordinate_paths(FunctionBasedPath source) { + opensimSimulationJNI.FunctionBasedPath_copyProperty_coordinate_paths(swigCPtr, this, FunctionBasedPath.getCPtr(source), source); + } + + public String get_coordinate_paths(int i) { + return opensimSimulationJNI.FunctionBasedPath_get_coordinate_paths(swigCPtr, this, i); + } + + public SWIGTYPE_p_std__string upd_coordinate_paths(int i) { + return new SWIGTYPE_p_std__string(opensimSimulationJNI.FunctionBasedPath_upd_coordinate_paths(swigCPtr, this, i), false); + } + + public void set_coordinate_paths(int i, String value) { + opensimSimulationJNI.FunctionBasedPath_set_coordinate_paths(swigCPtr, this, i, value); + } + + public int append_coordinate_paths(String value) { + return opensimSimulationJNI.FunctionBasedPath_append_coordinate_paths(swigCPtr, this, value); + } + + public void constructProperty_coordinate_paths() { + opensimSimulationJNI.FunctionBasedPath_constructProperty_coordinate_paths(swigCPtr, this); + } + + public void copyProperty_length_function(FunctionBasedPath source) { + opensimSimulationJNI.FunctionBasedPath_copyProperty_length_function(swigCPtr, this, FunctionBasedPath.getCPtr(source), source); + } + + public Function get_length_function(int i) { + return new Function(opensimSimulationJNI.FunctionBasedPath_get_length_function__SWIG_0(swigCPtr, this, i), false); + } + + public Function upd_length_function(int i) { + return new Function(opensimSimulationJNI.FunctionBasedPath_upd_length_function__SWIG_0(swigCPtr, this, i), false); + } + + public void set_length_function(int i, Function value) { + opensimSimulationJNI.FunctionBasedPath_set_length_function__SWIG_0(swigCPtr, this, i, Function.getCPtr(value), value); + } + + public int append_length_function(Function value) { + return opensimSimulationJNI.FunctionBasedPath_append_length_function(swigCPtr, this, Function.getCPtr(value), value); + } + + public void constructProperty_length_function() { + opensimSimulationJNI.FunctionBasedPath_constructProperty_length_function__SWIG_0(swigCPtr, this); + } + + public void constructProperty_length_function(Function initValue) { + opensimSimulationJNI.FunctionBasedPath_constructProperty_length_function__SWIG_1(swigCPtr, this, Function.getCPtr(initValue), initValue); + } + + public Function get_length_function() { + return new Function(opensimSimulationJNI.FunctionBasedPath_get_length_function__SWIG_1(swigCPtr, this), false); + } + + public Function upd_length_function() { + return new Function(opensimSimulationJNI.FunctionBasedPath_upd_length_function__SWIG_1(swigCPtr, this), false); + } + + public void set_length_function(Function value) { + opensimSimulationJNI.FunctionBasedPath_set_length_function__SWIG_1(swigCPtr, this, Function.getCPtr(value), value); + } + + public void copyProperty_moment_arm_functions(FunctionBasedPath source) { + opensimSimulationJNI.FunctionBasedPath_copyProperty_moment_arm_functions(swigCPtr, this, FunctionBasedPath.getCPtr(source), source); + } + + public Function get_moment_arm_functions(int i) { + return new Function(opensimSimulationJNI.FunctionBasedPath_get_moment_arm_functions(swigCPtr, this, i), false); + } + + public Function upd_moment_arm_functions(int i) { + return new Function(opensimSimulationJNI.FunctionBasedPath_upd_moment_arm_functions(swigCPtr, this, i), false); + } + + public void set_moment_arm_functions(int i, Function value) { + opensimSimulationJNI.FunctionBasedPath_set_moment_arm_functions(swigCPtr, this, i, Function.getCPtr(value), value); + } + + public int append_moment_arm_functions(Function value) { + return opensimSimulationJNI.FunctionBasedPath_append_moment_arm_functions(swigCPtr, this, Function.getCPtr(value), value); + } + + public void constructProperty_moment_arm_functions() { + opensimSimulationJNI.FunctionBasedPath_constructProperty_moment_arm_functions(swigCPtr, this); + } + + public void copyProperty_lengthening_speed_function(FunctionBasedPath source) { + opensimSimulationJNI.FunctionBasedPath_copyProperty_lengthening_speed_function(swigCPtr, this, FunctionBasedPath.getCPtr(source), source); + } + + public Function get_lengthening_speed_function(int i) { + return new Function(opensimSimulationJNI.FunctionBasedPath_get_lengthening_speed_function__SWIG_0(swigCPtr, this, i), false); + } + + public Function upd_lengthening_speed_function(int i) { + return new Function(opensimSimulationJNI.FunctionBasedPath_upd_lengthening_speed_function__SWIG_0(swigCPtr, this, i), false); + } + + public void set_lengthening_speed_function(int i, Function value) { + opensimSimulationJNI.FunctionBasedPath_set_lengthening_speed_function__SWIG_0(swigCPtr, this, i, Function.getCPtr(value), value); + } + + public int append_lengthening_speed_function(Function value) { + return opensimSimulationJNI.FunctionBasedPath_append_lengthening_speed_function(swigCPtr, this, Function.getCPtr(value), value); + } + + public void constructProperty_lengthening_speed_function() { + opensimSimulationJNI.FunctionBasedPath_constructProperty_lengthening_speed_function__SWIG_0(swigCPtr, this); + } + + public void constructProperty_lengthening_speed_function(Function initValue) { + opensimSimulationJNI.FunctionBasedPath_constructProperty_lengthening_speed_function__SWIG_1(swigCPtr, this, Function.getCPtr(initValue), initValue); + } + + public Function get_lengthening_speed_function() { + return new Function(opensimSimulationJNI.FunctionBasedPath_get_lengthening_speed_function__SWIG_1(swigCPtr, this), false); + } + + public Function upd_lengthening_speed_function() { + return new Function(opensimSimulationJNI.FunctionBasedPath_upd_lengthening_speed_function__SWIG_1(swigCPtr, this), false); + } + + public void set_lengthening_speed_function(Function value) { + opensimSimulationJNI.FunctionBasedPath_set_lengthening_speed_function__SWIG_1(swigCPtr, this, Function.getCPtr(value), value); + } + + public FunctionBasedPath() { + this(opensimSimulationJNI.new_FunctionBasedPath(), true); + } + + /** + * Set the list of paths to the model coordinate that are used as arguments
+ * to the length and, if provided, lengthening speed and moment functions.
+ * The order of the coordinates must match the order of the function
+ * arguments. + */ + public void setCoordinatePaths(StdVectorString coordinatePaths) { + opensimSimulationJNI.FunctionBasedPath_setCoordinatePaths(swigCPtr, this, StdVectorString.getCPtr(coordinatePaths), coordinatePaths); + } + + public void appendCoordinatePath(String coordinatePath) { + opensimSimulationJNI.FunctionBasedPath_appendCoordinatePath(swigCPtr, this, coordinatePath); + } + + public StdVectorString getCoordinatePaths() { + return new StdVectorString(opensimSimulationJNI.FunctionBasedPath_getCoordinatePaths(swigCPtr, this), true); + } + + /** + * Set the function that computes the length of the path as a function of
+ * the coordinate values. The function must have the same number of
+ * arguments as the number of coordinates. + */ + public void setLengthFunction(Function lengthFunction) { + opensimSimulationJNI.FunctionBasedPath_setLengthFunction(swigCPtr, this, Function.getCPtr(lengthFunction), lengthFunction); + } + + public Function getLengthFunction() { + return new Function(opensimSimulationJNI.FunctionBasedPath_getLengthFunction(swigCPtr, this), false); + } + + /** + * Set the list of functions that compute the moment arms of the path as a
+ * function of the coordinate values. The order of the functions must match
+ * the order of the coordinates. + */ + public void setMomentArmFunctions(SWIGTYPE_p_std__vectorT_OpenSim__Function_t momentArmFunctions) { + opensimSimulationJNI.FunctionBasedPath_setMomentArmFunctions(swigCPtr, this, SWIGTYPE_p_std__vectorT_OpenSim__Function_t.getCPtr(momentArmFunctions)); + } + + public void appendMomentArmFunction(Function momentArmFunction) { + opensimSimulationJNI.FunctionBasedPath_appendMomentArmFunction(swigCPtr, this, Function.getCPtr(momentArmFunction), momentArmFunction); + } + + public Function getMomentArmFunction(String coordinatePath) { + return new Function(opensimSimulationJNI.FunctionBasedPath_getMomentArmFunction(swigCPtr, this, coordinatePath), false); + } + + public Vector getMomentArms(State s) { + return new Vector(opensimSimulationJNI.FunctionBasedPath_getMomentArms(swigCPtr, this, State.getCPtr(s), s), false); + } + + /** + * Set the function that computes the speed of the path as a function of
+ * the coordinate values and speeds. The function must have the same number
+ * of arguments as the number of coordinate values and speeds. + */ + public void setLengtheningSpeedFunction(Function speedFunction) { + opensimSimulationJNI.FunctionBasedPath_setLengtheningSpeedFunction(swigCPtr, this, Function.getCPtr(speedFunction), speedFunction); + } + + public Function getLengtheningSpeedFunction() { + return new Function(opensimSimulationJNI.FunctionBasedPath_getLengtheningSpeedFunction(swigCPtr, this), false); + } + + public double getLength(State s) { + return opensimSimulationJNI.FunctionBasedPath_getLength(swigCPtr, this, State.getCPtr(s), s); + } + + public double getLengtheningSpeed(State s) { + return opensimSimulationJNI.FunctionBasedPath_getLengtheningSpeed(swigCPtr, this, State.getCPtr(s), s); + } + + /** + * Note: This must check if the path is dependent on the provided
+ * coordinate, which requires a search through the list of coordinates.
+ * To retrieve the moment arms directly from the cache variable in the
+ * SimTK::State, use `getMomentArms()` instead. + */ + public double computeMomentArm(State s, Coordinate coord) { + return opensimSimulationJNI.FunctionBasedPath_computeMomentArm(swigCPtr, this, State.getCPtr(s), s, Coordinate.getCPtr(coord), coord); + } + + public void addInEquivalentForces(State state, double tension, VectorOfSpatialVec bodyForces, Vector mobilityForces) { + opensimSimulationJNI.FunctionBasedPath_addInEquivalentForces(swigCPtr, this, State.getCPtr(state), state, tension, VectorOfSpatialVec.getCPtr(bodyForces), bodyForces, Vector.getCPtr(mobilityForces), mobilityForces); + } + + public boolean isVisualPath() { + return opensimSimulationJNI.FunctionBasedPath_isVisualPath(swigCPtr, this); + } + +} diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/GeometryPath.java b/Gui/opensim/modeling/src/org/opensim/modeling/GeometryPath.java index 17152df02..792d30f3f 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/GeometryPath.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/GeometryPath.java @@ -9,10 +9,10 @@ package org.opensim.modeling; /** - * A base class representing a path (muscle, ligament, etc.).
+ * A concrete class representing a path (muscle, ligament, etc.) based on
+ * geometry objects in the model (e.g., PathPoints and PathWraps).
*
- * @author Peter Loan
- * @version 1.0 + * @author Peter Loan */ public class GeometryPath extends AbstractPath { private transient long swigCPtr; diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/MocoControlGoal.java b/Gui/opensim/modeling/src/org/opensim/modeling/MocoControlGoal.java index 9783bcd9b..de0742a66 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/MocoControlGoal.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/MocoControlGoal.java @@ -148,16 +148,4 @@ public double getExponent() { return opensimMocoJNI.MocoControlGoal_getExponent(swigCPtr, this); } - /** - * Set if the goal should be divided by the displacement of the system's
- * center of mass over the phase. - */ - public void setDivideByDisplacement(boolean tf) { - opensimMocoJNI.MocoControlGoal_setDivideByDisplacement(swigCPtr, this, tf); - } - - public boolean getDivideByDisplacement() { - return opensimMocoJNI.MocoControlGoal_getDivideByDisplacement(swigCPtr, this); - } - } diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/MocoGoal.java b/Gui/opensim/modeling/src/org/opensim/modeling/MocoGoal.java index a654e011f..2ced2b686 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/MocoGoal.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/MocoGoal.java @@ -276,6 +276,46 @@ public void printDescription() { opensimMocoJNI.MocoGoal_printDescription(swigCPtr, this); } + /** + * Set if the goal should be divided by the displacement of the system's
+ * center of mass over the phase.
+ * Note: Increases the stage dependency of this goal to
+ * SimTK::Stage::Position, if it is not already equal or higher. + */ + public void setDivideByDisplacement(boolean tf) { + opensimMocoJNI.MocoGoal_setDivideByDisplacement(swigCPtr, this, tf); + } + + public boolean getDivideByDisplacement() { + return opensimMocoJNI.MocoGoal_getDivideByDisplacement(swigCPtr, this); + } + + /** + * Set if the goal should be divided by the phase duration.
+ * Note: Increases the stage dependency of this goal to
+ * SimTK::Stage::Topology, if it is not already equal or higher + */ + public void setDivideByDuration(boolean tf) { + opensimMocoJNI.MocoGoal_setDivideByDuration(swigCPtr, this, tf); + } + + public boolean getDivideByDuration() { + return opensimMocoJNI.MocoGoal_getDivideByDuration(swigCPtr, this); + } + + /** + * Set if the goal should be divided by the model's mass.
+ * Note: Increases the stage dependency of this goal to
+ * SimTK::Stage::Instance, if it is not already equal or higher. + */ + public void setDivideByMass(boolean tf) { + opensimMocoJNI.MocoGoal_setDivideByMass(swigCPtr, this, tf); + } + + public boolean getDivideByMass() { + return opensimMocoJNI.MocoGoal_getDivideByMass(swigCPtr, this); + } + public final static class Mode { public final static MocoGoal.Mode Cost = new MocoGoal.Mode("Cost"); public final static MocoGoal.Mode EndpointConstraint = new MocoGoal.Mode("EndpointConstraint"); diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/MocoOutputExtremumGoal.java b/Gui/opensim/modeling/src/org/opensim/modeling/MocoOutputExtremumGoal.java index 4fc4f35c2..c40afe447 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/MocoOutputExtremumGoal.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/MocoOutputExtremumGoal.java @@ -112,29 +112,6 @@ public MocoOutputExtremumGoal(String name, double weight) { this(opensimMocoJNI.new_MocoOutputExtremumGoal__SWIG_2(name, weight), true); } - /** - * Set if the goal should be divided by the displacement of the system's
- * center of mass over the phase. - */ - public void setDivideByDisplacement(boolean tf) { - opensimMocoJNI.MocoOutputExtremumGoal_setDivideByDisplacement(swigCPtr, this, tf); - } - - public boolean getDivideByDisplacement() { - return opensimMocoJNI.MocoOutputExtremumGoal_getDivideByDisplacement(swigCPtr, this); - } - - /** - * Set if the goal should be divided by the total mass of the model. - */ - public void setDivideByMass(boolean tf) { - opensimMocoJNI.MocoOutputExtremumGoal_setDivideByMass(swigCPtr, this, tf); - } - - public boolean getDivideByMass() { - return opensimMocoJNI.MocoOutputExtremumGoal_getDivideByMass(swigCPtr, this); - } - /** * Set the type of extremum ('minimum' or 'maximum') to be applied to the
* output variable of choice. diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/MocoOutputGoal.java b/Gui/opensim/modeling/src/org/opensim/modeling/MocoOutputGoal.java index 3e3a483e7..03a014e55 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/MocoOutputGoal.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/MocoOutputGoal.java @@ -95,27 +95,4 @@ public MocoOutputGoal(String name, double weight) { this(opensimMocoJNI.new_MocoOutputGoal__SWIG_2(name, weight), true); } - /** - * Set if the goal should be divided by the displacement of the system's
- * center of mass over the phase. - */ - public void setDivideByDisplacement(boolean tf) { - opensimMocoJNI.MocoOutputGoal_setDivideByDisplacement(swigCPtr, this, tf); - } - - public boolean getDivideByDisplacement() { - return opensimMocoJNI.MocoOutputGoal_getDivideByDisplacement(swigCPtr, this); - } - - /** - * Set if the goal should be divided by the total mass of the model. - */ - public void setDivideByMass(boolean tf) { - opensimMocoJNI.MocoOutputGoal_setDivideByMass(swigCPtr, this, tf); - } - - public boolean getDivideByMass() { - return opensimMocoJNI.MocoOutputGoal_getDivideByMass(swigCPtr, this); - } - } diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/Model.java b/Gui/opensim/modeling/src/org/opensim/modeling/Model.java index e737df584..b87c0e312 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/Model.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/Model.java @@ -1774,8 +1774,8 @@ public CoordinateSet getCoordinateSet() { * corresponding generalized Coordinates of the Model.
* Throws if the MultibodySystem is not valid. */ - public SWIGTYPE_p_std__vectorT_SimTK__ReferencePtrT_OpenSim__Coordinate_const_t_t getCoordinatesInMultibodyTreeOrder() { - return new SWIGTYPE_p_std__vectorT_SimTK__ReferencePtrT_OpenSim__Coordinate_const_t_t(opensimSimulationJNI.Model_getCoordinatesInMultibodyTreeOrder(swigCPtr, this), true); + public StdVectorReferencePtrCoordinate getCoordinatesInMultibodyTreeOrder() { + return new StdVectorReferencePtrCoordinate(opensimSimulationJNI.Model_getCoordinatesInMultibodyTreeOrder(swigCPtr, this), true); } /** diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/ReferencePtrCoordinate.java b/Gui/opensim/modeling/src/org/opensim/modeling/ReferencePtrCoordinate.java new file mode 100644 index 000000000..d0e48ef64 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/ReferencePtrCoordinate.java @@ -0,0 +1,1418 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +/** + * This is a smart pointer that implements "cross reference" semantics where
+ * a pointer data member of some object is intended to refer to some target
+ * object in a larger data structure. Judicious use of this container will allow
+ * you to use compiler-generated copy constructors and copy assignment operators
+ * for classes which would otherwise have to implement their own in order to
+ * properly initialize these pointer data members, which must not be copied.
+ *
+ * The contained pointer is initialized to `nullptr` on construction, and it is
+ * reinitialized to null upon copy construction or copy assignment. That's
+ * because we are assuming this is part of copying the entire data structure and
+ * copying the old pointer would create a reference into the old data structure
+ * rather than the new copy. This pointer does not own the target to which it
+ * points, and there is no reference counting so it will become stale if the
+ * target is deleted.
+ *
+ * The pointer *is* moved intact for move construction or move assignment. That
+ * allows `std::vector<ReferencePtr + * behave properly when their contents have to be moved for expansion.
+ *
+ * Whether you can write through the pointer is controlled by whether type T
+ * is a const type. For example %ReferencePtr<int> is equivalent to an int*, while
+ * %ReferencePtr<const int> is equivalent to a const int*.
+ *
+ * This class is entirely inline and has no computational or space overhead; it
+ * contains just a single pointer.
+ *
+ * @see ClonePtr, CloneOnWritePtr * + */ +public class ReferencePtrCoordinate { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + public ReferencePtrCoordinate(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + public static long getCPtr(ReferencePtrCoordinate obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + public static long swigRelease(ReferencePtrCoordinate obj) { + long ptr = 0; + if (obj != null) { + if (!obj.swigCMemOwn) + throw new RuntimeException("Cannot release ownership as memory is not owned"); + ptr = obj.swigCPtr; + obj.swigCMemOwn = false; + obj.delete(); + } + return ptr; + } + + @SuppressWarnings("deprecation") + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + opensimSimulationJNI.delete_ReferencePtrCoordinate(swigCPtr); + } + swigCPtr = 0; + } + } + + /** + * * Default constructor creates an empty object. * + */ + public ReferencePtrCoordinate() { + this(opensimSimulationJNI.new_ReferencePtrCoordinate__SWIG_0(), true); + } + + /** + * Constructor from `nullptr` is the same as the default constructor.
+ * This is an implicit conversion that allows `nullptr` to be used to
+ * initialize a %ReferencePtr. * + */ + public ReferencePtrCoordinate(SWIGTYPE_p_std__nullptr_t arg0) { + this(opensimSimulationJNI.new_ReferencePtrCoordinate__SWIG_1(SWIGTYPE_p_std__nullptr_t.getCPtr(arg0)), true); + } + + /** + * Construct from a given pointer stores the pointer. * + */ + public ReferencePtrCoordinate(Coordinate tp) { + this(opensimSimulationJNI.new_ReferencePtrCoordinate__SWIG_2(Coordinate.getCPtr(tp), tp), true); + } + + /** + * Copy constructor unconditionally sets the pointer to null; see class
+ * comments for why. * + */ + public ReferencePtrCoordinate(ReferencePtrCoordinate arg0) { + this(opensimSimulationJNI.new_ReferencePtrCoordinate__SWIG_4(ReferencePtrCoordinate.getCPtr(arg0), arg0), true); + } + + /** + * (Deprecated) Use %ReferencePtr(nullptr) or just %ReferencePtr()
+ * instead. For backwards compatibility, this allows initialization
+ * by "0" rather than `nullptr`. * + */ + public ReferencePtrCoordinate(int mustBeZero) { + this(opensimSimulationJNI.new_ReferencePtrCoordinate__SWIG_6(mustBeZero), true); + } + + /** + * ** Return the contained pointer, or null if the container is empty. * + */ + public Coordinate get() { + long cPtr = opensimSimulationJNI.ReferencePtrCoordinate_get(swigCPtr, this); + return (cPtr == 0) ? null : new Coordinate(cPtr, false); + } + + /** + * Return a reference to the target object. Fails if the pointer is
+ * null. * + */ + public Coordinate getRef() { + return new Coordinate(opensimSimulationJNI.ReferencePtrCoordinate_getRef(swigCPtr, this), false); + } + + /** + * Return the contained pointer. This will fail if the container is
+ * empty. * + */ + public Coordinate __deref__() { + long cPtr = opensimSimulationJNI.ReferencePtrCoordinate___deref__(swigCPtr, this); + return (cPtr == 0) ? null : new Coordinate(cPtr, false); + } + + /** + * The "dereference" operator returns a reference to the target object.
+ * This will fail if the container is empty. * + */ + public Coordinate __ref__() { + return new Coordinate(opensimSimulationJNI.ReferencePtrCoordinate___ref__(swigCPtr, this), false); + } + + /** + * ** Replace the stored pointer with a different one; no destruction
+ * occurs. * + */ + public void reset(Coordinate tp) { + opensimSimulationJNI.ReferencePtrCoordinate_reset__SWIG_0(swigCPtr, this, Coordinate.getCPtr(tp), tp); + } + + /** + * ** Replace the stored pointer with a different one; no destruction
+ * occurs. * + */ + public void reset() { + opensimSimulationJNI.ReferencePtrCoordinate_reset__SWIG_1(swigCPtr, this); + } + + /** + * Swap the contents of this %ReferencePtr with another one. This is very
+ * fast. * + */ + public void swap(ReferencePtrCoordinate other) { + opensimSimulationJNI.ReferencePtrCoordinate_swap(swigCPtr, this, ReferencePtrCoordinate.getCPtr(other), other); + } + + /** + * Return true if this container is empty. * + */ + public boolean empty() { + return opensimSimulationJNI.ReferencePtrCoordinate_empty(swigCPtr, this); + } + + /** + * Extract the pointer from this container, leaving the container empty.
+ * The pointer is returned. * + */ + public Coordinate release() { + long cPtr = opensimSimulationJNI.ReferencePtrCoordinate_release(swigCPtr, this); + return (cPtr == 0) ? null : new Coordinate(cPtr, false); + } + + /** + * (Deprecated) Use reset() instead. * + */ + public void clear() { + opensimSimulationJNI.ReferencePtrCoordinate_clear(swigCPtr, this); + } + + public OpenSimObject clone() { + long cPtr = opensimSimulationJNI.ReferencePtrCoordinate_clone(swigCPtr, this); + return (cPtr == 0) ? null : new Coordinate(cPtr, true); + } + + public String getConcreteClassName() { + return opensimSimulationJNI.ReferencePtrCoordinate_getConcreteClassName(swigCPtr, this); + } + + public double get_default_value(int i) { + return opensimSimulationJNI.ReferencePtrCoordinate_get_default_value__SWIG_0(swigCPtr, this, i); + } + + public double get_default_value() { + return opensimSimulationJNI.ReferencePtrCoordinate_get_default_value__SWIG_1(swigCPtr, this); + } + + public double get_default_speed_value(int i) { + return opensimSimulationJNI.ReferencePtrCoordinate_get_default_speed_value__SWIG_0(swigCPtr, this, i); + } + + public double get_default_speed_value() { + return opensimSimulationJNI.ReferencePtrCoordinate_get_default_speed_value__SWIG_1(swigCPtr, this); + } + + public double get_range(int i) { + return opensimSimulationJNI.ReferencePtrCoordinate_get_range(swigCPtr, this, i); + } + + public boolean get_clamped(int i) { + return opensimSimulationJNI.ReferencePtrCoordinate_get_clamped__SWIG_0(swigCPtr, this, i); + } + + public boolean get_clamped() { + return opensimSimulationJNI.ReferencePtrCoordinate_get_clamped__SWIG_1(swigCPtr, this); + } + + public boolean get_locked(int i) { + return opensimSimulationJNI.ReferencePtrCoordinate_get_locked__SWIG_0(swigCPtr, this, i); + } + + public boolean get_locked() { + return opensimSimulationJNI.ReferencePtrCoordinate_get_locked__SWIG_1(swigCPtr, this); + } + + public Function get_prescribed_function(int i) { + return new Function(opensimSimulationJNI.ReferencePtrCoordinate_get_prescribed_function__SWIG_0(swigCPtr, this, i), false); + } + + public Function get_prescribed_function() { + return new Function(opensimSimulationJNI.ReferencePtrCoordinate_get_prescribed_function__SWIG_1(swigCPtr, this), false); + } + + public boolean get_prescribed(int i) { + return opensimSimulationJNI.ReferencePtrCoordinate_get_prescribed__SWIG_0(swigCPtr, this, i); + } + + public boolean get_prescribed() { + return opensimSimulationJNI.ReferencePtrCoordinate_get_prescribed__SWIG_1(swigCPtr, this); + } + + public boolean get_is_free_to_satisfy_constraints(int i) { + return opensimSimulationJNI.ReferencePtrCoordinate_get_is_free_to_satisfy_constraints__SWIG_0(swigCPtr, this, i); + } + + public boolean get_is_free_to_satisfy_constraints() { + return opensimSimulationJNI.ReferencePtrCoordinate_get_is_free_to_satisfy_constraints__SWIG_1(swigCPtr, this); + } + + public boolean get_has_output_value() { + return opensimSimulationJNI.ReferencePtrCoordinate__has_output_value_get(swigCPtr, this); + } + + public boolean get_has_output_speed() { + return opensimSimulationJNI.ReferencePtrCoordinate__has_output_speed_get(swigCPtr, this); + } + + public boolean get_has_output_acceleration() { + return opensimSimulationJNI.ReferencePtrCoordinate__has_output_acceleration_get(swigCPtr, this); + } + + /** + * * access to the Coordinate's owning joint + */ + public Joint getJoint() { + return new Joint(opensimSimulationJNI.ReferencePtrCoordinate_getJoint(swigCPtr, this), false); + } + + /** + * access to the generalized Coordinate's motion type
+ * This can be Rotational, Translational, or Coupled (both) + */ + public Coordinate.MotionType getMotionType() { + return Coordinate.MotionType.swigToEnum(opensimSimulationJNI.ReferencePtrCoordinate_getMotionType(swigCPtr, this)); + } + + /** + * get the value of the Coordinate from the state + */ + public double getValue(State s) { + return opensimSimulationJNI.ReferencePtrCoordinate_getValue(swigCPtr, this, State.getCPtr(s), s); + } + + /** + * Set the value of the Coordinate on to the state.
+ * Optional flag to enforce the constraints immediately (true by default),
+ * which can adjust all coordinate values in the state to satisfy model
+ * constraints. Use getValue(s) to see if/how the value was adjusted to
+ * satisfy the kinematic constraints. If setting multiple Coordinate values
+ * consecutively, e.g. in a loop, set the flag to false and then call
+ * Model::assemble(state) once all Coordinate values have been set.
+ * Alternatively, use Model::setStateVariableValues() to set all coordinate
+ * values and their speeds at once followed by Model::assemble(state).
+ *
+ * The provided value will be clamped to the coordinate's range if
+ * the coordinate is clamped and enforceConstraints is true. + */ + public void setValue(State s, double aValue, boolean enforceContraints) { + opensimSimulationJNI.ReferencePtrCoordinate_setValue__SWIG_0(swigCPtr, this, State.getCPtr(s), s, aValue, enforceContraints); + } + + /** + * Set the value of the Coordinate on to the state.
+ * Optional flag to enforce the constraints immediately (true by default),
+ * which can adjust all coordinate values in the state to satisfy model
+ * constraints. Use getValue(s) to see if/how the value was adjusted to
+ * satisfy the kinematic constraints. If setting multiple Coordinate values
+ * consecutively, e.g. in a loop, set the flag to false and then call
+ * Model::assemble(state) once all Coordinate values have been set.
+ * Alternatively, use Model::setStateVariableValues() to set all coordinate
+ * values and their speeds at once followed by Model::assemble(state).
+ *
+ * The provided value will be clamped to the coordinate's range if
+ * the coordinate is clamped and enforceConstraints is true. + */ + public void setValue(State s, double aValue) { + opensimSimulationJNI.ReferencePtrCoordinate_setValue__SWIG_1(swigCPtr, this, State.getCPtr(s), s, aValue); + } + + /** + * get the speed value of the Coordinate from the state + */ + public double getSpeedValue(State s) { + return opensimSimulationJNI.ReferencePtrCoordinate_getSpeedValue(swigCPtr, this, State.getCPtr(s), s); + } + + public void setSpeedValue(State s, double aValue) { + opensimSimulationJNI.ReferencePtrCoordinate_setSpeedValue(swigCPtr, this, State.getCPtr(s), s, aValue); + } + + /** + * return the name (label) used to identify the Coordinate's speed
+ * state variable. Returns the string "/speed" + */ + public String getSpeedName() { + return opensimSimulationJNI.ReferencePtrCoordinate_getSpeedName(swigCPtr, this); + } + + /** + * get the derivative of Coordinate's value from the state. This value is
+ * not* necessarily equal to the value returned by getSpeedValue(). + */ + public double getQDotValue(State s) { + return opensimSimulationJNI.ReferencePtrCoordinate_getQDotValue(swigCPtr, this, State.getCPtr(s), s); + } + + /** + * get the default value for this coordinate. This is the value
+ * used if no value has been set prior to a simulation. + */ + public double getDefaultValue() { + return opensimSimulationJNI.ReferencePtrCoordinate_getDefaultValue(swigCPtr, this); + } + + /** + * get the default speed value for this coordinate. This is the value
+ * used if no value has been set prior to a simulation. + */ + public double getDefaultSpeedValue() { + return opensimSimulationJNI.ReferencePtrCoordinate_getDefaultSpeedValue(swigCPtr, this); + } + + /** + * get acceleration of the coordinate is dependent on having
+ * realized the model and state to the acceleration stage + */ + public double getAccelerationValue(State s) { + return opensimSimulationJNI.ReferencePtrCoordinate_getAccelerationValue(swigCPtr, this, State.getCPtr(s), s); + } + + /** + * determine or set whether or not the Coordinate is
+ * "clamped" between a range of values. + */ + public boolean getClamped(State s) { + return opensimSimulationJNI.ReferencePtrCoordinate_getClamped(swigCPtr, this, State.getCPtr(s), s); + } + + public void setClamped(State s, boolean aLocked) { + opensimSimulationJNI.ReferencePtrCoordinate_setClamped(swigCPtr, this, State.getCPtr(s), s, aLocked); + } + + /** + * get/set whether or not the Coordinate is clamped by default + */ + public boolean getDefaultClamped() { + return opensimSimulationJNI.ReferencePtrCoordinate_getDefaultClamped(swigCPtr, this); + } + + /** + * get the value for the Coordinate's range of motion + */ + public double getRangeMin() { + return opensimSimulationJNI.ReferencePtrCoordinate_getRangeMin(swigCPtr, this); + } + + public double getRangeMax() { + return opensimSimulationJNI.ReferencePtrCoordinate_getRangeMax(swigCPtr, this); + } + + /** + * determine or set whether or not the Coordinate is
+ * "locked" for a given state of the Model. + */ + public boolean getLocked(State s) { + return opensimSimulationJNI.ReferencePtrCoordinate_getLocked(swigCPtr, this, State.getCPtr(s), s); + } + + public void setLocked(State s, boolean aLocked) { + opensimSimulationJNI.ReferencePtrCoordinate_setLocked(swigCPtr, this, State.getCPtr(s), s, aLocked); + } + + /** + * get/set whether or not the Coordinate is locked by default + */ + public boolean getDefaultLocked() { + return opensimSimulationJNI.ReferencePtrCoordinate_getDefaultLocked(swigCPtr, this); + } + + /** + * determine or set whether or not the Coordinate is
+ * "prescribed" for a given state of the Model. + */ + public boolean isPrescribed(State s) { + return opensimSimulationJNI.ReferencePtrCoordinate_isPrescribed(swigCPtr, this, State.getCPtr(s), s); + } + + public void setIsPrescribed(State s, boolean isPrescribed) { + opensimSimulationJNI.ReferencePtrCoordinate_setIsPrescribed(swigCPtr, this, State.getCPtr(s), s, isPrescribed); + } + + /** + * get/set whether or not the Coordinate is locked by default + */ + public boolean getDefaultIsPrescribed() { + return opensimSimulationJNI.ReferencePtrCoordinate_getDefaultIsPrescribed(swigCPtr, this); + } + + public Function getPrescribedFunction() { + return new Function(opensimSimulationJNI.ReferencePtrCoordinate_getPrescribedFunction(swigCPtr, this), false); + } + + /** + * Return true if coordinate is dependent on other coordinates via a coupler
+ * constraint OR it has been flagged as free to change when satisfying
+ * the model's kinematic constraints in general. + */ + public boolean isDependent(State s) { + return opensimSimulationJNI.ReferencePtrCoordinate_isDependent(swigCPtr, this, State.getCPtr(s), s); + } + + /** + * Return true if coordinate is locked, prescribed, or dependent on other coordinates + */ + public boolean isConstrained(State s) { + return opensimSimulationJNI.ReferencePtrCoordinate_isConstrained(swigCPtr, this, State.getCPtr(s), s); + } + + /** + * * + */ + public int getMobilizerQIndex() { + return opensimSimulationJNI.ReferencePtrCoordinate_getMobilizerQIndex(swigCPtr, this); + } + + public int getBodyIndex() { + return opensimSimulationJNI.ReferencePtrCoordinate_getBodyIndex(swigCPtr, this); + } + + /** + * * + */ + public Coordinate.MotionType getUserSpecifiedMotionTypePriorTo40() { + return Coordinate.MotionType.swigToEnum(opensimSimulationJNI.ReferencePtrCoordinate_getUserSpecifiedMotionTypePriorTo40(swigCPtr, this)); + } + + /** + * Get a const reference to the Model this component is part of. + */ + public Model getModel() { + return new Model(opensimSimulationJNI.ReferencePtrCoordinate_getModel(swigCPtr, this), false); + } + + /** + * Does this ModelComponent have a Model associated with it? + */ + public boolean hasModel() { + return opensimSimulationJNI.ReferencePtrCoordinate_hasModel(swigCPtr, this); + } + + /** + * Have the Component add itself to the underlying computational System + */ + public void addToSystem(SWIGTYPE_p_SimTK__MultibodySystem system) { + opensimSimulationJNI.ReferencePtrCoordinate_addToSystem(swigCPtr, this, SWIGTYPE_p_SimTK__MultibodySystem.getCPtr(system)); + } + + /** + * Initialize Component's state variable values from its properties + */ + public void initStateFromProperties(State state) { + opensimSimulationJNI.ReferencePtrCoordinate_initStateFromProperties(swigCPtr, this, State.getCPtr(state), state); + } + + /** + * Optional method for generating arbitrary display geometry that reflects
+ * this %Component at the specified state. This will be called once to
+ * obtain ground- and body-fixed geometry (with fixed=true), and then
+ * once per frame (with fixed=false) to generate on-the-fly geometry such
+ * as rubber band lines, force arrows, labels, or debugging aids.
+ *
+ * Please note that there is a precondition that the state passed in to
+ * generateDecorations be realized to Stage::Position. If your component can
+ * visualize quantities realized at Velocity, Dynamics or Acceleration stages,
+ * then you must check that the stage has been realized before using/requesting
+ * stage dependent values. It is forbidden to realize the model to a higher
+ * stage within generateDecorations, because this can trigger costly side-
+ * effects such as evaluating all model forces even when performing a purely
+ * kinematic study.
+ *
+ * If you override this method, be sure to invoke the base class method first,
+ * using code like this:
+ * {@code + void MyComponent::generateDecorations + (bool fixed, + const ModelDisplayHints& hints, + const SimTK::State& state, + SimTK::Array_& appendToThis) const + { + invoke parent class method + Super::generateDecorations(fixed,hints,state,appendToThis); + ... your code goes here + can render velocity dependent quanities if stage is Velocity or higher + if(state.getSystemStage() >= Stage::Velocity) { + draw velocity vector for model COM + } + can render computed forces if stage is Dynamics or higher + if(state.getSystemStage() >= Stage::Dynamics) { + change the length of a force arrow based on the force in N + } + } + }
+ *
+ * @param fixed
+ * If true, generate only geometry that is fixed to a PhysicalFrame,
+ * configuration, and velocity. Otherwise generate only such dependent
+ * geometry.
+ * @param hints
+ * See documentation for ModelDisplayHints; you may want to alter the
+ * geometry you generate depending on what you find there. For example,
+ * you can determine whether the user wants to see debug geometry.
+ * @param state
+ * The State for which geometry should be produced. See below for more
+ * information.
+ * @param appendToThis
+ * %Array to which generated geometry should be appended via the
+ * push_back() method.
+ *
+ * When called with fixed=true only modeling options and parameters
+ * (Instance variables) should affect geometry; time, position, and velocity
+ * should not. In that case OpenSim will already have realized the state
+ * through Instance stage. When called with fixed=false, you may
+ * consult any relevant value in state. However, to avoid unnecessary
+ * computation, OpenSim guarantees only that state will have been realized
+ * through Position stage; if you need anything higher than that (reaction
+ * forces, for example) you should make sure the state is realized through
+ * Acceleration stage. * + */ + public void generateDecorations(boolean fixed, ModelDisplayHints hints, State state, ArrayDecorativeGeometry appendToThis) { + opensimSimulationJNI.ReferencePtrCoordinate_generateDecorations(swigCPtr, this, fixed, ModelDisplayHints.getCPtr(hints), hints, State.getCPtr(state), state, ArrayDecorativeGeometry.getCPtr(appendToThis), appendToThis); + } + + /** + * Get the underlying MultibodySystem that this component is connected to.
+ * Make sure you have called Model::initSystem() prior to accessing the System.
+ * Throws an Exception if the System has not been created or the Component
+ * has not added itself to the System.
+ * @see hasSystem(). + */ + public SWIGTYPE_p_SimTK__MultibodySystem getSystem() { + return new SWIGTYPE_p_SimTK__MultibodySystem(opensimSimulationJNI.ReferencePtrCoordinate_getSystem(swigCPtr, this), false); + } + + /** + * Check if this component has an underlying MultibodySystem.
+ * Returns false if the System has not been created OR if this
+ * Component has not added itself to the System. + */ + public boolean hasSystem() { + return opensimSimulationJNI.ReferencePtrCoordinate_hasSystem(swigCPtr, this); + } + + /** + * Does the provided component already exist anywhere in the ownership
+ * tree (not just subcomponents of this component)? + */ + public boolean isComponentInOwnershipTree(Component component) { + return opensimSimulationJNI.ReferencePtrCoordinate_isComponentInOwnershipTree(swigCPtr, this, Component.getCPtr(component), component); + } + + /** + * Get the complete (absolute) pathname for this Component to its ancestral
+ * Component, which is the root of the tree to which this Component belongs.
+ * For example: a Coordinate Component would have an absolute path name
+ * like: `/arm26/elbow_r/flexion`. Accessing a Component by its
+ * absolutePathName from root is guaranteed to be unique. The
+ * absolutePathName is generated on-the-fly by traversing the ownership tree
+ * and, therefore, calling this method is not "free". + */ + public String getAbsolutePathString() { + return opensimSimulationJNI.ReferencePtrCoordinate_getAbsolutePathString(swigCPtr, this); + } + + /** + * Return a ComponentPath of the absolute path of this Component.
+ * Note that this has more overhead than calling `getName()` because
+ * it traverses up the tree to generate the absolute pathname (and its
+ * computational cost is thus a function of depth). Consider other
+ * options if this is repeatedly called and efficiency is important.
+ * For instance, `getAbsolutePathString()` is faster if you only
+ * need the path as a string. + */ + public ComponentPath getAbsolutePath() { + return new ComponentPath(opensimSimulationJNI.ReferencePtrCoordinate_getAbsolutePath(swigCPtr, this), true); + } + + /** + * Get the relative path of this Component with respect to another
+ * Component, as a string. + */ + public String getRelativePathString(Component wrt) { + return opensimSimulationJNI.ReferencePtrCoordinate_getRelativePathString(swigCPtr, this, Component.getCPtr(wrt), wrt); + } + + /** + * Get the relative path of this Component with respect to another
+ * Component. + */ + public ComponentPath getRelativePath(Component wrt) { + return new ComponentPath(opensimSimulationJNI.ReferencePtrCoordinate_getRelativePath(swigCPtr, this, Component.getCPtr(wrt), wrt), true); + } + + /** + * Query if there is a component (of any type) at the specified
+ * path name. For example,
+ * {@code + bool exists = model.hasComponent("right_elbow/elbow_flexion"); + }
+ * checks if `model` has a subcomponent "right_elbow," which has a
+ * subcomponent "elbow_flexion." + */ + public boolean hasComponent(String pathname) { + return opensimSimulationJNI.ReferencePtrCoordinate_hasComponent(swigCPtr, this, pathname); + } + + /** + * Similar to the templatized getComponent(), except this returns the
+ * component as the generic Component type. This can be used in
+ * Python/Java/MATLAB. Here is an example of using this in MATLAB:
+ * {@code + coord = model.getComponent('right_elbow/elbow_flexion') + coord.getNumConnectees() % okay; this is a Component method. + coord.getDefaultClamped() % inaccessible; method on Coordinate. + Coordinate.safeDownCast(coord).getDefaultClamped() % now accessible. + }
+ *
+ * %Exception: in Python, you will get the concrete type (in most cases):
+ * {@code + coord = model.getComponent('right_elbow/elbow_flexion') + coord.getDefaultClamped() # works; no downcasting necessary. + } + */ + public Component getComponent(String pathname) { + return new Component(opensimSimulationJNI.ReferencePtrCoordinate_getComponent(swigCPtr, this, pathname), false); + } + + /** + * Print a list to the console of all components whose absolute path name
+ * contains the given string. You might use this if (a) you know the name
+ * of a component in your model but don't know its absolute path, (b) if
+ * you want to find all components with a given name, or (c) to get a list
+ * of all components on the right leg of a model (if all components on the
+ * right side have "_r" in their name).
+ *
+ * A function call like:
+ * {@code + unsigned num = comp.printComponentsMatching("rotation"); + }
+ * may produce output like:
+ * {@literal + /leg_model/right_hip/rotation + /leg_model/left_hip/rotation + }
+ *
+ * @return The number of matches. + */ + public long printComponentsMatching(String substring) { + return opensimSimulationJNI.ReferencePtrCoordinate_printComponentsMatching(swigCPtr, this, substring); + } + + /** + * Get the number of "continuous" state variables maintained by the
+ * Component and its subcomponents.
+ * @throws ComponentHasNoSystem if this Component has not been added to a
+ * System (i.e., if initSystem has not been called) + */ + public int getNumStateVariables() { + return opensimSimulationJNI.ReferencePtrCoordinate_getNumStateVariables(swigCPtr, this); + } + + /** + * Get the names of "continuous" state variables maintained by the Component
+ * and its subcomponents.
+ * @throws ComponentHasNoSystem if this Component has not been added to a
+ * System (i.e., if initSystem has not been called) + */ + public ArrayStr getStateVariableNames() { + return new ArrayStr(opensimSimulationJNI.ReferencePtrCoordinate_getStateVariableNames(swigCPtr, this), true); + } + + /** + * Get the number of Sockets in this Component. + */ + public int getNumSockets() { + return opensimSimulationJNI.ReferencePtrCoordinate_getNumSockets(swigCPtr, this); + } + + /** + * Collect and return the names of the sockets in this component. You
+ * can use this to iterate through the sockets:
+ * {@code + for (std::string name : comp.getSocketNames()) { + const AbstractSocket& socket = getSocket(name); + } + } + */ + public StdVectorString getSocketNames() { + return new StdVectorString(opensimSimulationJNI.ReferencePtrCoordinate_getSocketNames(swigCPtr, this), true); + } + + /** + * Get the connectee as an Object. This means you will not have
+ * access to the methods on the concrete connectee. This is the method you
+ * must use in MATLAB to access the connectee.
+ *
+ * Example:
+ * {@code + const Object& obj = joint.getConnectee("parent_frame"); + obj.getName(); // method on Object works. + obj.getMobilizedBody(); // error: not available. + }
+ *
+ * In MATLAB, if you want the concrete type, you need to downcast the
+ * Object. Here is an example where you know the "parent_frame" is a Body:
+ * {@code + f = joint.getConnectee('parent_frame'); + m = Body.safeDownCast(f).getMass(); + }
+ *
+ * Exception: in Python, you will get the concrete type (in most cases):
+ * {@code + f = joint.getConnectee("parent_frame"); + m = f.getMass() # works (if the parent frame is a body) + } + */ + public OpenSimObject getConnectee(String name) { + return new OpenSimObject(opensimSimulationJNI.ReferencePtrCoordinate_getConnectee(swigCPtr, this, name), false); + } + + public AbstractSocket getSocket(String name) { + return new AbstractSocket(opensimSimulationJNI.ReferencePtrCoordinate_getSocket(swigCPtr, this, name), false); + } + + /** + * Access the number of Inputs that this component has. + */ + public int getNumInputs() { + return opensimSimulationJNI.ReferencePtrCoordinate_getNumInputs(swigCPtr, this); + } + + /** + * Access the number of Outputs that this component has. + */ + public int getNumOutputs() { + return opensimSimulationJNI.ReferencePtrCoordinate_getNumOutputs(swigCPtr, this); + } + + /** + * Collect and return the names of Inputs in this component as an
+ * std::vector. + */ + public StdVectorString getInputNames() { + return new StdVectorString(opensimSimulationJNI.ReferencePtrCoordinate_getInputNames(swigCPtr, this), true); + } + + /** + * Collect and return the names of Outputs in this component as an
+ * std::vector. + */ + public StdVectorString getOutputNames() { + return new StdVectorString(opensimSimulationJNI.ReferencePtrCoordinate_getOutputNames(swigCPtr, this), true); + } + + /** + * Get an Input provided by this Component by name.
+ *
+ * C++ example: get an Input from a Component in the model
+ * {@code + model.getComponent("/path/to/component").getInput("inputName"); + }
+ *
+ * If you have not yet called finalizeFromProperties() on this
+ * component, this function will update the Input (to tell it which
+ * component it's in) before providing it to you.
+ *
+ * @param name the name of the Input
+ * @return const reference to the AbstractInput + */ + public AbstractInput getInput(String name) { + return new AbstractInput(opensimSimulationJNI.ReferencePtrCoordinate_getInput(swigCPtr, this, name), false); + } + + /** + * Get the Output provided by this Component by name.
+ *
+ * C++ example: get an Output from a Component in a model
+ * {@code + model.getComponent("/path/to/component").getOutput("outputName"); + }
+ *
+ * @param name the name of the Output
+ * @return const reference to the AbstractOutput + */ + public AbstractOutput getOutput(String name) { + return new AbstractOutput(opensimSimulationJNI.ReferencePtrCoordinate_getOutput(swigCPtr, this, name), false); + } + + /** + * Get a ModelingOption flag for this Component by name.
+ * The flag is an integer corresponding to the index of modelingOptionNames used
+ * add the modeling option to the component. @see addModelingOption
+ *
+ * @param state the State in which to set the modeling option
+ * @param name the name (string) of the modeling option of interest
+ * @return flag integer value for modeling option + */ + public int getModelingOption(State state, String name) { + return opensimSimulationJNI.ReferencePtrCoordinate_getModelingOption(swigCPtr, this, State.getCPtr(state), state, name); + } + + /** + * %Set the value of a ModelingOption flag for this Component.
+ * if the integer value exceeds the number of option names used to
+ * define the options, an exception is thrown. The SimTK::State
+ * Stage will be reverted back to Stage::Instance.
+ *
+ * @param state the State in which to set the flag
+ * @param name the name (string) of the modeling option of interest
+ * @param flag the desired flag (int) value specifying the modeling option + */ + public void setModelingOption(State state, String name, int flag) { + opensimSimulationJNI.ReferencePtrCoordinate_setModelingOption(swigCPtr, this, State.getCPtr(state), state, name, flag); + } + + /** + * Get the value of a state variable allocated by this Component.
+ *
+ * To connect this StateVariable as an input to another component (such as
+ * a Reporter), use getOutput(name); each state variable has a
+ * corresponding Output:
+ * {@code + foo.getInput("input1").connect(bar.getOutput(name)); + }
+ *
+ * @param state the State for which to get the value
+ * @param name the name (string) of the state variable of interest
+ * @throws ComponentHasNoSystem if this Component has not been added to a
+ * System (i.e., if initSystem has not been called) + */ + public double getStateVariableValue(State state, String name) { + return opensimSimulationJNI.ReferencePtrCoordinate_getStateVariableValue__SWIG_0(swigCPtr, this, State.getCPtr(state), state, name); + } + + /** + * Get the value of a state variable allocated by this Component.
+ *
+ * To connect this StateVariable as an input to another component (such as
+ * a Reporter), use getOutput(name); each state variable has a
+ * corresponding Output:
+ *
+ * {@code + foo.getInput("input1").connect(bar.getOutput(name)); + }
+ *
+ * @param state the State for which to get the value
+ *
+ * @throws ComponentHasNoSystem if this Component has not been added to a
+ * System (i.e., if initSystem has not been called) + */ + public double getStateVariableValue(State state, ComponentPath path) { + return opensimSimulationJNI.ReferencePtrCoordinate_getStateVariableValue__SWIG_1(swigCPtr, this, State.getCPtr(state), state, ComponentPath.getCPtr(path), path); + } + + /** + * %Set the value of a state variable allocated by this Component by name.
+ *
+ * @param state the State for which to set the value
+ * @param name the name of the state variable
+ * @param value the value to set
+ * @throws ComponentHasNoSystem if this Component has not been added to a
+ * System (i.e., if initSystem has not been called) + */ + public void setStateVariableValue(State state, String name, double value) { + opensimSimulationJNI.ReferencePtrCoordinate_setStateVariableValue(swigCPtr, this, State.getCPtr(state), state, name, value); + } + + /** + * Get all values of the state variables allocated by this Component.
+ * Includes state variables allocated by its subcomponents.
+ *
+ * @param state the State for which to get the value
+ * @return Vector of state variable values of length getNumStateVariables()
+ * in the order returned by getStateVariableNames()
+ * @throws ComponentHasNoSystem if this Component has not been added to a
+ * System (i.e., if initSystem has not been called) + */ + public Vector getStateVariableValues(State state) { + return new Vector(opensimSimulationJNI.ReferencePtrCoordinate_getStateVariableValues(swigCPtr, this, State.getCPtr(state), state), true); + } + + /** + * %Set all values of the state variables allocated by this Component.
+ * Includes state variables allocated by its subcomponents. Note, this
+ * method simply sets the values on the input State. If other conditions
+ * must be met (such as satisfying kinematic constraints for Coordinates,
+ * or fiber and tendon equilibrium for muscles) you must invoke the
+ * appropriate methods on Model (e.g. assemble() to satisfy constraints or
+ * equilibrateMuscles()) to satisfy these conditions starting from the
+ * State values provided by setStateVariableValues.
+ *
+ * @param state the State whose values are set
+ * @param values Vector of state variable values of length
+ * getNumStateVariables() in the order returned by
+ * getStateVariableNames()
+ * @throws ComponentHasNoSystem if this Component has not been added to a
+ * System (i.e., if initSystem has not been called) + */ + public void setStateVariableValues(State state, Vector values) { + opensimSimulationJNI.ReferencePtrCoordinate_setStateVariableValues(swigCPtr, this, State.getCPtr(state), state, Vector.getCPtr(values), values); + } + + /** + * Get the value of a state variable derivative computed by this Component.
+ *
+ * @param state the State for which to get the derivative value
+ * @param name the name (string) of the state variable of interest
+ * @throws ComponentHasNoSystem if this Component has not been added to a
+ * System (i.e., if initSystem has not been called) + */ + public double getStateVariableDerivativeValue(State state, String name) { + return opensimSimulationJNI.ReferencePtrCoordinate_getStateVariableDerivativeValue(swigCPtr, this, State.getCPtr(state), state, name); + } + + /** + * Get the value of a discrete variable allocated by this Component by name.
+ *
+ * @param state the State from which to get the value
+ * @param name the name of the state variable
+ * @return value the discrete variable value
+ * @throws ComponentHasNoSystem if this Component has not been added to a
+ * System (i.e., if initSystem has not been called) + */ + public double getDiscreteVariableValue(State state, String name) { + return opensimSimulationJNI.ReferencePtrCoordinate_getDiscreteVariableValue(swigCPtr, this, State.getCPtr(state), state, name); + } + + /** + * %Set the value of a discrete variable allocated by this Component by name.
+ *
+ * @param state the State for which to set the value
+ * @param name the name of the discrete variable
+ * @param value the value to set
+ * @throws ComponentHasNoSystem if this Component has not been added to a
+ * System (i.e., if initSystem has not been called) + */ + public void setDiscreteVariableValue(State state, String name, double value) { + opensimSimulationJNI.ReferencePtrCoordinate_setDiscreteVariableValue(swigCPtr, this, State.getCPtr(state), state, name, value); + } + + /** + * Get the index of a Component's cache variable in the Subsystem for allocations.
+ *
+ *
+ * @param name
+ * Name of the cache variable, as provided to Component::addCacheVariable
+ * @return
+ * A valid SimTK::CacheEntryIndex, which callers can use with simbody methods
+ * (e.g. markCacheValueRealized) + */ + public SWIGTYPE_p_SimTK__CacheEntryIndex getCacheVariableIndex(String name) { + return new SWIGTYPE_p_SimTK__CacheEntryIndex(opensimSimulationJNI.ReferencePtrCoordinate_getCacheVariableIndex(swigCPtr, this, name), true); + } + + /** + * Returns true if the cache variable, identified by `name`, is valid.
+ *
+ * This method enables callers to monitor the validity of the cache variable,
+ * which enables the caller to decide whether to update the cache variable's
+ * value (or not). When computing an update is costly, use this method to check
+ * whether computing the value is necessary.
+ *
+ * @param state
+ * the State in which the cache variable's value resides
+ * @param name
+ * the name of the cache variable
+ * @return bool
+ * whether the cache variable's value is valid or not
+ * @throws ComponentHasNoSystem
+ * if this Component has not been added to a System (i.e., if initSystem has not been called) + */ + public boolean isCacheVariableValid(State state, String name) { + return opensimSimulationJNI.ReferencePtrCoordinate_isCacheVariableValid(swigCPtr, this, State.getCPtr(state), state, name); + } + + /** + * Marks the value of a cache variable, identified by `name`, as valid.
+ *
+ * Upon marking a cache variable's value as valid, the cache variable will remain
+ * valid until either:
+ *
+ * - the realization stage falls below the minimum realization stage set
+ * when the cache variable was initialized with `Component::addCacheVariable`
+ *
+ * - the cache variable is explicitly invalidated by calling
+ * `Component::markCacheVariableInvalid`
+ *
+ * This method causes `Component::isCacheVariableValid` to return true.
+ * `Component::isCacheVariableValid` is commonly used by value-getting
+ * methods to decide on whether to return the value as-is or recompute the
+ * value. Therefore, if a cache variable is not marked as valid then the
+ * cache variable's value may be recomputed more than necessary, which may
+ * be costly.
+ *
+ * @param state
+ * the State in which the cache variable's value resides
+ * @param name
+ * the name of the cache variable
+ * @throws ComponentHasNoSystem
+ * if this Component has not been added to a System (i.e., if initSystem has not been called) + */ + public void markCacheVariableValid(State state, String name) { + opensimSimulationJNI.ReferencePtrCoordinate_markCacheVariableValid(swigCPtr, this, State.getCPtr(state), state, name); + } + + /** + * Marks the value of a cache variable, identified by `name`, as invalid.
+ *
+ * Upon marking a cache variable's value as invalid, it will remain invalid
+ * until `Component::markCacheVariableValid` is called (or a method which
+ * uses that, such as `Component::setCacheVariableValue`, is called).
+ *
+ * - Cache variables are automatically marked as invalid when the realization stage
+ * falls below the minimum realization stage set when the cache variable was
+ * initialized with `Component::addCacheVariable`.
+ *
+ * - Cache variables *may* be indirectly marked as invalid by other methods. For
+ * example, a component-added state variable may invalidate a cache variable at
+ * a lower stage. Concretely:
+ *
+ * - A (hypothetical) component has a `length` state variable
+ * - There are cache variables that are computed from `length` (e.g.
+ * `strain`)
+ * - So changing the `length` may invalidate the `strain` indirectly
+ * (depending on how the state variable is handled)
+ *
+ * @param state
+ * the State in which the cache variable's value resides
+ * @param name
+ * the name of the cache variable
+ * @throws ComponentHasNoSystem
+ * if this Component has not been added to a System (i.e., if initSystem has not been called) + */ + public void markCacheVariableInvalid(State state, String name) { + opensimSimulationJNI.ReferencePtrCoordinate_markCacheVariableInvalid(swigCPtr, this, State.getCPtr(state), state, name); + } + + /** + * List all subcomponents by name and recurse into these components to
+ * list their subcomponents, and so on. + */ + public void printSubcomponentInfo() { + opensimSimulationJNI.ReferencePtrCoordinate_printSubcomponentInfo(swigCPtr, this); + } + + /** + * List all the Sockets of this component and whether or not they are
+ * connected. Also list the connectee paths for sockets that are connected. + */ + public void printSocketInfo() { + opensimSimulationJNI.ReferencePtrCoordinate_printSocketInfo(swigCPtr, this); + } + + /** + * List all the inputs of this component and whether or not they are
+ * connected. Also list the (desired) connectee paths for the inputs. + */ + public void printInputInfo() { + opensimSimulationJNI.ReferencePtrCoordinate_printInputInfo(swigCPtr, this); + } + + /** + * Print outputs of this component and optionally, those of all
+ * subcomponents. + */ + public void printOutputInfo(boolean includeDescendants) { + opensimSimulationJNI.ReferencePtrCoordinate_printOutputInfo__SWIG_0(swigCPtr, this, includeDescendants); + } + + /** + * Print outputs of this component and optionally, those of all
+ * subcomponents. + */ + public void printOutputInfo() { + opensimSimulationJNI.ReferencePtrCoordinate_printOutputInfo__SWIG_1(swigCPtr, this); + } + + /** + * Access the owner of this Component.
+ * An exception is thrown if the %Component has no owner; in this case, the
+ * component is the root component, or is orphaned.
+ * @see hasOwner() + */ + public Component getOwner() { + return new Component(opensimSimulationJNI.ReferencePtrCoordinate_getOwner(swigCPtr, this), false); + } + + /** + * (For advanced users) Check if this %Component has an owner.
+ * A component may not have an owner if it:
+ * (1) is the root component, or
+ * (2) has not been added to another component + */ + public boolean hasOwner() { + return opensimSimulationJNI.ReferencePtrCoordinate_hasOwner(swigCPtr, this); + } + + /** + * Obtain the root %Component, which is this component if it is orphaned. + */ + public Component getRoot() { + return new Component(opensimSimulationJNI.ReferencePtrCoordinate_getRoot(swigCPtr, this), false); + } + + /** + * Find a Component to which this Component is an ancestor---in other
+ * words, a Component that is directly owned by this Component or is owned
+ * by one of its sub-components, sub-sub-components, etc. The Component can
+ * be found by type (by specifying a template argument) and either path or
+ * name.
+ *
+ * Here is an example of searching for a component of any type with the name
+ * 'elbow_flexion':
+ * {@code + if (const Component* found = + model.findComponent(ComponentPath("elbow_flexion"))) { + std::cout << found.getName() << std::endl; + } + }
+ *
+ * Here, we require that 'elbow_flexion' is of type Coordinate.
+ * {@code + if (const Coordinate* found = + model.findComponent(ComponentPath("elbow_flexion"))) { + std::cout << "Coordinate " << found.getName() << std::endl; + } + }
+ *
+ * The search can be sped up considerably if the path or even partial path
+ * name is known. For example, "forearm/elbow/elbow_flexion" will find
+ * the Coordinate component of the elbow joint that connects the forearm body
+ * in linear time (linear search for name at each component level). Whereas
+ * supplying "elbow_flexion" requires a tree search. Returns nullptr (None in
+ * Python, empty array in Matlab) if Component of that specified name cannot
+ * be found.
+ *
+ * NOTE: If the component name is ambiguous, an exception is thrown. To
+ * disambiguate, more information must be provided, such as the template
+ * argument to specify the type and/or a path rather than just the name. + */ + public Component findComponent(ComponentPath pathToFind) { + long cPtr = opensimSimulationJNI.ReferencePtrCoordinate_findComponent__SWIG_2(swigCPtr, this, ComponentPath.getCPtr(pathToFind), pathToFind); + return (cPtr == 0) ? null : new Component(cPtr, false); + } + + /** + * Same as findComponent(const ComponentPath&), but accepting a string (a
+ * path or just a name) as input. + */ + public Component findComponent(String pathToFind) { + long cPtr = opensimSimulationJNI.ReferencePtrCoordinate_findComponent__SWIG_3(swigCPtr, this, pathToFind); + return (cPtr == 0) ? null : new Component(cPtr, false); + } + + /** + * Get an iterator through the underlying subcomponents that this component is
+ * composed of. The hierarchy of Components/subComponents forms a tree.
+ * The order of the Components is that of tree preorder traversal so that a
+ * component is traversed before its subcomponents.
+ *
+ * {@code + for (const auto& muscle : model.getComponentList()) { + muscle.get_max_isometric_force(); + } + }
+ *
+ * The returned ComponentList does not permit modifying any components; if
+ * you want to modify the components, see updComponentList().
+ *
+ * + */ + public ComponentsList getComponentsList() { + return new ComponentsList(opensimSimulationJNI.ReferencePtrCoordinate_getComponentsList(swigCPtr, this), true); + } + + /** + * End of conditional comment.
+ * Equality operator wrapper for use from languages not supporting operator
+ * overloading. + */ + public boolean isEqualTo(OpenSimObject aObject) { + return opensimSimulationJNI.ReferencePtrCoordinate_isEqualTo(swigCPtr, this, OpenSimObject.getCPtr(aObject), aObject); + } + + /** + * Get the name of this Object. + */ + public String getName() { + return opensimSimulationJNI.ReferencePtrCoordinate_getName(swigCPtr, this); + } + + /** + * Get description, a one-liner summary. + */ + public String getDescription() { + return opensimSimulationJNI.ReferencePtrCoordinate_getDescription(swigCPtr, this); + } + + /** + * Get Authors of this Object + */ + public String getAuthors() { + return opensimSimulationJNI.ReferencePtrCoordinate_getAuthors(swigCPtr, this); + } + + /** + * Get references or publications to cite if using this object. + */ + public String getReferences() { + return opensimSimulationJNI.ReferencePtrCoordinate_getReferences(swigCPtr, this); + } + + /** + * * Determine how many properties are stored with this %Object. These
+ * are numbered 0..n-1 in the order they were created. * + */ + public int getNumProperties() { + return opensimSimulationJNI.ReferencePtrCoordinate_getNumProperties(swigCPtr, this); + } + + /** + * Get a const reference to a property by its index number, returned as
+ * an AbstractProperty. * + */ + public AbstractProperty getPropertyByIndex(int propertyIndex) { + return new AbstractProperty(opensimSimulationJNI.ReferencePtrCoordinate_getPropertyByIndex(swigCPtr, this, propertyIndex), false); + } + + /** + * Return true if this %Object has a property of any type with the
+ * given name, which must not be empty. * + */ + public boolean hasProperty(String name) { + return opensimSimulationJNI.ReferencePtrCoordinate_hasProperty(swigCPtr, this, name); + } + + /** + * Get a const reference to a property by its name, returned as
+ * an AbstractProperty. An exception is thrown if no property by this name
+ * is present in this %Object. * + */ + public AbstractProperty getPropertyByName(String name) { + return new AbstractProperty(opensimSimulationJNI.ReferencePtrCoordinate_getPropertyByName(swigCPtr, this, name), false); + } + + /** + * Returns true if no property's value has changed since the last time
+ * setObjectIsUpToDateWithProperties() was called. * + */ + public boolean isObjectUpToDateWithProperties() { + return opensimSimulationJNI.ReferencePtrCoordinate_isObjectUpToDateWithProperties(swigCPtr, this); + } + + /** + * Serialize this object into the XML node that represents it.
+ * @param parent
+ * Parent XML node of this object. Sending in a parent node allows an XML
+ * node to be generated for this object if it doesn't already have one. If
+ * no parent node is supplied and this object doesn't already have an XML
+ * node, this object will become the root node for a new XML document. If
+ * this object already has an XML node associated with it, no new nodes
+ * are ever generated and the parent node is not used.
+ * @param prop (optional)
+ * The pointer to the property that contains this object. If it is
+ * present, check if the property is unnamed and if NOT, use the property
+ * name as its name when updating the XML node. * + */ + public void updateXMLNode(SWIGTYPE_p_SimTK__Xml__Element parent, AbstractProperty prop) { + opensimSimulationJNI.ReferencePtrCoordinate_updateXMLNode__SWIG_0(swigCPtr, this, SWIGTYPE_p_SimTK__Xml__Element.getCPtr(parent), AbstractProperty.getCPtr(prop), prop); + } + + /** + * Serialize this object into the XML node that represents it.
+ * @param parent
+ * Parent XML node of this object. Sending in a parent node allows an XML
+ * node to be generated for this object if it doesn't already have one. If
+ * no parent node is supplied and this object doesn't already have an XML
+ * node, this object will become the root node for a new XML document. If
+ * this object already has an XML node associated with it, no new nodes
+ * are ever generated and the parent node is not used.
+ * + */ + public void updateXMLNode(SWIGTYPE_p_SimTK__Xml__Element parent) { + opensimSimulationJNI.ReferencePtrCoordinate_updateXMLNode__SWIG_1(swigCPtr, this, SWIGTYPE_p_SimTK__Xml__Element.getCPtr(parent)); + } + + /** + * Inlined means an in-memory Object that is not associated with
+ * an XMLDocument. * + */ + public boolean getInlined() { + return opensimSimulationJNI.ReferencePtrCoordinate_getInlined(swigCPtr, this); + } + + /** + * If there is a document associated with this object then return the
+ * file name maintained by the document. Otherwise return an empty string. * + */ + public String getDocumentFileName() { + return opensimSimulationJNI.ReferencePtrCoordinate_getDocumentFileName(swigCPtr, this); + } + + /** + * If there is a document associated with this object then return its
+ * version number. For example this is 30000 for OpenSim 3.x documents
+ * and is 305xx for OpenSim 4.0 beta and above. If there is no document
+ * associated with the object, the method returns -1. + */ + public int getDocumentFileVersion() { + return opensimSimulationJNI.ReferencePtrCoordinate_getDocumentFileVersion(swigCPtr, this); + } + + /** + * Write this %Object into an XML file of the given name; conventionally
+ * the suffix to use is ".osim". This is useful for writing out a Model that
+ * has been created programmatically, and also very useful for testing and
+ * debugging. If object has invalid connections, then printing is aborted.
+ * You can override this behavior by setting the debug level to at least 1
+ * (e.g., Object::setDebugLevel(1)) prior to printing. * + */ + public boolean print(String fileName) { + return opensimSimulationJNI.ReferencePtrCoordinate_print(swigCPtr, this, fileName); + } + + /** + * dump the XML representation of this %Object into an std::string and return it.
+ * Mainly intended for debugging and for use by the XML browser in the GUI. * + */ + public String dump() { + return opensimSimulationJNI.ReferencePtrCoordinate_dump(swigCPtr, this); + } + + /** + * The default implementation returns true only if the supplied string
+ * is "Object"; each %Object-derived class overrides this to match its own
+ * class name. * + */ + public boolean isA(String type) { + return opensimSimulationJNI.ReferencePtrCoordinate_isA(swigCPtr, this, type); + } + + /** + * Wrapper to be used on Java side to display objects in tree; this returns
+ * just the object's name. * + */ + public String toString() { + return opensimSimulationJNI.ReferencePtrCoordinate_toString(swigCPtr, this); + } + +} diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_AbstractPath.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_AbstractPath.java new file mode 100644 index 000000000..e3d5a6b7a --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_AbstractPath.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_AbstractPath { + private transient long swigCPtr; + + protected SWIGTYPE_p_AbstractPath(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_AbstractPath() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_AbstractPath obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_AbstractPath obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixCharacter.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixCharacter.java new file mode 100644 index 000000000..922da5f1c --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixCharacter.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_MatrixCharacter { + private transient long swigCPtr; + + protected SWIGTYPE_p_MatrixCharacter(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_MatrixCharacter() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_MatrixCharacter obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_MatrixCharacter obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixCommitment.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixCommitment.java new file mode 100644 index 000000000..11cc7dd09 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixCommitment.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_MatrixCommitment { + private transient long swigCPtr; + + protected SWIGTYPE_p_MatrixCommitment(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_MatrixCommitment() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_MatrixCommitment obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_MatrixCommitment obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t.java new file mode 100644 index 000000000..31387d42e --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_MatrixHelperT_Scalar_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_MatrixHelperT_Scalar_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_MatrixHelperT_Scalar_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_MatrixHelperT_Scalar_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_MatrixHelperT_Scalar_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t__DeepCopy.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t__DeepCopy.java new file mode 100644 index 000000000..361f23e08 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t__DeepCopy.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_MatrixHelperT_Scalar_t__DeepCopy { + private transient long swigCPtr; + + protected SWIGTYPE_p_MatrixHelperT_Scalar_t__DeepCopy(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_MatrixHelperT_Scalar_t__DeepCopy() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_MatrixHelperT_Scalar_t__DeepCopy obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_MatrixHelperT_Scalar_t__DeepCopy obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t__ShallowCopy.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t__ShallowCopy.java new file mode 100644 index 000000000..38c037154 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_MatrixHelperT_Scalar_t__ShallowCopy.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_MatrixHelperT_Scalar_t__ShallowCopy { + private transient long swigCPtr; + + protected SWIGTYPE_p_MatrixHelperT_Scalar_t__ShallowCopy(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_MatrixHelperT_Scalar_t__ShallowCopy() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_MatrixHelperT_Scalar_t__ShallowCopy obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_MatrixHelperT_Scalar_t__ShallowCopy obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_Scalar.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_Scalar.java new file mode 100644 index 000000000..fa0b313f1 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_Scalar.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_Scalar { + private transient long swigCPtr; + + protected SWIGTYPE_p_Scalar(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_Scalar() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_Scalar obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_Scalar obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__Array_T_SimTK__SimTK__SimTK__Rotation_T_double_t_unsigned_int_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__Array_T_SimTK__SimTK__SimTK__Rotation_T_double_t_unsigned_int_t.java new file mode 100644 index 000000000..6db7abd68 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__Array_T_SimTK__SimTK__SimTK__Rotation_T_double_t_unsigned_int_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__Array_T_SimTK__SimTK__SimTK__Rotation_T_double_t_unsigned_int_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__Array_T_SimTK__SimTK__SimTK__Rotation_T_double_t_unsigned_int_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__Array_T_SimTK__SimTK__SimTK__Rotation_T_double_t_unsigned_int_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__Array_T_SimTK__SimTK__SimTK__Rotation_T_double_t_unsigned_int_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__Array_T_SimTK__SimTK__SimTK__Rotation_T_double_t_unsigned_int_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java new file mode 100644 index 000000000..093cc0936 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java new file mode 100644 index 000000000..3a4de9802 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__MatrixBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t.java new file mode 100644 index 000000000..b263e21b7 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java new file mode 100644 index 000000000..9c4445735 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java new file mode 100644 index 000000000..6a727d846 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java new file mode 100644 index 000000000..19d0fe4af --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java new file mode 100644 index 000000000..11de526d1 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java new file mode 100644 index 000000000..bbf0af169 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java new file mode 100644 index 000000000..89413d6e6 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java new file mode 100644 index 000000000..359df522d --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Quaternion_T_double_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Quaternion_T_double_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Quaternion_T_double_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Quaternion_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Quaternion_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_t.java new file mode 100644 index 000000000..c0fabf6f9 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__RowVectorView_T_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Inertia_T_double_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Inertia_T_double_t.java new file mode 100644 index 000000000..0ec7f9180 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Inertia_T_double_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__SimTK__SimTK__Inertia_T_double_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__Inertia_T_double_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__Inertia_T_double_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__SimTK__SimTK__Inertia_T_double_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__SimTK__SimTK__Inertia_T_double_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__MassProperties_T_double_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__MassProperties_T_double_t.java new file mode 100644 index 000000000..7a1cd0b39 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__MassProperties_T_double_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__SimTK__SimTK__MassProperties_T_double_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__MassProperties_T_double_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__MassProperties_T_double_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__SimTK__SimTK__MassProperties_T_double_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__SimTK__SimTK__MassProperties_T_double_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t.java new file mode 100644 index 000000000..b4342ec28 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Quaternion_T_double_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Quaternion_T_double_t.java new file mode 100644 index 000000000..a7523cdea --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Quaternion_T_double_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__SimTK__SimTK__Quaternion_T_double_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__Quaternion_T_double_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__Quaternion_T_double_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__SimTK__SimTK__Quaternion_T_double_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__SimTK__SimTK__Quaternion_T_double_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Rotation_T_double_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Rotation_T_double_t.java new file mode 100644 index 000000000..49069619c --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__Rotation_T_double_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__SimTK__SimTK__Rotation_T_double_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__Rotation_T_double_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__Rotation_T_double_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__SimTK__SimTK__Rotation_T_double_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__SimTK__SimTK__Rotation_T_double_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_2_SimTK__SimTK__SimTK__VecT_3_double_1_t_1_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_2_SimTK__SimTK__SimTK__VecT_3_double_1_t_1_t.java new file mode 100644 index 000000000..a4ace2d33 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_2_SimTK__SimTK__SimTK__VecT_3_double_1_t_1_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_2_SimTK__SimTK__SimTK__VecT_3_double_1_t_1_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_2_SimTK__SimTK__SimTK__VecT_3_double_1_t_1_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_2_SimTK__SimTK__SimTK__VecT_3_double_1_t_1_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_2_SimTK__SimTK__SimTK__VecT_3_double_1_t_1_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_2_SimTK__SimTK__SimTK__VecT_3_double_1_t_1_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_3_double_1_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_3_double_1_t.java new file mode 100644 index 000000000..63e1a8132 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_3_double_1_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_3_double_1_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_3_double_1_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_3_double_1_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_3_double_1_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__SimTK__SimTK__VecT_3_double_1_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java new file mode 100644 index 000000000..882ebaab4 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java new file mode 100644 index 000000000..1ac5c3ae1 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Quaternion_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java new file mode 100644 index 000000000..34ec792c3 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_SimTK__VectorView_T_SimTK__SimTK__SimTK__Rotation_T_double_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_TNeg.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_TNeg.java new file mode 100644 index 000000000..841ce3e25 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_TNeg.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_TNeg { + private transient long swigCPtr; + + protected SWIGTYPE_p_TNeg(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_TNeg() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_TNeg obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_TNeg obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t_t.java new file mode 100644 index 000000000..36e3dbde5 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__MatT_3_3_double_3_1_t_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Quaternion_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Quaternion_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t_t.java new file mode 100644 index 000000000..4b0656fc9 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Quaternion_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Quaternion_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Quaternion_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Quaternion_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Quaternion_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Quaternion_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Quaternion_T_double_t_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Rotation_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Rotation_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t_t.java new file mode 100644 index 000000000..181c0751e --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Rotation_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Rotation_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Rotation_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Rotation_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Rotation_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_VectorIteratorT_SimTK__SimTK__SimTK__Rotation_T_double_t_SimTK__RowVectorBaseT_SimTK__SimTK__SimTK__Rotation_T_double_t_t_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__nullptr_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__nullptr_t.java new file mode 100644 index 000000000..95bf14f97 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__nullptr_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_std__nullptr_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_std__nullptr_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_std__nullptr_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_std__nullptr_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_std__nullptr_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__DecorativeGeometry_const_p_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__DecorativeGeometry_const_p_t.java new file mode 100644 index 000000000..1a486ad87 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__DecorativeGeometry_const_p_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__DecorativeGeometry_const_p_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__DecorativeGeometry_const_p_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__DecorativeGeometry_const_p_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__DecorativeGeometry_const_p_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__DecorativeGeometry_const_p_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_const_p_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_const_p_t.java new file mode 100644 index 000000000..c13ee0f2b --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_const_p_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_const_p_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_const_p_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_const_p_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_const_p_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__Rotation_T_double_t_const_p_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__VecT_3_double_1_t_const_p_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__VecT_3_double_1_t_const_p_t.java new file mode 100644 index 000000000..9bcfc64db --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__VecT_3_double_1_t_const_p_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__VecT_3_double_1_t_const_p_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__VecT_3_double_1_t_const_p_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__VecT_3_double_1_t_const_p_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__VecT_3_double_1_t_const_p_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_std__reverse_iteratorT_SimTK__SimTK__SimTK__SimTK__VecT_3_double_1_t_const_p_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__vectorT_OpenSim__Function_t.java b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__vectorT_OpenSim__Function_t.java new file mode 100644 index 000000000..876010472 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/SWIGTYPE_p_std__vectorT_OpenSim__Function_t.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class SWIGTYPE_p_std__vectorT_OpenSim__Function_t { + private transient long swigCPtr; + + protected SWIGTYPE_p_std__vectorT_OpenSim__Function_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_std__vectorT_OpenSim__Function_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_std__vectorT_OpenSim__Function_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected static long swigRelease(SWIGTYPE_p_std__vectorT_OpenSim__Function_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/StdVectorReferencePtrCoordinate.java b/Gui/opensim/modeling/src/org/opensim/modeling/StdVectorReferencePtrCoordinate.java new file mode 100644 index 000000000..ce445461a --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/StdVectorReferencePtrCoordinate.java @@ -0,0 +1,156 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class StdVectorReferencePtrCoordinate extends java.util.AbstractList implements java.util.RandomAccess { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + public StdVectorReferencePtrCoordinate(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + public static long getCPtr(StdVectorReferencePtrCoordinate obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + public static long swigRelease(StdVectorReferencePtrCoordinate obj) { + long ptr = 0; + if (obj != null) { + if (!obj.swigCMemOwn) + throw new RuntimeException("Cannot release ownership as memory is not owned"); + ptr = obj.swigCPtr; + obj.swigCMemOwn = false; + obj.delete(); + } + return ptr; + } + + @SuppressWarnings("deprecation") + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + opensimSimulationJNI.delete_StdVectorReferencePtrCoordinate(swigCPtr); + } + swigCPtr = 0; + } + } + + public StdVectorReferencePtrCoordinate(ReferencePtrCoordinate[] initialElements) { + this(); + reserve(initialElements.length); + + for (ReferencePtrCoordinate element : initialElements) { + add(element); + } + } + + public StdVectorReferencePtrCoordinate(Iterable initialElements) { + this(); + for (ReferencePtrCoordinate element : initialElements) { + add(element); + } + } + + public ReferencePtrCoordinate get(int index) { + return doGet(index); + } + + public ReferencePtrCoordinate set(int index, ReferencePtrCoordinate e) { + return doSet(index, e); + } + + public boolean add(ReferencePtrCoordinate e) { + modCount++; + doAdd(e); + return true; + } + + public void add(int index, ReferencePtrCoordinate e) { + modCount++; + doAdd(index, e); + } + + public ReferencePtrCoordinate remove(int index) { + modCount++; + return doRemove(index); + } + + protected void removeRange(int fromIndex, int toIndex) { + modCount++; + doRemoveRange(fromIndex, toIndex); + } + + public int size() { + return doSize(); + } + + public StdVectorReferencePtrCoordinate() { + this(opensimSimulationJNI.new_StdVectorReferencePtrCoordinate__SWIG_0(), true); + } + + public StdVectorReferencePtrCoordinate(StdVectorReferencePtrCoordinate other) { + this(opensimSimulationJNI.new_StdVectorReferencePtrCoordinate__SWIG_1(StdVectorReferencePtrCoordinate.getCPtr(other), other), true); + } + + public long capacity() { + return opensimSimulationJNI.StdVectorReferencePtrCoordinate_capacity(swigCPtr, this); + } + + public void reserve(long n) { + opensimSimulationJNI.StdVectorReferencePtrCoordinate_reserve(swigCPtr, this, n); + } + + public boolean isEmpty() { + return opensimSimulationJNI.StdVectorReferencePtrCoordinate_isEmpty(swigCPtr, this); + } + + public void clear() { + opensimSimulationJNI.StdVectorReferencePtrCoordinate_clear(swigCPtr, this); + } + + public StdVectorReferencePtrCoordinate(int count, ReferencePtrCoordinate value) { + this(opensimSimulationJNI.new_StdVectorReferencePtrCoordinate__SWIG_2(count, ReferencePtrCoordinate.getCPtr(value), value), true); + } + + private int doSize() { + return opensimSimulationJNI.StdVectorReferencePtrCoordinate_doSize(swigCPtr, this); + } + + private void doAdd(ReferencePtrCoordinate x) { + opensimSimulationJNI.StdVectorReferencePtrCoordinate_doAdd__SWIG_0(swigCPtr, this, ReferencePtrCoordinate.getCPtr(x), x); + } + + private void doAdd(int index, ReferencePtrCoordinate x) { + opensimSimulationJNI.StdVectorReferencePtrCoordinate_doAdd__SWIG_1(swigCPtr, this, index, ReferencePtrCoordinate.getCPtr(x), x); + } + + private ReferencePtrCoordinate doRemove(int index) { + return new ReferencePtrCoordinate(opensimSimulationJNI.StdVectorReferencePtrCoordinate_doRemove(swigCPtr, this, index), true); + } + + private ReferencePtrCoordinate doGet(int index) { + return new ReferencePtrCoordinate(opensimSimulationJNI.StdVectorReferencePtrCoordinate_doGet(swigCPtr, this, index), false); + } + + private ReferencePtrCoordinate doSet(int index, ReferencePtrCoordinate val) { + return new ReferencePtrCoordinate(opensimSimulationJNI.StdVectorReferencePtrCoordinate_doSet(swigCPtr, this, index, ReferencePtrCoordinate.getCPtr(val), val), true); + } + + private void doRemoveRange(int fromIndex, int toIndex) { + opensimSimulationJNI.StdVectorReferencePtrCoordinate_doRemoveRange(swigCPtr, this, fromIndex, toIndex); + } + +} diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/VectorCoordinateRefs.java b/Gui/opensim/modeling/src/org/opensim/modeling/VectorCoordinateRefs.java new file mode 100644 index 000000000..5e55311c4 --- /dev/null +++ b/Gui/opensim/modeling/src/org/opensim/modeling/VectorCoordinateRefs.java @@ -0,0 +1,156 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (https://www.swig.org). + * Version 4.1.1 + * + * Do not make changes to this file unless you know what you are doing - modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.opensim.modeling; + +public class VectorCoordinateRefs extends java.util.AbstractList implements java.util.RandomAccess { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + public VectorCoordinateRefs(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + public static long getCPtr(VectorCoordinateRefs obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + public static long swigRelease(VectorCoordinateRefs obj) { + long ptr = 0; + if (obj != null) { + if (!obj.swigCMemOwn) + throw new RuntimeException("Cannot release ownership as memory is not owned"); + ptr = obj.swigCPtr; + obj.swigCMemOwn = false; + obj.delete(); + } + return ptr; + } + + @SuppressWarnings("deprecation") + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + opensimSimulationJNI.delete_VectorCoordinateRefs(swigCPtr); + } + swigCPtr = 0; + } + } + + public VectorCoordinateRefs(SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t[] initialElements) { + this(); + reserve(initialElements.length); + + for (SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t element : initialElements) { + add(element); + } + } + + public VectorCoordinateRefs(Iterable initialElements) { + this(); + for (SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t element : initialElements) { + add(element); + } + } + + public SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t get(int index) { + return doGet(index); + } + + public SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t set(int index, SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t e) { + return doSet(index, e); + } + + public boolean add(SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t e) { + modCount++; + doAdd(e); + return true; + } + + public void add(int index, SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t e) { + modCount++; + doAdd(index, e); + } + + public SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t remove(int index) { + modCount++; + return doRemove(index); + } + + protected void removeRange(int fromIndex, int toIndex) { + modCount++; + doRemoveRange(fromIndex, toIndex); + } + + public int size() { + return doSize(); + } + + public VectorCoordinateRefs() { + this(opensimSimulationJNI.new_VectorCoordinateRefs__SWIG_0(), true); + } + + public VectorCoordinateRefs(VectorCoordinateRefs other) { + this(opensimSimulationJNI.new_VectorCoordinateRefs__SWIG_1(VectorCoordinateRefs.getCPtr(other), other), true); + } + + public long capacity() { + return opensimSimulationJNI.VectorCoordinateRefs_capacity(swigCPtr, this); + } + + public void reserve(long n) { + opensimSimulationJNI.VectorCoordinateRefs_reserve(swigCPtr, this, n); + } + + public boolean isEmpty() { + return opensimSimulationJNI.VectorCoordinateRefs_isEmpty(swigCPtr, this); + } + + public void clear() { + opensimSimulationJNI.VectorCoordinateRefs_clear(swigCPtr, this); + } + + public VectorCoordinateRefs(int count, SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t value) { + this(opensimSimulationJNI.new_VectorCoordinateRefs__SWIG_2(count, SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t.getCPtr(value)), true); + } + + private int doSize() { + return opensimSimulationJNI.VectorCoordinateRefs_doSize(swigCPtr, this); + } + + private void doAdd(SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t x) { + opensimSimulationJNI.VectorCoordinateRefs_doAdd__SWIG_0(swigCPtr, this, SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t.getCPtr(x)); + } + + private void doAdd(int index, SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t x) { + opensimSimulationJNI.VectorCoordinateRefs_doAdd__SWIG_1(swigCPtr, this, index, SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t.getCPtr(x)); + } + + private SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t doRemove(int index) { + return new SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t(opensimSimulationJNI.VectorCoordinateRefs_doRemove(swigCPtr, this, index), true); + } + + private SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t doGet(int index) { + return new SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t(opensimSimulationJNI.VectorCoordinateRefs_doGet(swigCPtr, this, index), false); + } + + private SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t doSet(int index, SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t val) { + return new SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t(opensimSimulationJNI.VectorCoordinateRefs_doSet(swigCPtr, this, index, SWIGTYPE_p_SimTK__ReferencePtrT_Coordinate_const_t.getCPtr(val)), true); + } + + private void doRemoveRange(int fromIndex, int toIndex) { + opensimSimulationJNI.VectorCoordinateRefs_doRemoveRange(swigCPtr, this, fromIndex, toIndex); + } + +} diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/VectorView.java b/Gui/opensim/modeling/src/org/opensim/modeling/VectorView.java index 1ac6ee414..623fe7a92 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/VectorView.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/VectorView.java @@ -59,4 +59,8 @@ public VectorView(VectorView v) { this(opensimSimbodyJNI.new_VectorView(VectorView.getCPtr(v), v), true); } + public VectorView multiplyAssign(double t) { + return new VectorView(opensimSimbodyJNI.VectorView_multiplyAssign(swigCPtr, this, t), true); + } + } diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/VectorViewVec3.java b/Gui/opensim/modeling/src/org/opensim/modeling/VectorViewVec3.java index 638bbb6e3..5f27a3b4d 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/VectorViewVec3.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/VectorViewVec3.java @@ -59,4 +59,8 @@ public VectorViewVec3(VectorViewVec3 v) { this(opensimSimbodyJNI.new_VectorViewVec3(VectorViewVec3.getCPtr(v), v), true); } + public VectorViewVec3 multiplyAssign(double t) { + return new VectorViewVec3(opensimSimbodyJNI.VectorViewVec3_multiplyAssign(swigCPtr, this, t), true); + } + } diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/opensimCommon.java b/Gui/opensim/modeling/src/org/opensim/modeling/opensimCommon.java index 1cf8a9183..b82fdce3f 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/opensimCommon.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/opensimCommon.java @@ -171,6 +171,34 @@ public static double solveBisection(SWIGTYPE_p_std__functionT_double_fdouble_con return opensimCommonJNI.solveBisection__SWIG_2(SWIGTYPE_p_std__functionT_double_fdouble_const_RF_t.getCPtr(calcResidual), left, right); } + /** + * Compute the 'k' nearest neighbors of two matrices 'x' and 'y'. 'x' and 'y'
+ * should contain the same number of columns, but can have different numbers of
+ * rows. The function returns a matrix with 'k' number of columns and the same
+ * number of rows as 'y'. Each row in the output matrix contains 'k' distance
+ * values, where the first column contains the distance to the nearest neighbor
+ * in 'x', the second column contains the distance to the second nearest
+ * neighbor in 'x', and so on.
+ * + */ + public static Matrix computeKNearestNeighbors(Matrix x, Matrix y, int k) { + return new Matrix(opensimCommonJNI.computeKNearestNeighbors__SWIG_0(Matrix.getCPtr(x), x, Matrix.getCPtr(y), y, k), true); + } + + /** + * Compute the 'k' nearest neighbors of two matrices 'x' and 'y'. 'x' and 'y'
+ * should contain the same number of columns, but can have different numbers of
+ * rows. The function returns a matrix with 'k' number of columns and the same
+ * number of rows as 'y'. Each row in the output matrix contains 'k' distance
+ * values, where the first column contains the distance to the nearest neighbor
+ * in 'x', the second column contains the distance to the second nearest
+ * neighbor in 'x', and so on.
+ * + */ + public static Matrix computeKNearestNeighbors(Matrix x, Matrix y) { + return new Matrix(opensimCommonJNI.computeKNearestNeighbors__SWIG_1(Matrix.getCPtr(x), x, Matrix.getCPtr(y), y), true); + } + public static int getArray_CAPMIN() { return opensimCommonJNI.Array_CAPMIN_get(); } diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/opensimCommonJNI.java b/Gui/opensim/modeling/src/org/opensim/modeling/opensimCommonJNI.java index 77aa5eacb..8dab197be 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/opensimCommonJNI.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/opensimCommonJNI.java @@ -96,6 +96,8 @@ public class opensimCommonJNI { public final static native double solveBisection__SWIG_0(long jarg1, double jarg2, double jarg3, double jarg4, int jarg5); public final static native double solveBisection__SWIG_1(long jarg1, double jarg2, double jarg3, double jarg4); public final static native double solveBisection__SWIG_2(long jarg1, double jarg2, double jarg3); + public final static native long computeKNearestNeighbors__SWIG_0(long jarg1, Matrix jarg1_, long jarg2, Matrix jarg2_, int jarg3); + public final static native long computeKNearestNeighbors__SWIG_1(long jarg1, Matrix jarg1_, long jarg2, Matrix jarg2_); public final static native void delete_LogSink(long jarg1); public final static native void LogSink_sinkImpl(long jarg1, LogSink jarg1_, String jarg2); public final static native void LogSink_flushImpl(long jarg1, LogSink jarg1_); diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/opensimMocoJNI.java b/Gui/opensim/modeling/src/org/opensim/modeling/opensimMocoJNI.java index 6ce96df2c..9bdd97a94 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/opensimMocoJNI.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/opensimMocoJNI.java @@ -196,6 +196,12 @@ public class opensimMocoJNI { public final static native void MocoGoal_initializeOnModel(long jarg1, MocoGoal jarg1_, long jarg2, Model jarg2_); public final static native long MocoGoal_getScaleFactors(long jarg1, MocoGoal jarg1_); public final static native void MocoGoal_printDescription(long jarg1, MocoGoal jarg1_); + public final static native void MocoGoal_setDivideByDisplacement(long jarg1, MocoGoal jarg1_, boolean jarg2); + public final static native boolean MocoGoal_getDivideByDisplacement(long jarg1, MocoGoal jarg1_); + public final static native void MocoGoal_setDivideByDuration(long jarg1, MocoGoal jarg1_, boolean jarg2); + public final static native boolean MocoGoal_getDivideByDuration(long jarg1, MocoGoal jarg1_); + public final static native void MocoGoal_setDivideByMass(long jarg1, MocoGoal jarg1_, boolean jarg2); + public final static native boolean MocoGoal_getDivideByMass(long jarg1, MocoGoal jarg1_); public final static native void delete_MocoGoal(long jarg1); public final static native long MocoFinalTimeGoal_safeDownCast(long jarg1, OpenSimObject jarg1_); public final static native void MocoFinalTimeGoal_assign(long jarg1, MocoFinalTimeGoal jarg1_, long jarg2, OpenSimObject jarg2_); @@ -335,8 +341,6 @@ public class opensimMocoJNI { public final static native void MocoControlGoal_setWeightForControlPattern(long jarg1, MocoControlGoal jarg1_, String jarg2, double jarg3); public final static native void MocoControlGoal_setExponent(long jarg1, MocoControlGoal jarg1_, int jarg2); public final static native double MocoControlGoal_getExponent(long jarg1, MocoControlGoal jarg1_); - public final static native void MocoControlGoal_setDivideByDisplacement(long jarg1, MocoControlGoal jarg1_, boolean jarg2); - public final static native boolean MocoControlGoal_getDivideByDisplacement(long jarg1, MocoControlGoal jarg1_); public final static native void delete_MocoControlGoal(long jarg1); public final static native long MocoControlTrackingGoalReference_safeDownCast(long jarg1, OpenSimObject jarg1_); public final static native void MocoControlTrackingGoalReference_assign(long jarg1, MocoControlTrackingGoalReference jarg1_, long jarg2, OpenSimObject jarg2_); @@ -600,10 +604,6 @@ public class opensimMocoJNI { public final static native long new_MocoOutputGoal__SWIG_0(); public final static native long new_MocoOutputGoal__SWIG_1(String jarg1); public final static native long new_MocoOutputGoal__SWIG_2(String jarg1, double jarg2); - public final static native void MocoOutputGoal_setDivideByDisplacement(long jarg1, MocoOutputGoal jarg1_, boolean jarg2); - public final static native boolean MocoOutputGoal_getDivideByDisplacement(long jarg1, MocoOutputGoal jarg1_); - public final static native void MocoOutputGoal_setDivideByMass(long jarg1, MocoOutputGoal jarg1_, boolean jarg2); - public final static native boolean MocoOutputGoal_getDivideByMass(long jarg1, MocoOutputGoal jarg1_); public final static native void delete_MocoOutputGoal(long jarg1); public final static native long MocoOutputExtremumGoal_safeDownCast(long jarg1, OpenSimObject jarg1_); public final static native void MocoOutputExtremumGoal_assign(long jarg1, MocoOutputExtremumGoal jarg1_, long jarg2, OpenSimObject jarg2_); @@ -613,10 +613,6 @@ public class opensimMocoJNI { public final static native long new_MocoOutputExtremumGoal__SWIG_0(); public final static native long new_MocoOutputExtremumGoal__SWIG_1(String jarg1); public final static native long new_MocoOutputExtremumGoal__SWIG_2(String jarg1, double jarg2); - public final static native void MocoOutputExtremumGoal_setDivideByDisplacement(long jarg1, MocoOutputExtremumGoal jarg1_, boolean jarg2); - public final static native boolean MocoOutputExtremumGoal_getDivideByDisplacement(long jarg1, MocoOutputExtremumGoal jarg1_); - public final static native void MocoOutputExtremumGoal_setDivideByMass(long jarg1, MocoOutputExtremumGoal jarg1_, boolean jarg2); - public final static native boolean MocoOutputExtremumGoal_getDivideByMass(long jarg1, MocoOutputExtremumGoal jarg1_); public final static native void MocoOutputExtremumGoal_setExtremumType(long jarg1, MocoOutputExtremumGoal jarg1_, String jarg2); public final static native String MocoOutputExtremumGoal_getExtremumType(long jarg1, MocoOutputExtremumGoal jarg1_); public final static native void MocoOutputExtremumGoal_setSmoothingFactor(long jarg1, MocoOutputExtremumGoal jarg1_, double jarg2); diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/opensimSimbodyJNI.java b/Gui/opensim/modeling/src/org/opensim/modeling/opensimSimbodyJNI.java index fe3740161..da3f1c308 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/opensimSimbodyJNI.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/opensimSimbodyJNI.java @@ -442,6 +442,7 @@ public class opensimSimbodyJNI { public final static native void VectorBaseDouble___setitem__(long jarg1, VectorBaseDouble jarg1_, int jarg2, double jarg3); public final static native void delete_VectorBaseDouble(long jarg1); public final static native long new_VectorView(long jarg1, VectorView jarg1_); + public final static native long VectorView_multiplyAssign(long jarg1, VectorView jarg1_, double jarg2); public final static native void delete_VectorView(long jarg1); public final static native long new_Vector__SWIG_0(); public final static native long new_Vector__SWIG_1(long jarg1, Vector jarg1_); @@ -534,6 +535,7 @@ public class opensimSimbodyJNI { public final static native void VectorBaseVec3___setitem__(long jarg1, VectorBaseVec3 jarg1_, int jarg2, long jarg3, Vec3 jarg3_); public final static native void delete_VectorBaseVec3(long jarg1); public final static native long new_VectorViewVec3(long jarg1, VectorViewVec3 jarg1_); + public final static native long VectorViewVec3_multiplyAssign(long jarg1, VectorViewVec3 jarg1_, double jarg2); public final static native void delete_VectorViewVec3(long jarg1); public final static native long new_VectorVec3__SWIG_0(); public final static native long new_VectorVec3__SWIG_1(long jarg1, VectorVec3 jarg1_); diff --git a/Gui/opensim/modeling/src/org/opensim/modeling/opensimSimulationJNI.java b/Gui/opensim/modeling/src/org/opensim/modeling/opensimSimulationJNI.java index 6be9529cb..ebcdb9180 100644 --- a/Gui/opensim/modeling/src/org/opensim/modeling/opensimSimulationJNI.java +++ b/Gui/opensim/modeling/src/org/opensim/modeling/opensimSimulationJNI.java @@ -1265,6 +1265,7 @@ public class opensimSimulationJNI { public final static native double Coordinate_getSpeedValue(long jarg1, Coordinate jarg1_, long jarg2, State jarg2_); public final static native void Coordinate_setSpeedValue(long jarg1, Coordinate jarg1_, long jarg2, State jarg2_, double jarg3); public final static native String Coordinate_getSpeedName(long jarg1, Coordinate jarg1_); + public final static native double Coordinate_getQDotValue(long jarg1, Coordinate jarg1_, long jarg2, State jarg2_); public final static native double Coordinate_getDefaultValue(long jarg1, Coordinate jarg1_); public final static native void Coordinate_setDefaultValue(long jarg1, Coordinate jarg1_, double jarg2); public final static native double Coordinate_getDefaultSpeedValue(long jarg1, Coordinate jarg1_); @@ -4972,6 +4973,157 @@ public class opensimSimulationJNI { public final static native long ModelVisualizer_updModel(long jarg1, ModelVisualizer jarg1_); public final static native boolean ModelVisualizer_findGeometryFile(long jarg1, Model jarg1_, String jarg2, long jarg3, long jarg4, SimTKArrayString jarg4_); public final static native void ModelVisualizer_addDirToGeometrySearchPaths(String jarg1); + public final static native long new_ReferencePtrCoordinate__SWIG_0(); + public final static native long new_ReferencePtrCoordinate__SWIG_1(long jarg1); + public final static native long new_ReferencePtrCoordinate__SWIG_2(long jarg1, Coordinate jarg1_); + public final static native long new_ReferencePtrCoordinate__SWIG_4(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long new_ReferencePtrCoordinate__SWIG_6(int jarg1); + public final static native void delete_ReferencePtrCoordinate(long jarg1); + public final static native long ReferencePtrCoordinate_get(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getRef(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate___deref__(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate___ref__(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native void ReferencePtrCoordinate_reset__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, Coordinate jarg2_); + public final static native void ReferencePtrCoordinate_reset__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native void ReferencePtrCoordinate_swap(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, ReferencePtrCoordinate jarg2_); + public final static native boolean ReferencePtrCoordinate_empty(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_release(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native void ReferencePtrCoordinate_clear(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_clone(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native String ReferencePtrCoordinate_getConcreteClassName(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native double ReferencePtrCoordinate_get_default_value__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, int jarg2); + public final static native double ReferencePtrCoordinate_get_default_value__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native double ReferencePtrCoordinate_get_default_speed_value__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, int jarg2); + public final static native double ReferencePtrCoordinate_get_default_speed_value__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native double ReferencePtrCoordinate_get_range(long jarg1, ReferencePtrCoordinate jarg1_, int jarg2); + public final static native boolean ReferencePtrCoordinate_get_clamped__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, int jarg2); + public final static native boolean ReferencePtrCoordinate_get_clamped__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_get_locked__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, int jarg2); + public final static native boolean ReferencePtrCoordinate_get_locked__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_get_prescribed_function__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, int jarg2); + public final static native long ReferencePtrCoordinate_get_prescribed_function__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_get_prescribed__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, int jarg2); + public final static native boolean ReferencePtrCoordinate_get_prescribed__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_get_is_free_to_satisfy_constraints__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, int jarg2); + public final static native boolean ReferencePtrCoordinate_get_is_free_to_satisfy_constraints__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate__has_output_value_get(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate__has_output_speed_get(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate__has_output_acceleration_get(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getJoint(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native int ReferencePtrCoordinate_getMotionType(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native double ReferencePtrCoordinate_getValue(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native void ReferencePtrCoordinate_setValue__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, double jarg3, boolean jarg4); + public final static native void ReferencePtrCoordinate_setValue__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, double jarg3); + public final static native double ReferencePtrCoordinate_getSpeedValue(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native void ReferencePtrCoordinate_setSpeedValue(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, double jarg3); + public final static native String ReferencePtrCoordinate_getSpeedName(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native double ReferencePtrCoordinate_getQDotValue(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native double ReferencePtrCoordinate_getDefaultValue(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native double ReferencePtrCoordinate_getDefaultSpeedValue(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native double ReferencePtrCoordinate_getAccelerationValue(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native boolean ReferencePtrCoordinate_getClamped(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native void ReferencePtrCoordinate_setClamped(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, boolean jarg3); + public final static native boolean ReferencePtrCoordinate_getDefaultClamped(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native double ReferencePtrCoordinate_getRangeMin(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native double ReferencePtrCoordinate_getRangeMax(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_getLocked(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native void ReferencePtrCoordinate_setLocked(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, boolean jarg3); + public final static native boolean ReferencePtrCoordinate_getDefaultLocked(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_isPrescribed(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native void ReferencePtrCoordinate_setIsPrescribed(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, boolean jarg3); + public final static native boolean ReferencePtrCoordinate_getDefaultIsPrescribed(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getPrescribedFunction(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_isDependent(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native boolean ReferencePtrCoordinate_isConstrained(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native int ReferencePtrCoordinate_getMobilizerQIndex(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native int ReferencePtrCoordinate_getBodyIndex(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native int ReferencePtrCoordinate_getUserSpecifiedMotionTypePriorTo40(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getModel(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_hasModel(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native void ReferencePtrCoordinate_addToSystem(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2); + public final static native void ReferencePtrCoordinate_initStateFromProperties(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native void ReferencePtrCoordinate_generateDecorations(long jarg1, ReferencePtrCoordinate jarg1_, boolean jarg2, long jarg3, ModelDisplayHints jarg3_, long jarg4, State jarg4_, long jarg5, ArrayDecorativeGeometry jarg5_); + public final static native long ReferencePtrCoordinate_getSystem(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_hasSystem(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_isComponentInOwnershipTree(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, Component jarg2_); + public final static native String ReferencePtrCoordinate_getAbsolutePathString(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getAbsolutePath(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native String ReferencePtrCoordinate_getRelativePathString(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, Component jarg2_); + public final static native long ReferencePtrCoordinate_getRelativePath(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, Component jarg2_); + public final static native boolean ReferencePtrCoordinate_hasComponent(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native long ReferencePtrCoordinate_getComponent(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native long ReferencePtrCoordinate_printComponentsMatching(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native int ReferencePtrCoordinate_getNumStateVariables(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getStateVariableNames(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native int ReferencePtrCoordinate_getNumSockets(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getSocketNames(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getConnectee(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native long ReferencePtrCoordinate_getSocket(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native int ReferencePtrCoordinate_getNumInputs(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native int ReferencePtrCoordinate_getNumOutputs(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getInputNames(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getOutputNames(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getInput(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native long ReferencePtrCoordinate_getOutput(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native int ReferencePtrCoordinate_getModelingOption(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, String jarg3); + public final static native void ReferencePtrCoordinate_setModelingOption(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, String jarg3, int jarg4); + public final static native double ReferencePtrCoordinate_getStateVariableValue__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, String jarg3); + public final static native double ReferencePtrCoordinate_getStateVariableValue__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, long jarg3, ComponentPath jarg3_); + public final static native void ReferencePtrCoordinate_setStateVariableValue(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, String jarg3, double jarg4); + public final static native long ReferencePtrCoordinate_getStateVariableValues(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_); + public final static native void ReferencePtrCoordinate_setStateVariableValues(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, long jarg3, Vector jarg3_); + public final static native double ReferencePtrCoordinate_getStateVariableDerivativeValue(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, String jarg3); + public final static native double ReferencePtrCoordinate_getDiscreteVariableValue(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, String jarg3); + public final static native void ReferencePtrCoordinate_setDiscreteVariableValue(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, String jarg3, double jarg4); + public final static native long ReferencePtrCoordinate_getCacheVariableIndex(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native boolean ReferencePtrCoordinate_isCacheVariableValid(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, String jarg3); + public final static native void ReferencePtrCoordinate_markCacheVariableValid(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, String jarg3); + public final static native void ReferencePtrCoordinate_markCacheVariableInvalid(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, State jarg2_, String jarg3); + public final static native void ReferencePtrCoordinate_printSubcomponentInfo(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native void ReferencePtrCoordinate_printSocketInfo(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native void ReferencePtrCoordinate_printInputInfo(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native void ReferencePtrCoordinate_printOutputInfo__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, boolean jarg2); + public final static native void ReferencePtrCoordinate_printOutputInfo__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getOwner(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_hasOwner(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getRoot(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_findComponent__SWIG_2(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, ComponentPath jarg2_); + public final static native long ReferencePtrCoordinate_findComponent__SWIG_3(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native long ReferencePtrCoordinate_getComponentsList(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_isEqualTo(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, OpenSimObject jarg2_); + public final static native String ReferencePtrCoordinate_getName(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native String ReferencePtrCoordinate_getDescription(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native String ReferencePtrCoordinate_getAuthors(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native String ReferencePtrCoordinate_getReferences(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native int ReferencePtrCoordinate_getNumProperties(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long ReferencePtrCoordinate_getPropertyByIndex(long jarg1, ReferencePtrCoordinate jarg1_, int jarg2); + public final static native boolean ReferencePtrCoordinate_hasProperty(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native long ReferencePtrCoordinate_getPropertyByName(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native boolean ReferencePtrCoordinate_isObjectUpToDateWithProperties(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native void ReferencePtrCoordinate_updateXMLNode__SWIG_0(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2, long jarg3, AbstractProperty jarg3_); + public final static native void ReferencePtrCoordinate_updateXMLNode__SWIG_1(long jarg1, ReferencePtrCoordinate jarg1_, long jarg2); + public final static native boolean ReferencePtrCoordinate_getInlined(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native String ReferencePtrCoordinate_getDocumentFileName(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native int ReferencePtrCoordinate_getDocumentFileVersion(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_print(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native String ReferencePtrCoordinate_dump(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native boolean ReferencePtrCoordinate_isA(long jarg1, ReferencePtrCoordinate jarg1_, String jarg2); + public final static native String ReferencePtrCoordinate_toString(long jarg1, ReferencePtrCoordinate jarg1_); + public final static native long new_StdVectorReferencePtrCoordinate__SWIG_0(); + public final static native long new_StdVectorReferencePtrCoordinate__SWIG_1(long jarg1, StdVectorReferencePtrCoordinate jarg1_); + public final static native long StdVectorReferencePtrCoordinate_capacity(long jarg1, StdVectorReferencePtrCoordinate jarg1_); + public final static native void StdVectorReferencePtrCoordinate_reserve(long jarg1, StdVectorReferencePtrCoordinate jarg1_, long jarg2); + public final static native boolean StdVectorReferencePtrCoordinate_isEmpty(long jarg1, StdVectorReferencePtrCoordinate jarg1_); + public final static native void StdVectorReferencePtrCoordinate_clear(long jarg1, StdVectorReferencePtrCoordinate jarg1_); + public final static native long new_StdVectorReferencePtrCoordinate__SWIG_2(int jarg1, long jarg2, ReferencePtrCoordinate jarg2_); + public final static native int StdVectorReferencePtrCoordinate_doSize(long jarg1, StdVectorReferencePtrCoordinate jarg1_); + public final static native void StdVectorReferencePtrCoordinate_doAdd__SWIG_0(long jarg1, StdVectorReferencePtrCoordinate jarg1_, long jarg2, ReferencePtrCoordinate jarg2_); + public final static native void StdVectorReferencePtrCoordinate_doAdd__SWIG_1(long jarg1, StdVectorReferencePtrCoordinate jarg1_, int jarg2, long jarg3, ReferencePtrCoordinate jarg3_); + public final static native long StdVectorReferencePtrCoordinate_doRemove(long jarg1, StdVectorReferencePtrCoordinate jarg1_, int jarg2); + public final static native long StdVectorReferencePtrCoordinate_doGet(long jarg1, StdVectorReferencePtrCoordinate jarg1_, int jarg2); + public final static native long StdVectorReferencePtrCoordinate_doSet(long jarg1, StdVectorReferencePtrCoordinate jarg1_, int jarg2, long jarg3, ReferencePtrCoordinate jarg3_); + public final static native void StdVectorReferencePtrCoordinate_doRemoveRange(long jarg1, StdVectorReferencePtrCoordinate jarg1_, int jarg2, int jarg3); + public final static native void delete_StdVectorReferencePtrCoordinate(long jarg1); public final static native long new_ModelHasNoSystem(String jarg1, long jarg2, String jarg3, String jarg4); public final static native void delete_ModelHasNoSystem(long jarg1); public final static native long new_PhysicalOffsetFramesFormLoop(String jarg1, long jarg2, String jarg3, long jarg4, OpenSimObject jarg4_, String jarg5); @@ -5594,8 +5746,6 @@ public class opensimSimulationJNI { public final static native long AbstractPath_upd_Appearance__SWIG_1(long jarg1, AbstractPath jarg1_); public final static native void AbstractPath_set_Appearance__SWIG_1(long jarg1, AbstractPath jarg1_, long jarg2, Appearance jarg2_); public final static native void delete_AbstractPath(long jarg1); - public final static native long AbstractPath_getColor(long jarg1, AbstractPath jarg1_, long jarg2, State jarg2_); - public final static native void AbstractPath_setColor(long jarg1, AbstractPath jarg1_, long jarg2, State jarg2_, long jarg3, Vec3 jarg3_); public final static native double AbstractPath_getLength(long jarg1, AbstractPath jarg1_, long jarg2, State jarg2_); public final static native double AbstractPath_getLengtheningSpeed(long jarg1, AbstractPath jarg1_, long jarg2, State jarg2_); public final static native void AbstractPath_addInEquivalentForces(long jarg1, AbstractPath jarg1_, long jarg2, State jarg2_, double jarg3, long jarg4, VectorOfSpatialVec jarg4_, long jarg5, Vector jarg5_); @@ -5603,6 +5753,8 @@ public class opensimSimulationJNI { public final static native boolean AbstractPath_isVisualPath(long jarg1, AbstractPath jarg1_); public final static native long AbstractPath_getDefaultColor(long jarg1, AbstractPath jarg1_); public final static native void AbstractPath_setDefaultColor(long jarg1, AbstractPath jarg1_, long jarg2, Vec3 jarg2_); + public final static native long AbstractPath_getColor(long jarg1, AbstractPath jarg1_, long jarg2, State jarg2_); + public final static native void AbstractPath_setColor(long jarg1, AbstractPath jarg1_, long jarg2, State jarg2_, long jarg3, Vec3 jarg3_); public final static native double AbstractPath_getPreScaleLength(long jarg1, AbstractPath jarg1_, long jarg2, State jarg2_); public final static native void AbstractPath_setPreScaleLength(long jarg1, AbstractPath jarg1_, long jarg2, State jarg2_, double jarg3); public final static native long GeometryPath_safeDownCast(long jarg1, OpenSimObject jarg1_); @@ -5639,6 +5791,61 @@ public class opensimSimulationJNI { public final static native void GeometryPath_extendPreScale(long jarg1, GeometryPath jarg1_, long jarg2, State jarg2_, long jarg3, ScaleSet jarg3_); public final static native void GeometryPath_extendPostScale(long jarg1, GeometryPath jarg1_, long jarg2, State jarg2_, long jarg3, ScaleSet jarg3_); public final static native void GeometryPath_updateGeometry(long jarg1, GeometryPath jarg1_, long jarg2, State jarg2_); + public final static native long FunctionBasedPath_safeDownCast(long jarg1, OpenSimObject jarg1_); + public final static native void FunctionBasedPath_assign(long jarg1, FunctionBasedPath jarg1_, long jarg2, OpenSimObject jarg2_); + public final static native String FunctionBasedPath_getClassName(); + public final static native long FunctionBasedPath_clone(long jarg1, FunctionBasedPath jarg1_); + public final static native String FunctionBasedPath_getConcreteClassName(long jarg1, FunctionBasedPath jarg1_); + public final static native void FunctionBasedPath_copyProperty_coordinate_paths(long jarg1, FunctionBasedPath jarg1_, long jarg2, FunctionBasedPath jarg2_); + public final static native String FunctionBasedPath_get_coordinate_paths(long jarg1, FunctionBasedPath jarg1_, int jarg2); + public final static native long FunctionBasedPath_upd_coordinate_paths(long jarg1, FunctionBasedPath jarg1_, int jarg2); + public final static native void FunctionBasedPath_set_coordinate_paths(long jarg1, FunctionBasedPath jarg1_, int jarg2, String jarg3); + public final static native int FunctionBasedPath_append_coordinate_paths(long jarg1, FunctionBasedPath jarg1_, String jarg2); + public final static native void FunctionBasedPath_constructProperty_coordinate_paths(long jarg1, FunctionBasedPath jarg1_); + public final static native void FunctionBasedPath_copyProperty_length_function(long jarg1, FunctionBasedPath jarg1_, long jarg2, FunctionBasedPath jarg2_); + public final static native long FunctionBasedPath_get_length_function__SWIG_0(long jarg1, FunctionBasedPath jarg1_, int jarg2); + public final static native long FunctionBasedPath_upd_length_function__SWIG_0(long jarg1, FunctionBasedPath jarg1_, int jarg2); + public final static native void FunctionBasedPath_set_length_function__SWIG_0(long jarg1, FunctionBasedPath jarg1_, int jarg2, long jarg3, Function jarg3_); + public final static native int FunctionBasedPath_append_length_function(long jarg1, FunctionBasedPath jarg1_, long jarg2, Function jarg2_); + public final static native void FunctionBasedPath_constructProperty_length_function__SWIG_0(long jarg1, FunctionBasedPath jarg1_); + public final static native void FunctionBasedPath_constructProperty_length_function__SWIG_1(long jarg1, FunctionBasedPath jarg1_, long jarg2, Function jarg2_); + public final static native long FunctionBasedPath_get_length_function__SWIG_1(long jarg1, FunctionBasedPath jarg1_); + public final static native long FunctionBasedPath_upd_length_function__SWIG_1(long jarg1, FunctionBasedPath jarg1_); + public final static native void FunctionBasedPath_set_length_function__SWIG_1(long jarg1, FunctionBasedPath jarg1_, long jarg2, Function jarg2_); + public final static native void FunctionBasedPath_copyProperty_moment_arm_functions(long jarg1, FunctionBasedPath jarg1_, long jarg2, FunctionBasedPath jarg2_); + public final static native long FunctionBasedPath_get_moment_arm_functions(long jarg1, FunctionBasedPath jarg1_, int jarg2); + public final static native long FunctionBasedPath_upd_moment_arm_functions(long jarg1, FunctionBasedPath jarg1_, int jarg2); + public final static native void FunctionBasedPath_set_moment_arm_functions(long jarg1, FunctionBasedPath jarg1_, int jarg2, long jarg3, Function jarg3_); + public final static native int FunctionBasedPath_append_moment_arm_functions(long jarg1, FunctionBasedPath jarg1_, long jarg2, Function jarg2_); + public final static native void FunctionBasedPath_constructProperty_moment_arm_functions(long jarg1, FunctionBasedPath jarg1_); + public final static native void FunctionBasedPath_copyProperty_lengthening_speed_function(long jarg1, FunctionBasedPath jarg1_, long jarg2, FunctionBasedPath jarg2_); + public final static native long FunctionBasedPath_get_lengthening_speed_function__SWIG_0(long jarg1, FunctionBasedPath jarg1_, int jarg2); + public final static native long FunctionBasedPath_upd_lengthening_speed_function__SWIG_0(long jarg1, FunctionBasedPath jarg1_, int jarg2); + public final static native void FunctionBasedPath_set_lengthening_speed_function__SWIG_0(long jarg1, FunctionBasedPath jarg1_, int jarg2, long jarg3, Function jarg3_); + public final static native int FunctionBasedPath_append_lengthening_speed_function(long jarg1, FunctionBasedPath jarg1_, long jarg2, Function jarg2_); + public final static native void FunctionBasedPath_constructProperty_lengthening_speed_function__SWIG_0(long jarg1, FunctionBasedPath jarg1_); + public final static native void FunctionBasedPath_constructProperty_lengthening_speed_function__SWIG_1(long jarg1, FunctionBasedPath jarg1_, long jarg2, Function jarg2_); + public final static native long FunctionBasedPath_get_lengthening_speed_function__SWIG_1(long jarg1, FunctionBasedPath jarg1_); + public final static native long FunctionBasedPath_upd_lengthening_speed_function__SWIG_1(long jarg1, FunctionBasedPath jarg1_); + public final static native void FunctionBasedPath_set_lengthening_speed_function__SWIG_1(long jarg1, FunctionBasedPath jarg1_, long jarg2, Function jarg2_); + public final static native long new_FunctionBasedPath(); + public final static native void FunctionBasedPath_setCoordinatePaths(long jarg1, FunctionBasedPath jarg1_, long jarg2, StdVectorString jarg2_); + public final static native void FunctionBasedPath_appendCoordinatePath(long jarg1, FunctionBasedPath jarg1_, String jarg2); + public final static native long FunctionBasedPath_getCoordinatePaths(long jarg1, FunctionBasedPath jarg1_); + public final static native void FunctionBasedPath_setLengthFunction(long jarg1, FunctionBasedPath jarg1_, long jarg2, Function jarg2_); + public final static native long FunctionBasedPath_getLengthFunction(long jarg1, FunctionBasedPath jarg1_); + public final static native void FunctionBasedPath_setMomentArmFunctions(long jarg1, FunctionBasedPath jarg1_, long jarg2); + public final static native void FunctionBasedPath_appendMomentArmFunction(long jarg1, FunctionBasedPath jarg1_, long jarg2, Function jarg2_); + public final static native long FunctionBasedPath_getMomentArmFunction(long jarg1, FunctionBasedPath jarg1_, String jarg2); + public final static native long FunctionBasedPath_getMomentArms(long jarg1, FunctionBasedPath jarg1_, long jarg2, State jarg2_); + public final static native void FunctionBasedPath_setLengtheningSpeedFunction(long jarg1, FunctionBasedPath jarg1_, long jarg2, Function jarg2_); + public final static native long FunctionBasedPath_getLengtheningSpeedFunction(long jarg1, FunctionBasedPath jarg1_); + public final static native double FunctionBasedPath_getLength(long jarg1, FunctionBasedPath jarg1_, long jarg2, State jarg2_); + public final static native double FunctionBasedPath_getLengtheningSpeed(long jarg1, FunctionBasedPath jarg1_, long jarg2, State jarg2_); + public final static native double FunctionBasedPath_computeMomentArm(long jarg1, FunctionBasedPath jarg1_, long jarg2, State jarg2_, long jarg3, Coordinate jarg3_); + public final static native void FunctionBasedPath_addInEquivalentForces(long jarg1, FunctionBasedPath jarg1_, long jarg2, State jarg2_, double jarg3, long jarg4, VectorOfSpatialVec jarg4_, long jarg5, Vector jarg5_); + public final static native boolean FunctionBasedPath_isVisualPath(long jarg1, FunctionBasedPath jarg1_); + public final static native void delete_FunctionBasedPath(long jarg1); public final static native long Ligament_safeDownCast(long jarg1, OpenSimObject jarg1_); public final static native void Ligament_assign(long jarg1, Ligament jarg1_, long jarg2, OpenSimObject jarg2_); public final static native String Ligament_getClassName(); @@ -9625,6 +9832,7 @@ public class opensimSimulationJNI { public final static native long PathPointSet_SWIGUpcast(long jarg1); public final static native long AbstractPath_SWIGUpcast(long jarg1); public final static native long GeometryPath_SWIGUpcast(long jarg1); + public final static native long FunctionBasedPath_SWIGUpcast(long jarg1); public final static native long Ligament_SWIGUpcast(long jarg1); public final static native long Blankevoort1991Ligament_SWIGUpcast(long jarg1); public final static native long PathActuator_SWIGUpcast(long jarg1);