gov.nasa.worldwindx.examples.util
Class ExtentVisibilitySupport.ScreenExtent
java.lang.Object
gov.nasa.worldwindx.examples.util.ExtentVisibilitySupport.ScreenExtent
- Enclosing class:
- ExtentVisibilitySupport
public static class ExtentVisibilitySupport.ScreenExtent
- extends Object
ScreenExtent represents a screen object's enclosing bounding box in screen coordinates, and that object's
reference point in model coordinates. ExtentVisibilitySupport assumes that the relationship between the model
reference point and the screen bounds are predicable: projecting the reference point into screen coordinates
should yield a screen point with a predictable location relative to the screen bounds.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
modelReferencePoint
protected Vec4 modelReferencePoint
screenBounds
protected Rectangle screenBounds
ExtentVisibilitySupport.ScreenExtent
public ExtentVisibilitySupport.ScreenExtent(Vec4 modelReferencePoint,
Rectangle screenBounds)
- Constructs a new ScreenExtent with the specified model coordinate reference point and screen coordinate
bounding box. Either value may be null.
- Parameters:
modelReferencePoint - the model coordinate reference point. A null reference is accepted.screenBounds - the screen coordinate bounding rectangle. A null reference is accepted.
getModelReferencePoint
public Vec4 getModelReferencePoint()
- Returns the model coordinate reference point. This may return null, indicating this ScreenExtent has no model
coordinate reference point.
- Returns:
- the reference point in model coordinates. May be null.
getScreenBounds
public Rectangle getScreenBounds()
- Returns the screen coordinate bounding rectangle. This may return null, indicating the ScreenExtent has no
screen coordinate bounds.
- Returns:
- the bounding rectangle in screen coordinates. May be null.