Пример #1
0
 internal HandsGenerator(Context context, IntPtr nodeHandle, bool addRef)
     : base(context, nodeHandle, addRef)
 {
     this.internalHandCreate  = new SafeNativeMethods.XnHandCreate(this.InternalHandCreate);
     this.internalHandUpdate  = new SafeNativeMethods.XnHandUpdate(this.InternalHandUpdate);
     this.internalHandDestroy = new SafeNativeMethods.XnHandDestroy(this.InternalHandDestroy);
     if (IsCapabilitySupported(Capabilities.HandTouchingFOVEdge))
     {
         m_HandTouchingFOVEdgeCapability = new HandTouchingFOVEdgeCapability(this);
     }
     else
     {
         m_HandTouchingFOVEdgeCapability = null;
     }
 }
Пример #2
0
 public override void Dispose()
 {
     if (m_HandTouchingFOVEdgeCapability != null)
     {
         m_HandTouchingFOVEdgeCapability.InternalDispose();
         m_HandTouchingFOVEdgeCapability = null;
     }
     base.Dispose();
 }
Пример #3
0
 internal HandsGenerator(Context context, IntPtr nodeHandle, bool addRef)
     : base(context, nodeHandle, addRef)
 {
     this.internalHandCreate = new SafeNativeMethods.XnHandCreate(this.InternalHandCreate);
     this.internalHandUpdate = new SafeNativeMethods.XnHandUpdate(this.InternalHandUpdate);
     this.internalHandDestroy = new SafeNativeMethods.XnHandDestroy(this.InternalHandDestroy);
     if (IsCapabilitySupported(Capabilities.HandTouchingFOVEdge))
         m_HandTouchingFOVEdgeCapability = new HandTouchingFOVEdgeCapability(this);
     else
         m_HandTouchingFOVEdgeCapability = null;
 }