Package gov.nasa.worldwind.render
Interface SurfaceRenderable
-
- All Superinterfaces:
Renderable
- All Known Subinterfaces:
SurfaceObject
,SurfaceShape
- All Known Implementing Classes:
AbstractSurfaceObject
,AbstractSurfaceRenderable
,AbstractSurfaceShape
,AnalyticSurface.AnalyticSurfaceObject
,AnalyticSurface.ClampToGroundSurface
,AnalyticSurface.ShadowSurface
,DirectedSurfacePolyline
,KMLSurfacePolygonImpl
,SectorSelector.RegionShape
,SurfaceBox
,SurfaceCircle
,SurfaceEllipse
,SurfaceIcon
,SurfaceIcons
,SurfaceMultiPolygon
,SurfacePolygon
,SurfacePolygons
,SurfacePolyline
,SurfacePolylines
,SurfaceQuad
,SurfaceSector
,SurfaceSquare
,SurfaceText
public interface SurfaceRenderable extends Renderable
Common interface for renderables that are drawn on the Globe's terrain surface, such asSurfaceShape
. 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface gov.nasa.worldwind.render.Renderable
render
-
-
-
-
Method Detail
-
getSectors
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.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.
- Parameters:
dc
- the draw context for which to determine this renderable's geographic bounds.- Returns:
- a list of one or two sectors that bound this renderable.
-
getStateKey
java.lang.Object getStateKey(DrawContext dc)
Returns an object that uniquely identifies this renderable's state for the specified draw context.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.- Parameters:
dc
- the draw context for which to determine this renderable's current state.- Returns:
- an object representing this renderable's current state.
-
-