コード例 #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);
        }
コード例 #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);
        }
コード例 #3
0
 public virtual void OnPaintDrawing(DeviceContext DeviceCtx)
 {
 }
コード例 #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);
        }
コード例 #5
0
ファイル: PtView.cs プロジェクト: JeffreyZksun/opendraw
        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);
        }