gov.nasa.worldwind.render
Class SegmentPlaneRenderer.OrderedText
java.lang.Object
gov.nasa.worldwind.render.SegmentPlaneRenderer.OrderedText
- All Implemented Interfaces:
- Pickable, OrderedRenderable, Renderable
- Enclosing class:
- SegmentPlaneRenderer
protected static class SegmentPlaneRenderer.OrderedText
- extends Object
- implements OrderedRenderable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attributes
protected SegmentPlaneAttributes.LabelAttributes attributes
distanceFromEye
protected final double distanceFromEye
position
protected final Position position
segmentPlane
protected SegmentPlane segmentPlane
textRenderer
protected MultiLineTextRenderer textRenderer
values
protected AVList values
SegmentPlaneRenderer.OrderedText
public SegmentPlaneRenderer.OrderedText(SegmentPlane segmentPlane,
Position position,
double distanceFromEye,
AVList values,
SegmentPlaneAttributes.LabelAttributes attributes,
MultiLineTextRenderer textRenderer)
begin
protected void begin(DrawContext dc,
OGLStackHandler ogsh)
draw
protected void draw(DrawContext dc)
drawText
protected void drawText(String text,
Vec4 screenPoint,
SegmentPlaneAttributes.LabelAttributes attributes,
MultiLineTextRenderer mltr)
end
protected void end(DrawContext dc,
OGLStackHandler ogsh)
getDistanceFromEye
public double getDistanceFromEye()
- Specified by:
getDistanceFromEye in interface OrderedRenderable
getScreenPoint
public Vec4 getScreenPoint(DrawContext dc)
getText
public String getText()
pick
public void pick(DrawContext dc,
Point pickPoint)
- Specified by:
pick in interface Pickable
render
public void render(DrawContext dc)
- Description copied from interface:
Renderable
- Causes this
Renderable to render itself using the DrawContext provided. The
DrawContext provides the elevation model, openGl instance, globe and other information required for
drawing. It is recommended that the DrawContext is non-null as most implementations do not support
null DrawContexts.
- Specified by:
render in interface Renderable
- Parameters:
dc - the DrawContext to be used- See Also:
DrawContext