예제 #1
0
    protected override void OnScriptStart()
    {
        base.OnScriptStart();

        _control = gameObject.GetComponent<ZSUFrameworkControlProxy>().FrameworkControl;
        _target = TargetProxy.FrameworkControl;
    }
예제 #2
0
        /// <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 SetFrameworkControl(FrameworkControl newControl)
    {
        LoadSerializationBarrier();

        var existingControl = this._nonSerialized.FrameworkControl;
        if (existingControl == newControl)
        {
            return;
        }

        UnloadVisualizer(true, true);

        if (existingControl != null)
        {
            existingControl.UserObject = null;
        }

        this._nonSerialized.FrameworkControl = newControl;

        if (newControl == null)
        {
            return;
        }

        newControl.UserObject = this.gameObject;

        if (FrameworkControl.Visible)
        {
            LoadVisualizer(true);
        }
    }
예제 #4
0
 public void setInit(Canvas _main, Window target, FrameworkControl fw, SmartArea s)
 {
     main      = _main;
     window    = target;
     framework = fw;
     _sArea    = s;
 }
예제 #5
0
 public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle)
 {
     main      = _main;
     window    = target;
     framework = fw;
     thisCont  = cont;
     thisAngle = angle;
 }
예제 #6
0
    protected override void OnScriptStart()
    {
        base.OnScriptStart();

        _control = gameObject.GetComponent<ZSUFrameworkControlProxy>().FrameworkControl;
        _initialSize = _control.LayoutAttributes.Size;
        _initialScale = transform.lossyScale;
    }
예제 #7
0
 public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle)
 {
     main = _main;
     window = target;
     framework = fw;
     thisCont = cont;
     thisAngle = angle;
 }
예제 #8
0
 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;
 }
예제 #9
0
        public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, ObjectInfo _objInfo)
        {
            objInfo    = _objInfo;
            imgPath    = objInfo.Path;
            img.Source = new BitmapImage(new Uri(imgPath, UriKind.Absolute));

            main      = _main;
            window    = target;
            framework = fw;
            thisCont  = cont;
            thisAngle = angle;
        }
예제 #10
0
        public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, string _ip)
        {
            main = _main;
            window = target;
            framework = fw;
            thisCont = cont;
            thisAngle = angle;
            userIP = _ip;

            t = new Thread(new ThreadStart(thread_recv));
            t.Start();
        }
예제 #11
0
        public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, string _ip)
        {
            main      = _main;
            window    = target;
            framework = fw;
            thisCont  = cont;
            thisAngle = angle;
            userIP    = _ip;

            t = new Thread(new ThreadStart(thread_recv));
            t.Start();
        }
예제 #12
0
        public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, ObjectInfo _objInfo)
        {
            objInfo = _objInfo;
            imgPath = objInfo.Path;
            img.Source = new BitmapImage(new Uri(imgPath, UriKind.Absolute));

            main = _main;
            window = target;
            framework = fw;
            thisCont = cont;
            thisAngle = angle;
        }
예제 #13
0
        public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, ObjectInfo _objInfo)
        {
            main = _main;
            window = target;
            framework = fw;
            thisCont = cont;
            thisAngle = angle;

            objInfo = _objInfo;

            ReadPPTfile(objInfo.FilePath);
            MakePPTIamge(objInfo.DirPath);
            ViewPPTImage(objInfo.DirPath, 0);
        }
예제 #14
0
        public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, ObjectInfo _objInfo)
        {
            main      = _main;
            window    = target;
            framework = fw;
            thisCont  = cont;
            thisAngle = angle;

            objInfo = _objInfo;

            ReadPPTfile(objInfo.FilePath);
            MakePPTIamge(objInfo.DirPath);
            ViewPPTImage(objInfo.DirPath, 0);
        }
예제 #15
0
        public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, string _ip)
        {
            main = _main;
            window = target;
            framework = fw;
            thisCont = cont;
            thisAngle = angle;
            userIP = _ip;

            thisPath = path + userIP + "\\";
            currentPath += userIP + "\\MyBox\\";

            makeDir();
            setListBox(path + "MyBox\\");
        }
예제 #16
0
        public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, string _ip)
        {
            main      = _main;
            window    = target;
            framework = fw;
            thisCont  = cont;
            thisAngle = angle;
            userIP    = _ip;

            thisPath     = path + userIP + "\\";
            currentPath += userIP + "\\MyBox\\";

            makeDir();
            setListBox(path + "MyBox\\");
        }
예제 #17
0
        public void setInit(Canvas _main, System.Windows.Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, ObjectInfo _objInfo)
        {
            main = _main;
            window = target;
            framework = fw;
            thisCont = cont;
            thisAngle = angle;

            string wordDocument = _objInfo.FilePath;

            string convertedXpsDoc = string.Concat(System.IO.Path.GetTempPath(), "\\", Guid.NewGuid().ToString(), ".xps");
            XpsDocument xpsDocument = ConvertWordToXps(wordDocument, convertedXpsDoc);
            if (xpsDocument == null)
            {
                return;
            }

            documentviewWord.Document = xpsDocument.GetFixedDocumentSequence();
//             System.Windows.Controls.ContentControl cc = documentviewWord.Template.FindName("PART_FindToolBarHost", documentviewWord) as System.Windows.Controls.ContentControl;
//             cc.Visibility = Visibility.Collapsed;
            
        }
예제 #18
0
        public void setInit(Canvas _main, System.Windows.Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, ObjectInfo _objInfo)
        {
            main      = _main;
            window    = target;
            framework = fw;
            thisCont  = cont;
            thisAngle = angle;

            string wordDocument = _objInfo.FilePath;

            string      convertedXpsDoc = string.Concat(System.IO.Path.GetTempPath(), "\\", Guid.NewGuid().ToString(), ".xps");
            XpsDocument xpsDocument     = ConvertWordToXps(wordDocument, convertedXpsDoc);

            if (xpsDocument == null)
            {
                return;
            }

            documentviewWord.Document = xpsDocument.GetFixedDocumentSequence();
//             System.Windows.Controls.ContentControl cc = documentviewWord.Template.FindName("PART_FindToolBarHost", documentviewWord) as System.Windows.Controls.ContentControl;
//             cc.Visibility = Visibility.Collapsed;
        }
예제 #19
0
        /// <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);
        }
예제 #20
0
 public void setInit(FrameworkControl fw, MTSmoothContainer cont)
 {
     framework           = fw;
     thisCont            = cont;
     bt_close.Visibility = Visibility.Visible;
 }
 private void UpdateControlTree(FrameworkControl control)
 {
     control.Update();
     foreach (FrameworkControl child in control.Children)
     {
         UpdateControlTree(child);
     }
 }
 public static string Serialize(FrameworkControl frameworkControl)
 {
     var settings = GetJsonSerializerSettings();
     string frameworkControlAsString = JsonConvert.SerializeObject(frameworkControl, settings);
     return frameworkControlAsString;
 }
예제 #23
0
 public void setInit(FrameworkControl fw, MTSmoothContainer cont)
 {
     framework = fw;
     thisCont = cont;
     bt_close.Visibility = Visibility.Visible;
 }
예제 #24
0
 public FrameworkControlViewContent(FrameworkControl widget, string contentId, string contentLabel = "")
     : base(widget, contentId, contentLabel)
 {
     this.settings = new ControlSettings();
     OnInit();
 }