/* ----------------------------------------------------------------------------
 * 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 OBElement : IDisposable {
  private HandleRef swigCPtr;
  protected bool swigCMemOwn;

  internal OBElement(IntPtr cPtr, bool cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = new HandleRef(this, cPtr);
  }

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

  ~OBElement() {
    Dispose();
  }

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

  public OBElement() : this(openbabelPINVOKE.new_OBElement__SWIG_0(), true) {
  }

  public OBElement(int num, string sym, double ARENeg, double rcov, double rvdw, int maxbo, double mass, double elNeg, double ionize, double elAffin, double red, double green, double blue, string name) : this(openbabelPINVOKE.new_OBElement__SWIG_1(num, sym, ARENeg, rcov, rvdw, maxbo, mass, elNeg, ionize, elAffin, red, green, blue, name), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public int GetAtomicNum() {
    int ret = openbabelPINVOKE.OBElement_GetAtomicNum(swigCPtr);
    return ret;
  }

  public string GetSymbol() {
    string ret = openbabelPINVOKE.OBElement_GetSymbol(swigCPtr);
    return ret;
  }

  public double GetCovalentRad() {
    double ret = openbabelPINVOKE.OBElement_GetCovalentRad(swigCPtr);
    return ret;
  }

  public double GetVdwRad() {
    double ret = openbabelPINVOKE.OBElement_GetVdwRad(swigCPtr);
    return ret;
  }

  public double GetMass() {
    double ret = openbabelPINVOKE.OBElement_GetMass(swigCPtr);
    return ret;
  }

  public int GetMaxBonds() {
    int ret = openbabelPINVOKE.OBElement_GetMaxBonds(swigCPtr);
    return ret;
  }

  public double GetElectroNeg() {
    double ret = openbabelPINVOKE.OBElement_GetElectroNeg(swigCPtr);
    return ret;
  }

  public double GetAllredRochowElectroNeg() {
    double ret = openbabelPINVOKE.OBElement_GetAllredRochowElectroNeg(swigCPtr);
    return ret;
  }

  public double GetIonization() {
    double ret = openbabelPINVOKE.OBElement_GetIonization(swigCPtr);
    return ret;
  }

  public double GetElectronAffinity() {
    double ret = openbabelPINVOKE.OBElement_GetElectronAffinity(swigCPtr);
    return ret;
  }

  public string GetName() {
    string ret = openbabelPINVOKE.OBElement_GetName(swigCPtr);
    return ret;
  }

  public double GetRed() {
    double ret = openbabelPINVOKE.OBElement_GetRed(swigCPtr);
    return ret;
  }

  public double GetGreen() {
    double ret = openbabelPINVOKE.OBElement_GetGreen(swigCPtr);
    return ret;
  }

  public double GetBlue() {
    double ret = openbabelPINVOKE.OBElement_GetBlue(swigCPtr);
    return ret;
  }

}
