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