gov.nasa.worldwind.view
Class ViewUtil
java.lang.Object
gov.nasa.worldwind.view.ViewUtil
public class ViewUtil
- extends java.lang.Object
|
Method Summary |
static double |
computeElevationAboveSurface(DrawContext dc,
Position position)
|
static Angle |
computeHeading(Matrix headingPitchZoomTransform)
|
static double |
computeHorizonDistance(Globe globe,
double elevation)
|
static ViewUtil.ViewState |
computeModelCoordinates(Globe globe,
Matrix modelTransform,
Vec4 centerPoint,
Vec4 eyePoint)
|
static Matrix |
computeModelViewMatrix(Globe globe,
Vec4 eyePoint,
Vec4 centerPoint,
Vec4 up)
|
static Angle |
computePitch(Matrix transform)
|
static double |
computePixelSizeAtDistance(double distance,
Angle fieldOfView,
java.awt.Rectangle viewport)
|
protected static Position |
computePosition(Globe globe,
Matrix transform)
|
protected static Matrix |
computePositionTransform(Globe globe,
Position center)
|
static Line |
computeRayFromScreenPoint(View view,
double x,
double y,
Matrix modelview,
Matrix projection,
java.awt.Rectangle viewport)
|
protected static Angle |
computeRoll(Matrix transform)
|
static Matrix |
computeTransformMatrix(Globe globe,
Position position,
Angle heading,
Angle pitch,
Angle roll)
|
static ViewUtil.ViewState |
computeViewState(Globe globe,
Vec4 eyePoint,
Vec4 centerPoint,
Vec4 up)
|
static PositionAnimator |
createEyePositionAnimator(View view,
long timeToMove,
Position begin,
Position end)
|
static AngleAnimator |
createHeadingAnimator(View view,
Angle begin,
Angle end)
|
static CompoundAnimator |
createHeadingPitchAnimator(View view,
Angle beginHeading,
Angle endHeading,
Angle beginPitch,
Angle endPitch)
|
static AngleAnimator |
createPitchAnimator(View view,
Angle begin,
Angle end)
|
static Vec4 |
getUpVector(Globe globe,
Vec4 eyePoint,
Vec4 lookAtPoint)
|
static Position |
normalizedEyePosition(Position unnormalizedPosition)
|
static Angle |
normalizedHeading(Angle unnormalizedHeading)
|
static Angle |
normalizedPitch(Angle unnormalizedPitch)
|
static Angle |
normalizedRoll(Angle unnormalizedRoll)
|
static java.awt.Point |
subtract(java.awt.Point a,
java.awt.Point b)
|
static boolean |
validateViewState(ViewUtil.ViewState viewState)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewUtil
public ViewUtil()
computeElevationAboveSurface
public static double computeElevationAboveSurface(DrawContext dc,
Position position)
computeHeading
public static Angle computeHeading(Matrix headingPitchZoomTransform)
computeHorizonDistance
public static double computeHorizonDistance(Globe globe,
double elevation)
computeModelCoordinates
public static ViewUtil.ViewState computeModelCoordinates(Globe globe,
Matrix modelTransform,
Vec4 centerPoint,
Vec4 eyePoint)
computeModelViewMatrix
public static Matrix computeModelViewMatrix(Globe globe,
Vec4 eyePoint,
Vec4 centerPoint,
Vec4 up)
computePitch
public static Angle computePitch(Matrix transform)
computePixelSizeAtDistance
public static double computePixelSizeAtDistance(double distance,
Angle fieldOfView,
java.awt.Rectangle viewport)
computePosition
protected static Position computePosition(Globe globe,
Matrix transform)
computePositionTransform
protected static Matrix computePositionTransform(Globe globe,
Position center)
computeRayFromScreenPoint
public static Line computeRayFromScreenPoint(View view,
double x,
double y,
Matrix modelview,
Matrix projection,
java.awt.Rectangle viewport)
computeRoll
protected static Angle computeRoll(Matrix transform)
computeTransformMatrix
public static Matrix computeTransformMatrix(Globe globe,
Position position,
Angle heading,
Angle pitch,
Angle roll)
computeViewState
public static ViewUtil.ViewState computeViewState(Globe globe,
Vec4 eyePoint,
Vec4 centerPoint,
Vec4 up)
createEyePositionAnimator
public static PositionAnimator createEyePositionAnimator(View view,
long timeToMove,
Position begin,
Position end)
createHeadingAnimator
public static AngleAnimator createHeadingAnimator(View view,
Angle begin,
Angle end)
createHeadingPitchAnimator
public static CompoundAnimator createHeadingPitchAnimator(View view,
Angle beginHeading,
Angle endHeading,
Angle beginPitch,
Angle endPitch)
createPitchAnimator
public static AngleAnimator createPitchAnimator(View view,
Angle begin,
Angle end)
getUpVector
public static Vec4 getUpVector(Globe globe,
Vec4 eyePoint,
Vec4 lookAtPoint)
normalizedEyePosition
public static Position normalizedEyePosition(Position unnormalizedPosition)
normalizedHeading
public static Angle normalizedHeading(Angle unnormalizedHeading)
normalizedPitch
public static Angle normalizedPitch(Angle unnormalizedPitch)
normalizedRoll
public static Angle normalizedRoll(Angle unnormalizedRoll)
subtract
public static java.awt.Point subtract(java.awt.Point a,
java.awt.Point b)
validateViewState
public static boolean validateViewState(ViewUtil.ViewState viewState)