public interface StereoDevice
| Modifier and Type | Interface and Description |
|---|---|
static class |
StereoDevice.Config
Merely a class providing a type-tag for extensions
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static boolean |
DUMP_DATA |
| Modifier and Type | Method and Description |
|---|---|
StereoDeviceRenderer |
createRenderer(int distortionBits,
int textureCount,
float[] eyePositionOffset,
FovHVHalves[] eyeFov,
float pixelsPerDisplayPixel,
int textureUnit)
Create a new
StereoDeviceRenderer instance. |
void |
dispose()
Disposes this
StereoDevice. |
float[] |
getDefaultEyePositionOffset()
Return the device default eye position offset for
#createRenderer(int, int, float[], FovHVHalves[], float). |
FovHVHalves[] |
getDefaultFOV()
Returns the device default
FovHVHalves for all supported eyes
in natural order, i.e. |
int[] |
getEyeRenderOrder()
Returns an array of the preferred eye rendering order.
|
StereoDeviceFactory |
getFactory()
Return the factory used to create this device.
|
int |
getMinimumDistortionBits()
Returns the minimum distortion compensation bits as required by the
StereoDeviceRenderer,
e.g. |
PointImmutable |
getPosition()
If operation within a device spanning virtual desktop,
returns the device position.
|
int |
getRecommendedDistortionBits()
Returns the recommended distortion compensation bits for the
StereoDeviceRenderer,
e.g. |
boolean |
getSensorsStarted()
Return true if sensors have been started, false otherwise
|
int |
getSupportedDistortionBits()
Returns the supported distortion compensation by the
StereoDeviceRenderer,
e.g. |
DimensionImmutable |
getSurfaceSize()
Returns the required surface size in pixel.
|
boolean |
startSensors(boolean start)
Start or stop sensors.
|
StereoDeviceFactory getFactory()
void dispose()
StereoDevice.PointImmutable getPosition()
Otherwise simply 0/0.
DimensionImmutable getSurfaceSize()
float[] getDefaultEyePositionOffset()
#createRenderer(int, int, float[], FovHVHalves[], float).
Result is an array of float values for
FovHVHalves[] getDefaultFOV()
FovHVHalves for all supported eyes
in natural order, i.e. left and right if supported.
Monoscopic devices return an array length of one, without the value for the right-eye!
boolean startSensors(boolean start)
boolean getSensorsStarted()
int[] getEyeRenderOrder()
Monoscopic devices only support one eye, where stereoscopic device two eyes.
int getSupportedDistortionBits()
StereoDeviceRenderer,
e.g. StereoDeviceRenderer.DISTORTION_BARREL, StereoDeviceRenderer.DISTORTION_CHROMATIC, etc.int getRecommendedDistortionBits()
StereoDeviceRenderer,
e.g. StereoDeviceRenderer.DISTORTION_BARREL, StereoDeviceRenderer.DISTORTION_CHROMATIC
StereoDeviceRenderer.DISTORTION_VIGNETTE.
User shall use the recommended distortion compensation to achieve a distortion free view.
int getMinimumDistortionBits()
StereoDeviceRenderer,
e.g. StereoDeviceRenderer.DISTORTION_BARREL in case the stereoscopic display uses [a]spherical lenses.
Minimum distortion compensation bits are being enforced by the StereoDeviceRenderer.
StereoDeviceRenderer createRenderer(int distortionBits, int textureCount, float[] eyePositionOffset, FovHVHalves[] eyeFov, float pixelsPerDisplayPixel, int textureUnit)
StereoDeviceRenderer instance.distortionBits - StereoDeviceRenderer distortion bits, e.g. StereoDeviceRenderer.DISTORTION_BARREL, etc,
see getRecommendedDistortionBits().textureCount - desired texture count for post-processing, see StereoDeviceRenderer.getTextureCount() and StereoDeviceRenderer.ppAvailable()eyePositionOffset - eye position offset, e.g. getDefaultEyePositionOffset().eyeFov - FovHVHalves[] field-of-view per eye, e.g. getDefaultFOV(). May contain only one value for monoscopic devices,
see getEyeRenderOrder().pixelsPerDisplayPixel - textureUnit - Copyright 2010 JogAmp Community.