|
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.BasicModel
public class BasicModel
This class aggregates the objects making up a model: the globe and 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.
| Constructor Summary | |
|---|---|
BasicModel()
|
|
BasicModel(Globe globe,
LayerList layers)
|
|
| Method Summary | |
|---|---|
protected LayerList |
createLayersFromElement(Element element)
Create the layer list from an XML configuration element. |
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 |
onMessage(Message msg)
Empty implementation of MessageListener. |
void |
setGlobe(Globe globe)
Specifies the model's globe. |
void |
setLayers(LayerList layers)
Specifies the model's layers. |
void |
setShowTessellationBoundingVolumes(boolean showTessellationBoundingVolumes)
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 class gov.nasa.worldwind.WWObjectImpl |
|---|
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, toString, 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 BasicModel()
public BasicModel(Globe globe,
LayerList layers)
| Method Detail |
|---|
protected LayerList createLayersFromElement(Element element)
element - the configuration description.
public Extent getExtent()
getExtent in interface Modelpublic Globe getGlobe()
getGlobe in interface Modelpublic LayerList getLayers()
getLayers in interface Modelpublic boolean isShowTessellationBoundingVolumes()
isShowTessellationBoundingVolumes in interface Modelpublic boolean isShowWireframeExterior()
isShowWireframeExterior in interface Modelpublic boolean isShowWireframeInterior()
isShowWireframeInterior in interface Modelpublic void onMessage(Message msg)
onMessage in interface MessageListeneronMessage in class WWObjectImplmsg - The message that was received.public void setGlobe(Globe globe)
setGlobe in interface Modelglobe - the model's new globe. May be null, in which case the current globe will be detached from the
model.public void setLayers(LayerList layers)
setLayers in interface Modellayers - the model's new layers. May be null, in which case the current layers will be detached from the
model.public void setShowTessellationBoundingVolumes(boolean showTessellationBoundingVolumes)
setShowTessellationBoundingVolumes in interface ModelshowTessellationBoundingVolumes - true if the bounding volumes should be drawn, false, the default, if not.public void setShowWireframeExterior(boolean show)
setShowWireframeExterior in interface Modelshow - true causes the geometry to be shown, false, the default, does not.public void setShowWireframeInterior(boolean show)
setShowWireframeInterior in interface Modelshow - true causes the geometry to be shown, false, the default, does not.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||