AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
VisualPairConnector.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
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 
11 namespace HoloToolkit.Sharing {
12 
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 
16  internal VisualPairConnector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(SharingClientPINVOKE.VisualPairConnector_SWIGUpcast(cPtr), cMemoryOwn) {
17  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18  }
19 
20  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VisualPairConnector obj) {
21  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22  }
23 
25  Dispose();
26  }
27 
28  public override void Dispose() {
29  lock(this) {
30  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
31  if (swigCMemOwn) {
32  swigCMemOwn = false;
34  }
35  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
36  }
37  global::System.GC.SuppressFinalize(this);
38  base.Dispose();
39  }
40  }
41 
42  public static VisualPairConnector Create() {
43  global::System.IntPtr cPtr = SharingClientPINVOKE.VisualPairConnector_Create();
44  VisualPairConnector ret = (cPtr == global::System.IntPtr.Zero) ? null : new VisualPairConnector(cPtr, true);
45  return ret;
46  }
47 
48  public virtual bool ProcessImage(byte[] image, int width, int height, int bytesPerPixel) {
49  global::System.Runtime.InteropServices.GCHandle pinHandle_image = global::System.Runtime.InteropServices.GCHandle.Alloc(image, global::System.Runtime.InteropServices.GCHandleType.Pinned); try {
50  {
51  bool ret = SharingClientPINVOKE.VisualPairConnector_ProcessImage(swigCPtr, (global::System.IntPtr)pinHandle_image.AddrOfPinnedObject(), width, height, bytesPerPixel);
52  return ret;
53  }
54  } finally { pinHandle_image.Free(); }
55  }
56 
57  public virtual bool IsProcessingImage() {
59  return ret;
60  }
61 
62 }
63 
64 }
static global::System.IntPtr VisualPairConnector_SWIGUpcast(global::System.IntPtr jarg1)
virtual bool ProcessImage(byte[] image, int width, int height, int bytesPerPixel)
static global::System.IntPtr VisualPairConnector_Create()
static void delete_VisualPairConnector(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool VisualPairConnector_ProcessImage(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.IntPtr jarg2, int jarg3, int jarg4, int jarg5)
static bool VisualPairConnector_IsProcessingImage(global::System.Runtime.InteropServices.HandleRef jarg1)