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); }