|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StereoSceneController
An interface for scene controllers that provide stereo.
Note: TheWorldWindow instance must support stereo display in order to use device-supported stereo. See
WorldWindowGLCanvas to learn how to select a stereo device.
| Method Summary | |
|---|---|
Angle |
getFocusAngle()
Returns this controller's focus angle, the angle difference between the left and right eye direction. |
String |
getStereoMode()
Indicates the current stereo mode of this controller. |
boolean |
isHardwareStereo()
Indicates whether stereo is being implemented directly by the display device rather than software. |
boolean |
isInStereo()
Indicates whether stereo is being applied, either directly by the display device or simulated via software. |
boolean |
isSwapEyes()
Indicates whether to switch the left/right stereo images. |
void |
setFocusAngle(Angle a)
Specifies the angle difference between the left and right eye direction. |
void |
setStereoMode(String mode)
Specifies the technique used to provide a stereo effect. |
void |
setSwapEyes(boolean swapEyes)
Specifies whether to draw the right eye image in the left eye's position and the left eye's image in the right eye's 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 java.beans.PropertyChangeListener |
|---|
propertyChange |
| Methods inherited from interface gov.nasa.worldwind.event.MessageListener |
|---|
onMessage |
| Methods inherited from interface gov.nasa.worldwind.Disposable |
|---|
dispose |
| Method Detail |
|---|
Angle getFocusAngle()
String getStereoMode()
setStereoMode(String), this instance's mode was set to AVKey.STEREO_MODE_NONE.boolean isHardwareStereo()
boolean isInStereo()
boolean isSwapEyes()
void setFocusAngle(Angle a)
a - the left-right eye direction difference. If null, the angle is set to 0.void setStereoMode(String mode)
AVKey.STEREO_MODE_DEVICE to request device supported stereo, AVKey.STEREO_MODE_RED_BLUE to request red-blue anaglyph stereo implemented in
software, or AVKey.STEREO_MODE_NONE (the default) to request no stereo effect.
If STEREO_MODE_DEVICE is requested but the display device does not support stereo, stereo is not
applied.
See the implementing class to determine how it detects the initial stereo mode.
mode - the technique used to provide the stereo effect. If null, the mode is set to AVKey.STEREO_MODE_NONE.void setSwapEyes(boolean swapEyes)
swapEyes - true to switch the left/right stereo images, otherwise false.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||