-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade bindings to latest code including PR to modify component API (#…
- Loading branch information
Showing
86 changed files
with
4,785 additions
and
499 deletions.
There are no files selected for viewing
301 changes: 267 additions & 34 deletions
301
Gui/opensim/modeling/src/org/opensim/modeling/ActuatorIterator.java
Large diffs are not rendered by default.
Oops, something went wrong.
294 changes: 260 additions & 34 deletions
294
Gui/opensim/modeling/src/org/opensim/modeling/BodyIterator.java
Large diffs are not rendered by default.
Oops, something went wrong.
296 changes: 261 additions & 35 deletions
296
Gui/opensim/modeling/src/org/opensim/modeling/Component.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
292 changes: 259 additions & 33 deletions
292
Gui/opensim/modeling/src/org/opensim/modeling/ComponentIterator.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
Gui/opensim/modeling/src/org/opensim/modeling/EmptyComponentPath.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* 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; | ||
|
||
/** | ||
* Component Exceptions | ||
*/ | ||
public class EmptyComponentPath extends OpenSimException { | ||
private transient long swigCPtr; | ||
|
||
public EmptyComponentPath(long cPtr, boolean cMemoryOwn) { | ||
super(opensimCommonJNI.EmptyComponentPath_SWIGUpcast(cPtr), cMemoryOwn); | ||
swigCPtr = cPtr; | ||
} | ||
|
||
public static long getCPtr(EmptyComponentPath obj) { | ||
return (obj == null) ? 0 : obj.swigCPtr; | ||
} | ||
|
||
public static long swigRelease(EmptyComponentPath 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; | ||
opensimCommonJNI.delete_EmptyComponentPath(swigCPtr); | ||
} | ||
swigCPtr = 0; | ||
} | ||
super.delete(); | ||
} | ||
|
||
public EmptyComponentPath(String file, long line, String methodName, String componentName) { | ||
this(opensimCommonJNI.new_EmptyComponentPath(file, line, methodName, componentName), true); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.