Package gov.nasa.worldwind.terrain
Interface Tessellator
-
- All Superinterfaces:
AVList
,java.util.EventListener
,MessageListener
,java.beans.PropertyChangeListener
,WWObject
- All Known Implementing Classes:
RectangularTessellator
public interface Tessellator extends WWObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 gov.nasa.worldwind.event.MessageListener
onMessage
-
-
-
-
Method Detail
-
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:
java.lang.IllegalStateException
- if the globe has no tessellator and a default tessellator cannot be created.
-
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.
-
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.
-
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.
-
-