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


public class SpaceGroup {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected SpaceGroup(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(SpaceGroup obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      openbabelJNI.delete_SpaceGroup(swigCPtr);
    }
    swigCPtr = 0;
  }

  public SpaceGroup() {
    this(openbabelJNI.new_SpaceGroup(), true);
  }

  public void SetHMName(String name) {
    openbabelJNI.SpaceGroup_SetHMName__SWIG_0(swigCPtr, this, name);
  }

  public void SetHallName(String name) {
    openbabelJNI.SpaceGroup_SetHallName__SWIG_0(swigCPtr, this, name);
  }

  public void SetId(long n) {
    openbabelJNI.SpaceGroup_SetId(swigCPtr, this, n);
  }

  public void AddTransform(String s) {
    openbabelJNI.SpaceGroup_AddTransform(swigCPtr, this, s);
  }

  public String GetHMName() {
    return openbabelJNI.SpaceGroup_GetHMName(swigCPtr, this);
  }

  public String GetHallName() {
    return openbabelJNI.SpaceGroup_GetHallName(swigCPtr, this);
  }

  public long GetId() {
    return openbabelJNI.SpaceGroup_GetId(swigCPtr, this);
  }

  public SWIGTYPE_p_std__listT_OpenBabel__vector3_t Transform(vector3 v) {
    return new SWIGTYPE_p_std__listT_OpenBabel__vector3_t(openbabelJNI.SpaceGroup_Transform(swigCPtr, this, vector3.getCPtr(v), v), true);
  }

  public transform3d BeginTransform(SWIGTYPE_p_std__listT_OpenBabel__transform3d_p_t__const_iterator i) {
    long cPtr = openbabelJNI.SpaceGroup_BeginTransform(swigCPtr, this, SWIGTYPE_p_std__listT_OpenBabel__transform3d_p_t__const_iterator.getCPtr(i));
    return (cPtr == 0) ? null : new transform3d(cPtr, false);
  }

  public transform3d NextTransform(SWIGTYPE_p_std__listT_OpenBabel__transform3d_p_t__const_iterator i) {
    long cPtr = openbabelJNI.SpaceGroup_NextTransform(swigCPtr, this, SWIGTYPE_p_std__listT_OpenBabel__transform3d_p_t__const_iterator.getCPtr(i));
    return (cPtr == 0) ? null : new transform3d(cPtr, false);
  }

  public static SpaceGroup GetSpaceGroup(String name) {
    long cPtr = openbabelJNI.SpaceGroup_GetSpaceGroup__SWIG_0(name);
    return (cPtr == 0) ? null : new SpaceGroup(cPtr, false);
  }

  public static SpaceGroup GetSpaceGroup(long id) {
    long cPtr = openbabelJNI.SpaceGroup_GetSpaceGroup__SWIG_2(id);
    return (cPtr == 0) ? null : new SpaceGroup(cPtr, false);
  }

  public static SpaceGroup Find(SpaceGroup group) {
    long cPtr = openbabelJNI.SpaceGroup_Find(SpaceGroup.getCPtr(group), group);
    return (cPtr == 0) ? null : new SpaceGroup(cPtr, false);
  }

  public boolean IsValid() {
    return openbabelJNI.SpaceGroup_IsValid(swigCPtr, this);
  }

}
