Exemple #1
0
 public void setInit(Canvas _main, Window target, FrameworkControl fw, SmartArea s)
 {
     main = _main;
     window = target;
     framework = fw;
     _sArea = s;
 }
 public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, string _ip, double angle)
 {
     main = _main;
     window = target;
     framework = fw;
     thisCont = cont;
     userIP = _ip;
     gridRotateTrans.Angle = angle;
 }
        /// <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();

            window = this;  //윈도우 등록
            MainElement = canvas1;

            startThread.start();

            Jobs.Instance.setInit(canvas1, this, framework, new SmartArea());
            
            

            //if (AppConfig.StartFullscreen) toggleFullscreen();
// 
//             this.canvas1.Width = this.Width;
//             this.canvas1.Height = this.Height;
            
            takeBackground();

            addControl();
            //canvas1.Children.Add(p);
// 
//             LoadMyPictures();
//             LoadMyVideos();
//             LoadAllFeeds();
//             
            //PosAll();
            //DelayedRotate(4000);
        }
 public void Initialize()
 {
     Framework = TrackingHelper.GetTracking(Canvas, CURRENT_TRACKING_TYPE);
     Framework.OnProcessUpdates += DisplayPoints;
     Framework.Start();
     Framework.ForceRefresh();
 }
        /// <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);
        }