Class AbstractAirspaceLayer<S,T>
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.layers.AbstractLayer
-
- gov.nasa.worldwind.layers.AirspaceLayer
-
- repast.simphony.visualization.gis3D.AbstractAirspaceLayer<S,T>
-
- All Implemented Interfaces:
gov.nasa.worldwind.avlist.AVList
,gov.nasa.worldwind.Disposable
,gov.nasa.worldwind.event.MessageListener
,gov.nasa.worldwind.layers.Layer
,gov.nasa.worldwind.Restorable
,gov.nasa.worldwind.WWObject
,PropertyChangeListener
,EventListener
,IDisplayLayer<T>
public abstract class AbstractAirspaceLayer<S,T> extends gov.nasa.worldwind.layers.AirspaceLayer implements IDisplayLayer<T>
Abstract base class for WorldWind GIS display Airspace layers.- Author:
- Eric Tatara TODO WWJ - consolidate share code with AbstractRenderableLayer ?
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<Object>
addedObjects
protected Map<gov.nasa.worldwind.render.airspaces.Airspace,Object>
airspaceToObjectMap
protected Geography
geography
protected gov.nasa.worldwind.Model
model
protected Set<Object>
removeObjects
protected S
style
protected Map<Object,T>
visualItemMap
-
Constructor Summary
Constructors Constructor Description AbstractAirspaceLayer(String name, S style)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addObject(Object o)
Adds the specified object to the layer.void
applyUpdates()
No-op for WWJ based code as the displaying the Renderable will reflect the updates.void
dispose()
Object
findObjectForRenderable(gov.nasa.worldwind.render.airspaces.Airspace airspace)
Returns the object that is associated with the renderable argument.S
getStyle()
Gets the style used by this display layer.T
getVisualItem(Object o)
Gets the visual representation of this object.void
removeObject(Object o)
Removes this specified object from this layer.void
setGeography(Geography geography)
Set the geography for this display.void
setModel(gov.nasa.worldwind.Model model)
Set the gov.nasa.worldwind.Model for this display.void
setStyle(S style)
Sets the style used by this display layer.abstract void
update(LayoutUpdater updater)
Updates the displayed nodes by applying styles etc.-
Methods inherited from class gov.nasa.worldwind.layers.AirspaceLayer
addAirspace, addAirspaces, doPick, doRender, getAirspaces, getDepthOffsetFactor, getDepthOffsetUnits, isDrawExtents, isDrawWireframe, isEnableAntialiasing, isEnableBatchPicking, isEnableBatchRendering, isEnableBlending, isEnableDepthOffset, isEnableLighting, removeAirspace, removeAllAirspaces, setAirspaces, setDepthOffsetFactor, setDepthOffsetUnits, setDrawExtents, setDrawWireframe, setEnableAntialiasing, setEnableBatchPicking, setEnableBatchRendering, setEnableBlending, setEnableDepthOffset, setEnableLighting, toString
-
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer
createLayerConfigElements, doPreRender, getDataFileStore, getExpiryTime, getLayerConfigParams, getMaxActiveAltitude, getMaxEffectiveAltitude, getMinActiveAltitude, getMinEffectiveAltitude, getName, getOpacity, getRestorableState, getScale, getScreenCredit, isAtMaxResolution, isEnabled, isLayerActive, isLayerConfigDocument, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setDataFileStore, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit
-
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
-
-
-
-
Method Detail
-
getStyle
public S getStyle()
Gets the style used by this display layer.- Returns:
- the style used by this display layer.
-
setStyle
public void setStyle(S style)
Sets the style used by this display layer.- Parameters:
style
- the new style
-
setGeography
public void setGeography(Geography geography)
Set the geography for this display.- Parameters:
geography
-
-
setModel
public void setModel(gov.nasa.worldwind.Model model)
Set the gov.nasa.worldwind.Model for this display.- Parameters:
model
-
-
addObject
public void addObject(Object o)
Description copied from interface:IDisplayLayer
Adds the specified object to the layer.- Specified by:
addObject
in interfaceIDisplayLayer<S>
- Parameters:
o
- the object to add
-
applyUpdates
public void applyUpdates()
No-op for WWJ based code as the displaying the Renderable will reflect the updates. Nothing needs to be done here.- Specified by:
applyUpdates
in interfaceIDisplayLayer<S>
-
getVisualItem
public T getVisualItem(Object o)
Description copied from interface:IDisplayLayer
Gets the visual representation of this object.- Specified by:
getVisualItem
in interfaceIDisplayLayer<S>
- Parameters:
o
- the object whose visual representation we want to get- Returns:
- the visual representation of this object.
-
removeObject
public void removeObject(Object o)
Removes this specified object from this layer.- Specified by:
removeObject
in interfaceIDisplayLayer<S>
- Parameters:
obj
- the object to remove
-
update
public abstract void update(LayoutUpdater updater)
Updates the displayed nodes by applying styles etc. The display is not updated to reflect these changes.- Specified by:
update
in interfaceIDisplayLayer<S>
- Parameters:
updater
- used to update the layout and position information
-
dispose
public void dispose()
- Specified by:
dispose
in interfacegov.nasa.worldwind.Disposable
- Overrides:
dispose
in classgov.nasa.worldwind.layers.AbstractLayer
-
findObjectForRenderable
public Object findObjectForRenderable(gov.nasa.worldwind.render.airspaces.Airspace airspace)
Returns the object that is associated with the renderable argument.- Parameters:
renderable
- the Renderable- Returns:
- the object associated with the renderable in this display.
-
-