Package com.leia.sdk
Class Config
- java.lang.Object
-
- com.leia.sdk.Config
-
- All Implemented Interfaces:
AutoCloseable
public class Config extends Object implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConfig.Orientation
-
Field Summary
Fields Modifier and Type Field Description static intORIENTATION_COUNTstatic intORIENTATION_LANDSCAPEstatic intORIENTATION_PORTRAITstatic intORIENTATION_REVERSE_LANDSCAPEstatic intORIENTATION_REVERSE_PORTRAITstatic intORIENTATION_UNSPECIFIED
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyChanges(LeiaSDK leiaSDK)voidclose()protected voidfinalize()CameraConfigurationgetCameraConfiguration()Vector2igetDisplaySizeMm()Vector2igetNumHardwareViews()Vector2igetPanelResolution()Vector2getPixelSizeMm()floatgetUserIpdMm()Vector2igetViewResolution()voidsetUserIpdMm(float userIpd)voidsetViewResolution(Vector2i viewResolution)
-
-
-
Field Detail
-
ORIENTATION_UNSPECIFIED
public static final int ORIENTATION_UNSPECIFIED
- See Also:
- Constant Field Values
-
ORIENTATION_LANDSCAPE
public static final int ORIENTATION_LANDSCAPE
- See Also:
- Constant Field Values
-
ORIENTATION_PORTRAIT
public static final int ORIENTATION_PORTRAIT
- See Also:
- Constant Field Values
-
ORIENTATION_REVERSE_LANDSCAPE
public static final int ORIENTATION_REVERSE_LANDSCAPE
- See Also:
- Constant Field Values
-
ORIENTATION_REVERSE_PORTRAIT
public static final int ORIENTATION_REVERSE_PORTRAIT
- See Also:
- Constant Field Values
-
ORIENTATION_COUNT
public static final int ORIENTATION_COUNT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Config
public Config(LeiaSDK leiaSDK)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
finalize
protected void finalize() throws Throwable
-
getPixelSizeMm
public Vector2 getPixelSizeMm()
-
getPanelResolution
public Vector2i getPanelResolution()
-
getViewResolution
public Vector2i getViewResolution()
-
setViewResolution
public void setViewResolution(Vector2i viewResolution)
-
getDisplaySizeMm
public Vector2i getDisplaySizeMm()
-
getUserIpdMm
public float getUserIpdMm()
-
setUserIpdMm
public void setUserIpdMm(float userIpd)
-
getNumHardwareViews
public Vector2i getNumHardwareViews()
-
getCameraConfiguration
public CameraConfiguration getCameraConfiguration()
-
applyChanges
public void applyChanges(LeiaSDK leiaSDK)
-
-