Package gov.nasa.worldwind.view.orbit
Interface OrbitView
-
- All Superinterfaces:
AVList,java.util.EventListener,MessageListener,java.beans.PropertyChangeListener,Restorable,View,WWObject
- All Known Implementing Classes:
BasicOrbitView
public interface OrbitView extends View
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCENTER_STOPPED-
Fields inherited from interface gov.nasa.worldwind.View
VIEW_STOPPED
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanFocusOnViewportCenter()Implementations are expected to determines if the OrbitView can set the center of rotation for heading and pitch changes to the viewport center intersection with the globe surface via a call tofocusOnViewportCenter().voidfocusOnViewportCenter()Implementations are expected to set the center of rotation for heading and pitch at the intersection of a ray originates at the eye, and passes through the center of the viewport with the globe surface.PositiongetCenterPosition()Get the center position of the OrbitView.OrbitViewLimitsgetOrbitViewLimits()Get the limits for this OrbitView.doublegetZoom()Get the zoom value for the OrbitView.booleanhadCollisions()Returns whether or not a collision has occurred since the last call tohadCollisions.booleanisDetectCollisions()Returns whether the thisViewwill detect collisions with other objects, such as the surface geometry.voidsetCenterPosition(Position center)Sets the center position of the OrbitView.voidsetDetectCollisions(boolean detectCollisions)Sets whether or not thisViewwill detect collisions with other objects, such as the surface geometry.voidsetOrbitViewLimits(OrbitViewLimits limits)Set the limits for this OrbitView.voidsetZoom(double zoom)Set the zoom value for the OrbitVeiw.voidstopMovementOnCenter()Stop any changes to the center position.-
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from interface gov.nasa.worldwind.event.MessageListener
onMessage
-
Methods inherited from interface gov.nasa.worldwind.Restorable
getRestorableState, restoreState
-
Methods inherited from interface gov.nasa.worldwind.View
addAnimator, apply, computePixelSizeAtDistance, computePositionFromScreenPoint, computeRayFromScreenPoint, copyViewState, getCenterPoint, getCurrentEyePoint, getCurrentEyePosition, getEyePoint, getEyePosition, getFarClipDistance, getFieldOfView, getForwardVector, getFrustum, getFrustumInModelCoordinates, getGlobe, getHeading, getHorizonDistance, getModelviewMatrix, getNearClipDistance, getPitch, getProjectionMatrix, getRoll, getUpVector, getViewInputHandler, getViewport, getViewPropertyLimits, getViewStateID, goTo, isAnimating, popReferenceCenter, project, pushReferenceCenter, setEyePosition, setFieldOfView, setHeading, setOrientation, setPitch, setReferenceCenter, setRoll, stopAnimations, stopMovement, unProject
-
-
-
-
Field Detail
-
CENTER_STOPPED
static final java.lang.String CENTER_STOPPED
- See Also:
- Constant Field Values
-
-
Method Detail
-
isDetectCollisions
boolean isDetectCollisions()
Returns whether the thisViewwill detect collisions with other objects, such as the surface geometry. If true, implementations may also automatically resolve any detected collisions.- Returns:
trueIf thisViewwill detect collisions;falseotherwise.
-
setDetectCollisions
void setDetectCollisions(boolean detectCollisions)
Sets whether or not thisViewwill detect collisions with other objects, such as the surface geometry. IfdetectCollisionsis true, implementations may also automatically resolve any detected collisions.- Parameters:
detectCollisions- Iftrue, thisViewwill resolve collisions; otherwise thisViewwill ignore collisions.
-
hadCollisions
boolean hadCollisions()
Returns whether or not a collision has occurred since the last call tohadCollisions. IfisDetectCollisions()is false, collisions will not be detected andhadCollisionswill always return false.- Returns:
trueif a collision has occurred since the last call;falseotherwise.
-
getCenterPosition
Position getCenterPosition()
Get the center position of the OrbitView. The center position is used as the point about which the heading and pitch rotate. It is defined by the intersection of a ray from the eye position through the center of the viewport with the surface of the globe.- Returns:
- the center position.
-
setCenterPosition
void setCenterPosition(Position center)
Sets the center position of the OrbitView. The center position is used as the point about which the heading and pitch rotate. It is defined by the intersection of a ray from the eye position through the center of the viewport with the surface of the globe.- Parameters:
center- The desired center position.
-
getZoom
double getZoom()
Get the zoom value for the OrbitView. The zoom value is the distance between the eye position and the center position.- Returns:
- the zoom value
-
setZoom
void setZoom(double zoom)
Set the zoom value for the OrbitVeiw. The zoom value is the distance between the eye position and the center position.- Parameters:
zoom- The desired zoom value.
-
getOrbitViewLimits
OrbitViewLimits getOrbitViewLimits()
Get the limits for this OrbitView. OrbitView has state values that augment the state values of aView. Specifically, zoom and center position.OrbitViewLimitsenables the limiting of those values in addition the the derivedBasicViewPropertyLimitsstate.- Returns:
- The active view limits.
-
setOrbitViewLimits
void setOrbitViewLimits(OrbitViewLimits limits)
Set the limits for this OrbitView. OrbitView has state values that augment the state values of aView. Specifically, zoom and center position.OrbitViewLimitsenables the limiting of those values in addition the the derivedBasicViewPropertyLimitsstate.- Parameters:
limits- The desired limits.
-
canFocusOnViewportCenter
boolean canFocusOnViewportCenter()
Implementations are expected to determines if the OrbitView can set the center of rotation for heading and pitch changes to the viewport center intersection with the globe surface via a call tofocusOnViewportCenter().- Returns:
- true if the OrbitView implementation can focus on the viewport center.
-
focusOnViewportCenter
void focusOnViewportCenter()
Implementations are expected to set the center of rotation for heading and pitch at the intersection of a ray originates at the eye, and passes through the center of the viewport with the globe surface.
-
stopMovementOnCenter
void stopMovementOnCenter()
Stop any changes to the center position.
-
-