* scripts/*: Split openbabel.i into individual copies for each

language.

  * scripts/java/*: Initial attempt at a java interface from SWIG. Untested.
This commit is contained in:
Geoffrey Hutchison
2006-11-03 22:23:31 +00:00
parent 8f931dcba5
commit 07164cb7be
126 changed files with 48931 additions and 368 deletions
+132
View File
@@ -0,0 +1,132 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.29
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
public class vector3 {
private long swigCPtr;
protected boolean swigCMemOwn;
protected vector3(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(vector3 obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
net.sourceforge.openbabelJNI.delete_vector3(swigCPtr);
}
swigCPtr = 0;
}
public vector3(double x, double y, double z) {
this(net.sourceforge.openbabelJNI.new_vector3__SWIG_0(x, y, z), true);
}
public vector3(double x, double y) {
this(net.sourceforge.openbabelJNI.new_vector3__SWIG_1(x, y), true);
}
public vector3(double x) {
this(net.sourceforge.openbabelJNI.new_vector3__SWIG_2(x), true);
}
public vector3() {
this(net.sourceforge.openbabelJNI.new_vector3__SWIG_3(), true);
}
public vector3(vector3 v) {
this(net.sourceforge.openbabelJNI.new_vector3__SWIG_4(vector3.getCPtr(v)), true);
}
public void Set(double x, double y, double z) {
net.sourceforge.openbabelJNI.vector3_Set__SWIG_0(swigCPtr, x, y, z);
}
public void Set(SWIGTYPE_p_double c) {
net.sourceforge.openbabelJNI.vector3_Set__SWIG_1(swigCPtr, SWIGTYPE_p_double.getCPtr(c));
}
public void SetX(double x) {
net.sourceforge.openbabelJNI.vector3_SetX(swigCPtr, x);
}
public void SetY(double y) {
net.sourceforge.openbabelJNI.vector3_SetY(swigCPtr, y);
}
public void SetZ(double z) {
net.sourceforge.openbabelJNI.vector3_SetZ(swigCPtr, z);
}
public void Get(SWIGTYPE_p_double c) {
net.sourceforge.openbabelJNI.vector3_Get(swigCPtr, SWIGTYPE_p_double.getCPtr(c));
}
public boolean IsApprox(vector3 arg0, double precision) {
return net.sourceforge.openbabelJNI.vector3_IsApprox(swigCPtr, vector3.getCPtr(arg0), precision);
}
public SWIGTYPE_p_double AsArray() {
long cPtr = net.sourceforge.openbabelJNI.vector3_AsArray(swigCPtr);
return (cPtr == 0) ? null : new SWIGTYPE_p_double(cPtr, false);
}
public void randomUnitVector(OBRandom oeRand) {
net.sourceforge.openbabelJNI.vector3_randomUnitVector__SWIG_0(swigCPtr, OBRandom.getCPtr(oeRand));
}
public void randomUnitVector() {
net.sourceforge.openbabelJNI.vector3_randomUnitVector__SWIG_1(swigCPtr);
}
public vector3 normalize() {
return new vector3(net.sourceforge.openbabelJNI.vector3_normalize(swigCPtr), false);
}
public boolean CanBeNormalized() {
return net.sourceforge.openbabelJNI.vector3_CanBeNormalized(swigCPtr);
}
public double length() {
return net.sourceforge.openbabelJNI.vector3_length(swigCPtr);
}
public double length_2() {
return net.sourceforge.openbabelJNI.vector3_length_2(swigCPtr);
}
public double x() {
return net.sourceforge.openbabelJNI.vector3_x(swigCPtr);
}
public double y() {
return net.sourceforge.openbabelJNI.vector3_y(swigCPtr);
}
public double z() {
return net.sourceforge.openbabelJNI.vector3_z(swigCPtr);
}
public double distSq(vector3 vv) {
return net.sourceforge.openbabelJNI.vector3_distSq(swigCPtr, vector3.getCPtr(vv));
}
public boolean createOrthoVector(vector3 v) {
return net.sourceforge.openbabelJNI.vector3_createOrthoVector(swigCPtr, vector3.getCPtr(v));
}
}