|
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.RenderableLayer
public class RenderableLayer
The RenderableLayer class manages a collection of Renderable objects
for rendering, picking, and disposal.
Renderable| Field Summary | |
|---|---|
protected Layer |
delegateOwner
|
protected PickSupport |
pickSupport
|
| Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
changeSupport |
| Constructor Summary | |
|---|---|
RenderableLayer()
Creates a new RenderableLayer with a null delegateOwner |
|
RenderableLayer(Layer delegateOwner)
Creates a new RenderableLayer with the specified delegateOwner. |
|
| Method Summary | |
|---|---|
void |
addRenderable(Renderable renderable)
Adds the specified renderable to this layer's internal collection. |
void |
addRenderables(Iterable<? extends Renderable> renderables)
Adds the contents of the specified renderables to this layer's internal collection. |
protected void |
clearRenderables()
|
void |
dispose()
Disposes the contents of this layer's internal Renderable collection, but does not remove any elements from that collection. |
protected void |
disposeRenderables()
|
protected void |
doPick(DrawContext dc,
Iterable<? extends Renderable> renderables,
Point pickPoint)
|
protected void |
doPick(DrawContext dc,
Point pickPoint)
|
protected void |
doPreRender(DrawContext dc)
|
protected void |
doPreRender(DrawContext dc,
Iterable<? extends Renderable> renderables)
|
protected void |
doRender(DrawContext dc)
|
protected void |
doRender(DrawContext dc,
Iterable<? extends Renderable> renderables)
|
protected Iterable<Renderable> |
getActiveRenderables()
Returns the Iterable of currently active Renderables. |
Layer |
getDelegateOwner()
Returns this layer's delegate owner, or null if none has been specified. |
int |
getNumRenderables()
|
double |
getOpacity()
Returns the layer's opacity value, which is ignored by this layer because each of its renderables typiically has its own opacity control. |
Iterable<Renderable> |
getRenderables()
Returns the Iterable of Renderables currently in use by this layer. |
void |
removeAllRenderables()
Clears the contents of this layer's internal Renderable collection. |
void |
removeRenderable(Renderable renderable)
Removes the specified renderable from this layer's internal collection, if it exists. |
void |
setOpacity(double opacity)
Opacity is not applied to layers of this type because each renderable typically has its own opacity control. |
void |
setRenderables(Iterable<Renderable> renderableIterable)
Overrides the collection of currently active Renderables with the specified renderableIterable. |
String |
toString()
|
| Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer |
|---|
getMaxActiveAltitude, getMinActiveAltitude, getName, getRestorableState, getScale, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, 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 |
| Field Detail |
|---|
protected Layer delegateOwner
protected PickSupport pickSupport
| Constructor Detail |
|---|
public RenderableLayer()
RenderableLayer with a null delegateOwner
public RenderableLayer(Layer delegateOwner)
RenderableLayer with the specified delegateOwner.
delegateOwner - Layer that is this layer's delegate owner.| Method Detail |
|---|
public void addRenderable(Renderable renderable)
renderable to this layer's internal collection. If this layer's internal
collection has been overriden with a call to setRenderables(java.lang.Iterable) , this will throw an exception.
renderable - Renderable to add.
IllegalArgumentException - If renderable is null.
IllegalStateException - If a custom Iterable has been specified by a call to setRenderables.public void addRenderables(Iterable<? extends Renderable> renderables)
renderables to this layer's internal collection. If this layer's
internal collection has been overriden with a call to setRenderables(java.lang.Iterable) , this will throw an exception.
renderables - Renderables to add.
IllegalArgumentException - If renderables is null.
IllegalStateException - If a custom Iterable has been specified by a call to setRenderables.protected void clearRenderables()
public void dispose()
dispose in interface Disposabledispose in class AbstractLayerIllegalStateException - If a custom Iterable has been specified by a call to setRenderables.protected void disposeRenderables()
protected void doPick(DrawContext dc,
Iterable<? extends Renderable> renderables,
Point pickPoint)
protected void doPick(DrawContext dc,
Point pickPoint)
doPick in class AbstractLayerprotected void doPreRender(DrawContext dc)
doPreRender in class AbstractLayer
protected void doPreRender(DrawContext dc,
Iterable<? extends Renderable> renderables)
protected void doRender(DrawContext dc)
doRender in class AbstractLayer
protected void doRender(DrawContext dc,
Iterable<? extends Renderable> renderables)
protected Iterable<Renderable> getActiveRenderables()
setRenderables(java.lang.Iterable) , this will returns a reference to that Iterable. If the caller passed
setRenderables a null parameter, or if setRenderables has not been called, this returns
a view of this layer's internal collection of Renderables.
public Layer getDelegateOwner()
public int getNumRenderables()
public double getOpacity()
getOpacity in interface LayergetOpacity in class AbstractLayerpublic Iterable<Renderable> getRenderables()
setRenderables(java.lang.Iterable) , this will returns a reference to that Iterable. If the caller passed
setRenderables a null parameter, or if setRenderables has not been called, this returns
a view of this layer's internal collection of Renderables.
public void removeAllRenderables()
setRenderables(java.lang.Iterable) , this will throw an exception.
IllegalStateException - If a custom Iterable has been specified by a call to setRenderables.public void removeRenderable(Renderable renderable)
renderable from this layer's internal collection, if it exists. If this
layer's internal collection has been overriden with a call to setRenderables(java.lang.Iterable) , this will throw an
exception.
renderable - Renderable to remove.
IllegalArgumentException - If renderable is null.
IllegalStateException - If a custom Iterable has been specified by a call to setRenderables.public void setOpacity(double opacity)
setOpacity in interface LayersetOpacity in class AbstractLayeropacity - the current opacity value, which is ignored by this layer.public void setRenderables(Iterable<Renderable> renderableIterable)
renderableIterable. This
layer will maintain a reference to renderableIterable strictly for picking and rendering. This layer
will not modify the reference, or dispose of its contents. This will also clear and dispose of the internal
collection of Renderables, and will prevent any modification to its contents via addRenderable,
addRenderables, removeRenderables, or dispose.
If the specified renderableIterable is null, this layer will revert to maintaining its internal
collection.
renderableIterable - Iterable to use instead of this layer's internal collection, or null to use this
layer's internal collection.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 | ||||||||