/* ----------------------------------------------------------------------------
 * 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 OBGridData extends OBGenericData {
  private long swigCPtr;

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

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

  protected void finalize() {
    delete();
  }

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

  public OBGridData() {
    this(openbabelJNI.new_OBGridData(), true);
  }

  public void GetAxes(SWIGTYPE_p_double x, SWIGTYPE_p_double y, SWIGTYPE_p_double z) {
    openbabelJNI.OBGridData_GetAxes__SWIG_0(swigCPtr, this, SWIGTYPE_p_double.getCPtr(x), SWIGTYPE_p_double.getCPtr(y), SWIGTYPE_p_double.getCPtr(z));
  }

  public vector3 GetXAxis() {
    return new vector3(openbabelJNI.OBGridData_GetXAxis(swigCPtr, this), true);
  }

  public vector3 GetYAxis() {
    return new vector3(openbabelJNI.OBGridData_GetYAxis(swigCPtr, this), true);
  }

  public vector3 GetZAxis() {
    return new vector3(openbabelJNI.OBGridData_GetZAxis(swigCPtr, this), true);
  }

  public void GetAxes(vector3 v1, vector3 v2, vector3 v3) {
    openbabelJNI.OBGridData_GetAxes__SWIG_1(swigCPtr, this, vector3.getCPtr(v1), v1, vector3.getCPtr(v2), v2, vector3.getCPtr(v3), v3);
  }

  public void GetNumberOfPoints(SWIGTYPE_p_int nx, SWIGTYPE_p_int ny, SWIGTYPE_p_int nz) {
    openbabelJNI.OBGridData_GetNumberOfPoints__SWIG_0(swigCPtr, this, SWIGTYPE_p_int.getCPtr(nx), SWIGTYPE_p_int.getCPtr(ny), SWIGTYPE_p_int.getCPtr(nz));
  }

  public int GetNumberOfPoints() {
    return openbabelJNI.OBGridData_GetNumberOfPoints__SWIG_1(swigCPtr, this);
  }

  public void GetNumberOfSteps(SWIGTYPE_p_int steps) {
    openbabelJNI.OBGridData_GetNumberOfSteps(swigCPtr, this, SWIGTYPE_p_int.getCPtr(steps));
  }

  public vectorDouble GetValues() {
    return new vectorDouble(openbabelJNI.OBGridData_GetValues(swigCPtr, this), true);
  }

  public double GetValue(int i, int j, int k) {
    return openbabelJNI.OBGridData_GetValue__SWIG_0(swigCPtr, this, i, j, k);
  }

  public double GetValue(vector3 pos) {
    return openbabelJNI.OBGridData_GetValue__SWIG_1(swigCPtr, this, vector3.getCPtr(pos), pos);
  }

  public OBGridData.Unit GetUnit() {
    return OBGridData.Unit.swigToEnum(openbabelJNI.OBGridData_GetUnit(swigCPtr, this));
  }

  public double GetMinValue() {
    return openbabelJNI.OBGridData_GetMinValue(swigCPtr, this);
  }

  public double GetMaxValue() {
    return openbabelJNI.OBGridData_GetMaxValue(swigCPtr, this);
  }

  public vector3 GetOriginVector() {
    return new vector3(openbabelJNI.OBGridData_GetOriginVector__SWIG_0(swigCPtr, this), true);
  }

  public void GetOriginVector(SWIGTYPE_p_double o) {
    openbabelJNI.OBGridData_GetOriginVector__SWIG_1(swigCPtr, this, SWIGTYPE_p_double.getCPtr(o));
  }

  public vector3 GetMaxVector() {
    return new vector3(openbabelJNI.OBGridData_GetMaxVector(swigCPtr, this), true);
  }

  public boolean GetUnrestricted() {
    return openbabelJNI.OBGridData_GetUnrestricted(swigCPtr, this);
  }

  public int GetNumSymmetries() {
    return openbabelJNI.OBGridData_GetNumSymmetries(swigCPtr, this);
  }

  public void SetNumberOfPoints(int nx, int ny, int nz) {
    openbabelJNI.OBGridData_SetNumberOfPoints(swigCPtr, this, nx, ny, nz);
  }

  public void SetLimits(vector3 origin, vector3 x, vector3 y, vector3 z) {
    openbabelJNI.OBGridData_SetLimits__SWIG_0(swigCPtr, this, vector3.getCPtr(origin), origin, vector3.getCPtr(x), x, vector3.getCPtr(y), y, vector3.getCPtr(z), z);
  }

  public void SetLimits(SWIGTYPE_p_double origin, SWIGTYPE_p_double x, SWIGTYPE_p_double y, SWIGTYPE_p_double z) {
    openbabelJNI.OBGridData_SetLimits__SWIG_1(swigCPtr, this, SWIGTYPE_p_double.getCPtr(origin), SWIGTYPE_p_double.getCPtr(x), SWIGTYPE_p_double.getCPtr(y), SWIGTYPE_p_double.getCPtr(z));
  }

  public boolean SetValue(int i, int j, int k, double val) {
    return openbabelJNI.OBGridData_SetValue(swigCPtr, this, i, j, k, val);
  }

  public void SetValues(vectorDouble v) {
    openbabelJNI.OBGridData_SetValues(swigCPtr, this, vectorDouble.getCPtr(v), v);
  }

  public void SetUnit(OBGridData.Unit u) {
    openbabelJNI.OBGridData_SetUnit(swigCPtr, this, u.swigValue());
  }

  public void SetUnrestricted(boolean u) {
    openbabelJNI.OBGridData_SetUnrestricted(swigCPtr, this, u);
  }

  public void SetNumSymmetries(int s) {
    openbabelJNI.OBGridData_SetNumSymmetries(swigCPtr, this, s);
  }

  public final static class Unit {
    public final static Unit BOHR = new Unit("BOHR");
    public final static Unit ANGSTROM = new Unit("ANGSTROM");
    public final static Unit OTHER = new Unit("OTHER");

    public final int swigValue() {
      return swigValue;
    }

    public String toString() {
      return swigName;
    }

    public static Unit swigToEnum(int swigValue) {
      if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
        return swigValues[swigValue];
      for (int i = 0; i < swigValues.length; i++)
        if (swigValues[i].swigValue == swigValue)
          return swigValues[i];
      throw new IllegalArgumentException("No enum " + Unit.class + " with value " + swigValue);
    }

    private Unit(String swigName) {
      this.swigName = swigName;
      this.swigValue = swigNext++;
    }

    private Unit(String swigName, int swigValue) {
      this.swigName = swigName;
      this.swigValue = swigValue;
      swigNext = swigValue+1;
    }

    private Unit(String swigName, Unit swigEnum) {
      this.swigName = swigName;
      this.swigValue = swigEnum.swigValue;
      swigNext = this.swigValue+1;
    }

    private static Unit[] swigValues = { BOHR, ANGSTROM, OTHER };
    private static int swigNext = 0;
    private final int swigValue;
    private final String swigName;
  }

}
