gov.nasa.worldwind.view.orbit
Class BasicOrbitViewLimits
java.lang.Object
gov.nasa.worldwind.view.BasicViewPropertyLimits
gov.nasa.worldwind.view.orbit.BasicOrbitViewLimits
- All Implemented Interfaces:
- OrbitViewLimits, ViewPropertyLimits
public class BasicOrbitViewLimits
- extends BasicViewPropertyLimits
- implements OrbitViewLimits
|
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. |
void |
getRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
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 double |
limitZoom(double value,
OrbitViewLimits viewLimits)
|
void |
restoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
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 |
setZoomLimits(double minValue,
double maxValue)
Sets the minimum and maximum values which will limit the OrbitView zoom property. |
| Methods inherited from class gov.nasa.worldwind.view.BasicViewPropertyLimits |
getEyeElevationLimits, getEyeLocationLimits, getHeadingLimits, getPitchLimits, getRollLimits, limitEyeElevation, limitEyePositionLocation, limitHeading, limitPitch, limitRoll, setEyeElevationLimits, setEyeLocationLimits, setHeadingLimits, setPitchLimits, setRollLimits |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
centerLocationLimits
protected Sector centerLocationLimits
maxCenterElevation
protected double maxCenterElevation
maxZoom
protected double maxZoom
minCenterElevation
protected double minCenterElevation
minZoom
protected double minZoom
BasicOrbitViewLimits
public BasicOrbitViewLimits()
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.
getRestorableState
public void getRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Specified by:
getRestorableState in interface ViewPropertyLimits- Overrides:
getRestorableState in class BasicViewPropertyLimits
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)
limitZoom
public static double limitZoom(double value,
OrbitViewLimits viewLimits)
restoreState
public void restoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Specified by:
restoreState in interface ViewPropertyLimits- Overrides:
restoreState in class BasicViewPropertyLimits
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.
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.