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.NativeResource
Member 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 fromovrCameraStatusFlags
AttachedToDevice
– 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
), itsPose
won't be updated.RelativePose
– the relative Pose of the External Camera. IfAttachedToDevice
isTrackedDevice_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;
ovrPosef
RelativePose; double LastExposureTimeSeconds; double ExposureLatencySeconds; double AdditionalLatencySeconds; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRCameraExtrinsics.Buffer
An array ofOVRCameraExtrinsics
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ADDITIONALLATENCYSECONDS
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
ATTACHEDTODEVICE
CAMERASTATUSFLAGS
EXPOSURELATENCYSECONDS
LASTCHANGEDTIMESECONDS
LASTEXPOSURETIMESECONDS
RELATIVEPOSEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRCameraExtrinsics(java.nio.ByteBuffer container)
Creates aOVRCameraExtrinsics
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
AdditionalLatencySeconds()
Returns the value of theAdditionalLatencySeconds
field.OVRCameraExtrinsics
AdditionalLatencySeconds(double value)
Sets the specified value to theAdditionalLatencySeconds
field.int
AttachedToDevice()
Returns the value of theAttachedToDevice
field.OVRCameraExtrinsics
AttachedToDevice(int value)
Sets the specified value to theAttachedToDevice
field.static OVRCameraExtrinsics
calloc()
Returns a newOVRCameraExtrinsics
instance allocated withmemCalloc
.static OVRCameraExtrinsics.Buffer
calloc(int capacity)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated withmemCalloc
.static OVRCameraExtrinsics
callocStack()
Returns a newOVRCameraExtrinsics
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRCameraExtrinsics.Buffer
callocStack(int capacity)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRCameraExtrinsics.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRCameraExtrinsics
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsics
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
CameraStatusFlags()
Returns the value of theCameraStatusFlags
field.OVRCameraExtrinsics
CameraStatusFlags(int value)
Sets the specified value to theCameraStatusFlags
field.static OVRCameraExtrinsics
create()
Returns a newOVRCameraExtrinsics
instance allocated withBufferUtils
.static OVRCameraExtrinsics.Buffer
create(int capacity)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated withBufferUtils
.static OVRCameraExtrinsics
create(long address)
Returns a newOVRCameraExtrinsics
instance for the specified memory address.static OVRCameraExtrinsics.Buffer
create(long address, int capacity)
Create aOVRCameraExtrinsics.Buffer
instance at the specified memory.static OVRCameraExtrinsics
createSafe(long address)
static OVRCameraExtrinsics.Buffer
createSafe(long address, int capacity)
double
ExposureLatencySeconds()
Returns the value of theExposureLatencySeconds
field.OVRCameraExtrinsics
ExposureLatencySeconds(double value)
Sets the specified value to theExposureLatencySeconds
field.double
LastChangedTimeSeconds()
Returns the value of theLastChangedTimeSeconds
field.OVRCameraExtrinsics
LastChangedTimeSeconds(double value)
Sets the specified value to theLastChangedTimeSeconds
field.double
LastExposureTimeSeconds()
Returns the value of theLastExposureTimeSeconds
field.OVRCameraExtrinsics
LastExposureTimeSeconds(double value)
Sets the specified value to theLastExposureTimeSeconds
field.static OVRCameraExtrinsics
malloc()
Returns a newOVRCameraExtrinsics
instance allocated withmemAlloc
.static OVRCameraExtrinsics.Buffer
malloc(int capacity)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated withmemAlloc
.static OVRCameraExtrinsics
mallocStack()
Returns a newOVRCameraExtrinsics
instance allocated on the thread-localMemoryStack
.static OVRCameraExtrinsics.Buffer
mallocStack(int capacity)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated on the thread-localMemoryStack
.static OVRCameraExtrinsics.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated on the specifiedMemoryStack
.static OVRCameraExtrinsics
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsics
instance allocated on the specifiedMemoryStack
.static double
nAdditionalLatencySeconds(long struct)
Unsafe version ofAdditionalLatencySeconds()
.static void
nAdditionalLatencySeconds(long struct, double value)
Unsafe version ofAdditionalLatencySeconds
.static int
nAttachedToDevice(long struct)
Unsafe version ofAttachedToDevice()
.static void
nAttachedToDevice(long struct, int value)
Unsafe version ofAttachedToDevice
.static int
nCameraStatusFlags(long struct)
Unsafe version ofCameraStatusFlags()
.static void
nCameraStatusFlags(long struct, int value)
Unsafe version ofCameraStatusFlags
.static double
nExposureLatencySeconds(long struct)
Unsafe version ofExposureLatencySeconds()
.static void
nExposureLatencySeconds(long struct, double value)
Unsafe version ofExposureLatencySeconds
.static double
nLastChangedTimeSeconds(long struct)
Unsafe version ofLastChangedTimeSeconds()
.static void
nLastChangedTimeSeconds(long struct, double value)
Unsafe version ofLastChangedTimeSeconds
.static double
nLastExposureTimeSeconds(long struct)
Unsafe version ofLastExposureTimeSeconds()
.static void
nLastExposureTimeSeconds(long struct, double value)
Unsafe version ofLastExposureTimeSeconds
.static OVRPosef
nRelativePose(long struct)
Unsafe version ofRelativePose()
.static void
nRelativePose(long struct, OVRPosef value)
Unsafe version ofRelativePose
.OVRPosef
RelativePose()
Returns aOVRPosef
view of theRelativePose
field.OVRCameraExtrinsics
RelativePose(java.util.function.Consumer<OVRPosef> consumer)
Passes theRelativePose
field to the specifiedConsumer
.OVRCameraExtrinsics
RelativePose(OVRPosef value)
Copies the specifiedOVRPosef
to theRelativePose
field.OVRCameraExtrinsics
set(double LastChangedTimeSeconds, int CameraStatusFlags, int AttachedToDevice, OVRPosef RelativePose, double LastExposureTimeSeconds, double ExposureLatencySeconds, double AdditionalLatencySeconds)
Initializes this struct with the specified values.OVRCameraExtrinsics
set(OVRCameraExtrinsics src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
OVRCameraExtrinsics
public OVRCameraExtrinsics(java.nio.ByteBuffer container)
Creates aOVRCameraExtrinsics
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
LastChangedTimeSeconds
public double LastChangedTimeSeconds()
Returns the value of theLastChangedTimeSeconds
field.
-
CameraStatusFlags
public int CameraStatusFlags()
Returns the value of theCameraStatusFlags
field.
-
AttachedToDevice
public int AttachedToDevice()
Returns the value of theAttachedToDevice
field.
-
LastExposureTimeSeconds
public double LastExposureTimeSeconds()
Returns the value of theLastExposureTimeSeconds
field.
-
ExposureLatencySeconds
public double ExposureLatencySeconds()
Returns the value of theExposureLatencySeconds
field.
-
AdditionalLatencySeconds
public double AdditionalLatencySeconds()
Returns the value of theAdditionalLatencySeconds
field.
-
LastChangedTimeSeconds
public OVRCameraExtrinsics LastChangedTimeSeconds(double value)
Sets the specified value to theLastChangedTimeSeconds
field.
-
CameraStatusFlags
public OVRCameraExtrinsics CameraStatusFlags(int value)
Sets the specified value to theCameraStatusFlags
field.
-
AttachedToDevice
public OVRCameraExtrinsics AttachedToDevice(int value)
Sets the specified value to theAttachedToDevice
field.
-
RelativePose
public OVRCameraExtrinsics RelativePose(OVRPosef value)
Copies the specifiedOVRPosef
to theRelativePose
field.
-
RelativePose
public OVRCameraExtrinsics RelativePose(java.util.function.Consumer<OVRPosef> consumer)
Passes theRelativePose
field to the specifiedConsumer
.
-
LastExposureTimeSeconds
public OVRCameraExtrinsics LastExposureTimeSeconds(double value)
Sets the specified value to theLastExposureTimeSeconds
field.
-
ExposureLatencySeconds
public OVRCameraExtrinsics ExposureLatencySeconds(double value)
Sets the specified value to theExposureLatencySeconds
field.
-
AdditionalLatencySeconds
public OVRCameraExtrinsics AdditionalLatencySeconds(double value)
Sets the specified value to theAdditionalLatencySeconds
field.
-
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 newOVRCameraExtrinsics
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRCameraExtrinsics calloc()
Returns a newOVRCameraExtrinsics
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRCameraExtrinsics create()
Returns a newOVRCameraExtrinsics
instance allocated withBufferUtils
.
-
create
public static OVRCameraExtrinsics create(long address)
Returns a newOVRCameraExtrinsics
instance for the specified memory address.
-
createSafe
@Nullable public static OVRCameraExtrinsics createSafe(long address)
-
malloc
public static OVRCameraExtrinsics.Buffer malloc(int capacity)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRCameraExtrinsics.Buffer calloc(int capacity)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRCameraExtrinsics.Buffer create(int capacity)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRCameraExtrinsics.Buffer create(long address, int capacity)
Create aOVRCameraExtrinsics.Buffer
instance 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 newOVRCameraExtrinsics
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRCameraExtrinsics callocStack()
Returns a newOVRCameraExtrinsics
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRCameraExtrinsics mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsics
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRCameraExtrinsics callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRCameraExtrinsics
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRCameraExtrinsics.Buffer callocStack(int capacity)
Returns a newOVRCameraExtrinsics.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-