Class AnalyticSurfaceDemo


  • public class AnalyticSurfaceDemo
    extends ApplicationTemplate
    Illustrates how to configure and display a 3D geographic grid of scalar data using the WorldWind AnalyticSurface. Analytic surface defines a grid over a geographic Sector at a specified altitude, and enables the caller to specify the color and height at each grid point.

    This illustrates three key AnalyticSurface configurations:

    • Displaying a static data set where each grid point uses color and height to indicate the data's magnitude.
    • Displaying data that varies by color over time on the terrain surface.
    • Displaying data that varies by color and height over time at a specified altitude.
    • Constructor Detail

      • AnalyticSurfaceDemo

        public AnalyticSurfaceDemo()
    • Method Detail

      • createRandomAltitudeSurface

        protected static void createRandomAltitudeSurface​(double minHue,
                                                          double maxHue,
                                                          int width,
                                                          int height,
                                                          RenderableLayer outLayer)
      • createRandomColorSurface

        protected static void createRandomColorSurface​(double minHue,
                                                       double maxHue,
                                                       int width,
                                                       int height,
                                                       RenderableLayer outLayer)
      • mixValuesOverTime

        protected static void mixValuesOverTime​(long timeToMix,
                                                BufferWrapper firstBuffer,
                                                BufferWrapper secondBuffer,
                                                double minValue,
                                                double maxValue,
                                                double minHue,
                                                double maxHue,
                                                AnalyticSurface surface)
      • createPrecipitationSurface

        protected static void createPrecipitationSurface​(double minHue,
                                                         double maxHue,
                                                         RenderableLayer outLayer)
      • loadRasterElevations

        protected static BufferWrapperRaster loadRasterElevations​(java.lang.String path)
      • randomGridValues

        public static BufferWrapper randomGridValues​(int width,
                                                     int height,
                                                     double min,
                                                     double max,
                                                     int numIterations,
                                                     double smoothness,
                                                     BufferFactory factory)
      • randomGridValues

        public static BufferWrapper randomGridValues​(int width,
                                                     int height,
                                                     double min,
                                                     double max)
      • main

        public static void main​(java.lang.String[] args)