internal static FrameworkControl GetTracking(FrameworkElement uiParent, TrackingType trType) { switch (trType) { case TrackingType.Mouse: return(TrackingHelper.GetMouseTracking(uiParent)); case TrackingType.TUIO: return(TrackingHelper.GetTuioTracking(uiParent)); case TrackingType.Traal: return(TrackingHelper.GetTraalTracking(uiParent)); default: return(TrackingHelper.GetMouseTracking(uiParent)); } }
/// <summary> /// Inits everything and starts the tracking engine. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Window_Loaded(object sender, RoutedEventArgs e) { framework = TrackingHelper.GetTracking(canvas1, currentTrackingType); framework.OnProcessUpdates += new FrameworkControl.ProcessUpdatesDelegate(this.DisplayPoints); framework.Start(); if (AppConfig.StartFullscreen) { toggleFullscreen(); } this.canvas1.Width = this.Width; this.canvas1.Height = this.Height; takeBackground(); LoadMyPictures(); LoadMyVideos(); LoadAllFeeds(); PosAll(); //DelayedRotate(4000); }