Package gov.nasa.worldwind.symbology
Class TacticalGraphicLabel.OrderedLabel
- java.lang.Object
-
- gov.nasa.worldwind.symbology.TacticalGraphicLabel.OrderedLabel
-
- All Implemented Interfaces:
OrderedRenderable,Renderable
- Enclosing class:
- TacticalGraphicLabel
protected class TacticalGraphicLabel.OrderedLabel extends java.lang.Object implements OrderedRenderable
-
-
Field Summary
Fields Modifier and Type Field Description protected doubleeyeDistanceDistance from the eye point to the label's geographic location.protected Vec4placePointGeographic position in cartesian coordinates.protected AnglerotationRotation applied to the label.protected java.awt.RectanglescreenExtentExtent of the label on the screen.protected Vec4screenPlacePointLocation of the place point projected onto the screen.protected java.awt.PointscreenPointLocation of the upper left corner of the text measured from the lower left corner of the viewport.
-
Constructor Summary
Constructors Modifier Constructor Description protectedOrderedLabel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoDrawOrderedRenderable(DrawContext dc, PickSupport pickCandidates)protected voiddoDrawText(TextRenderer textRenderer)doublegetDistanceFromEye()Returns the ordered renderable's distance from the current view's eye point.protected java.awt.FontgetFont()LayergetPickLayer()protected booleanisDrawInterior()booleanisEnableBatchPicking()booleanisEnableBatchRendering()voidpick(DrawContext dc, java.awt.Point pickPoint)Executes a pick of the ordered renderable.voidrender(DrawContext dc)Causes thisRenderableto render itself using the provided draw context.
-
-
-
Field Detail
-
placePoint
protected Vec4 placePoint
Geographic position in cartesian coordinates.
-
screenPlacePoint
protected Vec4 screenPlacePoint
Location of the place point projected onto the screen.
-
screenPoint
protected java.awt.Point screenPoint
Location of the upper left corner of the text measured from the lower left corner of the viewport. This point in OGL coordinates.
-
rotation
protected Angle rotation
Rotation applied to the label. This is computed each frame based on the orientation position.
-
screenExtent
protected java.awt.Rectangle screenExtent
Extent of the label on the screen.
-
eyeDistance
protected double eyeDistance
Distance from the eye point to the label's geographic location.
-
-
Method Detail
-
getDistanceFromEye
public double getDistanceFromEye()
Description copied from interface:OrderedRenderableReturns 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:
getDistanceFromEyein interfaceOrderedRenderable- Returns:
- the distance of the ordered renderable from the current view's eye point.
-
pick
public void pick(DrawContext dc, java.awt.Point pickPoint)
Description copied from interface:OrderedRenderableExecutes a pick of the ordered renderable.- Specified by:
pickin interfaceOrderedRenderable- Parameters:
dc- the current draw context.pickPoint- the pick point.
-
render
public void render(DrawContext dc)
Description copied from interface:RenderableCauses thisRenderableto render itself using the provided draw context.- Specified by:
renderin interfaceRenderable- Parameters:
dc- theDrawContextto be used- See Also:
DrawContext
-
isEnableBatchRendering
public boolean isEnableBatchRendering()
-
isEnableBatchPicking
public boolean isEnableBatchPicking()
-
getPickLayer
public Layer getPickLayer()
-
doDrawOrderedRenderable
protected void doDrawOrderedRenderable(DrawContext dc, PickSupport pickCandidates)
-
getFont
protected java.awt.Font getFont()
-
isDrawInterior
protected boolean isDrawInterior()
-
doDrawText
protected void doDrawText(TextRenderer textRenderer)
-
-