|
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| Field Summary |
|---|
| Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
changeSupport |
| 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. |
Vec4 |
getLightDirection()
|
Material |
getLightMaterial()
|
protected AirspaceRenderer |
getRenderer()
|
boolean |
isDrawExtents()
|
boolean |
isDrawWireframe()
|
boolean |
isEnableBlending()
|
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 |
setDrawExtents(boolean draw)
|
void |
setDrawWireframe(boolean draw)
|
void |
setEnableBlending(boolean enable)
|
void |
setEnableLighting(boolean enable)
|
void |
setLightDirection(Vec4 direction)
|
void |
setLightMaterial(Material material)
|
String |
toString()
|
| Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer |
|---|
dispose, doPreRender, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getRestorableState, getScale, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled |
| Methods inherited from class gov.nasa.worldwind.WWObjectImpl |
|---|
propertyChange |
| 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, 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 |
| 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 overriden with a call to setAirspaces(java.lang.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 overriden with a call to setAirspaces(java.lang.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(java.lang.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 Vec4 getLightDirection()
public Material getLightMaterial()
protected AirspaceRenderer getRenderer()
public boolean isDrawExtents()
public boolean isDrawWireframe()
public boolean isEnableBlending()
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 overriden with a call to setAirspaces(java.lang.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(java.lang.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 setDrawExtents(boolean draw)
public void setDrawWireframe(boolean draw)
public void setEnableBlending(boolean enable)
public void setEnableLighting(boolean enable)
public void setLightDirection(Vec4 direction)
public void setLightMaterial(Material material)
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 | ||||||||