public override void draw(Graphics graphics, GISView view) { Point[] points = GISTools.GetScreenPoints(Vertexes, view); graphics.DrawLines(new Pen(Color.Red, 2), points); }
public GISExtent extent; //空间范围 最小外接矩形 public abstract void draw(Graphics graphics, GISView view);
public override void draw(Graphics graphics, GISView view) { }
public override void draw(Graphics graphics, GISView view) { Point[] points = GISTools.GetScreenPoints(Vertexes, view); graphics.FillPolygon(new SolidBrush(Color.Yellow), points); graphics.DrawPolygon(new Pen(Color.White, 2), points); }
public SelectResult SelectPolygon(GISVertex vertex, List <GISFeature> features, GISView view, GISExtent MinSelectExtent) { return(SelectResult.TooFar); }
public SelectResult Select(GISVertex vertex, List <GISFeature> features, SHAPETYPE shapetype, GISView view) { if (features.Count == 0) { return(SelectResult.EmptySet); } GISExtent MinSelectExtent = BuildExtent(vertex, view);//建立最小选择范围 switch (shapetype) { case SHAPETYPE.point: Console.WriteLine("point"); return(SelectPoint(vertex, features, view, MinSelectExtent)); case SHAPETYPE.line: Console.WriteLine("line"); return(SelectLine(vertex, features, view, MinSelectExtent)); case SHAPETYPE.polygon: Console.WriteLine("polygon"); return(SelectPolygon(vertex, features, view, MinSelectExtent)); } return(SelectResult.UnknownType); }