Class GenericStereoDeviceConfig
- java.lang.Object
-
- com.jogamp.opengl.util.stereo.StereoDeviceConfig
-
- com.jogamp.opengl.util.stereo.generic.GenericStereoDeviceConfig
-
public class GenericStereoDeviceConfig extends StereoDeviceConfig
Configuration forGenericStereoDevice
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenericStereoDeviceConfig.ShutterType
-
Field Summary
Fields Modifier and Type Field Description EyeParameter[]
defaultEyeParam
jogamp.opengl.util.stereo.DistortionMesh.Producer
distortionMeshProducer
int[]
eyeRenderOrder
DimensionImmutable[]
eyeTextureSizes
Texture size per eyefloat
interpupillaryDistanceInMeters
Horizontal interpupillary distance (IPD) in metersint
minimumDistortionBits
Required distortion bits, seeStereoDeviceRenderer.DISTORTION_BARREL
.String
name
Configuration Namefloat
pupilCenterFromScreenTopInMeters
Vertical distance from pupil to screen-top in metersfloat[][]
pupilCenterFromTopLeft
Pupil center from top left per eye, ranging from [0..1], maybe used to produce FovHVHalves, see#getHorizPupilCenterFromLeft(float, float)
and#getVertPupilCenterFromTop(float, float)
.int
recommendedDistortionBits
Recommended distortion bits, seeStereoDeviceRenderer.DISTORTION_BARREL
.float[]
screenSizeInMeters
GenericStereoDeviceConfig.ShutterType
shutterType
int
supportedDistortionBits
Supported distortion bits, seeStereoDeviceRenderer.DISTORTION_BARREL
.int
supportedSensorBits
Supported sensor bits, seeStereoDevice.SENSOR_ORIENTATION
.DimensionImmutable
surfaceSizeInPixels
-
Constructor Summary
Constructors Constructor Description GenericStereoDeviceConfig(GenericStereoDeviceConfig source, DimensionImmutable surfaceSizeInPixels, float[] screenSizeInMeters, DimensionImmutable[] eyeTextureSize)
A variation w/ different surface/screen specsGenericStereoDeviceConfig(String name, GenericStereoDeviceConfig.ShutterType shutterType, DimensionImmutable surfaceSizeInPixels, float[] screenSizeInMeters, DimensionImmutable[] eyeTextureSize, float pupilCenterFromScreenTopInMeters, float interpupillaryDistanceInMeters, int[] eyeRenderOrder, EyeParameter[] defaultEyeParam, int supportedSensorBits, jogamp.opengl.util.stereo.DistortionMesh.Producer distortionMeshProducer, int supportedDistortionBits, int recommendedDistortionBits, int minimumDistortionBits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
One time lazy initialization before use.boolean
isInitialized()
String
toString()
-
-
-
Field Detail
-
name
public final String name
Configuration Name
-
shutterType
public final GenericStereoDeviceConfig.ShutterType shutterType
-
surfaceSizeInPixels
public final DimensionImmutable surfaceSizeInPixels
-
screenSizeInMeters
public final float[] screenSizeInMeters
-
eyeTextureSizes
public final DimensionImmutable[] eyeTextureSizes
Texture size per eye
-
pupilCenterFromScreenTopInMeters
public final float pupilCenterFromScreenTopInMeters
Vertical distance from pupil to screen-top in meters
-
interpupillaryDistanceInMeters
public final float interpupillaryDistanceInMeters
Horizontal interpupillary distance (IPD) in meters
-
pupilCenterFromTopLeft
public final float[][] pupilCenterFromTopLeft
Pupil center from top left per eye, ranging from [0..1], maybe used to produce FovHVHalves, see#getHorizPupilCenterFromLeft(float, float)
and#getVertPupilCenterFromTop(float, float)
.
-
eyeRenderOrder
public final int[] eyeRenderOrder
-
defaultEyeParam
public final EyeParameter[] defaultEyeParam
-
supportedSensorBits
public final int supportedSensorBits
Supported sensor bits, seeStereoDevice.SENSOR_ORIENTATION
.
-
distortionMeshProducer
public final jogamp.opengl.util.stereo.DistortionMesh.Producer distortionMeshProducer
-
supportedDistortionBits
public final int supportedDistortionBits
Supported distortion bits, seeStereoDeviceRenderer.DISTORTION_BARREL
.
-
recommendedDistortionBits
public final int recommendedDistortionBits
Recommended distortion bits, seeStereoDeviceRenderer.DISTORTION_BARREL
.
-
minimumDistortionBits
public final int minimumDistortionBits
Required distortion bits, seeStereoDeviceRenderer.DISTORTION_BARREL
.
-
-
Constructor Detail
-
GenericStereoDeviceConfig
public GenericStereoDeviceConfig(String name, GenericStereoDeviceConfig.ShutterType shutterType, DimensionImmutable surfaceSizeInPixels, float[] screenSizeInMeters, DimensionImmutable[] eyeTextureSize, float pupilCenterFromScreenTopInMeters, float interpupillaryDistanceInMeters, int[] eyeRenderOrder, EyeParameter[] defaultEyeParam, int supportedSensorBits, jogamp.opengl.util.stereo.DistortionMesh.Producer distortionMeshProducer, int supportedDistortionBits, int recommendedDistortionBits, int minimumDistortionBits)
-
GenericStereoDeviceConfig
public GenericStereoDeviceConfig(GenericStereoDeviceConfig source, DimensionImmutable surfaceSizeInPixels, float[] screenSizeInMeters, DimensionImmutable[] eyeTextureSize)
A variation w/ different surface/screen specs
-
-
Method Detail
-
init
public void init()
One time lazy initialization before use.- See Also:
isInitialized()
-
isInitialized
public final boolean isInitialized()
- See Also:
init()
-
-