Package gov.nasa.worldwind.render
Class BasicAnnotationRenderer.OrderedAnnotation
- java.lang.Object
-
- gov.nasa.worldwind.render.BasicAnnotationRenderer.OrderedAnnotation
-
- All Implemented Interfaces:
OrderedRenderable
,Renderable
- Enclosing class:
- BasicAnnotationRenderer
protected class BasicAnnotationRenderer.OrderedAnnotation extends java.lang.Object implements OrderedRenderable
-
-
Field Summary
Fields Modifier and Type Field Description protected Annotation
annotation
protected double
eyeDistance
protected Layer
layer
-
Constructor Summary
Constructors Constructor Description OrderedAnnotation(Annotation annotation, double eyeDistance)
OrderedAnnotation(Annotation annotation, Layer layer, double eyeDistance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRender(DrawContext dc, BasicAnnotationRenderer.OrderedAnnotation oa)
double
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point.void
pick(DrawContext dc, java.awt.Point pickPoint)
Executes a pick of the ordered renderable.void
render(DrawContext dc)
Causes thisRenderable
to render itself using the provided draw context.
-
-
-
Field Detail
-
annotation
protected Annotation annotation
-
eyeDistance
protected double eyeDistance
-
layer
protected Layer layer
-
-
Constructor Detail
-
OrderedAnnotation
public OrderedAnnotation(Annotation annotation, double eyeDistance)
-
OrderedAnnotation
public OrderedAnnotation(Annotation annotation, Layer layer, double eyeDistance)
-
-
Method Detail
-
getDistanceFromEye
public double getDistanceFromEye()
Description copied from interface:OrderedRenderable
Returns the ordered renderable's distance from the current view's eye point. Intended to be used only to sort a list of ordered renderables according to eye distance, and only during frame generation when a view is active.- Specified by:
getDistanceFromEye
in interfaceOrderedRenderable
- Returns:
- the distance of the ordered renderable from the current view's eye point.
-
render
public void render(DrawContext dc)
Description copied from interface:Renderable
Causes thisRenderable
to render itself using the provided draw context.- Specified by:
render
in interfaceRenderable
- Parameters:
dc
- theDrawContext
to be used- See Also:
DrawContext
-
pick
public void pick(DrawContext dc, java.awt.Point pickPoint)
Description copied from interface:OrderedRenderable
Executes a pick of the ordered renderable.- Specified by:
pick
in interfaceOrderedRenderable
- Parameters:
dc
- the current draw context.pickPoint
- the pick point.
-
doRender
protected void doRender(DrawContext dc, BasicAnnotationRenderer.OrderedAnnotation oa)
-
-