Esempio n. 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);
        }
Esempio n. 2
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);
        }
Esempio n. 3
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);
        }
Esempio n. 4
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);
        }