/* ----------------------------------------------------------------------------
 * 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 OBConformerData : OBGenericData {
  private HandleRef swigCPtr;

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

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

  ~OBConformerData() {
    Dispose();
  }

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

  public OBConformerData() : this(openbabelPINVOKE.new_OBConformerData__SWIG_0(), true) {
  }

  public OBConformerData(OBConformerData arg0) : this(openbabelPINVOKE.new_OBConformerData__SWIG_1(OBConformerData.getCPtr(arg0)), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void SetDimension(SWIGTYPE_p_std__vectorT_unsigned_short_t vd) {
    openbabelPINVOKE.OBConformerData_SetDimension(swigCPtr, SWIGTYPE_p_std__vectorT_unsigned_short_t.getCPtr(vd));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void SetEnergies(vectorDouble ve) {
    openbabelPINVOKE.OBConformerData_SetEnergies(swigCPtr, vectorDouble.getCPtr(ve));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void SetForces(SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t vf) {
    openbabelPINVOKE.OBConformerData_SetForces(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t.getCPtr(vf));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void SetVelocities(SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t vv) {
    openbabelPINVOKE.OBConformerData_SetVelocities(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t.getCPtr(vv));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void SetDisplacements(SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t vd) {
    openbabelPINVOKE.OBConformerData_SetDisplacements(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t.getCPtr(vd));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void SetData(vectorString vdat) {
    openbabelPINVOKE.OBConformerData_SetData(swigCPtr, vectorString.getCPtr(vdat));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public SWIGTYPE_p_std__vectorT_unsigned_short_t GetDimension() {
    SWIGTYPE_p_std__vectorT_unsigned_short_t ret = new SWIGTYPE_p_std__vectorT_unsigned_short_t(openbabelPINVOKE.OBConformerData_GetDimension(swigCPtr), true);
    return ret;
  }

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

  public SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t GetForces() {
    SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t ret = new SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t(openbabelPINVOKE.OBConformerData_GetForces(swigCPtr), true);
    return ret;
  }

  public SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t GetVelocities() {
    SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t ret = new SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t(openbabelPINVOKE.OBConformerData_GetVelocities(swigCPtr), true);
    return ret;
  }

  public SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t GetDisplacements() {
    SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t ret = new SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t(openbabelPINVOKE.OBConformerData_GetDisplacements(swigCPtr), true);
    return ret;
  }

  public vectorString GetData() {
    vectorString ret = new vectorString(openbabelPINVOKE.OBConformerData_GetData(swigCPtr), true);
    return ret;
  }

}
