|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.view.BasicViewPropertyLimits
public class BasicViewPropertyLimits
| Field Summary | |
|---|---|
protected Sector |
eyeLocationLimits
|
protected double |
maxEyeElevation
|
protected Angle |
maxHeading
|
protected Angle |
maxPitch
|
protected Angle |
maxRoll
|
protected double |
minEyeElevation
|
protected Angle |
minHeading
|
protected Angle |
minPitch
|
protected Angle |
minRoll
|
| Constructor Summary | |
|---|---|
BasicViewPropertyLimits()
|
|
| Method Summary | |
|---|---|
double[] |
getEyeElevationLimits()
Returns the minimum and maximum values for the View elevation. |
Sector |
getEyeLocationLimits()
Returns the Sector which limits the View eye position 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. |
void |
getRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
Angle[] |
getRollLimits()
Get the limits for roll. |
static double |
limitEyeElevation(double elevation,
ViewPropertyLimits viewLimits)
|
static LatLon |
limitEyePositionLocation(Angle latitude,
Angle longitude,
ViewPropertyLimits viewLimits)
|
static Angle |
limitHeading(Angle angle,
ViewPropertyLimits viewLimits)
|
static Angle |
limitPitch(Angle angle,
ViewPropertyLimits viewLimits)
|
static Angle |
limitRoll(Angle angle,
ViewPropertyLimits viewLimits)
Clamp a roll angle to the range specified in a limit object. |
void |
restoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
void |
setEyeElevationLimits(double minValue,
double maxValue)
Sets the minimum and maximum values for the View elevation. |
void |
setEyeLocationLimits(Sector sector)
Sets the Sector which will limit the View eye position 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 |
setRollLimits(Angle minAngle,
Angle maxAngle)
Set the roll limits. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Sector eyeLocationLimits
protected double maxEyeElevation
protected Angle maxHeading
protected Angle maxPitch
protected Angle maxRoll
protected double minEyeElevation
protected Angle minHeading
protected Angle minPitch
protected Angle minRoll
| Constructor Detail |
|---|
public BasicViewPropertyLimits()
| Method Detail |
|---|
public double[] getEyeElevationLimits()
ViewPropertyLimitsView elevation.
getEyeElevationLimits in interface ViewPropertyLimitspublic Sector getEyeLocationLimits()
ViewPropertyLimitsSector which limits the View eye position latitude and longitude.
getEyeLocationLimits in interface ViewPropertyLimitsSector which limits the eye position latitude and longitude.public Angle[] getHeadingLimits()
ViewPropertyLimitsAngles for the OrbitView heading property.
getHeadingLimits in interface ViewPropertyLimitsAngles for heading.public Angle[] getPitchLimits()
ViewPropertyLimitsAngles for the OrbitView pitch property.
getPitchLimits in interface ViewPropertyLimitsAngles for pitch.
public void getRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
getRestorableState in interface ViewPropertyLimitspublic Angle[] getRollLimits()
getRollLimits in interface ViewPropertyLimits
public static double limitEyeElevation(double elevation,
ViewPropertyLimits viewLimits)
public static LatLon limitEyePositionLocation(Angle latitude,
Angle longitude,
ViewPropertyLimits viewLimits)
public static Angle limitHeading(Angle angle,
ViewPropertyLimits viewLimits)
public static Angle limitPitch(Angle angle,
ViewPropertyLimits viewLimits)
public static Angle limitRoll(Angle angle,
ViewPropertyLimits viewLimits)
angle - Angle to clamp to the allowed range.viewLimits - defines the roll limits.
public void restoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
restoreState in interface ViewPropertyLimits
public void setEyeElevationLimits(double minValue,
double maxValue)
ViewPropertyLimitsView elevation.
setEyeElevationLimits in interface ViewPropertyLimitsminValue - The minimum elevation.maxValue - The maximum elevation.public void setEyeLocationLimits(Sector sector)
ViewPropertyLimitsSector which will limit the View eye position latitude and longitude.
setEyeLocationLimits in interface ViewPropertyLimitssector - Sector which will limit the eye position latitude and longitude.
public void setHeadingLimits(Angle minAngle,
Angle maxAngle)
ViewPropertyLimitsAngles which will limit the OrbitView heading property.
setHeadingLimits in interface ViewPropertyLimitsminAngle - the minimum allowable angle for heading.maxAngle - the maximum allowable angle for heading.
public void setPitchLimits(Angle minAngle,
Angle maxAngle)
ViewPropertyLimitsAngles which will limit the OrbitView pitch property.
setPitchLimits in interface ViewPropertyLimitsminAngle - the minimum allowable angle for pitch.maxAngle - the maximum allowable angle for pitch.
public void setRollLimits(Angle minAngle,
Angle maxAngle)
setRollLimits in interface ViewPropertyLimitsminAngle - The smallest allowable roll.maxAngle - The largest allowable roll.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||