|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Airspace
| Field Summary | |
|---|---|
static String |
DRAW_STYLE_FILL
|
static String |
DRAW_STYLE_OUTLINE
|
| Method Summary | |
|---|---|
String[] |
getAltitudeDatum()
Returns the current altitude datum of the airspace's lower and upper surfaces. |
double[] |
getAltitudes()
Returns the current airspace surface altitudes. |
AirspaceAttributes |
getAttributes()
|
Iterable<DetailLevel> |
getDetailLevels()
|
Extent |
getExtent(DrawContext dc)
Returns this Airspace's enclosing volume as an Extent in model coordinates, given
a specified DrawContext. |
Extent |
getExtent(Globe globe,
double verticalExaggeration)
Returns this Airspace's enclosing volume as an Extent in model coordinates, given
a specified Globe and vertical exaggeration (see SceneController.getVerticalExaggeration(). |
LatLon |
getGroundReference()
Returns the current ground reference location. |
boolean |
isAirspaceVisible(DrawContext dc)
Test if this airspace is visible in the specified draw context. |
boolean |
isEnableLevelOfDetail()
|
boolean[] |
isTerrainConforming()
Returns the old-style indicators of the airspace's lower and upper surface datums. |
boolean |
isVisible()
|
void |
makeOrderedRenderable(DrawContext dc,
AirspaceRenderer renderer)
|
void |
renderExtent(DrawContext dc)
|
void |
renderGeometry(DrawContext dc,
String drawStyle)
|
void |
setAltitude(double altitude)
Sets the lower and upper airspace surface altitudes to the same value. |
void |
setAltitudeDatum(String lowerAltitudeDatum,
String upperAltitudeDatum)
Sets the altitude datum, which indicates whether airspace altitudes are relative to mean sea level, ground level or a single ground reference location. |
void |
setAltitudes(double lowerAltitude,
double upperAltitude)
Sets the lower and upper airspace surface altitudes. |
void |
setAttributes(AirspaceAttributes attributes)
|
void |
setDetailLevels(Collection<DetailLevel> detailLevels)
|
void |
setEnableLevelOfDetail(boolean enableLevelOfDetail)
|
void |
setGroundReference(LatLon groundReference)
Sets the reference location used to determine the elevation offset for airspace surfaces whose altitude datum is AVKey.ABOVE_GROUND_REFERENCE. |
void |
setTerrainConforming(boolean terrainConformant)
Sets the altitude datum for both the lower and upper airspace surface to the same specified value. |
void |
setTerrainConforming(boolean lowerTerrainConformant,
boolean upperTerrainConformant)
Sets the altitude datum, which indicates whether airspace altitudes are relative to mean sea level, ground level or a single ground reference location. |
void |
setVisible(boolean visible)
|
| Methods inherited from interface gov.nasa.worldwind.render.Renderable |
|---|
render |
| Methods inherited from interface gov.nasa.worldwind.Restorable |
|---|
getRestorableState, restoreState |
| 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 |
|---|
static final String DRAW_STYLE_FILL
static final String DRAW_STYLE_OUTLINE
| Method Detail |
|---|
String[] getAltitudeDatum()
setAltitudeDatum(String, String)double[] getAltitudes()
double with element 0 containing the lower surface altitude, and
element 1 containing the upper surface altitude.setAltitudes(double, double),
setAltitudeDatum(java.lang.String, java.lang.String),
setGroundReference(gov.nasa.worldwind.geom.LatLon)AirspaceAttributes getAttributes()
Iterable<DetailLevel> getDetailLevels()
Extent getExtent(DrawContext dc)
Extent in model coordinates, given
a specified DrawContext. The returned Extent may be different than the Extent
returned by calling getExtent(gov.nasa.worldwind.globes.Globe, double) with the DrawContext's Globe and
vertical exaggeration. Additionally, this may cache the computed extent and is therefore potentially faster than
calling getExtent(gov.nasa.worldwind.globes.Globe, double).
dc - the current DrawContext.
IllegalArgumentException - if the DrawContext is null, or if the Globe held by the DrawContext is null.
Extent getExtent(Globe globe,
double verticalExaggeration)
Extent in model coordinates, given
a specified Globe and vertical exaggeration (see SceneController.getVerticalExaggeration().
getExtent in interface ExtentHolderglobe - the Globe this Airspace is related to.verticalExaggeration - the vertical exaggeration of the scene containing this Airspace.
IllegalArgumentException - if the Globe is null.LatLon getGroundReference()
boolean isAirspaceVisible(DrawContext dc)
dc - the draw context the airspace is related to.
boolean isEnableLevelOfDetail()
boolean[] isTerrainConforming()
boolean isVisible()
void makeOrderedRenderable(DrawContext dc,
AirspaceRenderer renderer)
void renderExtent(DrawContext dc)
void renderGeometry(DrawContext dc,
String drawStyle)
void setAltitude(double altitude)
setAltitudeDatum(String, String) for a description of the possible interpretations and the means to specify
them.
altitude - the lower surface altitude, in meters.setAltitudes(double, double),
setAltitudeDatum(java.lang.String, java.lang.String),
setGroundReference(gov.nasa.worldwind.geom.LatLon)
void setAltitudeDatum(String lowerAltitudeDatum,
String upperAltitudeDatum)
AVKey.ABOVE_MEAN_SEA_LEVEL, the default for both lower and upper datums, indicates a datum of
mean sea level. The respective lower or upper surface of the airspace is drawn at the constant altitude specified
by setAltitude(double).
A datum of AVKey.ABOVE_GROUND_LEVEL indicates that each position of the respective airspace surface is
offset vertically from the altitude specified to setAltitude(double) by an amount equal to the terrain
elevation at that position. For example, if the specified lower altitude is zero, the lower surface lies on and
conforms to the terrain. If non-zero, the surface undulates in tandem with the terrain but relative to the
specified altitude.
A datum of AVKey.ABOVE_GROUND_REFERENCE combines both of the above datums. It indicates that the
respective surface is drawn at the altitude specified to setAltitude(double) but offset vertically by an
amount equal to the elevation at a single reference location on the ground. This is useful for displaying
surfaces that are "flat" but are positioned relative to the ground. An example is the roof of a building, which
maintains a constant altitude even as the base of its building may conform to varying terrain. One method of
representing buildings is to specify a lower altitude of 0, a lower altitude datum of AVKey.ABOVE_GROUND_LEVEL, an upper altitude that's the building's height, and an upper altitude datum of AVKey.ABOVE_GROUND_REFERENCE, where the ground reference is a location at the building's base. The reference
position is specifed by setGroundReference(LatLon).
lowerAltitudeDatum - the lower altitude datum.upperAltitudeDatum - the upper altitude datum
IllegalArgumentException - if either the lower or upper altitude datum is null.setGroundReference(gov.nasa.worldwind.geom.LatLon),
setAltitudes(double, double)
void setAltitudes(double lowerAltitude,
double upperAltitude)
setAltitudeDatum(String, String) for a description of the
possible interpretations and the means to specify them.
lowerAltitude - the lower surface altitude, in meters.upperAltitude - the upper surface altitude, in meters.setAltitudes(double, double),
setAltitudeDatum(java.lang.String, java.lang.String),
setGroundReference(gov.nasa.worldwind.geom.LatLon)void setAttributes(AirspaceAttributes attributes)
void setDetailLevels(Collection<DetailLevel> detailLevels)
void setEnableLevelOfDetail(boolean enableLevelOfDetail)
void setGroundReference(LatLon groundReference)
AVKey.ABOVE_GROUND_REFERENCE. The reference location is unused if the altitude datum is a value other
than this.
groundReference - the location at which to compute the terrain elevation used to offset an upper or lower
airspace surface. The location need not be within the airspace's bounds. If null, an
airspace-specific position is chosen from those defining the airspace. See the method
descriptions for the individual airspaces to determine the position used.setAltitudeDatum(String, String)void setTerrainConforming(boolean terrainConformant)
setAltitudeDatum(String, String), but this method is provided for backwards
compatibility with the means of originally setting the datum. See the argument descriptions for the mapping of
the boolean values of this method to the altitude-datum values.
terrainConformant - the altitude datum. See setTerrainConforming(boolean, boolean) for a
description of the possible values.
void setTerrainConforming(boolean lowerTerrainConformant,
boolean upperTerrainConformant)
setAltitudeDatum(String, String),
but this method is provided for backwards compatibility with the means of originally setting the datum. See the
argument descriptions below for the mapping of the boolean values of this method to the altitude-datum values.
lowerTerrainConformant - the lower altitude datum. A value of true indicates a lower altitude datum of
AVKey.ABOVE_GROUND_LEVEL (terrain conforming), a value of false indicates a
lower altitude datum of {link AVKey#ABOVE_MEAN_SEA_LEVEL} (not terrain conforming).
the terrain-conforming, a value of false indicates that it's not.upperTerrainConformant - the upper altitude datum. A value of true indicates an upper altitude datum of
AVKey.ABOVE_GROUND_LEVEL (terrain conforming), a value of false indicates
an upper altitude datum of {link AVKey#ABOVE_MEAN_SEA_LEVEL} (not terrain
conforming. the terrain-conforming, a value of false indicates that it's not.setAltitudeDatum(String, String)void setVisible(boolean visible)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||