gov.nasa.worldwind.applications.sar
Class ElevationPlane
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.airspaces.AbstractAirspace
gov.nasa.worldwind.render.airspaces.Polygon
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.
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 |
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 |
osh
protected OGLStackHandler osh
texture
protected WWTexture texture
ElevationPlane
public ElevationPlane()
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.