Interface OrbitView

    • Method Detail

      • isDetectCollisions

        boolean isDetectCollisions()
        Returns whether the this View will detect collisions with other objects, such as the surface geometry. If true, implementations may also automatically resolve any detected collisions.
        Returns:
        true If this View will detect collisions; false otherwise.
      • setDetectCollisions

        void setDetectCollisions​(boolean detectCollisions)
        Sets whether or not this View will detect collisions with other objects, such as the surface geometry. If detectCollisions is true, implementations may also automatically resolve any detected collisions.
        Parameters:
        detectCollisions - If true, this View will resolve collisions; otherwise this View will ignore collisions.
      • hadCollisions

        boolean hadCollisions()
        Returns whether or not a collision has occurred since the last call to hadCollisions. If isDetectCollisions() is false, collisions will not be detected and hadCollisions will always return false.
        Returns:
        true if a collision has occurred since the last call; false otherwise.
      • getCenterPosition

        Position getCenterPosition()
        Get the center position of the OrbitView. The center position is used as the point about which the heading and pitch rotate. It is defined by the intersection of a ray from the eye position through the center of the viewport with the surface of the globe.
        Returns:
        the center position.
      • setCenterPosition

        void setCenterPosition​(Position center)
        Sets the center position of the OrbitView. The center position is used as the point about which the heading and pitch rotate. It is defined by the intersection of a ray from the eye position through the center of the viewport with the surface of the globe.
        Parameters:
        center - The desired center position.
      • getZoom

        double getZoom()
        Get the zoom value for the OrbitView. The zoom value is the distance between the eye position and the center position.
        Returns:
        the zoom value
      • setZoom

        void setZoom​(double zoom)
        Set the zoom value for the OrbitVeiw. The zoom value is the distance between the eye position and the center position.
        Parameters:
        zoom - The desired zoom value.
      • getOrbitViewLimits

        OrbitViewLimits getOrbitViewLimits()
        Get the limits for this OrbitView. OrbitView has state values that augment the state values of a View. Specifically, zoom and center position. OrbitViewLimits enables the limiting of those values in addition the the derived BasicViewPropertyLimits state.
        Returns:
        The active view limits.
      • setOrbitViewLimits

        void setOrbitViewLimits​(OrbitViewLimits limits)
        Set the limits for this OrbitView. OrbitView has state values that augment the state values of a View. Specifically, zoom and center position. OrbitViewLimits enables the limiting of those values in addition the the derived BasicViewPropertyLimits state.
        Parameters:
        limits - The desired limits.
      • canFocusOnViewportCenter

        boolean canFocusOnViewportCenter()
        Implementations are expected to determines if the OrbitView can set the center of rotation for heading and pitch changes to the viewport center intersection with the globe surface via a call to focusOnViewportCenter().
        Returns:
        true if the OrbitView implementation can focus on the viewport center.
      • focusOnViewportCenter

        void focusOnViewportCenter()
        Implementations are expected to set the center of rotation for heading and pitch at the intersection of a ray originates at the eye, and passes through the center of the viewport with the globe surface.
      • stopMovementOnCenter

        void stopMovementOnCenter()
        Stop any changes to the center position.