| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- //------------------------------------------------------------------------------
- // <auto-generated />
- //
- // 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 GestureDetector : global::System.IDisposable {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
- internal GestureDetector(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(GestureDetector obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
- ~GestureDetector() {
- 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_GestureDetector(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- }
- }
- public GestureDetector() : this(GestureEstimatePINVOKE.new_GestureDetector__SWIG_0(), true) {
- }
- public GestureDetector(SWIGTYPE_p_std__shared_ptrT_zwn__gesture__MotionCallback_t callback) : this(GestureEstimatePINVOKE.new_GestureDetector__SWIG_1(SWIGTYPE_p_std__shared_ptrT_zwn__gesture__MotionCallback_t.getCPtr(callback)), true) {
- if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve();
- }
- public void Detect(LandmarkSet kpts) {
- GestureEstimatePINVOKE.GestureDetector_Detect(swigCPtr, LandmarkSet.getCPtr(kpts));
- if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve();
- }
- public void set_model_path(string model_dir) {
- GestureEstimatePINVOKE.GestureDetector_set_model_path(swigCPtr, model_dir);
- if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve();
- }
- public void Reset() {
- GestureEstimatePINVOKE.GestureDetector_Reset(swigCPtr);
- }
- public void set_callback(SWIGTYPE_p_std__shared_ptrT_zwn__gesture__MotionCallback_t callback) {
- GestureEstimatePINVOKE.GestureDetector_set_callback(swigCPtr, SWIGTYPE_p_std__shared_ptrT_zwn__gesture__MotionCallback_t.getCPtr(callback));
- if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve();
- }
- }
|