Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
 public SelectionController(MainWindow win)
     : base(win)
 {
     rightHandTimer = null;
     rightHandTarget = null;
     rightHandTargetID = -1;
 }
Example #2
0
 public CustomController1(MainWindow win)
     : base(win)
 {
     rightHandTimer = null;
     rightHandTarget = null;
     rightHandTargetID = -1;
 }
Example #3
0
 public CustomController2(MainWindow win)
     : base(win)
 {
     rightHandTimer = null;
     rightHandTarget = null;
     rightHandTargetID = -1;
     selectMode = false;
     rangeX = 100.0;
 }
        public CustomController2(MainWindow win)
            : base(win)
        {
            argb = new double[] { 0.5, 0.5, 0.5, 0.5};
            bright_rgb = new double[] { 0.5, 0.5, 0.5, 0.5 };

            left_circle_id = -1;

            thetas = new double[] { -1, -1 };
            right_circle_id = -1;
        }
Example #5
0
        public Window1()
        {
            

            colorWindow = new MainWindow();
            nui = Runtime.Kinects[0];
            nui.Initialize(RuntimeOptions.UseColor);
            nui.NuiCamera.ElevationAngle = 0;

            


            // initialize grid
            gridSettings = new GridSettings(colorWindow.Width, colorWindow.Height);
            toleranceSettings = new ToleranceSettings();
            calibrationSettings = new CalibrationSettings();

            smoothSkeleton = new SmoothSkeleton();
       
            this.updateGrid();

            // this will set default crosshair heights
            colorWindow.changeRotationMode(gridSettings.rotation);

            InitializeComponent();

            Screen[] screens = Screen.AllScreens;
            findMonitorSizes(screens);
            
            // set windows' start positions
            colorWindow.WindowStartupLocation = WindowStartupLocation.Manual;
                // put the color window inside the secondary screen's bounds
            colorWindow.Top = screens[1].Bounds.Top;
            colorWindow.Left = screens[1].Bounds.Left;
            
            
            colorWindow.Show();



            toleranceOption1.IsChecked = true;
            gridSettings.setRotationMode(1);
            toggleRotationMode();

            
            
        }
Example #6
0
 public CustomController2(MainWindow win)
     : base(win)
 {
     window = win;
 }
 public BallModels(MainWindow window)
 {
     this._window = window;
     this.addBallModelsListener(window);
 }
 public SkeletonController(MainWindow win)
 {
     window = win; 
 }
 public CustomController1(MainWindow win)
     : base(win)
 {
 }
Example #10
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     MainWindow bodyLearn = new MainWindow(); //Create object of MainWindow
     bodyLearn.Show();
     this.Close();
 }
Example #11
0
 public SuperController(MainWindow win)
 {
     window = win;
 }
Example #12
0
        public CustomController1(MainWindow win)
            : base(win)
        {
            //window = win;
            //window.webBrowser1.Navigate("http://www.cmslewis.com/cs247/final_project/orig_ui/index.html");
               /* WebCore.Initialize(new WebCoreConfig() { CustomCSS = "::-webkit-scrollbar { visibility: hidden; }" });
            WebView webView;
            using (webView = WebCore.CreateWebView(800, 600))
            {
                webView.LoadURL("http://www.google.com");

                while (webView.IsLoadingPage)
                    WebCore.Update();

                webView.Render().SaveToPNG("result.png", true);
            }

            WebCore.Shutdown();*/

            // Some informative message.
            Console.WriteLine("Getting a 800x600 snapshot of http://www.google.com ...");

            // We demonstrate an easy way to hide the scrollbars by providing
            // custom CSS. Read more about how to style the scrollbars here:
            // http://www.webkit.org/blog/363/styling-scrollbars/.
            // Just consider that this setting is global. If you want to apply
            // a similar effect for single pages, you can use ExecuteJavascript
            // and pass: document.documentElement.style.overflow = 'hidden';
            // (Unfortunately WebKit's scrollbar does not have a DOM equivalent yet)
            WebCore.Initialize(new WebCoreConfig() { CustomCSS = "::-webkit-scrollbar { visibility: hidden; }" });

            // WebView implements IDisposable. You can dispose and destroy
            // the view by calling WebView.Close(). Here we demonstrate
            // wrapping it in a using statement.
            using (WebView webView = WebCore.CreateWebView(800, 600))
            {
                webView.LoadURL("http://www.google.com");
                webView.LoadCompleted += OnFinishLoading;

                while (!finishedLoading)
                {
                    Thread.Sleep(100);
                    // A Console application does not have a synchronization
                    // context, thus auto-update won't be enabled on WebCore.
                    // We need to manually call Update here.
                    WebCore.Update();
                }

                // Render to a pixel buffer and save the buffer
                // to a .png image.
                webView.Render().SaveToPNG("result.png", true);
            }

            // Announce.
            Console.Write("Hit any key to see the result...");
            Console.ReadKey(true);

            // Start the application associated with .png files
            // and display the file.
            Process.Start("result.png");

            // Shut down Awesomium before exiting.
            WebCore.Shutdown();

            Console.ReadKey(true);
        }
 public CustomController1(MainWindow win)
     : base(win)
 {
     _balls = new BallModels(this.window);
 }