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

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

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

  ~OBVibrationData() {
    Dispose();
  }

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

  public OBVibrationData() : this(openbabelPINVOKE.new_OBVibrationData(), true) {
  }

  public void SetData(SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t arg0, vectorDouble arg1, vectorDouble arg2) {
    openbabelPINVOKE.OBVibrationData_SetData(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t.getCPtr(arg0), vectorDouble.getCPtr(arg1), vectorDouble.getCPtr(arg2));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

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

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

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

  public uint GetNumberOfFrequencies() {
    uint ret = openbabelPINVOKE.OBVibrationData_GetNumberOfFrequencies(swigCPtr);
    return ret;
  }

}
