예제 #1
0
        public void LoadFromData(double[] elevations, int width, double left, double right, double top, double bottom)
        {
            var r = new TerrainModel();

            r.ElevationRate = ElevationRate;
            r.LoadFromData(elevations, width, left, right, top, bottom);
            switch (Texture)
            {
            case TextureType.Elevation:
                r.Texture = new ElevationTexture(Brush, 8);
                break;

            case TextureType.Slope:
                r.Texture = new SlopeTexture(Brush, 8);
                break;
            }
            visualChild.Content = r.CreateModel(2);
        }
예제 #2
0
        public void UpdateModel()
        {
            var r = new TerrainModel();

            r.ElevationRate = ElevationRate;
            r.Load(Source);
            switch (Texture)
            {
            case TextureType.Elevation:
                r.Texture = new ElevationTexture(Brush, 8);

                break;

            case TextureType.Slope:
                r.Texture = new SlopeTexture(Brush, 8);
                break;
            }

            visualChild.Content = r.CreateModel(2);
        }