/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.40 * * 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 aiQuatKey : IDisposable { private HandleRef swigCPtr; protected bool swigCMemOwn; internal aiQuatKey(IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new HandleRef(this, cPtr); } internal static HandleRef getCPtr(aiQuatKey obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; } ~aiQuatKey() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; Assimp_NETPINVOKE.delete_aiQuatKey(swigCPtr); } swigCPtr = new HandleRef(null, IntPtr.Zero); } GC.SuppressFinalize(this); } } public double mTime { set { Assimp_NETPINVOKE.aiQuatKey_mTime_set(swigCPtr, value); } get { double ret = Assimp_NETPINVOKE.aiQuatKey_mTime_get(swigCPtr); return ret; } } public aiQuaternion mValue { set { Assimp_NETPINVOKE.aiQuatKey_mValue_set(swigCPtr, aiQuaternion.getCPtr(value)); } get { IntPtr cPtr = Assimp_NETPINVOKE.aiQuatKey_mValue_get(swigCPtr); aiQuaternion ret = (cPtr == IntPtr.Zero) ? null : new aiQuaternion(cPtr, false); return ret; } } public aiQuatKey() : this(Assimp_NETPINVOKE.new_aiQuatKey__SWIG_0(), true) { } public aiQuatKey(double time, aiQuaternion value) : this(Assimp_NETPINVOKE.new_aiQuatKey__SWIG_1(time, aiQuaternion.getCPtr(value)), true) { if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); } public bool __equal__(aiQuatKey o) { bool ret = Assimp_NETPINVOKE.aiQuatKey___equal__(swigCPtr, aiQuatKey.getCPtr(o)); if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool __nequal__(aiQuatKey o) { bool ret = Assimp_NETPINVOKE.aiQuatKey___nequal__(swigCPtr, aiQuatKey.getCPtr(o)); if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool __smaller__(aiQuatKey o) { bool ret = Assimp_NETPINVOKE.aiQuatKey___smaller__(swigCPtr, aiQuatKey.getCPtr(o)); if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool __greater__(aiQuatKey o) { bool ret = Assimp_NETPINVOKE.aiQuatKey___greater__(swigCPtr, aiQuatKey.getCPtr(o)); if (Assimp_NETPINVOKE.SWIGPendingException.Pending) throw Assimp_NETPINVOKE.SWIGPendingException.Retrieve(); return ret; } }