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);
        }
        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);
        }
 public virtual void OnPaintDrawing(DeviceContext DeviceCtx)
 {
 }
        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);
        }
示例#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);
        }