|
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.WWObjectImpl
gov.nasa.worldwind.layers.AbstractLayer
gov.nasa.worldwind.layers.AirspaceLayer
public class AirspaceLayer
The Airspace class manages a collection of Airspace objects
for rendering and picking. AirspaceLayer delegates to its internal AirspaceRenderer for rendering and picking operations.
Airspace,
AirspaceRenderer| Constructor Summary | |
|---|---|
AirspaceLayer()
Creates a new Airspace with an empty collection of Airspaces. |
|
| Method Summary | |
|---|---|
void |
addAirspace(Airspace airspace)
Adds the specified airspace to this layer's internal collection. |
void |
addAirspaces(Iterable<Airspace> airspaces)
Adds the contents of the specified airspaces to this layer's internal collection. |
protected void |
doPick(DrawContext dc,
Point pickPoint)
|
protected void |
doRender(DrawContext dc)
|
Iterable<Airspace> |
getAirspaces()
Returns the Iterable of Airspaces currently in use by this layer. |
Double |
getDepthOffsetFactor()
|
Double |
getDepthOffsetUnits()
|
protected AirspaceRenderer |
getRenderer()
|
boolean |
isDrawExtents()
|
boolean |
isDrawWireframe()
|
boolean |
isEnableAntialiasing()
|
boolean |
isEnableBatchPicking()
|
boolean |
isEnableBatchRendering()
|
boolean |
isEnableBlending()
|
boolean |
isEnableDepthOffset()
|
boolean |
isEnableLighting()
|
void |
removeAirspace(Airspace airspace)
Removes the specified airspace from this layer's internal collection, if it exists. |
void |
removeAllAirspaces()
Clears the contents of this layer's internal Airspace collection. |
void |
setAirspaces(Iterable<Airspace> airspaceIterable)
Overrides the collection of currently active Airspaces with the specified airspaceIterable. |
void |
setDepthOffsetFactor(Double factor)
|
void |
setDepthOffsetUnits(Double units)
|
void |
setDrawExtents(boolean draw)
|
void |
setDrawWireframe(boolean draw)
|
void |
setEnableAntialiasing(boolean enable)
|
void |
setEnableBatchPicking(boolean enableBatchPicking)
|
void |
setEnableBatchRendering(boolean enableBatchRendering)
|
void |
setEnableBlending(boolean enable)
|
void |
setEnableDepthOffset(boolean enable)
|
void |
setEnableLighting(boolean enable)
|
String |
toString()
|
| 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, finalize, getClass, hashCode, notify, notifyAll, 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 java.beans.PropertyChangeListener |
|---|
propertyChange |
| Methods inherited from interface gov.nasa.worldwind.event.MessageListener |
|---|
onMessage |
| Constructor Detail |
|---|
public AirspaceLayer()
Airspace with an empty collection of Airspaces.
| Method Detail |
|---|
public void addAirspace(Airspace airspace)
airspace to this layer's internal collection. If this layer's internal collection
has been overridden with a call to setAirspaces(Iterable), this will throw an exception.
airspace - Airspace to add.
IllegalArgumentException - If airspace is null.
IllegalStateException - If a custom Iterable has been specified by a call to setAirspaces.public void addAirspaces(Iterable<Airspace> airspaces)
airspaces to this layer's internal collection. If this layer's
internal collection has been overridden with a call to setAirspaces(Iterable), this will throw an
exception.
airspaces - Airspaces to add.
IllegalArgumentException - If airspaces is null.
IllegalStateException - If a custom Iterable has been specified by a call to setAirspaces.
protected void doPick(DrawContext dc,
Point pickPoint)
doPick in class AbstractLayerprotected void doRender(DrawContext dc)
doRender in class AbstractLayerpublic Iterable<Airspace> getAirspaces()
setAirspaces(Iterable), this will returns a reference to that Iterable. If the caller passed
setAirspaces a null parameter, or if setAirspaces has not been called, this returns a
view of this layer's internal collection of Airspaces.
public Double getDepthOffsetFactor()
public Double getDepthOffsetUnits()
protected AirspaceRenderer getRenderer()
public boolean isDrawExtents()
public boolean isDrawWireframe()
public boolean isEnableAntialiasing()
public boolean isEnableBatchPicking()
public boolean isEnableBatchRendering()
public boolean isEnableBlending()
public boolean isEnableDepthOffset()
public boolean isEnableLighting()
public void removeAirspace(Airspace airspace)
airspace from this layer's internal collection, if it exists. If this layer's
internal collection has been overridden with a call to setAirspaces(Iterable), this will throw an
exception.
airspace - Airspace to remove.
IllegalArgumentException - If airspace is null.
IllegalStateException - If a custom Iterable has been specified by a call to setAirspaces.public void removeAllAirspaces()
setAirspaces(Iterable), this will throw an exception.
IllegalStateException - If a custom Iterable has been specified by a call to setAirspaces.public void setAirspaces(Iterable<Airspace> airspaceIterable)
airspaceIterable. This
layer will maintain a reference to airspaceIterable strictly for picking and rendering. This layer
will not modify the Iterable reference. However, this will clear the internal collection of Airspaces, and will
prevent any modification to its contents via addAirspace, addAirspaces, or removeAirspaces.
If the specified airspaceIterable is null, this layer will revert to maintaining its internal
collection.
airspaceIterable - Iterable to use instead of this layer's internal collection, or null to use this layer's
internal collection.public void setDepthOffsetFactor(Double factor)
public void setDepthOffsetUnits(Double units)
public void setDrawExtents(boolean draw)
public void setDrawWireframe(boolean draw)
public void setEnableAntialiasing(boolean enable)
public void setEnableBatchPicking(boolean enableBatchPicking)
public void setEnableBatchRendering(boolean enableBatchRendering)
public void setEnableBlending(boolean enable)
public void setEnableDepthOffset(boolean enable)
public void setEnableLighting(boolean enable)
public String toString()
toString in class AbstractLayer
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||