Class BasicOrbitViewLimits

    • Field Detail

      • centerLocationLimits

        protected Sector centerLocationLimits
      • minCenterElevation

        protected double minCenterElevation
      • maxCenterElevation

        protected double maxCenterElevation
      • minZoom

        protected double minZoom
      • maxZoom

        protected double maxZoom
    • Constructor Detail

      • BasicOrbitViewLimits

        public BasicOrbitViewLimits()
        Creates a new BasicOrbitViewLimits with default limits.
    • Method Detail

      • getCenterLocationLimits

        public Sector getCenterLocationLimits()
        Returns the Sector which limits the orbit view center latitude and longitude.
        Specified by:
        getCenterLocationLimits in interface OrbitViewLimits
        Returns:
        Sector which limits the center latitude and longitude.
      • setCenterLocationLimits

        public void setCenterLocationLimits​(Sector sector)
        Sets the Sector which will limit the orbit view center latitude and longitude.
        Specified by:
        setCenterLocationLimits in interface OrbitViewLimits
        Parameters:
        sector - Sector which will limit the center latitude and longitude.
      • getCenterElevationLimits

        public double[] getCenterElevationLimits()
        Returns the minimum and maximum values for the orbit view center elevation.
        Specified by:
        getCenterElevationLimits in interface OrbitViewLimits
        Returns:
        Minimum and maximum allowable values for center elevation.
      • setCenterElevationLimits

        public void setCenterElevationLimits​(double minValue,
                                             double maxValue)
        Sets the minimum and maximum values which will limit the orbit view center elevation.
        Specified by:
        setCenterElevationLimits in interface OrbitViewLimits
        Parameters:
        minValue - the minimum allowable value for center elevation.
        maxValue - the maximum allowable value for center elevation.
      • getZoomLimits

        public double[] getZoomLimits()
        Returns the minimum and maximum values for the orbit view zoom property.
        Specified by:
        getZoomLimits in interface OrbitViewLimits
        Returns:
        Minimum and maximum allowable values for zoom.
      • setZoomLimits

        public void setZoomLimits​(double minValue,
                                  double maxValue)
        Sets the minimum and maximum values which will limit the orbit view zoom property.
        Specified by:
        setZoomLimits in interface OrbitViewLimits
        Parameters:
        minValue - the mimimum allowable value for zoom.
        maxValue - the maximum allowable value for zoom.
      • limitCenterPosition

        public Position limitCenterPosition​(View view,
                                            Position position)
        Returns a position clamped to the center location limits and center elevation limits specified by this limit object. This method does not modify the specified view's properties, but may use the view as a context for determining how to apply the limits.
        Specified by:
        limitCenterPosition in interface OrbitViewLimits
        Parameters:
        view - the view associated with the center position and the property limits.
        position - position to clamp to the allowed range.
        Returns:
        The clamped position.
      • limitZoom

        public double limitZoom​(View view,
                                double value)
        Returns a distance clamped to the zoom limits specified by this limit object. This method does not modify the specified view's properties, but may use the view as a context for determining how to apply the limits.
        Specified by:
        limitZoom in interface OrbitViewLimits
        Parameters:
        view - the view associated with the zoom distance and the property limits.
        value - zoom distance to clamp to the allowed range.
        Returns:
        The clamped value.