public void DisplayCircle(string name, double row, double col, double radius, bool bAddList = false, string color = "green", int lineWidth = 1) { try { ContentBase circle = new CircleContent(name, Window, row, col, radius, color, lineWidth); if (bAddList) { displayItemsDic.Add(circle.ContentName, circle); } circle.Display(); } catch (Exception ex) { WriteErrorLog(ex.ToString()); } }
public override void DrawROIComplete() { string drawingObjectParams = drawingObj.GetDrawingObjectParams("type"); if (drawingObjectParams == "circle") { try { this.Content1 = drawingObj.GetDrawingObjectParams("row").I; this.Content2 = drawingObj.GetDrawingObjectParams("column").I; this.Content3 = drawingObj.GetDrawingObjectParams("radius").D; base.RaiseProcessROIParameter(this.Content1, this.Content2, this.Content3, null, null); base.DrawROIComplete(); Window.DetachDrawingObjectFromWindow(this.drawingObj); CircleContent circle = new CircleContent("", Window, Convert.ToDouble(Row), Convert.ToDouble(Col), Radius); circle.Display(); } catch (Exception ex) { WriteErrorLog(ex.ToString()); } } }