1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
10
public class OBRotationData extends OBGenericData {
11
private long swigCPtr;
13
protected OBRotationData(long cPtr, boolean cMemoryOwn) {
14
super(openbabelJNI.SWIGOBRotationDataUpcast(cPtr), cMemoryOwn);
18
protected static long getCPtr(OBRotationData obj) {
19
return (obj == null) ? 0 : obj.swigCPtr;
22
protected void finalize() {
26
public synchronized void delete() {
27
if(swigCPtr != 0 && swigCMemOwn) {
29
openbabelJNI.delete_OBRotationData(swigCPtr);
35
public OBRotationData() {
36
this(openbabelJNI.new_OBRotationData(), true);
39
public void SetData(OBRotationData.RType RotorType, vectorDouble RotationalConstants, int SymmetryNumber) {
40
openbabelJNI.OBRotationData_SetData(swigCPtr, this, RotorType.swigValue(), vectorDouble.getCPtr(RotationalConstants), RotationalConstants, SymmetryNumber);
43
public vectorDouble GetRotConsts() {
44
return new vectorDouble(openbabelJNI.OBRotationData_GetRotConsts(swigCPtr, this), true);
47
public int GetSymmetryNumber() {
48
return openbabelJNI.OBRotationData_GetSymmetryNumber(swigCPtr, this);
51
public OBRotationData.RType GetRotorType() {
52
return OBRotationData.RType.swigToEnum(openbabelJNI.OBRotationData_GetRotorType(swigCPtr, this));
55
public final static class RType {
56
public final static RType UNKNOWN = new RType("UNKNOWN");
57
public final static RType ASYMMETRIC = new RType("ASYMMETRIC");
58
public final static RType SYMMETRIC = new RType("SYMMETRIC");
59
public final static RType LINEAR = new RType("LINEAR");
61
public final int swigValue() {
65
public String toString() {
69
public static RType swigToEnum(int swigValue) {
70
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
71
return swigValues[swigValue];
72
for (int i = 0; i < swigValues.length; i++)
73
if (swigValues[i].swigValue == swigValue)
75
throw new IllegalArgumentException("No enum " + RType.class + " with value " + swigValue);
78
private RType(String swigName) {
79
this.swigName = swigName;
80
this.swigValue = swigNext++;
83
private RType(String swigName, int swigValue) {
84
this.swigName = swigName;
85
this.swigValue = swigValue;
86
swigNext = swigValue+1;
89
private RType(String swigName, RType swigEnum) {
90
this.swigName = swigName;
91
this.swigValue = swigEnum.swigValue;
92
swigNext = this.swigValue+1;
95
private static RType[] swigValues = { UNKNOWN, ASYMMETRIC, SYMMETRIC, LINEAR };
96
private static int swigNext = 0;
97
private final int swigValue;
98
private final String swigName;