NASA World Wind

gov.nasa.worldwind.terrain
Interface Tessellator

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

public interface Tessellator
extends WWObject


Method Summary
 long getUpdateFrequency()
          Indicates the maximum amount of time that may elapse between re-tessellation.
 boolean isMakeTileSkirts()
          Indicates whether the tessellator creates "skirts" around the tiles in order to hide gaps between adjacent tiles with differing tessellations.
 void setMakeTileSkirts(boolean makeTileSkirts)
          Specifies whether the tessellator creates "skirts" around the tiles in order to hide gaps between adjacent tiles with differing tessellations.
 void setUpdateFrequency(long updateFrequency)
          Indicates the maximum amount of time that may elapse between re-tessellation.
 SectorGeometryList tessellate(DrawContext dc)
          Tessellate a globe for the currently visible region.
 
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

getUpdateFrequency

long getUpdateFrequency()
Indicates the maximum amount of time that may elapse between re-tessellation. Re-tessellation is performed to synchronize the terrain's resolution into with the current viewing state and availability of elevations.

Returns:
the update frequency, in milliseconds.

isMakeTileSkirts

boolean isMakeTileSkirts()
Indicates whether the tessellator creates "skirts" around the tiles in order to hide gaps between adjacent tiles with differing tessellations.

Returns:
true if skirts are created, otherwise false.

setMakeTileSkirts

void setMakeTileSkirts(boolean makeTileSkirts)
Specifies whether the tessellator creates "skirts" around the tiles in order to hide gaps between adjacent tiles with differing tessellations.

Parameters:
makeTileSkirts - true if skirts are created, otherwise false.

setUpdateFrequency

void setUpdateFrequency(long updateFrequency)
Indicates the maximum amount of time that may elapse between re-tessellation. Re-tessellation is performed to synchronize the terrain's resolution into with the current viewing state and availability of elevations.

Parameters:
updateFrequency - the update frequency, in milliseconds.

tessellate

SectorGeometryList tessellate(DrawContext dc)
Tessellate a globe for the currently visible region.

Parameters:
dc - the current draw context.
Returns:
the tessellation, or null if the tessellation failed or the draw context identifies no visible region.
Throws:
IllegalStateException - if the globe has no tessellator and a default tessellator cannot be created.

NASA World Wind