Class BasicFlyView

  • All Implemented Interfaces:
    AVList, MessageListener, Restorable, View, WWObject, java.beans.PropertyChangeListener, java.util.EventListener

    public class BasicFlyView
    extends BasicView
    This is a basic view that implements a yaw-pitch-roll model that can be applied to first-person style view applications (such as flight simulation).

    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).

    • Field Detail

      • DEFAULT_MIN_ELEVATION

        protected static final double DEFAULT_MIN_ELEVATION
        See Also:
        Constant Field Values
      • DEFAULT_MAX_ELEVATION

        protected static final double DEFAULT_MAX_ELEVATION
        See Also:
        Constant Field Values
      • DEFAULT_MIN_PITCH

        protected static final Angle DEFAULT_MIN_PITCH
      • DEFAULT_MAX_PITCH

        protected static final Angle DEFAULT_MAX_PITCH
    • Constructor Detail

      • BasicFlyView

        public BasicFlyView()
    • Method Detail

      • loadConfigurationValues

        protected void loadConfigurationValues()
      • setEyePosition

        public void setEyePosition​(Position eyePosition)
        Description copied from interface: View
        Sets the geographic position of the eye.
        Specified by:
        setEyePosition in interface View
        Overrides:
        setEyePosition in class BasicView
        Parameters:
        eyePosition - the eye position.
      • afterDoApply

        protected void afterDoApply()
      • setHeading

        public void setHeading​(Angle heading)
        Description copied from interface: View
        Sets the heading of the view. The implementation may interpret this command in whatever way it chooses.
        Specified by:
        setHeading in interface View
        Overrides:
        setHeading in class BasicView
        Parameters:
        heading - The direction to aim the view in degrees
      • setPitch

        public void setPitch​(Angle pitch)
        Description copied from interface: View
        Sets the pitch of the view. The implementation may interpret pitch as it chooses
        Specified by:
        setPitch in interface View
        Overrides:
        setPitch in class BasicView
        Parameters:
        pitch - The pitch of the view.
      • setViewPropertyLimits

        public void setViewPropertyLimits​(ViewPropertyLimits limits)