public interface SurfaceRenderable extends Renderable
SurfaceShape
. SurfaceRenderable extends the Renderable interface by adding an interface
for determining the geographic region that bounds the renderable, and an interface for determining when the
renderable has changed.Modifier and Type | Method and Description |
---|---|
java.util.List<Sector> |
getSectors(DrawContext dc)
Returns a list of sectors indicating the geographic region that bounds this renderable for the specified draw
context.
|
java.lang.Object |
getStateKey(DrawContext dc)
Returns an object that uniquely identifies this renderable's state for the specified draw context.
|
render
java.util.List<Sector> getSectors(DrawContext dc)
The returned list typically contains one sector that bounds this renderable in geographic coordinates. When this renderable spans the anti-meridian - the +/- 180 degree meridian - the returned list contains two sectors, one on either side of the anti-meridian.
dc
- the draw context for which to determine this renderable's geographic bounds.java.lang.Object getStateKey(DrawContext dc)
Callers can perform an equality test on two state keys using Object.equals(Object)
in order to determine
whether or not a renderable has changed. The returned object is guaranteed to be globally unique with respect to
other SurfaceRenderable state keys; an equality test with a state key from another renderable always returns
false.
dc
- the draw context for which to determine this renderable's current state.