Ejemplo n.º 1
0
        public override void OnPaintDrawing(DeviceContext DeviceCtx)
        {
            if (null == DeviceCtx) return;

            GraphicContext gpCtx = new DrawGraphicContext(DeviceCtx
                , PtApp.Get().ColorScheme.PreviewCurveColor, Matrix44.Identity);

            GetDisplayList().Draw(gpCtx, Matrix44.Identity);
        }
Ejemplo n.º 2
0
        public override void OnPaintDrawing(DeviceContext DeviceCtx)
        {
            Debug.Assert(DeviceCtx != null);
            if (null == DeviceCtx) return;

            GraphicContext gpCtx = new DrawGraphicContext(DeviceCtx
                , PtApp.Get().ColorScheme.DrawingColor
                , PtApp.ActiveView.GetWorldToDeviceMatrix());

            // Draw all the nodes of the document
            foreach (GraphicNode ItemNode in m_NodeList)
                ItemNode.Draw(gpCtx);
        }
Ejemplo n.º 3
0
 public virtual void OnPaintDrawing(DeviceContext DeviceCtx)
 {
 }
Ejemplo n.º 4
0
        public override void OnPaintDrawing(DeviceContext DeviceCtx)
        {
            Debug.Assert(DeviceCtx != null);
            if (null == DeviceCtx) return;

            GraphicContext SelectionGpCtx = new SelectionGraphicContext(
                DeviceCtx
                , PtApp.Get().ColorScheme.SelectedPointColor
                , PtApp.Get().ColorScheme.SelectedPointCircleColor
                , PtApp.Get().ColorScheme.SelectedCurveColor
                , PtApp.ActiveView.GetWorldToDeviceMatrix());

            SelectionSet SelectedSet = PtApp.ActiveView.SelectionMgr.GetSelectedSelectionSet();
            SelectedSet.Draw(SelectionGpCtx);
        }
Ejemplo n.º 5
0
        private void DrawingRender(object sender, PaintEventArgs e)
        {
            if (m_PictureBox == null) return;

            // Draw the graphics
            DeviceContext DeviceCtx = new DeviceContext(GraphicDevice);
            foreach (ViewPaintObserver item in m_ViewObserverList)
                item.OnPaintDrawing(DeviceCtx);
        }