public void UpdateExtent(Polygon poly) { foreach (Point pt in poly.Points) { PathExtent.Update(pt); } }
public void CalculateExtent() { PathExtent.MakeEmptyExtent(); if (this.Polygons.Count > 0) { foreach (Polygon p in this.Polygons) { UpdateExtent(p); } } }
public void UpdateExtent(Shape s) { if (s is Polygon) { Polygon poly = s as Polygon; foreach (Point pt in poly.Points) { PathExtent.Update(pt); } } }
public void CalculateExtent() { PathExtent.MakeEmptyExtent(); if (this.Shapes.Count > 0) { foreach (Shape s in this.Shapes) { if (s is Polygon) { UpdateExtent((s as Polygon)); } } } }
public void Clear() { this.Polygons.Clear(); PathExtent.MakeEmptyExtent(); }
public void Clear() { this.Shapes.Clear(); PathExtent.MakeEmptyExtent(); }