Package org.lwjgl.ovr
Class OVRCameraIntrinsics
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRCameraIntrinsics
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
public class OVRCameraIntrinsics extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMember documentation
LastChangedTime– time in seconds from last change to the parametersFOVPort– angles of all 4 sides of viewportVirtualNearPlaneDistanceMeters– near plane of the virtual camera used to match the external cameraVirtualFarPlaneDistanceMeters– far plane of the virtual camera used to match the external cameraImageSensorPixelResolution– height in pixels of image sensorLensDistortionMatrix– the lens distortion matrix of cameraExposurePeriodSeconds– how often, in seconds, the exposure is takenExposureDurationSeconds– length of the exposure time
Layout
struct ovrCameraIntrinsics { double LastChangedTime;ovrFovPortFOVPort; float VirtualNearPlaneDistanceMeters; float VirtualFarPlaneDistanceMeters;ovrSizeiImageSensorPixelResolution;ovrMatrix4fLensDistortionMatrix; double ExposurePeriodSeconds; double ExposureDurationSeconds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classOVRCameraIntrinsics.BufferAn array ofOVRCameraIntrinsicsstructs.
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor and Description OVRCameraIntrinsics(java.nio.ByteBuffer container)Creates aOVRCameraIntrinsicsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OVRCameraIntrinsicscalloc()Returns a newOVRCameraIntrinsicsinstance allocated withmemCalloc.static OVRCameraIntrinsics.Buffercalloc(int capacity)Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemCalloc.static OVRCameraIntrinsicscallocStack()Returns a newOVRCameraIntrinsicsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRCameraIntrinsics.BuffercallocStack(int capacity)Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRCameraIntrinsics.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRCameraIntrinsicscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRCameraIntrinsicscreate()Returns a newOVRCameraIntrinsicsinstance allocated withBufferUtils.static OVRCameraIntrinsics.Buffercreate(int capacity)Returns a newOVRCameraIntrinsics.Bufferinstance allocated withBufferUtils.static OVRCameraIntrinsicscreate(long address)Returns a newOVRCameraIntrinsicsinstance for the specified memory address ornullif the address isNULL.static OVRCameraIntrinsics.Buffercreate(long address, int capacity)Create aOVRCameraIntrinsics.Bufferinstance at the specified memory.doubleExposureDurationSeconds()Returns the value of theExposureDurationSecondsfield.OVRCameraIntrinsicsExposureDurationSeconds(double value)Sets the specified value to theExposureDurationSecondsfield.doubleExposurePeriodSeconds()Returns the value of theExposurePeriodSecondsfield.OVRCameraIntrinsicsExposurePeriodSeconds(double value)Sets the specified value to theExposurePeriodSecondsfield.OVRFovPortFOVPort()Returns aOVRFovPortview of theFOVPortfield.OVRCameraIntrinsicsFOVPort(OVRFovPort value)Copies the specifiedOVRFovPortto theFOVPortfield.OVRSizeiImageSensorPixelResolution()Returns aOVRSizeiview of theImageSensorPixelResolutionfield.OVRCameraIntrinsicsImageSensorPixelResolution(OVRSizei value)Copies the specifiedOVRSizeito theImageSensorPixelResolutionfield.doubleLastChangedTime()Returns the value of theLastChangedTimefield.OVRCameraIntrinsicsLastChangedTime(double value)Sets the specified value to theLastChangedTimefield.OVRMatrix4fLensDistortionMatrix()Returns aOVRMatrix4fview of theLensDistortionMatrixfield.OVRCameraIntrinsicsLensDistortionMatrix(OVRMatrix4f value)Copies the specifiedOVRMatrix4fto theLensDistortionMatrixfield.static OVRCameraIntrinsicsmalloc()Returns a newOVRCameraIntrinsicsinstance allocated withmemAlloc.static OVRCameraIntrinsics.Buffermalloc(int capacity)Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemAlloc.static OVRCameraIntrinsicsmallocStack()Returns a newOVRCameraIntrinsicsinstance allocated on the thread-localMemoryStack.static OVRCameraIntrinsics.BuffermallocStack(int capacity)Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the thread-localMemoryStack.static OVRCameraIntrinsics.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStack.static OVRCameraIntrinsicsmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStack.OVRCameraIntrinsicsset(double LastChangedTime, OVRFovPort FOVPort, float VirtualNearPlaneDistanceMeters, float VirtualFarPlaneDistanceMeters, OVRSizei ImageSensorPixelResolution, OVRMatrix4f LensDistortionMatrix, double ExposurePeriodSeconds, double ExposureDurationSeconds)Initializes this struct with the specified values.OVRCameraIntrinsicsset(OVRCameraIntrinsics src)Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).floatVirtualFarPlaneDistanceMeters()Returns the value of theVirtualFarPlaneDistanceMetersfield.OVRCameraIntrinsicsVirtualFarPlaneDistanceMeters(float value)Sets the specified value to theVirtualFarPlaneDistanceMetersfield.floatVirtualNearPlaneDistanceMeters()Returns the value of theVirtualNearPlaneDistanceMetersfield.OVRCameraIntrinsicsVirtualNearPlaneDistanceMeters(float value)Sets the specified value to theVirtualNearPlaneDistanceMetersfield.
-
-
-
Constructor Detail
-
OVRCameraIntrinsics
public OVRCameraIntrinsics(java.nio.ByteBuffer container)
Creates aOVRCameraIntrinsicsinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
Description copied from class:org.lwjgl.system.StructReturnssizeof(struct).- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
LastChangedTime
public double LastChangedTime()
Returns the value of theLastChangedTimefield.
-
FOVPort
public OVRFovPort FOVPort()
Returns aOVRFovPortview of theFOVPortfield.
-
VirtualNearPlaneDistanceMeters
public float VirtualNearPlaneDistanceMeters()
Returns the value of theVirtualNearPlaneDistanceMetersfield.
-
VirtualFarPlaneDistanceMeters
public float VirtualFarPlaneDistanceMeters()
Returns the value of theVirtualFarPlaneDistanceMetersfield.
-
ImageSensorPixelResolution
public OVRSizei ImageSensorPixelResolution()
Returns aOVRSizeiview of theImageSensorPixelResolutionfield.
-
LensDistortionMatrix
public OVRMatrix4f LensDistortionMatrix()
Returns aOVRMatrix4fview of theLensDistortionMatrixfield.
-
ExposurePeriodSeconds
public double ExposurePeriodSeconds()
Returns the value of theExposurePeriodSecondsfield.
-
ExposureDurationSeconds
public double ExposureDurationSeconds()
Returns the value of theExposureDurationSecondsfield.
-
LastChangedTime
public OVRCameraIntrinsics LastChangedTime(double value)
Sets the specified value to theLastChangedTimefield.
-
FOVPort
public OVRCameraIntrinsics FOVPort(OVRFovPort value)
Copies the specifiedOVRFovPortto theFOVPortfield.
-
VirtualNearPlaneDistanceMeters
public OVRCameraIntrinsics VirtualNearPlaneDistanceMeters(float value)
Sets the specified value to theVirtualNearPlaneDistanceMetersfield.
-
VirtualFarPlaneDistanceMeters
public OVRCameraIntrinsics VirtualFarPlaneDistanceMeters(float value)
Sets the specified value to theVirtualFarPlaneDistanceMetersfield.
-
ImageSensorPixelResolution
public OVRCameraIntrinsics ImageSensorPixelResolution(OVRSizei value)
Copies the specifiedOVRSizeito theImageSensorPixelResolutionfield.
-
LensDistortionMatrix
public OVRCameraIntrinsics LensDistortionMatrix(OVRMatrix4f value)
Copies the specifiedOVRMatrix4fto theLensDistortionMatrixfield.
-
ExposurePeriodSeconds
public OVRCameraIntrinsics ExposurePeriodSeconds(double value)
Sets the specified value to theExposurePeriodSecondsfield.
-
ExposureDurationSeconds
public OVRCameraIntrinsics ExposureDurationSeconds(double value)
Sets the specified value to theExposureDurationSecondsfield.
-
set
public OVRCameraIntrinsics set(double LastChangedTime, OVRFovPort FOVPort, float VirtualNearPlaneDistanceMeters, float VirtualFarPlaneDistanceMeters, OVRSizei ImageSensorPixelResolution, OVRMatrix4f LensDistortionMatrix, double ExposurePeriodSeconds, double ExposureDurationSeconds)
Initializes this struct with the specified values.
-
set
public OVRCameraIntrinsics set(OVRCameraIntrinsics src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRCameraIntrinsics malloc()
Returns a newOVRCameraIntrinsicsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRCameraIntrinsics calloc()
Returns a newOVRCameraIntrinsicsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRCameraIntrinsics create()
Returns a newOVRCameraIntrinsicsinstance allocated withBufferUtils.
-
create
public static OVRCameraIntrinsics create(long address)
Returns a newOVRCameraIntrinsicsinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static OVRCameraIntrinsics.Buffer malloc(int capacity)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRCameraIntrinsics.Buffer calloc(int capacity)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRCameraIntrinsics.Buffer create(int capacity)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRCameraIntrinsics.Buffer create(long address, int capacity)
Create aOVRCameraIntrinsics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static OVRCameraIntrinsics mallocStack()
Returns a newOVRCameraIntrinsicsinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRCameraIntrinsics callocStack()
Returns a newOVRCameraIntrinsicsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRCameraIntrinsics mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRCameraIntrinsics callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRCameraIntrinsics.Buffer mallocStack(int capacity)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRCameraIntrinsics.Buffer callocStack(int capacity)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRCameraIntrinsics.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRCameraIntrinsics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraIntrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-