コード例 #1
0
        public SceneManager(Canvas scene, DistributedInkCanvas ink, Palette palette, InkPalette inkPalette,
                            int topicId, int discussionId, bool shapeVisibility)
        {
            _scene   = scene;
            _palette = palette;

            _ink        = ink;
            _inkPalette = inkPalette;

            //non-NaN palette coords
            Canvas.SetLeft(_palette, 200);
            Canvas.SetTop(_palette, 200);

            _doc = new VdDocument(palette, scene, ShapePostCtor, topicId, discussionId, shapeVisibility);

            inkPalette.Init(FinishFreeDrawing, ink);

            setListeners(true);
        }
コード例 #2
0
ファイル: SceneManager.cs プロジェクト: gdlprj/duscusys
        public SceneManager(Canvas scene, DistributedInkCanvas ink, Palette palette, InkPalette inkPalette,
            int topicId, int discussionId, bool shapeVisibility)
        {
            _scene = scene;
            _palette = palette;

            _ink = ink;
            _inkPalette = inkPalette;

            //non-NaN palette coords
            Canvas.SetLeft(_palette, 200);
            Canvas.SetTop(_palette, 200);

            _doc = new VdDocument(palette, scene, ShapePostCtor, topicId, discussionId, shapeVisibility);

            inkPalette.Init(FinishFreeDrawing, ink);

            setListeners(true);
        }
コード例 #3
0
ファイル: EditorWndCtx.cs プロジェクト: z-saffarpour/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);
        }
コード例 #4
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); 
        }
コード例 #5
0
ファイル: SceneManager.cs プロジェクト: gdlprj/duscusys
        public SceneManager(Canvas scene, DistributedInkCanvas ink, Palette palette, InkPalette inkPalette,
                            int topicId, int discussionId)
        {
            _scene = scene;
            _palette = palette;

            _ink = ink;
            _inkPalette = inkPalette;

            //non-NaN palette coords
            Canvas.SetLeft(_palette, 200);
            Canvas.SetTop(_palette, 200);

            _doc = new VdDocument(palette, scene, ShapePostCtor, topicId, discussionId);
            _doc.VolatileCtx.localCursorChanged += localCursorChanged;

            _ink.OnInkChanged += OnLocalInkChanged;
            inkPalette.Init(finishFreeDrawing);

            setListeners(true);
        }
コード例 #6
0
        public SceneManager(Canvas scene, DistributedInkCanvas ink, Palette palette, InkPalette inkPalette,
                            int topicId, int discussionId)
        {
            _scene   = scene;
            _palette = palette;

            _ink        = ink;
            _inkPalette = inkPalette;

            //non-NaN palette coords
            Canvas.SetLeft(_palette, 200);
            Canvas.SetTop(_palette, 200);

            _doc = new VdDocument(palette, scene, ShapePostCtor, topicId, discussionId);
            _doc.VolatileCtx.localCursorChanged += localCursorChanged;

            _ink.OnInkChanged += OnLocalInkChanged;
            inkPalette.Init(finishFreeDrawing);

            setListeners(true);
        }
コード例 #7
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;
        }
コード例 #8
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;
        }
コード例 #9
0
ファイル: InkPalette.xaml.cs プロジェクト: gdlprj/duscusys
 public void Init(Action finishDrawing, DistributedInkCanvas inkCanvas)
 {
     _finishDrawing = finishDrawing;
     this.InkCanvas = inkCanvas;
 }
コード例 #10
0
 public void Init(Action finishDrawing, DistributedInkCanvas inkCanvas)
 {
     _finishDrawing = finishDrawing;
     this.InkCanvas = inkCanvas;
 }