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

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

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

  protected void finalize() {
    delete();
  }

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

  public OBMatrixData() {
    this(openbabelJNI.new_OBMatrixData(), true);
  }

  public void SetData(matrix3x3 data) {
    openbabelJNI.OBMatrixData_SetData(swigCPtr, this, matrix3x3.getCPtr(data), data);
  }

  public matrix3x3 GetData() {
    return new matrix3x3(openbabelJNI.OBMatrixData_GetData(swigCPtr, this), true);
  }

}
