gov.nasa.worldwind.render.airspaces
Class TrackAirspace
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.airspaces.AbstractAirspace
gov.nasa.worldwind.render.airspaces.TrackAirspace
- All Implemented Interfaces:
- AVList, Movable, Airspace, Renderable, Restorable
- Direct Known Subclasses:
- Route
public class TrackAirspace
- extends AbstractAirspace
| 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 |
|
Method Summary |
protected void |
addLeg(Box leg)
|
Box |
addLeg(LatLon start,
LatLon end,
double lowerAltitude,
double upperAltitude,
double leftWidth,
double rightWidth)
|
protected void |
addLegs(Iterable<Box> newLegs)
|
protected boolean |
areLegsDisjoint(Box leg1,
Box leg2)
|
protected Plane |
computeJoiningPlane(DrawContext dc,
Box leg1,
Box leg2)
|
protected Extent |
doComputeExtent(DrawContext dc)
|
protected void |
doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected void |
doMoveTo(Position oldRef,
Position newRef)
|
protected void |
doRenderExtent(DrawContext dc)
|
protected void |
doRenderGeometry(DrawContext dc,
String drawStyle)
|
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected void |
doUpdateLegs(DrawContext dc)
|
List<Box> |
getLegs()
|
Position |
getReferencePosition()
|
boolean |
isAirspaceVisible(DrawContext dc)
|
boolean |
isEnableInnerCaps()
|
protected boolean |
isLegsOutOfDate()
|
void |
setAltitudes(double lowerAltitude,
double upperAltitude)
Set the upper and lower altitude limits. |
void |
setEnableInnerCaps(boolean draw)
|
void |
setLegs(Collection<Box> legs)
|
protected void |
setLegsOutOfDate()
|
void |
setTerrainConforming(boolean lowerTerrainConformant,
boolean upperTerrainConformant)
Sets the value of the terrain-conforming attribute. |
| Methods inherited from class gov.nasa.worldwind.render.airspaces.AbstractAirspace |
addDetailLevels, clearElevationMap, computeBoundingCylinder, computeDetailLevel, computeElevationAt, computePointFromPosition, computeReferencePosition, computeSplitSectors, doRender, getAltitudes, getAltitudes, getAttributes, getDetailLevels, getExpiryRange, getExpiryTime, getExtent, getGeometryBuilder, getGeometryCache, getRenderer, getRestorableState, isAirspaceCollapsed, isEnableLevelOfDetail, isExpired, isExtentOutOfDate, isTerrainConforming, isVisible, move, moveTo, nextExpiryTime, render, renderExtent, renderGeometry, restoreState, setAltitude, setAttributes, setDetailLevels, setEnableLevelOfDetail, setExpiryRange, setExpiryTime, setExtentOutOfDate, setGeometryBuilder, setRenderer, 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 |
TrackAirspace
public TrackAirspace()
TrackAirspace
public TrackAirspace(AirspaceAttributes attributes)
TrackAirspace
public TrackAirspace(Collection<Box> legs)
addLeg
protected void addLeg(Box leg)
addLeg
public Box addLeg(LatLon start,
LatLon end,
double lowerAltitude,
double upperAltitude,
double leftWidth,
double rightWidth)
addLegs
protected void addLegs(Iterable<Box> newLegs)
areLegsDisjoint
protected boolean areLegsDisjoint(Box leg1,
Box leg2)
computeJoiningPlane
protected Plane computeJoiningPlane(DrawContext dc,
Box leg1,
Box leg2)
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
doRenderExtent
protected void doRenderExtent(DrawContext dc)
- Overrides:
doRenderExtent 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
doUpdateLegs
protected void doUpdateLegs(DrawContext dc)
getLegs
public List<Box> getLegs()
getReferencePosition
public Position getReferencePosition()
isAirspaceVisible
public boolean isAirspaceVisible(DrawContext dc)
- Specified by:
isAirspaceVisible in interface Airspace- Overrides:
isAirspaceVisible in class AbstractAirspace
isEnableInnerCaps
public boolean isEnableInnerCaps()
isLegsOutOfDate
protected boolean isLegsOutOfDate()
setAltitudes
public void setAltitudes(double lowerAltitude,
double upperAltitude)
- Description copied from class:
AbstractAirspace
- Set the upper and lower altitude limits.
- Specified by:
setAltitudes in interface Airspace- Overrides:
setAltitudes in class AbstractAirspace
- Parameters:
lowerAltitude - the lower altitude limit, in meters relative to mean sea levelupperAltitude - the upper altitude limit, in meters relative to mean sea level
setEnableInnerCaps
public void setEnableInnerCaps(boolean draw)
setLegs
public void setLegs(Collection<Box> legs)
setLegsOutOfDate
protected void setLegsOutOfDate()
setTerrainConforming
public void setTerrainConforming(boolean lowerTerrainConformant,
boolean upperTerrainConformant)
- Description copied from class:
AbstractAirspace
- Sets the value of the terrain-conforming attribute.
- Specified by:
setTerrainConforming in interface Airspace- Overrides:
setTerrainConforming in class AbstractAirspace
- Parameters:
lowerTerrainConformant - the value of the lower altitude terrain-conforming attribute.
A value of true indicates the object's lower altitude is terrain-conforming,
a value of false indicates that it's not.upperTerrainConformant - the value of the upper altitude terrain-conforming attribute.
A value of true indicates the object's upper altitude is terrain-conforming,
a value of false indicates that it's not.