|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.airspaces.AbstractAirspace
public abstract class AbstractAirspace
| Field Summary | |
|---|---|
protected static String |
ARC_SLICES
|
protected static String |
DISABLE_TERRAIN_CONFORMANCE
|
protected static String |
EXPIRY_TIME
|
protected static String |
GEOMETRY_CACHE_KEY
|
protected static String |
GEOMETRY_CACHE_NAME
|
protected static String |
GLOBE_KEY
|
protected static String |
LENGTH_SLICES
|
protected static String |
LOOPS
|
protected static String |
PILLARS
|
protected static String |
SLICES
|
protected static String |
SPLIT_THRESHOLD
|
protected static String |
STACKS
|
protected static String |
SUBDIVISIONS
|
protected static String |
VERTICAL_EXAGGERATION
|
| Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
changeSupport |
| Fields inherited from interface gov.nasa.worldwind.render.airspaces.Airspace |
|---|
DRAW_STYLE_FILL, DRAW_STYLE_OUTLINE |
| Constructor Summary | |
|---|---|
AbstractAirspace()
|
|
AbstractAirspace(AirspaceAttributes attributes)
|
|
| Method Summary | |
|---|---|
protected void |
addDetailLevels(Collection<DetailLevel> newDetailLevels)
|
protected void |
clearElevationMap()
|
protected Cylinder |
computeBoundingCylinder(DrawContext dc,
Iterable<? extends LatLon> locations)
|
protected DetailLevel |
computeDetailLevel(DrawContext dc)
|
protected double |
computeElevationAt(DrawContext dc,
Angle latitude,
Angle longitude)
|
Vec4 |
computePointFromPosition(DrawContext dc,
Angle latitude,
Angle longitude,
double elevation,
boolean terrainConformant)
|
protected Position |
computeReferencePosition(List<? extends LatLon> locations,
double[] altitudes)
|
protected Sector[] |
computeSplitSectors(Iterable<? extends LatLon> locations)
Returns two 'mirror' sectors each on one side of the longitude boundary - for boundary crossing shapes |
protected abstract Extent |
doComputeExtent(DrawContext dc)
|
protected void |
doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected void |
doMoveTo(Position oldRef,
Position newRef)
|
protected void |
doRender(DrawContext dc)
|
protected void |
doRenderExtent(DrawContext dc)
|
protected abstract void |
doRenderGeometry(DrawContext dc,
String drawStyle)
|
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
double[] |
getAltitudes()
Returns the altitude limits. |
protected double[] |
getAltitudes(double verticalExaggeration)
|
AirspaceAttributes |
getAttributes()
|
Iterable<DetailLevel> |
getDetailLevels()
|
protected long[] |
getExpiryRange()
|
protected long |
getExpiryTime()
|
Extent |
getExtent(DrawContext dc)
|
protected GeometryBuilder |
getGeometryBuilder()
|
protected MemoryCache |
getGeometryCache()
|
protected AirspaceRenderer |
getRenderer()
|
String |
getRestorableState()
Returns an XML document string describing the object’s state. |
boolean |
isAirspaceCollapsed()
|
boolean |
isAirspaceVisible(DrawContext dc)
|
boolean |
isEnableLevelOfDetail()
|
protected boolean |
isExpired(DrawContext dc,
Geometry geom)
|
protected boolean |
isExtentOutOfDate()
|
boolean[] |
isTerrainConforming()
Returns the value of the terrain-conforming attribute. |
boolean |
isVisible()
|
void |
move(Position position)
Shift the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North. |
void |
moveTo(Position position)
Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North. |
protected long |
nextExpiryTime(DrawContext dc,
boolean[] terrainConformance)
|
void |
render(DrawContext dc)
Causes this Renderable to render itself using the DrawContext provided. |
void |
renderExtent(DrawContext dc)
|
void |
renderGeometry(DrawContext dc,
String drawStyle)
|
void |
restoreState(String stateInXml)
Restores the object’s state to what is described in the specified XML document string. |
void |
setAltitude(double altitude)
|
void |
setAltitudes(double lowerAltitude,
double upperAltitude)
Set the upper and lower altitude limits. |
void |
setAttributes(AirspaceAttributes attributes)
|
void |
setDetailLevels(Collection<DetailLevel> detailLevels)
|
void |
setEnableLevelOfDetail(boolean enableLevelOfDetail)
|
protected void |
setExpiryRange(long minTimeMillis,
long maxTimeMillis)
|
protected void |
setExpiryTime(long timeMillis)
|
protected void |
setExtentOutOfDate()
|
protected void |
setGeometryBuilder(GeometryBuilder gb)
|
protected void |
setRenderer(AirspaceRenderer renderer)
|
void |
setTerrainConforming(boolean terrainConformant)
|
void |
setTerrainConforming(boolean lowerTerrainConformant,
boolean upperTerrainConformant)
Sets the value of the terrain-conforming attribute. |
void |
setVisible(boolean visible)
|
protected void |
updateExpiryCriteria(DrawContext dc,
Geometry geom)
|
| 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 |
| Methods inherited from interface gov.nasa.worldwind.Movable |
|---|
getReferencePosition |
| Field Detail |
|---|
protected static final String ARC_SLICES
protected static final String DISABLE_TERRAIN_CONFORMANCE
protected static final String EXPIRY_TIME
protected static final String GEOMETRY_CACHE_KEY
protected static final String GEOMETRY_CACHE_NAME
protected static final String GLOBE_KEY
protected static final String LENGTH_SLICES
protected static final String LOOPS
protected static final String PILLARS
protected static final String SLICES
protected static final String SPLIT_THRESHOLD
protected static final String STACKS
protected static final String SUBDIVISIONS
protected static final String VERTICAL_EXAGGERATION
| Constructor Detail |
|---|
public AbstractAirspace()
public AbstractAirspace(AirspaceAttributes attributes)
| Method Detail |
|---|
protected void addDetailLevels(Collection<DetailLevel> newDetailLevels)
protected void clearElevationMap()
protected Cylinder computeBoundingCylinder(DrawContext dc,
Iterable<? extends LatLon> locations)
protected DetailLevel computeDetailLevel(DrawContext dc)
protected double computeElevationAt(DrawContext dc,
Angle latitude,
Angle longitude)
public Vec4 computePointFromPosition(DrawContext dc,
Angle latitude,
Angle longitude,
double elevation,
boolean terrainConformant)
protected Position computeReferencePosition(List<? extends LatLon> locations,
double[] altitudes)
protected Sector[] computeSplitSectors(Iterable<? extends LatLon> locations)
locations - the shape positions
protected abstract Extent doComputeExtent(DrawContext dc)
protected void doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
protected void doMoveTo(Position oldRef,
Position newRef)
protected void doRender(DrawContext dc)
protected void doRenderExtent(DrawContext dc)
protected abstract void doRenderGeometry(DrawContext dc,
String drawStyle)
protected void doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
public double[] getAltitudes()
getAltitudes in interface Airspaceprotected double[] getAltitudes(double verticalExaggeration)
public AirspaceAttributes getAttributes()
getAttributes in interface Airspacepublic Iterable<DetailLevel> getDetailLevels()
getDetailLevels in interface Airspaceprotected long[] getExpiryRange()
protected long getExpiryTime()
public Extent getExtent(DrawContext dc)
getExtent in interface Airspaceprotected GeometryBuilder getGeometryBuilder()
protected MemoryCache getGeometryCache()
protected AirspaceRenderer getRenderer()
public String getRestorableState()
RestorablerestoreState and passing the XML document.
getRestorableState in interface Restorablepublic boolean isAirspaceCollapsed()
public boolean isAirspaceVisible(DrawContext dc)
isAirspaceVisible in interface Airspacepublic boolean isEnableLevelOfDetail()
isEnableLevelOfDetail in interface Airspace
protected boolean isExpired(DrawContext dc,
Geometry geom)
protected boolean isExtentOutOfDate()
public boolean[] isTerrainConforming()
isTerrainConforming in interface Airspacepublic boolean isVisible()
isVisible in interface Airspacepublic void move(Position position)
Movable
move in interface Movableposition - the latitude and longitude to add to the shape's reference position.public void moveTo(Position position)
Movable
moveTo in interface Movableposition - the new position of the shape's reference position.
protected long nextExpiryTime(DrawContext dc,
boolean[] terrainConformance)
public void render(DrawContext dc)
RenderableRenderable to render itself using the DrawContext provided. The
DrawContext provides the elevation model, openGl instance, globe and other information required for
drawing. It is recommended that the DrawContext is non-null as most implementations do not support
null DrawContexts.
render in interface Renderabledc - the DrawContext to be usedDrawContextpublic void renderExtent(DrawContext dc)
renderExtent in interface Airspace
public void renderGeometry(DrawContext dc,
String drawStyle)
renderGeometry in interface Airspacepublic void restoreState(String stateInXml)
Restorable
restoreState in interface RestorablestateInXml - an XML document string describing an object's state.public void setAltitude(double altitude)
setAltitude in interface Airspace
public void setAltitudes(double lowerAltitude,
double upperAltitude)
setAltitudes in interface AirspacelowerAltitude - the lower altitude limit, in meters relative to mean sea levelupperAltitude - the upper altitude limit, in meters relative to mean sea levelpublic void setAttributes(AirspaceAttributes attributes)
setAttributes in interface Airspacepublic void setDetailLevels(Collection<DetailLevel> detailLevels)
setDetailLevels in interface Airspacepublic void setEnableLevelOfDetail(boolean enableLevelOfDetail)
setEnableLevelOfDetail in interface Airspace
protected void setExpiryRange(long minTimeMillis,
long maxTimeMillis)
protected void setExpiryTime(long timeMillis)
protected void setExtentOutOfDate()
protected void setGeometryBuilder(GeometryBuilder gb)
protected void setRenderer(AirspaceRenderer renderer)
public void setTerrainConforming(boolean terrainConformant)
setTerrainConforming in interface Airspace
public void setTerrainConforming(boolean lowerTerrainConformant,
boolean upperTerrainConformant)
setTerrainConforming in interface AirspacelowerTerrainConformant - 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.public void setVisible(boolean visible)
setVisible in interface Airspace
protected void updateExpiryCriteria(DrawContext dc,
Geometry geom)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||