Class ElevationPlane
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.render.airspaces.AbstractAirspace
-
- gov.nasa.worldwind.render.airspaces.Polygon
-
- gov.nasa.worldwindx.applications.sar.ElevationPlane
-
- All Implemented Interfaces:
AVList,Draggable,MessageListener,ExtentHolder,Movable,Movable2,Airspace,Attributable,Highlightable,OrderedRenderable,PreRenderable,Renderable,Restorable,WWObject,java.beans.PropertyChangeListener,java.util.EventListener
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
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.airspaces.AbstractAirspace
AbstractAirspace.AirspaceInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected OGLStackHandleroshprotected WWTexturetexture-
Fields inherited from class gov.nasa.worldwind.render.airspaces.Polygon
DEFAULT_SUBDIVISIONS, MINIMAL_GEOMETRY_SUBDIVISIONS
-
Fields inherited from class gov.nasa.worldwind.render.airspaces.AbstractAirspace
activeAttributes, airspaceInfo, alwaysOnTop, ARC_SLICES, attributes, currentInfo, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_INTERIOR_MATERIAL, DEFAULT_OUTLINE_MATERIAL, DEFAULT_OUTLINE_PICK_WIDTH, defaultAttributes, delegateOwner, detailLevels, DISABLE_TERRAIN_CONFORMANCE, dragEnabled, draggableSupport, drawSurfaceShape, elevationMap, enableBatchPicking, enableBatchRendering, enableDepthOffset, enableLevelOfDetail, EXPIRY_TIME, expiryTime, frameTimeStamp, GEOMETRY_CACHE_KEY, GEOMETRY_CACHE_NAME, geometryBuilder, GLOBE_KEY, groundReference, highlightAttributes, highlighted, LENGTH_SLICES, LOOPS, lowerAltitude, lowerAltitudeDatum, lowerTerrainConforming, maxExpiryTime, minExpiryTime, mustRegenerateSurfaceShape, outlinePickWidth, outlineShapeRenderer, pickLayer, pickSupport, PILLARS, rand, SLICES, SPLIT_THRESHOLD, STACKS, SUBDIVISIONS, surfaceShape, upperAltitude, upperAltitudeDatum, upperTerrainConforming, VERTICAL_EXAGGERATION, visible
-
Fields inherited from interface gov.nasa.worldwind.render.airspaces.Airspace
DRAW_STYLE_FILL, DRAW_STYLE_OUTLINE
-
-
Constructor Summary
Constructors Constructor Description ElevationPlane()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyTextureState(DrawContext dc)protected voidbeginRendering(DrawContext dc)protected double[][]computePlanes(DrawContext dc)protected voiddoRenderGeometry(DrawContext dc, java.lang.String drawStyle, java.util.List<LatLon> locations, java.util.List<java.lang.Boolean> edgeFlags)protected voidendRendering(DrawContext dc)doublegetImageSize()Get the real world image size in meter.java.lang.ObjectgetImageSource()Get the source for the fill pattern image.protected WWTexturegetTexture()voidsetImageSize(double sizeInMeter)Set the real world image size in meter.voidsetImageSource(java.lang.Object imageSource)Set the source for the fill pattern image.protected voidunApplyTextureState(DrawContext dc)-
Methods inherited from class gov.nasa.worldwind.render.airspaces.Polygon
addLocations, adjustForGroundReference, computeEllipsoidalPolygon, computeExtent, computeMinimalGeometry, computeReferenceCenter, createSurfaceShape, doGetRestorableState, doMoveTo, doMoveTo, doRenderGeometry, doRestoreState, getLocationList, getLocations, getReferencePosition, getSubdivisions, handleUnsuccessfulGeometryCreation, isEnableCaps, makeTessellatedLocations, regenerateSurfaceShape, setEnableCaps, setLocations, setSubdivisions, updateSurfaceShape
-
Methods inherited from class gov.nasa.worldwind.render.airspaces.AbstractAirspace
addDetailLevels, adjustForGroundReference, clearElevationMap, computeDetailLevel, computeElevationAt, computeExtent, computeEyeDistance, computeMinimalGeometry, computePointFromPosition, computeReferencePosition, createPickedObject, determineActiveAttributes, doDrag, doDrawOrderedRenderable, drag, drawBatched, drawGeometry, drawInterior, drawOrderedRenderable, drawOutline, getActiveAttributes, getAirspaceInfo, getAltitudeDatum, getAltitudes, getAltitudes, getAttributes, getDelegateOwner, getDetailLevels, getDistanceFromEye, getExpiryRange, getExpiryTime, getExtent, getExtent, getGeometryBuilder, getGeometryCache, getGroundReference, getHighlightAttributes, getOutlinePickWidth, getRestorableState, invalidateAirspaceData, isAirspaceCollapsed, isAirspaceVisible, isAlwaysOnTop, isDragEnabled, isDrawSurfaceShape, isEnableBatchPicking, isEnableBatchRendering, isEnableDepthOffset, isEnableLevelOfDetail, isExpired, isHighlighted, isTerrainConforming, isVisible, makeExtremePoints, makeOrderedRenderable, move, moveTo, moveTo, mustDrawInterior, mustDrawOutline, nextExpiryTime, pick, preRender, render, restoreState, setAltitude, setAltitudeDatum, setAltitudes, setAlwaysOnTop, setAttributes, setAttributes, setDelegateOwner, setDetailLevels, setDragEnabled, setDrawSurfaceShape, setEnableBatchPicking, setEnableBatchRendering, setEnableDepthOffset, setEnableLevelOfDetail, setExpiryRange, setExpiryTime, setGeometryBuilder, setGroundReference, setHighlightAttributes, setHighlightAttributes, setHighlighted, setOutlinePickWidth, setTerrainConforming, setTerrainConforming, setVisible, updateExpiryCriteria
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, 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
-
texture
protected WWTexture texture
-
osh
protected OGLStackHandler osh
-
-
Method Detail
-
getImageSource
public java.lang.Object getImageSource()
Get the source for the fill pattern image. Can be a file path to a local image or aBufferedImagereference.- Returns:
- the source for the fill pattern image - can be null.
-
setImageSource
public void setImageSource(java.lang.Object imageSource)
Set the source for the fill pattern image. Can be a file path to a local image or aBufferedImagereference.- Parameters:
imageSource- the source for the fill pattern image - can be null.
-
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.
-
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.
-
doRenderGeometry
protected void doRenderGeometry(DrawContext dc, java.lang.String drawStyle, java.util.List<LatLon> locations, java.util.List<java.lang.Boolean> edgeFlags)
- Overrides:
doRenderGeometryin classPolygon
-
beginRendering
protected void beginRendering(DrawContext dc)
- Overrides:
beginRenderingin classAbstractAirspace
-
endRendering
protected void endRendering(DrawContext dc)
- Overrides:
endRenderingin classAbstractAirspace
-
applyTextureState
protected void applyTextureState(DrawContext dc)
-
unApplyTextureState
protected void unApplyTextureState(DrawContext dc)
-
computePlanes
protected double[][] computePlanes(DrawContext dc)
-
getTexture
protected WWTexture getTexture()
-
-