public class BasicFlyView extends BasicView
Note that the pitch angle is defined as normal to the ground plane, not parallel as in most body axis representations. This is to be consistent with the definition of pitch within WorldWind. Applications will need to correct for pitch values by adding 90 degrees when commanding pitch (i.e. to get a horizontal view, enter 90 degrees pitch. To get straight down, enter 0 degrees).
Modifier and Type | Field and Description |
---|---|
protected static double |
DEFAULT_MAX_ELEVATION |
protected static Angle |
DEFAULT_MAX_PITCH |
protected static double |
DEFAULT_MIN_ELEVATION |
protected static Angle |
DEFAULT_MIN_PITCH |
COLLISION_NUM_ITERATIONS, COLLISION_THRESHOLD, dc, DEFAULT_DEPTH_RESOLUTION, detectCollisions, eyePosition, farClipDistance, fieldOfView, frustum, globe, hadCollisions, heading, horizonDistance, lastEyePoint, lastEyePosition, lastForwardVector, lastFrustumInModelCoords, lastUpVector, MINIMUM_FAR_DISTANCE, MINIMUM_NEAR_DISTANCE, modelview, modelviewInv, nearClipDistance, pitch, projection, roll, viewInputHandler, viewLimits, viewport, viewStateID
VIEW_STOPPED
Constructor and Description |
---|
BasicFlyView() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterDoApply() |
protected void |
doApply(DrawContext dc) |
Matrix |
getModelViewMatrix(Position eyePosition,
Position centerPosition) |
ViewUtil.ViewState |
getViewState(Position eyePosition,
Position centerPosition) |
protected void |
loadConfigurationValues() |
void |
setEyePosition(Position eyePosition)
Sets the geographic position of the eye.
|
void |
setHeading(Angle heading)
Sets the heading of the view.
|
void |
setPitch(Angle pitch)
Sets the pitch of the view.
|
void |
setViewPropertyLimits(ViewPropertyLimits limits) |
protected void |
setViewState(ViewUtil.ViewState viewState) |
addAnimator, apply, computeEyePositionFromModelview, computeFarClipDistance, computeFarDistance, computeHorizonDistance, computeHorizonDistance, computeNearClipDistance, computeNearDistance, computePixelSizeAtDistance, computePositionFromScreenPoint, computeRayFromScreenPoint, copyViewState, doGetRestorableState, doRestoreState, getCenterPoint, getCenterPosition, getCurrentEyePoint, getCurrentEyePosition, getCurrentForwardVector, getDC, getEyePoint, getEyePosition, getFarClipDistance, getFieldOfView, getForwardVector, getFrustum, getFrustumInModelCoordinates, getGlobe, getHeading, getHorizonDistance, getModelviewMatrix, getNearClipDistance, getPitch, getProjectionMatrix, getRestorableState, getRoll, getUpVector, getViewInputHandler, getViewport, getViewPropertyLimits, getViewStateID, goTo, hadCollisions, isAnimating, isDetectCollisions, loadGLViewState, popReferenceCenter, project, project, pushReferenceCenter, restoreState, setDetectCollisions, setFarClipDistance, setFieldOfView, setGlobe, setNearClipDistance, setOrientation, setReferenceCenter, setRoll, setViewInputHandler, stopAnimations, stopMovement, unProject, unProject, updateModelViewStateID
onMessage, propertyChange
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
onMessage
protected static final double DEFAULT_MAX_ELEVATION
protected static final Angle DEFAULT_MAX_PITCH
protected static final double DEFAULT_MIN_ELEVATION
protected static final Angle DEFAULT_MIN_PITCH
protected void afterDoApply()
protected void doApply(DrawContext dc)
public ViewUtil.ViewState getViewState(Position eyePosition, Position centerPosition)
protected void loadConfigurationValues()
public void setEyePosition(Position eyePosition)
View
setEyePosition
in interface View
setEyePosition
in class BasicView
eyePosition
- the eye position.public void setHeading(Angle heading)
View
setHeading
in interface View
setHeading
in class BasicView
heading
- The direction to aim the view in degreespublic void setPitch(Angle pitch)
View
public void setViewPropertyLimits(ViewPropertyLimits limits)
protected void setViewState(ViewUtil.ViewState viewState)
setViewState
in class BasicView