private void setSymbologyNonText(Shape WpfItem, Graphic graphicItem) { Feature ft = graphicItem.Feature; WpfItem.Stroke = ft.Color.getAsBrush(); WpfItem.StrokeThickness = getStrokeThickness(ft); WpfItem.StrokeDashArray = SYMB.Style.cvrtIntToStyle(ft.Style); WpfItem.Opacity = 1.0 - (Double) ft.Transparency; }
public void DrawGraphicItem(Graphic graphicItem) { int i = 0; i++; if (graphicItem is NVCO.LineSegment) { DrawGraphicItem(graphicItem as NVCO.LineSegment); } else if (graphicItem is NVCO.Text) { DrawGraphicItem(graphicItem as NVCO.Text); } else if (graphicItem is NVCO.Arc) { DrawGraphicItem(graphicItem as NVCO.Arc); } }
internal void AddGraphic(Graphic newGraphic) { if (newGraphic is CadViewPort) { throw new InvalidGraphicTypeException(newGraphic); } newGraphic.myIndex = allGrahics.Count; this.BoundingBox.expandByBox(newGraphic.BoundingBox); allGrahics.Add(newGraphic); }
public InvalidGraphicTypeException(Graphic badType) : base("NVcad: Invalid Graphic Type: " + badType.GetType().Name) { }
public void DrawGraphicItem(Graphic graphicItem) { }