public interface StereoSceneController extends SceneController
WorldWindow
instance must support stereo display in order to use device-supported stereo. See
WorldWindowGLCanvas
to learn how to select a stereo device.Modifier and Type | Method and Description |
---|---|
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.
|
getClutterFilter, getDrawContext, getFramesPerSecond, getFrameTime, getGLRuntimeCapabilities, getGpuResourceCache, getModel, getObjectsInPickRectangle, getPerFrameStatistics, getPickedObjectList, getPickPoint, getPickRectangle, getRenderingExceptions, getScreenCreditController, getTerrain, getVerticalExaggeration, getView, isDeepPickEnabled, reinitialize, repaint, setClutterFilter, setDeepPickEnabled, setGLRuntimeCapabilities, setGpuResourceCache, setModel, setPerFrameStatisticsKeys, setPickPoint, setPickRectangle, setScreenCreditController, setVerticalExaggeration, setView
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
propertyChange
onMessage
dispose
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.