コード例 #1
0
ファイル: DEditorBot.cs プロジェクト: gdlprj/duscusys
        public DEditorBot(SceneManager sceneManager)
        {
            _sceneManager = sceneManager;

            _rnd = new Random();

            Launch();
        }
コード例 #2
0
ファイル: EditorWndCtx.cs プロジェクト: gdlprj/duscusys
        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
ファイル: EditorWndCtx.cs プロジェクト: gdlprj/duscusys
        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
ファイル: EditorWndCtx.cs プロジェクト: gdlprj/duscusys
        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();
        }