Exemplo n.º 1
0
        public static void Translate <T>(string Name, Templates.GeoScene Scene, int DestinationX) where T : class, new()
        {
            switch (new T())
            {
            case Templates.GeoPoint p:
            {
                var point = Scene.GetByName <Templates.GeoPoint>(Name);
                //point.X;
                //point.Y;
                break;
            }

            case Templates.Polygon p:
            {
                var ConstituientPoints = Scene.GetPartsByName <Templates.Polygon, Templates.GeoPoint>(Name);
                break;
            }

            case Templates.Group g:
            {
                var ConstituientPolygons = Scene.GetPartsByName <Templates.Group, Templates.Polygon>(Name);
                break;
            }

            default: break;
            }
        }
Exemplo n.º 2
0
        public static void Scale <T> (string Name, Templates.GeoScene Scene) where T : class, new()
        {
            switch (new T())
            {
            case Templates.GeoPoint p: break;

            case Templates.Polygon p:
            {
                var ConstituientPoints = Scene.GetPartsByName <Templates.Polygon, Templates.GeoPoint>(Name);
                break;
            }

            case Templates.Group g:
            {
                var ConstituientPolygons = Scene.GetPartsByName <Templates.Group, Templates.Polygon>(Name);
                break;
            }

            default: break;
            }
        }
Exemplo n.º 3
0
 public void Render(Templates.GeoScene scene)
 {
 }