| Modifier and Type | Field and Description |
|---|---|
| private static final float[] | DEFAULT_EYE_POSITION_OFFSET
1.6 up, 5 forward |
| private final FovHVHalves[] | |
| public final int | |
| private final String | |
| private final int | |
| private final int[] | |
| private final StereoDeviceFactory | |
| public OvrHmdContext | |
| public ovrHmdDesc | |
| private final LocationSensorParameter | |
| private final int | |
| private final PointImmutable | |
| private final int | |
| private final int | |
| private final DimensionImmutable | |
| private boolean | |
| private final int | |
| private final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final StereoDeviceRenderer | createRenderer(final int
StereoDeviceRenderer distortion bits, e.g. StereoDeviceRenderer#DISTORTION_BARREL, etc,
see getRecommendedDistortionBits().desired texture count for post-processing, see textureCount, final float[] StereoDeviceRenderer#getTextureCount() and StereoDeviceRenderer#ppAvailable()eye position offset, e.g. eyePositionOffset, final FovHVHalves[] getDefaultEyePositionOffset().FovHVHalves[] field-of-view per eye, e.g. eyeFov, final float pixelsPerDisplayPixel, final int textureUnit)getDefaultFOV(). May contain only one value for monoscopic devices,
see getEyeRenderOrder().Implements com. StereoDeviceRenderer instance.
|
| public final void | dispose()
Implements com. StereoDevice, if valid.
|
| public float[] | getDefaultEyePositionOffset()
Implements com. createRenderer(int, int, float[], FovHVHalves[], float).
|
| public final FovHVHalves[] | getDefaultFOV()
Implements com. FovHVHalves for all supported eyes
in natural order, i.e. left and right if supported.
|
| public final int | getEnabledSensorBits()
Implements com. SENSOR_ORIENTATION, SENSOR_POSITION
in case the device supports them and if they are enabled.
|
| public final int[] | getEyeRenderOrder()
Implements com. |
| public final StereoDeviceFactory | getFactory()
Implements com. |
| public final LocationSensorParameter | getLocationSensorParams()
Implements com. LocationSensorParameter of the device
if SENSOR_POSITION is supported,
otherwise returns null.
|
| public final int | getMinimumDistortionBits()
Implements com. StereoDeviceRenderer,
e.g. StereoDeviceRenderer#DISTORTION_BARREL in case the stereoscopic display uses [a]spherical lenses.
|
| public final PointImmutable | getPosition()
Implements com. |
| public final int | getRecommendedDistortionBits()
Implements com. StereoDeviceRenderer,
e.g. StereoDeviceRenderer#DISTORTION_BARREL, StereoDeviceRenderer#DISTORTION_CHROMATIC
StereoDeviceRenderer#DISTORTION_VIGNETTE.
|
| public int | getRequiredRotation()
Implements com. |
| public final boolean | getSensorsStarted()
Implements com. |
| public final int | getSupportedDistortionBits()
Implements com. StereoDeviceRenderer,
e.g. StereoDeviceRenderer#DISTORTION_BARREL, StereoDeviceRenderer#DISTORTION_CHROMATIC, etc.
|
| public final int | getSupportedSensorBits()
Implements com. SENSOR_ORIENTATION, SENSOR_POSITION
of the StereoDevice.
|
| public final DimensionImmutable | getSurfaceSize()
Implements com. |
| public boolean | isValid()
Implements com. true, if instance is created and not disposed,
otherwise returns false.
|
| public final void | resetLocationSensorOrigin()
Implements com. |
| public final boolean | startSensors(final int
the desired optional sensors desiredSensorBits, final int the required sensors requiredSensorBits)Implements com. |
| public final boolean | |
| public final String | |
| pack-priv void |
| DEFAULT_EYE_POSITION_OFFSET | back to summary |
|---|---|
| private static final float[] DEFAULT_EYE_POSITION_OFFSET 1.6 up, 5 forward | |
| defaultEyeFov | back to summary |
|---|---|
| private final FovHVHalves[] defaultEyeFov | |
| deviceIndex | back to summary |
|---|---|
| public final int deviceIndex | |
| deviceName | back to summary |
|---|---|
| private final String deviceName | |
| dkVersion | back to summary |
|---|---|
| private final int dkVersion | |
| eyeRenderOrder | back to summary |
|---|---|
| private final int[] eyeRenderOrder | |
| factory | back to summary |
|---|---|
| private final StereoDeviceFactory factory | |
| handle | back to summary |
|---|---|
| public OvrHmdContext handle | |
| hmdDesc | back to summary |
|---|---|
| public ovrHmdDesc hmdDesc | |
| locationSensorParams | back to summary |
|---|---|
| private final LocationSensorParameter locationSensorParams | |
| minimumDistortionBits | back to summary |
|---|---|
| private final int minimumDistortionBits | |
| position | back to summary |
|---|---|
| private final PointImmutable position | |
| recommendedDistortionBits | back to summary |
|---|---|
| private final int recommendedDistortionBits | |
| requiredRotation | back to summary |
|---|---|
| private final int requiredRotation | |
| resolution | back to summary |
|---|---|
| private final DimensionImmutable resolution | |
| sensorsStarted | back to summary |
|---|---|
| private boolean sensorsStarted | |
| supportedDistortionBits | back to summary |
|---|---|
| private final int supportedDistortionBits | |
| supportedSensorBits | back to summary |
|---|---|
| private final int supportedSensorBits | |
| usedSensorBits | back to summary |
|---|---|
| private int usedSensorBits | |
| OVRStereoDevice | back to summary |
|---|---|
| public OVRStereoDevice(final StereoDeviceFactory factory, final ovrHmdDesc hmdDesc, final int deviceIndex) | |
| createRenderer | back to summary |
|---|---|
| public final StereoDeviceRenderer createRenderer(final int distortionBits, final int textureCount, final float[] eyePositionOffset, final FovHVHalves[] eyeFov, final float pixelsPerDisplayPixel, final int textureUnit) Implements com. Doc from com. Create a new
| |
| dispose | back to summary |
|---|---|
| public final void dispose() Implements com. Doc from com. Disposes this
Implementation shall
| |
| getDefaultEyePositionOffset | back to summary |
|---|---|
| public float[] getDefaultEyePositionOffset() Implements com. Doc from com. Return the device default eye position offset for Result is an array of float values for
| |
| getDefaultFOV | back to summary |
|---|---|
| public final FovHVHalves[] getDefaultFOV() Implements com. Doc from com. Returns the device default Monoscopic devices return an array length of one, without the value for the right-eye!
| |
| getEnabledSensorBits | back to summary |
|---|---|
| public final int getEnabledSensorBits() Implements com. Doc from com. Returns the actual used sensor capability bits, e.g.
| |
| getEyeRenderOrder | back to summary |
|---|---|
| public final int[] getEyeRenderOrder() Implements com. Doc from com. Returns an array of the preferred eye rendering order. The array length reflects the supported eye count. Monoscopic devices only support one eye, where stereoscopic device two eyes.
| |
| getFactory | back to summary |
|---|---|
| public final StereoDeviceFactory getFactory() Implements com. Doc from com. Return the factory used to create this device.
| |
| getLocationSensorParams | back to summary |
|---|---|
| public final LocationSensorParameter getLocationSensorParams() Implements com. Doc from com. Returns the
| |
| getMinimumDistortionBits | back to summary |
|---|---|
| public final int getMinimumDistortionBits() Implements com. Doc from com. Returns the minimum distortion compensation bits as required by the
Minimum distortion compensation bits are being enforced by the
| |
| getPosition | back to summary |
|---|---|
| public final PointImmutable getPosition() Implements com. Doc from com. If operation within a device spanning virtual desktop, returns the device position. Otherwise simply 0/0.
| |
| getRecommendedDistortionBits | back to summary |
|---|---|
| public final int getRecommendedDistortionBits() Implements com. Doc from com. Returns the recommended distortion compensation bits for the User shall use the recommended distortion compensation to achieve a distortion free view.
| |
| getRequiredRotation | back to summary |
|---|---|
| public int getRequiredRotation() Implements com. Doc from com. Returns the CCW rotation as required by this display device.
| |
| getSensorsStarted | back to summary |
|---|---|
| public final boolean getSensorsStarted() Implements com. Doc from com. Return true if sensors have been started, false otherwise.
| |
| getSupportedDistortionBits | back to summary |
|---|---|
| public final int getSupportedDistortionBits() Implements com. Doc from com. Returns the supported distortion compensation of the
| |
| getSupportedSensorBits | back to summary |
|---|---|
| public final int getSupportedSensorBits() Implements com. Doc from com. Returns the supported sensor capability bits, e.g.
| |
| getSurfaceSize | back to summary |
|---|---|
| public final DimensionImmutable getSurfaceSize() Implements com. Doc from com. Returns the required surface size in pixel in target space.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements com. Doc from com. Returns
| |
| resetLocationSensorOrigin | back to summary |
|---|---|
| public final void resetLocationSensorOrigin() Implements com. Doc from com. Sets the location sensor's origin of this device to the current position.
In case
| |
| startSensors | back to summary |
|---|---|
| public final boolean startSensors(final int desiredSensorBits, final int requiredSensorBits) Implements com. Doc from com. Start desired and required sensors. Returns true if action was successful, otherwise false.
Method fails if required sensors are not
| |
| stopSensors | back to summary |
|---|---|
| public final boolean stopSensors() Implements com. Doc from com. Stop sensors. Returns true if action was successful, otherwise false.
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| updateUsedSensorBits | back to summary |
|---|---|
| pack-priv void updateUsedSensorBits(final ovrTrackingState trackingState) | |