NASA World Wind

gov.nasa.worldwind.view
Class BasicOrbitViewLimits

java.lang.Object
  extended by gov.nasa.worldwind.view.BasicOrbitViewLimits
All Implemented Interfaces:
OrbitViewLimits

public class BasicOrbitViewLimits
extends Object
implements OrbitViewLimits


Field Summary
protected  Sector centerLocationLimits
           
protected  double maxCenterElevation
           
protected  Angle maxHeading
           
protected  Angle maxPitch
           
protected  double maxZoom
           
protected  double minCenterElevation
           
protected  Angle minHeading
           
protected  Angle minPitch
           
protected  double minZoom
           
 
Constructor Summary
BasicOrbitViewLimits()
           
 
Method Summary
static void applyLimits(OrbitView view, OrbitViewLimits viewLimits)
           
 double[] getCenterElevationLimits()
          Returns the minimum and maximum values for the OrbitView center elevation.
 Sector getCenterLocationLimits()
          Returns the Sector which limits the OrbitView center latitude and longitude.
 Angle[] getHeadingLimits()
          Returns the minimum and maximum Angles for the OrbitView heading property.
 Angle[] getPitchLimits()
          Returns the minimum and maximum Angles for the OrbitView pitch property.
 double[] getZoomLimits()
          Returns the minimum and maximum values for the OrbitView zoom property.
static double limitCenterElevation(double value, OrbitViewLimits viewLimits)
           
static LatLon limitCenterLocation(Angle latitude, Angle longitude, OrbitViewLimits viewLimits)
           
static Position limitCenterPosition(Position position, OrbitViewLimits viewLimits)
           
static Angle limitHeading(Angle angle, OrbitViewLimits viewLimits)
           
static Angle limitPitch(Angle angle, OrbitViewLimits viewLimits)
           
static double limitZoom(double value, OrbitViewLimits viewLimits)
           
 void setCenterElevationLimits(double minValue, double maxValue)
          Sets the minimum and maximum values which will limit the OrbitView center elevation.
 void setCenterLocationLimits(Sector sector)
          Sets the Sector which will limit the OrbitView center latitude and longitude.
 void setHeadingLimits(Angle minAngle, Angle maxAngle)
          Sets the minimum and maximum Angles which will limit the OrbitView heading property.
 void setPitchLimits(Angle minAngle, Angle maxAngle)
          Sets the minimum and maximum Angles which will limit the OrbitView pitch property.
 void setZoomLimits(double minValue, double maxValue)
          Sets the minimum and maximum values which will limit the OrbitView zoom property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

centerLocationLimits

protected Sector centerLocationLimits

maxCenterElevation

protected double maxCenterElevation

maxHeading

protected Angle maxHeading

maxPitch

protected Angle maxPitch

maxZoom

protected double maxZoom

minCenterElevation

protected double minCenterElevation

minHeading

protected Angle minHeading

minPitch

protected Angle minPitch

minZoom

protected double minZoom
Constructor Detail

BasicOrbitViewLimits

public BasicOrbitViewLimits()
Method Detail

applyLimits

public static void applyLimits(OrbitView view,
                               OrbitViewLimits viewLimits)

getCenterElevationLimits

public double[] getCenterElevationLimits()
Description copied from interface: OrbitViewLimits
Returns the minimum and maximum values for the OrbitView center elevation.

Specified by:
getCenterElevationLimits in interface OrbitViewLimits
Returns:
minimum and maximum allowable values for center elevation.

getCenterLocationLimits

public Sector getCenterLocationLimits()
Description copied from interface: OrbitViewLimits
Returns the Sector which limits the OrbitView center latitude and longitude.

Specified by:
getCenterLocationLimits in interface OrbitViewLimits
Returns:
Sector which limits the center latitude and longitude.

getHeadingLimits

public Angle[] getHeadingLimits()
Description copied from interface: OrbitViewLimits
Returns the minimum and maximum Angles for the OrbitView heading property.

Specified by:
getHeadingLimits in interface OrbitViewLimits
Returns:
minimum and maximum allowable Angles for heading.

getPitchLimits

public Angle[] getPitchLimits()
Description copied from interface: OrbitViewLimits
Returns the minimum and maximum Angles for the OrbitView pitch property.

Specified by:
getPitchLimits in interface OrbitViewLimits
Returns:
minimum and maximum allowable Angles for pitch.

getZoomLimits

public double[] getZoomLimits()
Description copied from interface: OrbitViewLimits
Returns the minimum and maximum values for the OrbitView zoom property.

Specified by:
getZoomLimits in interface OrbitViewLimits
Returns:
minimum and maximum allowable values for zoom.

limitCenterElevation

public static double limitCenterElevation(double value,
                                          OrbitViewLimits viewLimits)

limitCenterLocation

public static LatLon limitCenterLocation(Angle latitude,
                                         Angle longitude,
                                         OrbitViewLimits viewLimits)

limitCenterPosition

public static Position limitCenterPosition(Position position,
                                           OrbitViewLimits viewLimits)

limitHeading

public static Angle limitHeading(Angle angle,
                                 OrbitViewLimits viewLimits)

limitPitch

public static Angle limitPitch(Angle angle,
                               OrbitViewLimits viewLimits)

limitZoom

public static double limitZoom(double value,
                               OrbitViewLimits viewLimits)

setCenterElevationLimits

public void setCenterElevationLimits(double minValue,
                                     double maxValue)
Description copied from interface: OrbitViewLimits
Sets the minimum and maximum values which will limit the OrbitView 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.

setCenterLocationLimits

public void setCenterLocationLimits(Sector sector)
Description copied from interface: OrbitViewLimits
Sets the Sector which will limit the OrbitView center latitude and longitude.

Specified by:
setCenterLocationLimits in interface OrbitViewLimits
Parameters:
sector - Sector which will limit the center latitude and longitude.

setHeadingLimits

public void setHeadingLimits(Angle minAngle,
                             Angle maxAngle)
Description copied from interface: OrbitViewLimits
Sets the minimum and maximum Angles which will limit the OrbitView heading property.

Specified by:
setHeadingLimits in interface OrbitViewLimits
Parameters:
minAngle - the minimum allowable angle for heading.
maxAngle - the maximum allowable angle for heading.

setPitchLimits

public void setPitchLimits(Angle minAngle,
                           Angle maxAngle)
Description copied from interface: OrbitViewLimits
Sets the minimum and maximum Angles which will limit the OrbitView pitch property.

Specified by:
setPitchLimits in interface OrbitViewLimits
Parameters:
minAngle - the minimum allowable angle for pitch.
maxAngle - the maximum allowable angle for pitch.

setZoomLimits

public void setZoomLimits(double minValue,
                          double maxValue)
Description copied from interface: OrbitViewLimits
Sets the minimum and maximum values which will limit the OrbitView zoom property.

Specified by:
setZoomLimits in interface OrbitViewLimits
Parameters:
minValue - the mimimum allowable value for zoom.
maxValue - the maximum allowable value for zoom.

NASA World Wind