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