NASA World Wind

gov.nasa.worldwind
Interface Model

All Superinterfaces:
AVList, EventListener, MessageListener, PropertyChangeListener, WWObject
All Known Implementing Classes:
BasicModel

public interface Model
extends WWObject

Aggregates a globe and a set of layers. Through the globe it also indirectly includes the elevation model and the surface geometry tessellator. A default model is defined in worldwind.xml or its application-specified alternate.


Method Summary
 Extent getExtent()
          Returns the bounding sphere in Cartesian world coordinates of the model.
 Globe getGlobe()
          Indicates the globe in this model.
 LayerList getLayers()
          Indicates the layers associated with this model.
 boolean isShowTessellationBoundingVolumes()
          Indicates whether the bounding volumes of the tessellated globe's surface geometry should be displayed.
 boolean isShowWireframeExterior()
          Indicates whether the globe surface's exterior geometry is to be drawn.
 boolean isShowWireframeInterior()
          Indicates whether the globe surface's interior geometry is to be drawn.
 void setGlobe(Globe globe)
          Specifies the model's globe.
 void setLayers(LayerList layers)
          Specifies the model's layers.
 void setShowTessellationBoundingVolumes(boolean showTileBoundingVolumes)
          Specifies whether the bounding volumes of the globes tessellated surface geometry is to be drawn.
 void setShowWireframeExterior(boolean show)
          Specifies whether to display as wireframe the exterior geometry of the tessellated globe surface.
 void setShowWireframeInterior(boolean show)
          Specifies whether to display as wireframe the interior geometry of the tessellated globe surface.
 
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
 

Method Detail

getExtent

Extent getExtent()
Returns the bounding sphere in Cartesian world coordinates of the model.

Returns:
the model's bounding sphere in Cartesian coordinates, or null if the extent cannot be determined.

getGlobe

Globe getGlobe()
Indicates the globe in this model.

Returns:
The globe associated with this model.

getLayers

LayerList getLayers()
Indicates the layers associated with this model.

Returns:
List of layers in this model.

isShowTessellationBoundingVolumes

boolean isShowTessellationBoundingVolumes()
Indicates whether the bounding volumes of the tessellated globe's surface geometry should be displayed.

Returns:
true if the bounding volumes are to be drawn, otherwise false.

isShowWireframeExterior

boolean isShowWireframeExterior()
Indicates whether the globe surface's exterior geometry is to be drawn.

Returns:
true if it is to be drawn, otherwise false.

isShowWireframeInterior

boolean isShowWireframeInterior()
Indicates whether the globe surface's interior geometry is to be drawn.

Returns:
true if it is to be drawn, otherwise false.

setGlobe

void setGlobe(Globe globe)
Specifies the model's globe.

Parameters:
globe - the model's new globe. May be null, in which case the current globe will be detached from the model.

setLayers

void setLayers(LayerList layers)
Specifies the model's layers.

Parameters:
layers - the model's new layers. May be null, in which case the current layers will be detached from the model.

setShowTessellationBoundingVolumes

void setShowTessellationBoundingVolumes(boolean showTileBoundingVolumes)
Specifies whether the bounding volumes of the globes tessellated surface geometry is to be drawn.

Parameters:
showTileBoundingVolumes - true if the bounding volumes should be drawn, false, the default, if not.

setShowWireframeExterior

void setShowWireframeExterior(boolean show)
Specifies whether to display as wireframe the exterior geometry of the tessellated globe surface.

Parameters:
show - true causes the geometry to be shown, false, the default, does not.

setShowWireframeInterior

void setShowWireframeInterior(boolean show)
Specifies whether to display as wireframe the interior geometry of the tessellated globe surface.

Parameters:
show - true causes the geometry to be shown, false, the default, does not.

NASA World Wind