public void SetIsEnabled(Microsoft.Kinect.VisualGestureBuilder.Gesture gesture, bool isEnabled)
        {
            if (_pNative == RootSystem.IntPtr.Zero)
            {
                throw new RootSystem.ObjectDisposedException("VisualGestureBuilderFrameSource");
            }

            Microsoft_Kinect_VisualGestureBuilder_VisualGestureBuilderFrameSource_SetIsEnabled(_pNative, Helper.NativeWrapper.GetNativePtr(gesture), isEnabled);
            Helper.ExceptionHelper.CheckLastError();
        }
        public void AddGesture(Microsoft.Kinect.VisualGestureBuilder.Gesture gesture)
        {
            if (_pNative == RootSystem.IntPtr.Zero)
            {
                throw new RootSystem.ObjectDisposedException("VisualGestureBuilderFrameSource");
            }

            RootSystem.IntPtr ptrGesture = Helper.NativeWrapper.GetNativePtr(gesture);
            Microsoft_Kinect_VisualGestureBuilder_VisualGestureBuilderFrameSource_AddGesture(_pNative, ptrGesture);
            Helper.ExceptionHelper.CheckLastError();
        }
예제 #3
0
        public bool GetIsEnabled(Microsoft.Kinect.VisualGestureBuilder.Gesture gesture)
        {
            if (_pNative == RootSystem.IntPtr.Zero)
            {
                throw new RootSystem.ObjectDisposedException("VisualGestureBuilderFrameSource");
            }

            var result = Microsoft_Kinect_VisualGestureBuilder_VisualGestureBuilderFrameSource_GetIsEnabled(_pNative, Helper.NativeWrapper.GetNativePtr(gesture));

            Helper.ExceptionHelper.CheckLastError();
            return(result);
        }