コード例 #1
0
 public ImagePresentationKinectGestureRecognition(SkeletonStateRepository skeletonRepository)
     : base(skeletonRepository)
 {
     gestureRecognizers.Add(new ZoomAndRotationGesture());
     gestureRecognizers.Add(new JoinHandsGesture());
     gestureRecognizers.Add(new GripHandMove());
 }
コード例 #2
0
 public PowerPointKinectGestureRecognition(SkeletonStateRepository skeletonRepository)
     : base(skeletonRepository)
 {
     gestureRecognizers.Add(new SwipeRightGesture());
     gestureRecognizers.Add(new SwipeLeftGesture());
     gestureRecognizers.Add(new JoinHandsGesture());
 }
コード例 #3
0
        public KinectControlWindow(PRESENTATION_MODE mode, CommandExecutor Executor)
        {
            InitializeComponent();
            setWindowPosition();

            skeletonRepository = new SkeletonStateRepository();

            commands = new ServiceCommandsLocalActivation(Executor);

            //Runtime initialization is handled when the window is opened. When the window
            //is closed, the runtime MUST be unitialized.
            this.Loaded += new RoutedEventHandler(MainWindow_Loaded);
            //Handle the content obtained from the video camera, once received.
            this.KeyDown += new KeyEventHandler(MainWindow_KeyDown);

            this.mode = mode;

            CreateGestureRecognition(mode);

            Minimize();
            UnMinimize();
        }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DesktopMainWindow"/> class. 
        /// </summary>
        public DesktopMainWindow()
        {
            this.InitializeComponent();

            // initialize the sensor chooser and UI
            this.sensorChooser = new KinectSensorChooser();
            this.sensorChooser.KinectChanged += SensorChooserOnKinectChanged;
            this.sensorChooserUi.KinectSensorChooser = this.sensorChooser;
            this.sensorChooser.Start();

            // Bind listner to scrollviwer scroll position change, and check scroll viewer position
            this.UpdatePagingButtonState();
            scrollViewer.ScrollChanged += (o, e) => this.UpdatePagingButtonState();

            this.WindowState = System.Windows.WindowState.Maximized;
            
            speechControl = new KinectSpeechControl(this.sensorChooser.Kinect);

            repository = new SkeletonStateRepository();
            this.kinectRegion.Repository = repository;

            grammar = speechControl.CreateGrammarFromResource(Properties.Resources.WindowGrammar);
            StartEvents();
        }
コード例 #5
0
 public KinectInteractionEvents(AbstractKinectGestureRecognition gestureRecognition, SkeletonStateRepository skeletonRepository)
 {
     this.GestureRecognition = gestureRecognition;
     this.skeletonRepository = skeletonRepository;
 }
コード例 #6
0
 public AbstractKinectGestureRecognition(SkeletonStateRepository skeletonRepository)
 {
     this.skeletonRepository = skeletonRepository;
     gestureRecognizers = new List<IGestureRecognizer>();
     BestSkeleton = null;
 }
コード例 #7
0
ファイル: KinectControl.cs プロジェクト: LucioC/class_share
 public KinectControl(AbstractKinectGestureRecognition gestureRecognition, SkeletonStateRepository skeletonRepository)
 {
     this.GestureRecognition = gestureRecognition;
     this.UserStateRepository = skeletonRepository;
     this.kinectInteraction = new KinectInteractionEvents(GestureRecognition, UserStateRepository);
 }