Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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);
      }
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 public InvalidGraphicTypeException(Graphic badType)
     : base("NVcad: Invalid Graphic Type: " + badType.GetType().Name)
 {
 }
Esempio n. 5
0
 public void DrawGraphicItem(Graphic graphicItem)
 {
 }