|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.worldwind.layers.ViewControlsSelectListener
public class ViewControlsSelectListener
Controller for onscreen view controls.
ViewControlsLayer
Field Summary | |
---|---|
protected Point |
lastPickPoint
|
protected ScreenAnnotation |
pressedControl
|
protected String |
pressedControlType
|
protected ViewControlsLayer |
viewControlsLayer
|
protected WorldWindow |
wwd
|
Constructor Summary | |
---|---|
ViewControlsSelectListener(WorldWindow wwd,
ViewControlsLayer layer)
|
Method Summary | |
---|---|
protected Angle |
computeLookHeading(OrbitView view,
ScreenAnnotation control,
double headingStep)
|
protected Angle |
computeLookPitch(OrbitView view,
ScreenAnnotation control,
double pitchStep)
|
protected double |
computeNewZoom(OrbitView view,
double amount)
|
protected Angle |
computePanAmount(Globe globe,
OrbitView view,
ScreenAnnotation control,
double panStep)
|
protected Angle |
computePanHeading(OrbitView view,
ScreenAnnotation control)
|
protected Vec4 |
computeSurfacePoint(OrbitView view,
Angle heading,
Angle pitch)
Find out where on the terrain surface the eye would be looking at with the given heading and pitch angles. |
double |
getFovIncrement()
Get the field of view increment factor. |
double |
getHeadingIncrement()
Get the heading increment value in decimal degrees. |
double |
getPanIncrement()
Get the panning distance factor. |
double |
getPitchIncrement()
Get the pitch increment value in decimal degrees. |
int |
getReapeatTimerDelay()
Get the repeat timer delay in milliseconds. |
double |
getVeIncrement()
Get the vertical exaggeration increment. |
double |
getZoomIncrement()
Get the zooming distance factor. |
protected void |
resetOrbitView(OrbitView view)
Reset the view to an orbit view state if in first person mode (zoom = 0) |
void |
selected(SelectEvent event)
|
void |
setFovIncrement(double value)
Set the field of view increment factor. |
void |
setHeadingIncrement(double value)
Set the heading increment value in decimal degrees. |
void |
setPanIncrement(double value)
Set the panning distance factor. |
void |
setPitchIncrement(double value)
Set the pitch increment value in decimal degrees. |
void |
setRepeatTimerDelay(int delay)
Set the repeat timer delay in milliseconds. |
protected void |
setupFirstPersonView(OrbitView view)
Setup the view to a first person mode (zoom = 0) |
void |
setVeIncrement(double value)
Set the vertical exaggeration increment. |
void |
setZoomIncrement(double value)
Set the zoom distance factor. |
protected void |
updateView(ScreenAnnotation control,
String controlType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Point lastPickPoint
protected ScreenAnnotation pressedControl
protected String pressedControlType
protected ViewControlsLayer viewControlsLayer
protected WorldWindow wwd
Constructor Detail |
---|
public ViewControlsSelectListener(WorldWindow wwd, ViewControlsLayer layer)
Method Detail |
---|
protected Angle computeLookHeading(OrbitView view, ScreenAnnotation control, double headingStep)
protected Angle computeLookPitch(OrbitView view, ScreenAnnotation control, double pitchStep)
protected double computeNewZoom(OrbitView view, double amount)
protected Angle computePanAmount(Globe globe, OrbitView view, ScreenAnnotation control, double panStep)
protected Angle computePanHeading(OrbitView view, ScreenAnnotation control)
protected Vec4 computeSurfacePoint(OrbitView view, Angle heading, Angle pitch)
view
- the orbit viewheading
- heading direction clockwise from north.pitch
- view pitch angle from the surface normal at the center point.
public double getFovIncrement()
public double getHeadingIncrement()
public double getPanIncrement()
public double getPitchIncrement()
public int getReapeatTimerDelay()
public double getVeIncrement()
public double getZoomIncrement()
protected void resetOrbitView(OrbitView view)
view
- the orbit view to resetpublic void selected(SelectEvent event)
selected
in interface SelectListener
public void setFovIncrement(double value)
value
- the field of view increment factor.
IllegalArgumentException
public void setHeadingIncrement(double value)
value
- the heading increment value in decimal degrees.public void setPanIncrement(double value)
value
- the panning distance factor.public void setPitchIncrement(double value)
value
- the pitch increment value in decimal degrees.
IllegalArgumentException
public void setRepeatTimerDelay(int delay)
delay
- the repeat timer delay in milliseconds.
IllegalArgumentException
protected void setupFirstPersonView(OrbitView view)
view
- the orbit view to set into a first person view.public void setVeIncrement(double value)
value
- the vertical exaggeration increment.
IllegalArgumentException
public void setZoomIncrement(double value)
value
- the zooming distance factor.protected void updateView(ScreenAnnotation control, String controlType)
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |