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.
|
allow2DPitch, getEyeElevationLimits, getEyeLocationLimits, getHeadingLimits, getPitchLimits, getRollLimits, is2DGlobe, isNonContinous2DGlobe, limitEyePosition, limitHeading, limitPitch, limitRoll, setEyeElevationLimits, setEyeLocationLimits, setHeadingLimits, setPitchLimits, setRollLimits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEyeElevationLimits, getEyeLocationLimits, getHeadingLimits, getPitchLimits, getRollLimits, limitEyePosition, limitHeading, limitPitch, limitRoll, setEyeElevationLimits, setEyeLocationLimits, setHeadingLimits, setPitchLimits, setRollLimits
protected Sector centerLocationLimits
protected double maxCenterElevation
protected double maxZoom
protected double minCenterElevation
protected double minZoom
public BasicOrbitViewLimits()
public double[] getCenterElevationLimits()
getCenterElevationLimits
in interface OrbitViewLimits
public Sector getCenterLocationLimits()
getCenterLocationLimits
in interface OrbitViewLimits
public void getRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)
getRestorableState
in interface ViewPropertyLimits
getRestorableState
in class BasicViewPropertyLimits
public double[] getZoomLimits()
getZoomLimits
in interface OrbitViewLimits
public Position limitCenterPosition(View view, Position position)
limitCenterPosition
in interface OrbitViewLimits
view
- 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 OrbitViewLimits
view
- 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 ViewPropertyLimits
reset
in class BasicViewPropertyLimits
public void restoreState(RestorableSupport rs, RestorableSupport.StateObject context)
restoreState
in interface ViewPropertyLimits
restoreState
in class BasicViewPropertyLimits
public void setCenterElevationLimits(double minValue, double maxValue)
setCenterElevationLimits
in interface OrbitViewLimits
minValue
- the minimum allowable value for center elevation.maxValue
- the maximum allowable value for center elevation.public void setCenterLocationLimits(Sector sector)
setCenterLocationLimits
in interface OrbitViewLimits
sector
- Sector which will limit the center latitude and longitude.public void setZoomLimits(double minValue, double maxValue)
setZoomLimits
in interface OrbitViewLimits
minValue
- the mimimum allowable value for zoom.maxValue
- the maximum allowable value for zoom.