Package gov.nasa.worldwindx.examples
Class VideoOnTerrain
- java.lang.Object
-
- gov.nasa.worldwindx.examples.ApplicationTemplate
-
- gov.nasa.worldwindx.examples.VideoOnTerrain
-
public class VideoOnTerrain extends ApplicationTemplate
This example illustrates how you might show video on the globe's surface. It uses aSurfaceImageto display one image after another, each of which could correspond to a frame of video. The video frames are simulated by creating a new buffered image for each frame. The sameSurfaceImageis used. The image source of theSurfaceImageis continually set to a new BufferedImage. (It would be more efficient to also re-use a single BufferedImage, but one objective of this example is to show how to do this when the image can't be re-used.) TheSurfaceImagelocation could also be continually changed, but this example doesn't do that.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classVideoOnTerrain.AppFrameprotected static classVideoOnTerrain.SurfaceImageDragger-
Nested classes/interfaces inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
ApplicationTemplate.AppPanel
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.List<LatLon>CORNERSprotected static doubleIMAGE_OPACITYprotected static doubleIMAGE_SELECTED_OPACITYprotected static intIMAGE_SIZE
-
Constructor Summary
Constructors Constructor Description VideoOnTerrain()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)-
Methods inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
-
-
-
-
Field Detail
-
IMAGE_SIZE
protected static final int IMAGE_SIZE
- See Also:
- Constant Field Values
-
IMAGE_OPACITY
protected static final double IMAGE_OPACITY
- See Also:
- Constant Field Values
-
IMAGE_SELECTED_OPACITY
protected static final double IMAGE_SELECTED_OPACITY
- See Also:
- Constant Field Values
-
CORNERS
protected static final java.util.List<LatLon> CORNERS
-
-