/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.36
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


public class OBVectorData extends OBGenericData {
  private long swigCPtr;

  protected OBVectorData(long cPtr, boolean cMemoryOwn) {
    super(openbabelJNI.SWIGOBVectorDataUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected static long getCPtr(OBVectorData obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      openbabelJNI.delete_OBVectorData(swigCPtr);
    }
    swigCPtr = 0;
    super.delete();
  }

  public OBVectorData() {
    this(openbabelJNI.new_OBVectorData(), true);
  }

  public void SetData(double x, double y, double z) {
    openbabelJNI.OBVectorData_SetData__SWIG_0(swigCPtr, this, x, y, z);
  }

  public void SetData(vector3 data) {
    openbabelJNI.OBVectorData_SetData__SWIG_1(swigCPtr, this, vector3.getCPtr(data), data);
  }

  public vector3 GetData() {
    return new vector3(openbabelJNI.OBVectorData_GetData(swigCPtr, this), true);
  }

}
