|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.AbstractView
gov.nasa.worldwind.BasicOrbitView
public class BasicOrbitView
| Field Summary |
|---|
| Fields inherited from class gov.nasa.worldwind.AVListImpl |
|---|
changeSupport |
| Constructor Summary | |
|---|---|
BasicOrbitView()
|
|
| Method Summary | |
|---|---|
LatLon |
computeVisibleLatLonRange()
|
protected void |
doApply(DrawContext dc)
|
double |
getAltitude()
Returns the View eye altitude (in meters) above the last rendered SectorGeometry, or
the analytical Globe, depending on the implementation. |
Frustum |
getFrustum()
Returns the viewing Frustum in eye coordinates, computed in apply(). |
Angle |
getHeading()
Returns the View's angle from true North. |
Angle |
getPitch()
Returns the View's angle from the plane tangent to the surface. |
Angle[] |
getPitchConstraints()
Returns a two-dimensional array containing the range of angles (inclusive) the View may limit
its pitch to, if pitch constraints are enabled. |
Position |
getPosition()
Returns the geographic (latitude, longitude, elevation) coordinate of the View's eye point. |
Angle |
getRoll()
Returns the View's angle about its local z-axis. |
double |
getZoom()
Returns the View's translation in its forward direction. |
double[] |
getZoomConstraints()
Returns a two-dimensional array containing the range of values (inclusive) the View may limit
its zoom to, if zoom constraints are enabled. |
void |
goToAltitude(double newAltitude)
Moves the View eye point to the new altitude (in meters) above the last rendered
SectorGeometry, or the analytical Globe, depending on the implementation. |
void |
goToCoordinate(LatLon newLatLon,
double newAltitude)
Moves the View eye point to the new polar coordinate (latitude, longitude, elevation). |
void |
goToLatLon(LatLon newLatLon)
Moves the View eye point to the new geographic (latitude, longitude) coordinate. |
boolean |
isEnablePitchConstraints()
Returns true when pitch constraints are enabled. |
boolean |
isEnableZoomConstraints()
Returns true when zoom constraints are enabled. |
void |
setEnablePitchConstraints(boolean enabled)
Enable or disable pitch constraints. |
void |
setEnableZoomConstraints(boolean enabled)
Enable or disable zoom constraints. |
void |
setHeading(Angle newHeading)
Sets the View's angle to true North. |
void |
setPitch(Angle newPitch)
Sets the View's angle to the plane tangent to the surface. |
void |
setPitchConstraints(Angle newMinPitch,
Angle newMaxPitch)
Sets the range of angles (inclusive) the View may limit its pitch to, if pitch constraints are
enabled. |
void |
setRoll(Angle newRoll)
Sets the View's angle about its local z-axis. |
void |
setZoom(double newZoom)
Sets the View's translation in its forward direction. |
void |
setZoomConstraints(double newMinZoom,
double newMaxZoom)
Sets the range of values (inclusive) the View may limit its zoom to, if zoom constraints are
enabled. |
| Methods inherited from class gov.nasa.worldwind.AVListImpl |
|---|
addPropertyChangeListener, addPropertyChangeListener, copy, firePropertyChange, firePropertyChange, getStringValue, getValue, hasKey, propertyChange, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, copy, firePropertyChange, firePropertyChange, getStringValue, getValue, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Constructor Detail |
|---|
public BasicOrbitView()
| Method Detail |
|---|
public LatLon computeVisibleLatLonRange()
protected void doApply(DrawContext dc)
doApply in class AbstractViewpublic double getAltitude()
ViewView eye altitude (in meters) above the last rendered SectorGeometry, or
the analytical Globe, depending on the implementation.
View's altitude (in meters) above the surface.public Frustum getFrustum()
ViewFrustum in eye coordinates, computed in apply(). The
Frustum is the portion of viewable space defined by three sets of parallel 'clipping' planes. The
method View.getFrustumInModelCoordinates() maintains the shape of this Frustum, but it has been
translated and aligned with the eye in model space.
public Angle getHeading()
ViewView's angle from true North.
public Angle getPitch()
ViewView's angle from the plane tangent to the surface.
public Angle[] getPitchConstraints()
ViewView may limit
its pitch to, if pitch constraints are enabled.
public Position getPosition()
ViewView's eye point. Latitude
and longitude represent the coordinate directly beneath (or above) the View, while elevation
represents the View altitude above the analytical Globe radius.
public Angle getRoll()
ViewView's angle about its local z-axis.
public double getZoom()
ViewView's translation in its forward direction.
public double[] getZoomConstraints()
ViewView may limit
its zoom to, if zoom constraints are enabled.
public void goToAltitude(double newAltitude)
ViewView eye point to the new altitude (in meters) above the last rendered
SectorGeometry, or the analytical Globe, depending on the implementation.
newAltitude - the new eye altitude (in meters) above the surface,
public void goToCoordinate(LatLon newLatLon,
double newAltitude)
ViewView eye point to the new polar coordinate (latitude, longitude, elevation).
newLatLon - the new latitude and longitude of the eye point.newAltitude - the new eye altitude (in meters) above the surface,public void goToLatLon(LatLon newLatLon)
ViewView eye point to the new geographic (latitude, longitude) coordinate. Altitude is left
unchanged.
newLatLon - the new latitude and longitude of the eye point.public boolean isEnablePitchConstraints()
View
public boolean isEnableZoomConstraints()
View
public void setEnablePitchConstraints(boolean enabled)
View
enabled - true when pitch constraints should be enabled, false otherwise.public void setEnableZoomConstraints(boolean enabled)
View
enabled - trhe when zoom constraints should be enabled, false otherwise.public void setHeading(Angle newHeading)
ViewView's angle to true North.
newHeading - the new angle to true North.public void setPitch(Angle newPitch)
ViewView's angle to the plane tangent to the surface.
newPitch - the new angle to the surface tangent plane.
public void setPitchConstraints(Angle newMinPitch,
Angle newMaxPitch)
ViewView may limit its pitch to, if pitch constraints are
enabled.
newMinPitch - the minimum pitch angle.newMaxPitch - the maximum pitch angle.public void setRoll(Angle newRoll)
ViewView's angle about its local z-axis.
newRoll - the new angle about the local z-axis.public void setZoom(double newZoom)
ViewView's translation in its forward direction.
newZoom - translation along the forward direction.
public void setZoomConstraints(double newMinZoom,
double newMaxZoom)
ViewView may limit its zoom to, if zoom constraints are
enabled.
newMinZoom - the minimum zoom value.newMaxZoom - the maximum zoom value.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||