Package gov.nasa.worldwindx.examples
Class ContourBuilderExample
- java.lang.Object
-
- gov.nasa.worldwindx.examples.ApplicationTemplate
-
- gov.nasa.worldwindx.examples.ContourBuilderExample
-
public class ContourBuilderExample extends ApplicationTemplate
Shows how to use theContourBuilder
class to compute contour lines in an arbitrary rectangular array of numeric values.This example creates a 60x60 rectangular array of floating point values in the range from 0.0 to 1.0, inclusive. The array is displayed on the globe as an AnalyticSurface by mapping each array value to a color, where an array value of 0.0 maps to hue 0, an array value of 1.0 maps to hue 360, and values in between are interpolated between those two hues. Contour lines are created at the boundaries between adjacent colors using ContourBuilder, and are displayed on the globe as Path shapes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContourBuilderExample.AppFrame
-
Nested classes/interfaces inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
ApplicationTemplate.AppPanel
-
-
Constructor Summary
Constructors Constructor Description ContourBuilderExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
-
Methods inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
-
-