Esempio n. 1
0
        void loadWorldCoastline()
        {
            StreamReader file = new StreamReader(WORLD_COASTLINE_PATH);
            while (!file.EndOfStream)
            {
                string name = file.ReadLine();
                file.ReadLine(); //skip POLYGON tag

                worldCoastline = new Poly(file, Visualizer.SHAPE_TYPE_POLYGON);
            }
            file.Close();
        }
Esempio n. 2
0
 public void AddShape(Shape shape, string name)
 {
     shapes.Add(shape);
     shapeNames.Add(name);
 }