/* ----------------------------------------------------------------------------
 * 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 FramePlacement extends Placement {
  private long swigCPtr;

  protected FramePlacement(long cPtr, boolean cMemoryOwn) {
    super(ModelJNI.SWIGFramePlacementToPlacement(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      ModelJNI.delete_FramePlacement(swigCPtr);
      swigCMemOwn = false;
      super.delete();
    }
    swigCPtr = 0;
  }

  protected static long getCPtr(FramePlacement obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public FramePlacement() {
    this(ModelJNI.new_FramePlacement__SWIG_0(), true);
  }

  public FramePlacement(Frame arg0) {
    this(ModelJNI.new_FramePlacement__SWIG_1(Frame.getCPtr(arg0)), true);
  }

  public FramePlacement(Station arg0) {
    this(ModelJNI.new_FramePlacement__SWIG_2(Station.getCPtr(arg0)), true);
  }

  public FramePlacement(Orientation arg0) {
    this(ModelJNI.new_FramePlacement__SWIG_3(Orientation.getCPtr(arg0)), true);
  }

  public FramePlacement(Orientation arg0, Station arg1) {
    this(ModelJNI.new_FramePlacement__SWIG_4(Orientation.getCPtr(arg0), Station.getCPtr(arg1)), true);
  }

  public FramePlacement(SWIGTYPE_p_FramePlacementRep r) {
    this(ModelJNI.new_FramePlacement__SWIG_5(SWIGTYPE_p_FramePlacementRep.getCPtr(r)), true);
  }

  public SWIGTYPE_p_FramePlacementRep getRep() {
    return new SWIGTYPE_p_FramePlacementRep(ModelJNI.FramePlacement_getRep(swigCPtr), false);
  }

  public static boolean isInstanceOf(Placement arg0) {
    return ModelJNI.FramePlacement_isInstanceOf(Placement.getCPtr(arg0));
  }

}
