/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.19
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package SimbodyAPI;


public class OrientationMeasure extends Feature {
  private long swigCPtr;

  protected OrientationMeasure(long cPtr, boolean cMemoryOwn) {
    super(ModelJNI.SWIGOrientationMeasureToFeature(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected OrientationMeasure() {
    this(0, false);
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      ModelJNI.delete_OrientationMeasure(swigCPtr);
      swigCMemOwn = false;
      super.delete();
    }
    swigCPtr = 0;
  }

  protected static long getCPtr(OrientationMeasure obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public OrientationMeasure(String name) {
    this(ModelJNI.new_OrientationMeasure__SWIG_0(name), true);
  }

  public OrientationMeasure(OrientationMeasure arg0) {
    this(ModelJNI.new_OrientationMeasure__SWIG_1(OrientationMeasure.getCPtr(arg0)), true);
  }

  public OrientationMeasure assign(OrientationMeasure arg0) {
    return new OrientationMeasure(ModelJNI.OrientationMeasure_assign(swigCPtr, OrientationMeasure.getCPtr(arg0)), false);
  }

  public static boolean isInstanceOf(Feature arg0) {
    return ModelJNI.OrientationMeasure_isInstanceOf(Feature.getCPtr(arg0));
  }

}
