NASA World Wind

gov.nasa.worldwind.applications.sar
Class ElevationPlane

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.render.airspaces.AbstractAirspace
          extended by gov.nasa.worldwind.render.airspaces.Polygon
              extended by gov.nasa.worldwind.applications.sar.ElevationPlane
All Implemented Interfaces:
AVList, Movable, Airspace, Renderable, Restorable

public class ElevationPlane
extends Polygon

Renders a textured plane at a given elevation.


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.airspaces.Polygon
Polygon.PolygonGeometry
 
Field Summary
protected  OGLStackHandler osh
           
protected  WWTexture texture
           
 
Fields inherited from class gov.nasa.worldwind.render.airspaces.AbstractAirspace
ARC_SLICES, DISABLE_TERRAIN_CONFORMANCE, EXPIRY_TIME, GEOMETRY_CACHE_KEY, GEOMETRY_CACHE_NAME, GLOBE_KEY, LENGTH_SLICES, LOOPS, PILLARS, SLICES, SPLIT_THRESHOLD, STACKS, SUBDIVISIONS, VERTICAL_EXAGGERATION
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Fields inherited from interface gov.nasa.worldwind.render.airspaces.Airspace
DRAW_STYLE_FILL, DRAW_STYLE_OUTLINE
 
Constructor Summary
ElevationPlane()
           
 
Method Summary
protected  void applyTextureState(DrawContext dc)
           
protected  void beginRendering(DrawContext dc)
           
protected  double[][] computePlanes(DrawContext dc)
           
protected  void doRenderGeometry(DrawContext dc, String drawStyle, List<LatLon> locations, List<Boolean> edgeFlags)
           
protected  void endRendering(DrawContext dc)
           
 double getImageSize()
          Get the real world image size in meter.
 Object getImageSource()
          Get the source for the fill pattern image.
protected  WWTexture getTexture()
           
 void setImageSize(double sizeInMeter)
          Set the real world image size in meter.
 void setImageSource(Object imageSource)
          Set the source for the fill pattern image.
 
Methods inherited from class gov.nasa.worldwind.render.airspaces.Polygon
addLocations, computeCartesianPolygon, computeReferenceCenter, doComputeExtent, doGetRestorableState, doMoveTo, doRenderGeometry, doRestoreState, getLocationList, getLocations, getReferencePosition, getSubdivisions, isEnableCaps, setEnableCaps, setLocations, setSubdivisions
 
Methods inherited from class gov.nasa.worldwind.render.airspaces.AbstractAirspace
addDetailLevels, clearElevationMap, computeBoundingCylinder, computeBoundingExtent, computeDetailLevel, computeElevationAt, computePointFromPosition, computeReferencePosition, doRender, doRenderExtent, getAltitudes, getAltitudes, getAttributes, getDetailLevels, getExpiryRange, getExpiryTime, getExtent, getGeometryBuilder, getGeometryCache, getRenderer, getRestorableState, isAirspaceCollapsed, isAirspaceVisible, isEnableLevelOfDetail, isExpired, isExtentOutOfDate, isTerrainConforming, isVisible, move, moveTo, nextExpiryTime, render, renderExtent, renderGeometry, restoreState, setAltitude, setAltitudes, setAttributes, setDetailLevels, setEnableLevelOfDetail, setExpiryRange, setExpiryTime, setExtentOutOfDate, setGeometryBuilder, setRenderer, setTerrainConforming, setTerrainConforming, setVisible, updateExpiryCriteria
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 

Field Detail

osh

protected OGLStackHandler osh

texture

protected WWTexture texture
Constructor Detail

ElevationPlane

public ElevationPlane()
Method Detail

applyTextureState

protected void applyTextureState(DrawContext dc)

beginRendering

protected void beginRendering(DrawContext dc)

computePlanes

protected double[][] computePlanes(DrawContext dc)

doRenderGeometry

protected void doRenderGeometry(DrawContext dc,
                                String drawStyle,
                                List<LatLon> locations,
                                List<Boolean> edgeFlags)
Overrides:
doRenderGeometry in class Polygon

endRendering

protected void endRendering(DrawContext dc)

getImageSize

public double getImageSize()
Get the real world image size in meter. The image source is repeated so that one tile covers this distance.

Returns:
the real world image size in meter.

getImageSource

public Object getImageSource()
Get the source for the fill pattern image. Can be a file path to a local image or a BufferedImage reference.

Returns:
the source for the fill pattern image - can be null.

getTexture

protected WWTexture getTexture()

setImageSize

public void setImageSize(double sizeInMeter)
Set the real world image size in meter. The image source will be repeated so that one tile will covers this distance.

Parameters:
sizeInMeter - the real world image size in meter.

setImageSource

public void setImageSource(Object imageSource)
Set the source for the fill pattern image. Can be a file path to a local image or a BufferedImage reference.

Parameters:
imageSource - the source for the fill pattern image - can be null.

NASA World Wind