public class BasicOrbitViewLimits extends BasicViewPropertyLimits implements OrbitViewLimits
| Modifier and Type | Field and Description |
|---|---|
protected Sector |
centerLocationLimits |
protected double |
maxCenterElevation |
protected double |
maxZoom |
protected double |
minCenterElevation |
protected double |
minZoom |
eyeLocationLimits, maxEyeElevation, maxHeading, maxPitch, maxRoll, minEyeElevation, minHeading, minPitch, minRoll| Constructor and Description |
|---|
BasicOrbitViewLimits()
Creates a new BasicOrbitViewLimits with default limits.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getCenterElevationLimits()
Returns the minimum and maximum values for the orbit view center elevation.
|
Sector |
getCenterLocationLimits()
Returns the Sector which limits the orbit view center latitude and longitude.
|
void |
getRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context) |
double[] |
getZoomLimits()
Returns the minimum and maximum values for the orbit view zoom property.
|
Position |
limitCenterPosition(View view,
Position position)
Returns a position clamped to the center location limits and center elevation limits specified by this limit
object.
|
double |
limitZoom(View view,
double value)
Returns a distance clamped to the zoom limits specified by this limit object.
|
void |
reset()
Resets all property limits to their default values.
|
void |
restoreState(RestorableSupport rs,
RestorableSupport.StateObject context) |
void |
setCenterElevationLimits(double minValue,
double maxValue)
Sets the minimum and maximum values which will limit the orbit view center elevation.
|
void |
setCenterLocationLimits(Sector sector)
Sets the Sector which will limit the orbit view center latitude and longitude.
|
void |
setZoomLimits(double minValue,
double maxValue)
Sets the minimum and maximum values which will limit the orbit view zoom property.
|
getEyeElevationLimits, getEyeLocationLimits, getHeadingLimits, getPitchLimits, getRollLimits, is2DGlobe, isNonContinous2DGlobe, limitEyePosition, limitHeading, limitPitch, limitRoll, setEyeElevationLimits, setEyeLocationLimits, setHeadingLimits, setPitchLimits, setRollLimitsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEyeElevationLimits, getEyeLocationLimits, getHeadingLimits, getPitchLimits, getRollLimits, limitEyePosition, limitHeading, limitPitch, limitRoll, setEyeElevationLimits, setEyeLocationLimits, setHeadingLimits, setPitchLimits, setRollLimitsprotected Sector centerLocationLimits
protected double maxCenterElevation
protected double maxZoom
protected double minCenterElevation
protected double minZoom
public BasicOrbitViewLimits()
public double[] getCenterElevationLimits()
getCenterElevationLimits in interface OrbitViewLimitspublic Sector getCenterLocationLimits()
getCenterLocationLimits in interface OrbitViewLimitspublic void getRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)
getRestorableState in interface ViewPropertyLimitsgetRestorableState in class BasicViewPropertyLimitspublic double[] getZoomLimits()
getZoomLimits in interface OrbitViewLimitspublic Position limitCenterPosition(View view, Position position)
limitCenterPosition in interface OrbitViewLimitsview - the view associated with the center position and the property limits.position - position to clamp to the allowed range.public double limitZoom(View view, double value)
limitZoom in interface OrbitViewLimitsview - the view associated with the zoom distance and the property limits.value - zoom distance to clamp to the allowed range.public void reset()
reset in interface ViewPropertyLimitsreset in class BasicViewPropertyLimitspublic void restoreState(RestorableSupport rs, RestorableSupport.StateObject context)
restoreState in interface ViewPropertyLimitsrestoreState in class BasicViewPropertyLimitspublic void setCenterElevationLimits(double minValue,
double maxValue)
setCenterElevationLimits in interface OrbitViewLimitsminValue - the minimum allowable value for center elevation.maxValue - the maximum allowable value for center elevation.public void setCenterLocationLimits(Sector sector)
setCenterLocationLimits in interface OrbitViewLimitssector - Sector which will limit the center latitude and longitude.public void setZoomLimits(double minValue,
double maxValue)
setZoomLimits in interface OrbitViewLimitsminValue - the mimimum allowable value for zoom.maxValue - the maximum allowable value for zoom.