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 double
eyeDistance
Used to order the balloon as an ordered renderable.protected AbstractBrowserBalloon.FrameGeometryInfo
frameInfo
The balloon geometry vertices passed to OpenGL.protected long
frameTimeStamp
Identifies the frame used to calculate the balloon's active attributes and points.protected long
geomTimeStamp
Identifies the frame used to calculate the balloon's geometry.protected java.awt.Rectangle
screenExtent
The extent of the balloon's geometry in the viewport (on the screen).protected java.awt.Rectangle
screenPickExtent
The extend of the balloon's pickable geometry in the viewport (on the screen).protected java.awt.Rectangle
screenRect
The location and size of the balloon's content frame in the viewport (on the screen).protected java.awt.Rectangle
webViewRect
The location and size of the WebView's content frame in the viewport (on the screen).
-
Constructor Summary
Constructors Modifier Constructor Description protected
OrderedBrowserBalloon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
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: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.
-
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.
-
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
-
-