public ImagePresentationKinectGestureRecognition(SkeletonStateRepository skeletonRepository) : base(skeletonRepository) { gestureRecognizers.Add(new ZoomAndRotationGesture()); gestureRecognizers.Add(new JoinHandsGesture()); gestureRecognizers.Add(new GripHandMove()); }
public PowerPointKinectGestureRecognition(SkeletonStateRepository skeletonRepository) : base(skeletonRepository) { gestureRecognizers.Add(new SwipeRightGesture()); gestureRecognizers.Add(new SwipeLeftGesture()); gestureRecognizers.Add(new JoinHandsGesture()); }
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(); }
/// <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(); }
public KinectInteractionEvents(AbstractKinectGestureRecognition gestureRecognition, SkeletonStateRepository skeletonRepository) { this.GestureRecognition = gestureRecognition; this.skeletonRepository = skeletonRepository; }
public AbstractKinectGestureRecognition(SkeletonStateRepository skeletonRepository) { this.skeletonRepository = skeletonRepository; gestureRecognizers = new List<IGestureRecognizer>(); BestSkeleton = null; }
public KinectControl(AbstractKinectGestureRecognition gestureRecognition, SkeletonStateRepository skeletonRepository) { this.GestureRecognition = gestureRecognition; this.UserStateRepository = skeletonRepository; this.kinectInteraction = new KinectInteractionEvents(GestureRecognition, UserStateRepository); }