private void PlayButton_Click(object sender, RoutedEventArgs e) { SkeletonRecording recording = recordingStream.getCurrentRecording(); if (recording != null) { skeletonClient.subscribe(new RecordingReproducer(skeletonCanvas, recording, recording.getTag(), Colors.Black, skeletonClient)); } }
private void replayLoadedMovement() { skeletonClient.subscribe(new RecordingReproducer(skeletonCanvas, loadedMovement, loadedMovement.getTag(), Colors.Black, skeletonClient)); }
private void NormalSpeedLoadButton_Click(object sender, RoutedEventArgs e) { if (movements[(int)Movement.NORMAL] != null) { SkeletonRecording movement = movements[(int)Movement.NORMAL].getMovement(); skeletonClient.subscribe(new RecordingReproducer(skeletonCanvas, movement, movement.getTag(), Colors.Black, skeletonClient)); return; } Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog(); if (dlg.ShowDialog() == true) { SkeletonRecording movement = new SkeletonRecording("normalSpeedLoadedMovement"); movement.loadFromFile(dlg.FileName); skeletonClient.subscribe(new RecordingReproducer(skeletonCanvas, movement, movement.getTag(), Colors.Black, skeletonClient)); // Loading movement to analyzer movements[(int)Movement.NORMAL] = new MovementAnalyzer(movement, "NormalMovementAnalyzerStream", new NormalSpeedAction(Array.AsReadOnly <VlcController>(allControllers)), Movement.NORMAL, this); movements[(int)Movement.NORMAL].setThreshold(movementThresholds[(int)Movement.NORMAL]); skeletonClient.subscribe(movements[(int)Movement.NORMAL]); normalEnabler.Background = new SolidColorBrush(Colors.Red); } }
private void FasterLoadButton_Click(object sender, RoutedEventArgs e) { if (movements[(int)Movement.FASTER] != null) { SkeletonRecording movement = movements[(int)Movement.FASTER].getMovement(); skeletonClient.subscribe(new RecordingReproducer(skeletonCanvas, movement, movement.getTag(), Colors.Black, skeletonClient)); return; } Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog(); if (dlg.ShowDialog() == true) { SkeletonRecording movement = new SkeletonRecording("fasterLoadedMovement"); movement.loadFromFile(dlg.FileName); skeletonClient.subscribe(new RecordingReproducer(skeletonCanvas, movement, movement.getTag(), Colors.Black, skeletonClient)); // Loading movement to analyzer movements[(int)Movement.FASTER] = new MovementAnalyzer(movement, "FasterMovementAnalyzerStream", new FasterAction(this), Movement.FASTER, this); movements[(int)Movement.FASTER].setThreshold(movementThresholds[(int)Movement.FASTER]); skeletonClient.subscribe(movements[(int)Movement.FASTER]); fasterEnabler.Background = new SolidColorBrush(Colors.Red); } }
private void LoadButton_Click(object sender, RoutedEventArgs e) { Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog(); if (dlg.ShowDialog() == true) { loadedMovement = new SkeletonRecording("loadedMovement"); loadedMovement.loadFromFile(dlg.FileName); skeletonClient.subscribe(new RecordingReproducer(skeletonCanvas, loadedMovement, loadedMovement.getTag(), Colors.Black, skeletonClient)); } }