Class AnalyticSurfaceDemo
- java.lang.Object
-
- gov.nasa.worldwindx.examples.ApplicationTemplate
-
- gov.nasa.worldwindx.examples.analytics.AnalyticSurfaceDemo
-
public class AnalyticSurfaceDemo extends ApplicationTemplate
Illustrates how to configure and display a 3D geographic grid of scalar data using the WorldWind. Analytic surface defines a grid over a geographicAnalyticSurfaceat a specified altitude, and enables the caller to specify the color and height at each grid point.SectorThis 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalyticSurfaceDemo.AppFrame-
Nested classes/interfaces inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
ApplicationTemplate.AppPanel
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDATA_PATHprotected static intDEFAULT_RANDOM_ITERATIONSprotected static doubleDEFAULT_RANDOM_SMOOTHING
-
Constructor Summary
Constructors Constructor Description AnalyticSurfaceDemo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static RenderablecreateLegendRenderable(AnalyticSurface surface, double surfaceMinScreenSize, AnalyticSurfaceLegend legend)static java.lang.Iterable<? extends AnalyticSurface.GridPointAttributes>createMixedColorGradientGridValues(double a, BufferWrapper firstBuffer, BufferWrapper secondBuffer, double minValue, double maxValue, double minHue, double maxHue)protected static voidcreatePrecipitationSurface(double minHue, double maxHue, RenderableLayer outLayer)protected static voidcreateRandomAltitudeSurface(double minHue, double maxHue, int width, int height, RenderableLayer outLayer)protected static voidcreateRandomColorSurface(double minHue, double maxHue, int width, int height, RenderableLayer outLayer)protected static BufferWrapperRasterloadRasterElevations(java.lang.String path)static voidmain(java.lang.String[] args)protected static voidmixValuesOverTime(long timeToMix, BufferWrapper firstBuffer, BufferWrapper secondBuffer, double minValue, double maxValue, double minHue, double maxHue, AnalyticSurface surface)static BufferWrapperrandomGridValues(int width, int height, double min, double max)static BufferWrapperrandomGridValues(int width, int height, double min, double max, int numIterations, double smoothness, BufferFactory factory)-
Methods inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
-
-
-
-
Field Detail
-
DATA_PATH
protected static final java.lang.String DATA_PATH
- See Also:
- Constant Field Values
-
DEFAULT_RANDOM_ITERATIONS
protected static final int DEFAULT_RANDOM_ITERATIONS
- See Also:
- Constant Field Values
-
DEFAULT_RANDOM_SMOOTHING
protected static final double DEFAULT_RANDOM_SMOOTHING
- See Also:
- Constant Field Values
-
-
Method Detail
-
createLegendRenderable
protected static Renderable createLegendRenderable(AnalyticSurface surface, double surfaceMinScreenSize, AnalyticSurfaceLegend legend)
-
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)
-
createMixedColorGradientGridValues
public static java.lang.Iterable<? extends AnalyticSurface.GridPointAttributes> createMixedColorGradientGridValues(double a, BufferWrapper firstBuffer, BufferWrapper secondBuffer, double minValue, double maxValue, double minHue, double maxHue)
-
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)
-
-