//------------------------------------------------------------------------------ // // // This file was automatically generated by SWIG (http://www.swig.org). // Version 4.0.2 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ public class MotionCallback : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; internal MotionCallback(global::System.IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MotionCallback obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~MotionCallback() { Dispose(false); } public void Dispose() { Dispose(true); global::System.GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; GestureEstimatePINVOKE.delete_MotionCallback(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } } } public virtual bool onAction(ActionPoseDesc pose) { bool ret = GestureEstimatePINVOKE.MotionCallback_onAction(swigCPtr, ActionPoseDesc.getCPtr(pose)); if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve(); return ret; } public virtual bool onHandsUp(MotionCallback.Hand left_or_right) { bool ret = GestureEstimatePINVOKE.MotionCallback_onHandsUp(swigCPtr, (int)left_or_right); return ret; } public virtual bool onArmCross(float x, float y) { bool ret = GestureEstimatePINVOKE.MotionCallback_onArmCross(swigCPtr, x, y); return ret; } public virtual bool onStaticHand(HandPoseDesc left, HandPoseDesc right) { bool ret = GestureEstimatePINVOKE.MotionCallback_onStaticHand(swigCPtr, HandPoseDesc.getCPtr(left), HandPoseDesc.getCPtr(right)); if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve(); return ret; } public virtual bool onHandsUpAndFist() { bool ret = GestureEstimatePINVOKE.MotionCallback_onHandsUpAndFist(swigCPtr); return ret; } public virtual bool onTwoFingerSliding(MotionCallback.Hand left_or_right, int distance_x, int distance_y) { bool ret = GestureEstimatePINVOKE.MotionCallback_onTwoFingerSliding(swigCPtr, (int)left_or_right, distance_x, distance_y); return ret; } public virtual bool onQuiet(MotionCallback.Hand left_or_right) { bool ret = GestureEstimatePINVOKE.MotionCallback_onQuiet(swigCPtr, (int)left_or_right); return ret; } public virtual bool onPunching(MotionCallback.Hand left_or_right) { bool ret = GestureEstimatePINVOKE.MotionCallback_onPunching(swigCPtr, (int)left_or_right); return ret; } public virtual bool onFistBump() { bool ret = GestureEstimatePINVOKE.MotionCallback_onFistBump(swigCPtr); return ret; } public virtual bool onZoom(float diff) { bool ret = GestureEstimatePINVOKE.MotionCallback_onZoom(swigCPtr, diff); return ret; } public virtual bool onWaweHand(MotionCallback.Hand left_or_right) { bool ret = GestureEstimatePINVOKE.MotionCallback_onWaweHand(swigCPtr, (int)left_or_right); return ret; } public virtual bool onFlipPalm(MotionCallback.Hand left_or_right) { bool ret = GestureEstimatePINVOKE.MotionCallback_onFlipPalm(swigCPtr, (int)left_or_right); return ret; } public virtual bool onClapHands() { bool ret = GestureEstimatePINVOKE.MotionCallback_onClapHands(swigCPtr); return ret; } public virtual bool onTranslateFist(MotionCallback.Hand left_or_right) { bool ret = GestureEstimatePINVOKE.MotionCallback_onTranslateFist(swigCPtr, (int)left_or_right); return ret; } public virtual bool onLateralRaise(MotionCallback.Hand left_or_right) { bool ret = GestureEstimatePINVOKE.MotionCallback_onLateralRaise(swigCPtr, (int)left_or_right); return ret; } public virtual bool onArmDown(HandPoseDesc hand, int distance_x, int distance_y) { bool ret = GestureEstimatePINVOKE.MotionCallback_onArmDown(swigCPtr, HandPoseDesc.getCPtr(hand), distance_x, distance_y); if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve(); return ret; } public virtual bool onCloseOpen() { bool ret = GestureEstimatePINVOKE.MotionCallback_onCloseOpen(swigCPtr); return ret; } public MotionCallback() : this(GestureEstimatePINVOKE.new_MotionCallback(), true) { } public enum Hand { LeftHand, RightHand } }