RightCutdownward.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //------------------------------------------------------------------------------
  2. // <auto-generated />
  3. //
  4. // This file was automatically generated by SWIG (http://www.swig.org).
  5. // Version 4.0.2
  6. //
  7. // Do not make changes to this file unless you know what you are doing--modify
  8. // the SWIG interface file instead.
  9. //------------------------------------------------------------------------------
  10. public class RightCutdownward : Cutdownward {
  11. private global::System.Runtime.InteropServices.HandleRef swigCPtr;
  12. internal RightCutdownward(global::System.IntPtr cPtr, bool cMemoryOwn) : base(GestureEstimatePINVOKE.RightCutdownward_SWIGUpcast(cPtr), cMemoryOwn) {
  13. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
  14. }
  15. internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RightCutdownward obj) {
  16. return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
  17. }
  18. protected override void Dispose(bool disposing) {
  19. lock(this) {
  20. if (swigCPtr.Handle != global::System.IntPtr.Zero) {
  21. if (swigCMemOwn) {
  22. swigCMemOwn = false;
  23. GestureEstimatePINVOKE.delete_RightCutdownward(swigCPtr);
  24. }
  25. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
  26. }
  27. base.Dispose(disposing);
  28. }
  29. }
  30. public bool Detect(Point3fList body) {
  31. bool ret = GestureEstimatePINVOKE.RightCutdownward_Detect(swigCPtr, Point3fList.getCPtr(body));
  32. if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve();
  33. return ret;
  34. }
  35. public RightCutdownward() : this(GestureEstimatePINVOKE.new_RightCutdownward(), true) {
  36. }
  37. }