Package gov.nasa.worldwind.render
Class AbstractBrowserBalloon.OrderedBrowserBalloon
- java.lang.Object
-
- gov.nasa.worldwind.render.AbstractBrowserBalloon.OrderedBrowserBalloon
-
- All Implemented Interfaces:
OrderedRenderable,Renderable
- Direct Known Subclasses:
GlobeBrowserBalloon.OrderedGlobeBrowserBalloon
- Enclosing class:
- gov.nasa.worldwind.render.AbstractBrowserBalloon
protected class AbstractBrowserBalloon.OrderedBrowserBalloon extends java.lang.Object implements OrderedRenderable
-
-
Field Summary
Fields Modifier and Type Field Description protected doubleeyeDistanceUsed to order the balloon as an ordered renderable.protected AbstractBrowserBalloon.FrameGeometryInfoframeInfoThe balloon geometry vertices passed to OpenGL.protected longframeTimeStampIdentifies the frame used to calculate the balloon's active attributes and points.protected longgeomTimeStampIdentifies the frame used to calculate the balloon's geometry.protected java.awt.RectanglescreenExtentThe extent of the balloon's geometry in the viewport (on the screen).protected java.awt.RectanglescreenPickExtentThe extend of the balloon's pickable geometry in the viewport (on the screen).protected java.awt.RectanglescreenRectThe location and size of the balloon's content frame in the viewport (on the screen).protected java.awt.RectanglewebViewRectThe location and size of the WebView's content frame in the viewport (on the screen).
-
Constructor Summary
Constructors Modifier Constructor Description protectedOrderedBrowserBalloon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDistanceFromEye()Returns the ordered renderable's distance from the current view's eye point.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
-
screenRect
protected java.awt.Rectangle screenRect
The location and size of the balloon's content frame in the viewport (on the screen).
-
screenExtent
protected java.awt.Rectangle screenExtent
The extent of the balloon's geometry in the viewport (on the screen).
-
screenPickExtent
protected java.awt.Rectangle screenPickExtent
The extend of the balloon's pickable geometry in the viewport (on the screen). Includes this balloon's outline where it exceeds the screen extent.
-
webViewRect
protected java.awt.Rectangle webViewRect
The location and size of the WebView's content frame in the viewport (on the screen).
-
frameInfo
protected AbstractBrowserBalloon.FrameGeometryInfo frameInfo
The balloon geometry vertices passed to OpenGL.
-
eyeDistance
protected double eyeDistance
Used to order the balloon as an ordered renderable.
-
geomTimeStamp
protected long geomTimeStamp
Identifies the frame used to calculate the balloon's geometry.
-
frameTimeStamp
protected long frameTimeStamp
Identifies the frame used to calculate the balloon's active attributes and points.
-
-
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
-
-