/* ----------------------------------------------------------------------------
 * 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.
 * ----------------------------------------------------------------------------- */


using System;
using System.Runtime.InteropServices;

public class OBRotationData : OBGenericData {
  private HandleRef swigCPtr;

  internal OBRotationData(IntPtr cPtr, bool cMemoryOwn) : base(openbabelPINVOKE.OBRotationDataUpcast(cPtr), cMemoryOwn) {
    swigCPtr = new HandleRef(this, cPtr);
  }

  internal static HandleRef getCPtr(OBRotationData obj) {
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  }

  ~OBRotationData() {
    Dispose();
  }

  public override void Dispose() {
    lock(this) {
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
        swigCMemOwn = false;
        openbabelPINVOKE.delete_OBRotationData(swigCPtr);
      }
      swigCPtr = new HandleRef(null, IntPtr.Zero);
      GC.SuppressFinalize(this);
      base.Dispose();
    }
  }

  public OBRotationData() : this(openbabelPINVOKE.new_OBRotationData(), true) {
  }

  public void SetData(OBRotationData.RType RotorType, vectorDouble RotationalConstants, int SymmetryNumber) {
    openbabelPINVOKE.OBRotationData_SetData(swigCPtr, (int)RotorType, vectorDouble.getCPtr(RotationalConstants), SymmetryNumber);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public vectorDouble GetRotConsts() {
    vectorDouble ret = new vectorDouble(openbabelPINVOKE.OBRotationData_GetRotConsts(swigCPtr), true);
    return ret;
  }

  public int GetSymmetryNumber() {
    int ret = openbabelPINVOKE.OBRotationData_GetSymmetryNumber(swigCPtr);
    return ret;
  }

  public OBRotationData.RType GetRotorType() {
    OBRotationData.RType ret = (OBRotationData.RType)openbabelPINVOKE.OBRotationData_GetRotorType(swigCPtr);
    return ret;
  }

  public enum RType {
    UNKNOWN,
    ASYMMETRIC,
    SYMMETRIC,
    LINEAR
  }

}
