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.String
CENTER_STOPPED
-
Fields inherited from interface gov.nasa.worldwind.View
VIEW_STOPPED
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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()
.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.Position
getCenterPosition()
Get the center position of the OrbitView.OrbitViewLimits
getOrbitViewLimits()
Get the limits for this OrbitView.double
getZoom()
Get the zoom value for the OrbitView.boolean
hadCollisions()
Returns whether or not a collision has occurred since the last call tohadCollisions
.boolean
isDetectCollisions()
Returns whether the thisView
will detect collisions with other objects, such as the surface geometry.void
setCenterPosition(Position center)
Sets the center position of the OrbitView.void
setDetectCollisions(boolean detectCollisions)
Sets whether or not thisView
will detect collisions with other objects, such as the surface geometry.void
setOrbitViewLimits(OrbitViewLimits limits)
Set the limits for this OrbitView.void
setZoom(double zoom)
Set the zoom value for the OrbitVeiw.void
stopMovementOnCenter()
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 thisView
will detect collisions with other objects, such as the surface geometry. If true, implementations may also automatically resolve any detected collisions.- Returns:
true
If thisView
will detect collisions;false
otherwise.
-
setDetectCollisions
void setDetectCollisions(boolean detectCollisions)
Sets whether or not thisView
will detect collisions with other objects, such as the surface geometry. IfdetectCollisions
is true, implementations may also automatically resolve any detected collisions.- Parameters:
detectCollisions
- Iftrue
, thisView
will resolve collisions; otherwise thisView
will 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 andhadCollisions
will always return false.- Returns:
true
if a collision has occurred since the last call;false
otherwise.
-
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.OrbitViewLimits
enables the limiting of those values in addition the the derivedBasicViewPropertyLimits
state.- 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.OrbitViewLimits
enables the limiting of those values in addition the the derivedBasicViewPropertyLimits
state.- 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.
-
-