/* ----------------------------------------------------------------------------
 * 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 OrientationPlacement extends Placement {
  private long swigCPtr;

  protected OrientationPlacement(long cPtr, boolean cMemoryOwn) {
    super(ModelJNI.SWIGOrientationPlacementToPlacement(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      ModelJNI.delete_OrientationPlacement(swigCPtr);
      swigCMemOwn = false;
      super.delete();
    }
    swigCPtr = 0;
  }

  protected static long getCPtr(OrientationPlacement obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public OrientationPlacement() {
    this(ModelJNI.new_OrientationPlacement__SWIG_0(), true);
  }

  public OrientationPlacement(Orientation arg0) {
    this(ModelJNI.new_OrientationPlacement__SWIG_1(Orientation.getCPtr(arg0)), true);
  }

  public OrientationPlacement(OrientationMeasure arg0) {
    this(ModelJNI.new_OrientationPlacement__SWIG_2(OrientationMeasure.getCPtr(arg0)), true);
  }

  public OrientationPlacement(SWIGTYPE_p_simtk__MatT3_3_t arg0) {
    this(ModelJNI.new_OrientationPlacement__SWIG_3(SWIGTYPE_p_simtk__MatT3_3_t.getCPtr(arg0)), true);
  }

  public OrientationPlacement(Frame arg0) {
    this(ModelJNI.new_OrientationPlacement__SWIG_4(Frame.getCPtr(arg0)), true);
  }

  public OrientationPlacement(Feature arg0) {
    this(ModelJNI.new_OrientationPlacement__SWIG_5(Feature.getCPtr(arg0)), true);
  }

  public OrientationPlacement(SWIGTYPE_p_OrientationPlacementRep r) {
    this(ModelJNI.new_OrientationPlacement__SWIG_6(SWIGTYPE_p_OrientationPlacementRep.getCPtr(r)), true);
  }

  public SWIGTYPE_p_OrientationPlacementRep getRep() {
    return new SWIGTYPE_p_OrientationPlacementRep(ModelJNI.OrientationPlacement_getRep(swigCPtr), false);
  }

  public static boolean isInstanceOf(Placement arg0) {
    return ModelJNI.OrientationPlacement_isInstanceOf(Placement.getCPtr(arg0));
  }

}
