Package org.lwjgl.ovr
Class OVRCameraExtrinsics
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRCameraExtrinsics
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRCameraExtrinsics extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMember documentation
LastChangedTimeSeconds– time in seconds from last change to the parameters. For instance, if the pose changes, or a camera exposure happens, this struct will be updated.CameraStatusFlags– current Status of the camera, a mix of bits fromovrCameraStatusFlagsAttachedToDevice– which Tracked device, if any, is the camera rigidly attached to. If set toTrackedDevice_None, then the camera is not attached to a tracked object. If the external camera moves while unattached (i.e. set toovrTrackedDevice_None), itsPosewon't be updated.RelativePose– the relative Pose of the External Camera. IfAttachedToDeviceisTrackedDevice_None, then this is a absolute pose in tracking space.LastExposureTimeSeconds– the time, in seconds, when the last successful exposure was takenExposureLatencySeconds– estimated exposure latency to get from the exposure time to the systemAdditionalLatencySeconds– additional latency to get from the exposure time of the real camera to match the render time of the virtual camera
Layout
struct ovrCameraExtrinsics { double LastChangedTimeSeconds; unsigned int CameraStatusFlags; ovrTrackedDeviceType AttachedToDevice;ovrPosefRelativePose; double LastExposureTimeSeconds; double ExposureLatencySeconds; double AdditionalLatencySeconds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRCameraExtrinsics.BufferAn array ofOVRCameraExtrinsicsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intADDITIONALLATENCYSECONDSThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intATTACHEDTODEVICE
CAMERASTATUSFLAGS
EXPOSURELATENCYSECONDS
LASTCHANGEDTIMESECONDS
LASTEXPOSURETIMESECONDS
RELATIVEPOSEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRCameraExtrinsics(java.nio.ByteBuffer container)Creates aOVRCameraExtrinsicsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleAdditionalLatencySeconds()Returns the value of theAdditionalLatencySecondsfield.OVRCameraExtrinsicsAdditionalLatencySeconds(double value)Sets the specified value to theAdditionalLatencySecondsfield.intAttachedToDevice()Returns the value of theAttachedToDevicefield.OVRCameraExtrinsicsAttachedToDevice(int value)Sets the specified value to theAttachedToDevicefield.static OVRCameraExtrinsicscalloc()Returns a newOVRCameraExtrinsicsinstance allocated withmemCalloc.static OVRCameraExtrinsics.Buffercalloc(int capacity)Returns a newOVRCameraExtrinsics.Bufferinstance allocated withmemCalloc.static OVRCameraExtrinsicscallocStack()Returns a newOVRCameraExtrinsicsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRCameraExtrinsics.BuffercallocStack(int capacity)Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRCameraExtrinsics.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRCameraExtrinsicscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraExtrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intCameraStatusFlags()Returns the value of theCameraStatusFlagsfield.OVRCameraExtrinsicsCameraStatusFlags(int value)Sets the specified value to theCameraStatusFlagsfield.static OVRCameraExtrinsicscreate()Returns a newOVRCameraExtrinsicsinstance allocated withBufferUtils.static OVRCameraExtrinsics.Buffercreate(int capacity)Returns a newOVRCameraExtrinsics.Bufferinstance allocated withBufferUtils.static OVRCameraExtrinsicscreate(long address)Returns a newOVRCameraExtrinsicsinstance for the specified memory address.static OVRCameraExtrinsics.Buffercreate(long address, int capacity)Create aOVRCameraExtrinsics.Bufferinstance at the specified memory.static OVRCameraExtrinsicscreateSafe(long address)static OVRCameraExtrinsics.BuffercreateSafe(long address, int capacity)doubleExposureLatencySeconds()Returns the value of theExposureLatencySecondsfield.OVRCameraExtrinsicsExposureLatencySeconds(double value)Sets the specified value to theExposureLatencySecondsfield.doubleLastChangedTimeSeconds()Returns the value of theLastChangedTimeSecondsfield.OVRCameraExtrinsicsLastChangedTimeSeconds(double value)Sets the specified value to theLastChangedTimeSecondsfield.doubleLastExposureTimeSeconds()Returns the value of theLastExposureTimeSecondsfield.OVRCameraExtrinsicsLastExposureTimeSeconds(double value)Sets the specified value to theLastExposureTimeSecondsfield.static OVRCameraExtrinsicsmalloc()Returns a newOVRCameraExtrinsicsinstance allocated withmemAlloc.static OVRCameraExtrinsics.Buffermalloc(int capacity)Returns a newOVRCameraExtrinsics.Bufferinstance allocated withmemAlloc.static OVRCameraExtrinsicsmallocStack()Returns a newOVRCameraExtrinsicsinstance allocated on the thread-localMemoryStack.static OVRCameraExtrinsics.BuffermallocStack(int capacity)Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the thread-localMemoryStack.static OVRCameraExtrinsics.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the specifiedMemoryStack.static OVRCameraExtrinsicsmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRCameraExtrinsicsinstance allocated on the specifiedMemoryStack.static doublenAdditionalLatencySeconds(long struct)Unsafe version ofAdditionalLatencySeconds().static voidnAdditionalLatencySeconds(long struct, double value)Unsafe version ofAdditionalLatencySeconds.static intnAttachedToDevice(long struct)Unsafe version ofAttachedToDevice().static voidnAttachedToDevice(long struct, int value)Unsafe version ofAttachedToDevice.static intnCameraStatusFlags(long struct)Unsafe version ofCameraStatusFlags().static voidnCameraStatusFlags(long struct, int value)Unsafe version ofCameraStatusFlags.static doublenExposureLatencySeconds(long struct)Unsafe version ofExposureLatencySeconds().static voidnExposureLatencySeconds(long struct, double value)Unsafe version ofExposureLatencySeconds.static doublenLastChangedTimeSeconds(long struct)Unsafe version ofLastChangedTimeSeconds().static voidnLastChangedTimeSeconds(long struct, double value)Unsafe version ofLastChangedTimeSeconds.static doublenLastExposureTimeSeconds(long struct)Unsafe version ofLastExposureTimeSeconds().static voidnLastExposureTimeSeconds(long struct, double value)Unsafe version ofLastExposureTimeSeconds.static OVRPosefnRelativePose(long struct)Unsafe version ofRelativePose().static voidnRelativePose(long struct, OVRPosef value)Unsafe version ofRelativePose.OVRPosefRelativePose()Returns aOVRPosefview of theRelativePosefield.OVRCameraExtrinsicsRelativePose(java.util.function.Consumer<OVRPosef> consumer)Passes theRelativePosefield to the specifiedConsumer.OVRCameraExtrinsicsRelativePose(OVRPosef value)Copies the specifiedOVRPosefto theRelativePosefield.OVRCameraExtrinsicsset(double LastChangedTimeSeconds, int CameraStatusFlags, int AttachedToDevice, OVRPosef RelativePose, double LastExposureTimeSeconds, double ExposureLatencySeconds, double AdditionalLatencySeconds)Initializes this struct with the specified values.OVRCameraExtrinsicsset(OVRCameraExtrinsics src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
OVRCameraExtrinsics
public OVRCameraExtrinsics(java.nio.ByteBuffer container)
Creates aOVRCameraExtrinsicsinstance 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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
LastChangedTimeSeconds
public double LastChangedTimeSeconds()
Returns the value of theLastChangedTimeSecondsfield.
-
CameraStatusFlags
public int CameraStatusFlags()
Returns the value of theCameraStatusFlagsfield.
-
AttachedToDevice
public int AttachedToDevice()
Returns the value of theAttachedToDevicefield.
-
LastExposureTimeSeconds
public double LastExposureTimeSeconds()
Returns the value of theLastExposureTimeSecondsfield.
-
ExposureLatencySeconds
public double ExposureLatencySeconds()
Returns the value of theExposureLatencySecondsfield.
-
AdditionalLatencySeconds
public double AdditionalLatencySeconds()
Returns the value of theAdditionalLatencySecondsfield.
-
LastChangedTimeSeconds
public OVRCameraExtrinsics LastChangedTimeSeconds(double value)
Sets the specified value to theLastChangedTimeSecondsfield.
-
CameraStatusFlags
public OVRCameraExtrinsics CameraStatusFlags(int value)
Sets the specified value to theCameraStatusFlagsfield.
-
AttachedToDevice
public OVRCameraExtrinsics AttachedToDevice(int value)
Sets the specified value to theAttachedToDevicefield.
-
RelativePose
public OVRCameraExtrinsics RelativePose(OVRPosef value)
Copies the specifiedOVRPosefto theRelativePosefield.
-
RelativePose
public OVRCameraExtrinsics RelativePose(java.util.function.Consumer<OVRPosef> consumer)
Passes theRelativePosefield to the specifiedConsumer.
-
LastExposureTimeSeconds
public OVRCameraExtrinsics LastExposureTimeSeconds(double value)
Sets the specified value to theLastExposureTimeSecondsfield.
-
ExposureLatencySeconds
public OVRCameraExtrinsics ExposureLatencySeconds(double value)
Sets the specified value to theExposureLatencySecondsfield.
-
AdditionalLatencySeconds
public OVRCameraExtrinsics AdditionalLatencySeconds(double value)
Sets the specified value to theAdditionalLatencySecondsfield.
-
set
public OVRCameraExtrinsics set(double LastChangedTimeSeconds, int CameraStatusFlags, int AttachedToDevice, OVRPosef RelativePose, double LastExposureTimeSeconds, double ExposureLatencySeconds, double AdditionalLatencySeconds)
Initializes this struct with the specified values.
-
set
public OVRCameraExtrinsics set(OVRCameraExtrinsics src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRCameraExtrinsics malloc()
Returns a newOVRCameraExtrinsicsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRCameraExtrinsics calloc()
Returns a newOVRCameraExtrinsicsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRCameraExtrinsics create()
Returns a newOVRCameraExtrinsicsinstance allocated withBufferUtils.
-
create
public static OVRCameraExtrinsics create(long address)
Returns a newOVRCameraExtrinsicsinstance for the specified memory address.
-
createSafe
@Nullable public static OVRCameraExtrinsics createSafe(long address)
-
malloc
public static OVRCameraExtrinsics.Buffer malloc(int capacity)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRCameraExtrinsics.Buffer calloc(int capacity)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRCameraExtrinsics.Buffer create(int capacity)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRCameraExtrinsics.Buffer create(long address, int capacity)
Create aOVRCameraExtrinsics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRCameraExtrinsics.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRCameraExtrinsics mallocStack()
Returns a newOVRCameraExtrinsicsinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRCameraExtrinsics callocStack()
Returns a newOVRCameraExtrinsicsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRCameraExtrinsics mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsicsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRCameraExtrinsics callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsicsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRCameraExtrinsics.Buffer mallocStack(int capacity)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRCameraExtrinsics.Buffer callocStack(int capacity)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRCameraExtrinsics.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRCameraExtrinsics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nLastChangedTimeSeconds
public static double nLastChangedTimeSeconds(long struct)
Unsafe version ofLastChangedTimeSeconds().
-
nCameraStatusFlags
public static int nCameraStatusFlags(long struct)
Unsafe version ofCameraStatusFlags().
-
nAttachedToDevice
public static int nAttachedToDevice(long struct)
Unsafe version ofAttachedToDevice().
-
nRelativePose
public static OVRPosef nRelativePose(long struct)
Unsafe version ofRelativePose().
-
nLastExposureTimeSeconds
public static double nLastExposureTimeSeconds(long struct)
Unsafe version ofLastExposureTimeSeconds().
-
nExposureLatencySeconds
public static double nExposureLatencySeconds(long struct)
Unsafe version ofExposureLatencySeconds().
-
nAdditionalLatencySeconds
public static double nAdditionalLatencySeconds(long struct)
Unsafe version ofAdditionalLatencySeconds().
-
nLastChangedTimeSeconds
public static void nLastChangedTimeSeconds(long struct, double value)Unsafe version ofLastChangedTimeSeconds.
-
nCameraStatusFlags
public static void nCameraStatusFlags(long struct, int value)Unsafe version ofCameraStatusFlags.
-
nAttachedToDevice
public static void nAttachedToDevice(long struct, int value)Unsafe version ofAttachedToDevice.
-
nRelativePose
public static void nRelativePose(long struct, OVRPosef value)Unsafe version ofRelativePose.
-
nLastExposureTimeSeconds
public static void nLastExposureTimeSeconds(long struct, double value)Unsafe version ofLastExposureTimeSeconds.
-
nExposureLatencySeconds
public static void nExposureLatencySeconds(long struct, double value)Unsafe version ofExposureLatencySeconds.
-
nAdditionalLatencySeconds
public static void nAdditionalLatencySeconds(long struct, double value)Unsafe version ofAdditionalLatencySeconds.
-
-