Package gov.nasa.worldwindx.examples
Class ShapeClipping
- java.lang.Object
-
- gov.nasa.worldwindx.examples.ApplicationTemplate
-
- gov.nasa.worldwindx.examples.ShapeClipping
-
public class ShapeClipping extends ApplicationTemplate
Shows how to use theCombinable
interface and theShapeCombiner
class to compute the intersection of a WorldWind surface shapes with Earth's land and water.This example provides an editable surface circle indicating a region to clip against either land or water. The land and water are represented by an ESRI shapefile containing polygons of Earth's continents, including major islands. Clipping against land is accomplished by computing the intersection of the surface circle and the shapefile polygons. Clipping against water is accomplished by subtracting the shapefile polygons from the surface circle. The user specifies the location of the surface circle, whether to clip against land or water, and the desired resolution of the resultant shape, in kilometers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShapeClipping.AppFrame
-
Nested classes/interfaces inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
ApplicationTemplate.AppPanel
-
-
Constructor Summary
Constructors Constructor Description ShapeClipping()
-
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
-
-