~ubuntu-branches/debian/stretch/openbabel/stretch

« back to all changes in this revision

Viewing changes to scripts/csharp/OBVibrationData.cs

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-07-22 23:54:58 UTC
  • mfrom: (3.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080722235458-3o606czluviz4akx
Tags: 2.2.0-2
* Upload to unstable.
* debian/control: Updated descriptions.
* debian/patches/gauss_cube_format.patch: New patch, makes the 
  gaussian cube format available again.
* debian/rules (DEB_DH_MAKESHLIBS_ARGS_libopenbabel3): Removed.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Likewise.
* debian/libopenbabel3.install: Adjust formats directory to single 
  version hierarchy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.36
 
4
 *
 
5
 * Do not make changes to this file unless you know what you are doing--modify
 
6
 * the SWIG interface file instead.
 
7
 * ----------------------------------------------------------------------------- */
 
8
 
 
9
 
 
10
using System;
 
11
using System.Runtime.InteropServices;
 
12
 
 
13
public class OBVibrationData : OBGenericData {
 
14
  private HandleRef swigCPtr;
 
15
 
 
16
  internal OBVibrationData(IntPtr cPtr, bool cMemoryOwn) : base(openbabelPINVOKE.OBVibrationDataUpcast(cPtr), cMemoryOwn) {
 
17
    swigCPtr = new HandleRef(this, cPtr);
 
18
  }
 
19
 
 
20
  internal static HandleRef getCPtr(OBVibrationData obj) {
 
21
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 
22
  }
 
23
 
 
24
  ~OBVibrationData() {
 
25
    Dispose();
 
26
  }
 
27
 
 
28
  public override void Dispose() {
 
29
    lock(this) {
 
30
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
 
31
        swigCMemOwn = false;
 
32
        openbabelPINVOKE.delete_OBVibrationData(swigCPtr);
 
33
      }
 
34
      swigCPtr = new HandleRef(null, IntPtr.Zero);
 
35
      GC.SuppressFinalize(this);
 
36
      base.Dispose();
 
37
    }
 
38
  }
 
39
 
 
40
  public OBVibrationData() : this(openbabelPINVOKE.new_OBVibrationData(), true) {
 
41
  }
 
42
 
 
43
  public void SetData(SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t arg0, vectorDouble arg1, vectorDouble arg2) {
 
44
    openbabelPINVOKE.OBVibrationData_SetData(swigCPtr, SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t.getCPtr(arg0), vectorDouble.getCPtr(arg1), vectorDouble.getCPtr(arg2));
 
45
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
46
  }
 
47
 
 
48
  public SWIGTYPE_p_std__vectorT_std__vectorT_OpenBabel__vector3_t_t GetLx() {
 
49
    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);
 
50
    return ret;
 
51
  }
 
52
 
 
53
  public vectorDouble GetFrequencies() {
 
54
    vectorDouble ret = new vectorDouble(openbabelPINVOKE.OBVibrationData_GetFrequencies(swigCPtr), true);
 
55
    return ret;
 
56
  }
 
57
 
 
58
  public vectorDouble GetIntensities() {
 
59
    vectorDouble ret = new vectorDouble(openbabelPINVOKE.OBVibrationData_GetIntensities(swigCPtr), true);
 
60
    return ret;
 
61
  }
 
62
 
 
63
  public uint GetNumberOfFrequencies() {
 
64
    uint ret = openbabelPINVOKE.OBVibrationData_GetNumberOfFrequencies(swigCPtr);
 
65
    return ret;
 
66
  }
 
67
 
 
68
}