예제 #1
0
        public DEditorBot(SceneManager sceneManager)
        {
            _sceneManager = sceneManager;

            _rnd = new Random();

            Launch();
        }
예제 #2
0
        public EditorWndCtx(Canvas canv, 
                            DistributedInkCanvas inkCanv,
                            Palette palette,
                            InkPalette inkPalette,                     
                            SurfaceWindow keyboardWnd,
                            int topicId,
                            int discussionId)
        {
            _canv = canv;
            _inkCanv = inkCanv;
            _palette = palette;
            _inkPalette = inkPalette;
            _keyboardWnd = keyboardWnd;

            mgr = new SceneManager(canv, inkCanv, palette, inkPalette,  topicId, discussionId);
         
            touchTimer = new ContactTimer(DevDownAsMouse, 0.05, false);

            SetListeners(true); 
        }
예제 #3
0
        public EditorWndCtx(Canvas canv,
            DistributedInkCanvas inkCanv,
            Palette palette,
            InkPalette inkPalette,
            PortableWindow keyboardWnd,
            int topicId,
            int discussionId,
            bool shapesVisibility)
        {
            _canv = canv;
            _inkCanv = inkCanv;
            _palette = palette;
            _keyboardWnd = keyboardWnd;

            _zoomManipProc = new ManipulationProcessor2D(Manipulations2D.All);

            mgr = new SceneManager(canv, inkCanv, palette, inkPalette, topicId, discussionId, shapesVisibility);

            SetListeners(true);

            //poinManipDeferrer = new DispatcherTimer();
            //poinManipDeferrer.Interval = TimeSpan.FromMilliseconds(260);
            //poinManipDeferrer.Tick += manipDeferrerTick;
        }
예제 #4
0
        public void CleanupScene()
        {
            this.SetListeners(false);

            if (mgr.Doc != null)
            {
                mgr.Doc.DetachFromCanvas();
                mgr.Doc.setListeners(false);
            }

            _inkCanv.Strokes.Clear();
            mgr.FinishFreeDrawing();

            mgr.setListeners(false);
            mgr = null;

            _palette.ResetOvers();
        }