public class AnalyticSurfaceDemo extends ApplicationTemplate
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: Modifier and Type | Class and Description |
---|---|
static class |
AnalyticSurfaceDemo.AppFrame |
ApplicationTemplate.AppPanel
Modifier and Type | Field and Description |
---|---|
protected static String |
DATA_PATH |
protected static int |
DEFAULT_RANDOM_ITERATIONS |
protected static double |
DEFAULT_RANDOM_SMOOTHING |
Constructor and Description |
---|
AnalyticSurfaceDemo() |
Modifier and Type | Method and Description |
---|---|
protected static Renderable |
createLegendRenderable(AnalyticSurface surface,
double surfaceMinScreenSize,
AnalyticSurfaceLegend legend) |
static Iterable<? extends AnalyticSurface.GridPointAttributes> |
createMixedColorGradientGridValues(double a,
BufferWrapper firstBuffer,
BufferWrapper secondBuffer,
double minValue,
double maxValue,
double minHue,
double maxHue) |
protected static void |
createPrecipitationSurface(double minHue,
double maxHue,
RenderableLayer outLayer) |
protected static void |
createRandomAltitudeSurface(double minHue,
double maxHue,
int width,
int height,
RenderableLayer outLayer) |
protected static void |
createRandomColorSurface(double minHue,
double maxHue,
int width,
int height,
RenderableLayer outLayer) |
protected static BufferWrapperRaster |
loadRasterElevations(String path) |
static void |
main(String[] args) |
protected static void |
mixValuesOverTime(long timeToMix,
BufferWrapper firstBuffer,
BufferWrapper secondBuffer,
double minValue,
double maxValue,
double minHue,
double maxHue,
AnalyticSurface surface) |
static BufferWrapper |
randomGridValues(int width,
int height,
double min,
double max) |
static BufferWrapper |
randomGridValues(int width,
int height,
double min,
double max,
int numIterations,
double smoothness,
BufferFactory factory) |
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
protected static final String DATA_PATH
protected static final int DEFAULT_RANDOM_ITERATIONS
protected static final double DEFAULT_RANDOM_SMOOTHING
protected static Renderable createLegendRenderable(AnalyticSurface surface, double surfaceMinScreenSize, AnalyticSurfaceLegend legend)
public static Iterable<? extends AnalyticSurface.GridPointAttributes> createMixedColorGradientGridValues(double a, BufferWrapper firstBuffer, BufferWrapper secondBuffer, double minValue, double maxValue, double minHue, double maxHue)
protected static void createPrecipitationSurface(double minHue, double maxHue, RenderableLayer outLayer)
protected static void createRandomAltitudeSurface(double minHue, double maxHue, int width, int height, RenderableLayer outLayer)
protected static void createRandomColorSurface(double minHue, double maxHue, int width, int height, RenderableLayer outLayer)
protected static BufferWrapperRaster loadRasterElevations(String path)
public static void main(String[] args)
protected static void mixValuesOverTime(long timeToMix, BufferWrapper firstBuffer, BufferWrapper secondBuffer, double minValue, double maxValue, double minHue, double maxHue, AnalyticSurface surface)
public static BufferWrapper randomGridValues(int width, int height, double min, double max)
public static BufferWrapper randomGridValues(int width, int height, double min, double max, int numIterations, double smoothness, BufferFactory factory)