AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
FloatArrayElement.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 
13 public class FloatArrayElement : Element {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 
16  internal FloatArrayElement(global::System.IntPtr cPtr, bool cMemoryOwn) : base(SharingClientPINVOKE.FloatArrayElement_SWIGUpcast(cPtr), cMemoryOwn) {
17  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18  }
19 
20  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FloatArrayElement 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 FloatArrayElement Cast(Element element) {
43  global::System.IntPtr cPtr = SharingClientPINVOKE.FloatArrayElement_Cast(Element.getCPtr(element));
44  FloatArrayElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new FloatArrayElement(cPtr, true);
45  return ret;
46  }
47 
48  public virtual int GetCount() {
50  return ret;
51  }
52 
53  public virtual float GetValue(int index) {
54  float ret = SharingClientPINVOKE.FloatArrayElement_GetValue(swigCPtr, index);
55  return ret;
56  }
57 
58  public virtual void SetValue(int index, float newValue) {
59  SharingClientPINVOKE.FloatArrayElement_SetValue(swigCPtr, index, newValue);
60  }
61 
62  public virtual void InsertValue(int index, float value) {
64  }
65 
66  public virtual void RemoveValue(int index) {
68  }
69 
70  public virtual void AddListener(FloatArrayListener newListener) {
72  }
73 
74  public virtual void RemoveListener(FloatArrayListener oldListener) {
76  }
77 
78 }
79 
80 }
static void FloatArrayElement_RemoveValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
virtual void RemoveListener(FloatArrayListener oldListener)
virtual void SetValue(int index, float newValue)
static void FloatArrayElement_AddListener(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr FloatArrayElement_Cast(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr FloatArrayElement_SWIGUpcast(global::System.IntPtr jarg1)
static float FloatArrayElement_GetValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
virtual void AddListener(FloatArrayListener newListener)
virtual void InsertValue(int index, float value)
static void FloatArrayElement_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, float jarg3)
static void FloatArrayElement_InsertValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, float jarg3)
static void FloatArrayElement_RemoveListener(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static FloatArrayElement Cast(Element element)
static int FloatArrayElement_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_FloatArrayElement(global::System.Runtime.InteropServices.HandleRef jarg1)