gov.nasa.worldwind.render.airspaces
Class Curtain
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.airspaces.AbstractAirspace
gov.nasa.worldwind.render.airspaces.Curtain
- All Implemented Interfaces:
- AVList, Movable, Airspace, Renderable, Restorable
public class Curtain
- extends AbstractAirspace
A curtain is a series of adjacent rectangular planes. The upper edges of the planes are the connecting line segments
between the vertices of a polyline. The lower edges of the planes are parallel to the upper edges at a specified
altitude.
| 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.AbstractAirspace |
addDetailLevels, clearElevationMap, computeBoundingCylinder, computeDetailLevel, computeElevationAt, computePointFromPosition, computeReferencePosition, computeSplitSectors, 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 |
Curtain
public Curtain()
Curtain
public Curtain(AirspaceAttributes attributes)
Curtain
public Curtain(List<? extends LatLon> locations)
addLocations
protected void addLocations(Iterable<? extends LatLon> newLocations)
computeReferenceCenter
protected Vec4 computeReferenceCenter(DrawContext dc)
doComputeExtent
protected Extent doComputeExtent(DrawContext dc)
- Specified by:
doComputeExtent in class AbstractAirspace
doGetRestorableState
protected void doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Overrides:
doGetRestorableState in class AbstractAirspace
doMoveTo
protected void doMoveTo(Position oldRef,
Position newRef)
- Overrides:
doMoveTo in class AbstractAirspace
doRenderGeometry
protected void doRenderGeometry(DrawContext dc,
String drawStyle)
- Specified by:
doRenderGeometry in class AbstractAirspace
doRestoreState
protected void doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Overrides:
doRestoreState in class AbstractAirspace
getLocations
public Iterable<LatLon> getLocations()
- Returns the curtain's locations.
- Returns:
- the curtain's locations in geographic coordinates.
getPathType
public String getPathType()
getReferencePosition
public Position getReferencePosition()
getSplitThreshold
protected double getSplitThreshold()
setLocations
public void setLocations(Iterable<? extends LatLon> locations)
- Sets the curtain's locations, in geographic coordinates.
- Parameters:
locations - a list of geographic coordinates (latitude and longitude) specifying the upper edge of the
shape.
- Throws:
IllegalArgumentException - if the locations list is null or contains fewer than two points.
setPathType
public void setPathType(String pathType)
setSplitThreshold
protected void setSplitThreshold(double splitThreshold)