public class BasicModel extends WWObjectImpl implements Model
worldwind.xml
or its application-specified alternate.Constructor and Description |
---|
BasicModel() |
BasicModel(Globe globe,
LayerList layers) |
Modifier and Type | Method and Description |
---|---|
protected LayerList |
createLayersFromElement(org.w3c.dom.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.
|
propertyChange
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected LayerList createLayersFromElement(org.w3c.dom.Element element)
element
- the configuration description.public Extent getExtent()
public Globe getGlobe()
public LayerList getLayers()
public boolean isShowTessellationBoundingVolumes()
isShowTessellationBoundingVolumes
in interface Model
public boolean isShowWireframeExterior()
isShowWireframeExterior
in interface Model
public boolean isShowWireframeInterior()
isShowWireframeInterior
in interface Model
public void onMessage(Message msg)
onMessage
in interface MessageListener
onMessage
in class WWObjectImpl
msg
- The message that was received.public void setGlobe(Globe globe)
public void setLayers(LayerList layers)
public void setShowTessellationBoundingVolumes(boolean showTessellationBoundingVolumes)
setShowTessellationBoundingVolumes
in interface Model
showTessellationBoundingVolumes
- true if the bounding volumes should be drawn, false, the default, if not.public void setShowWireframeExterior(boolean show)
setShowWireframeExterior
in interface Model
show
- true causes the geometry to be shown, false, the default, does not.public void setShowWireframeInterior(boolean show)
setShowWireframeInterior
in interface Model
show
- true causes the geometry to be shown, false, the default, does not.