Package org.lwjgl.ovr

Class OVRCameraExtrinsics

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class OVRCameraExtrinsics
    extends Struct
    implements 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 from ovrCameraStatusFlags
    • AttachedToDevice – which Tracked device, if any, is the camera rigidly attached to. If set to TrackedDevice_None, then the camera is not attached to a tracked object. If the external camera moves while unattached (i.e. set to ovrTrackedDevice_None), its Pose won't be updated.
    • RelativePose – the relative Pose of the External Camera. If AttachedToDevice is TrackedDevice_None, then this is a absolute pose in tracking space.
    • LastExposureTimeSeconds – the time, in seconds, when the last successful exposure was taken
    • ExposureLatencySeconds – estimated exposure latency to get from the exposure time to the system
    • AdditionalLatencySeconds – additional latency to get from the exposure time of the real camera to match the render time of the virtual camera


     struct ovrCameraExtrinsics {
         double LastChangedTimeSeconds;
         unsigned int CameraStatusFlags;
         ovrTrackedDeviceType AttachedToDevice;
         ovrPosef RelativePose;
         double LastExposureTimeSeconds;
         double ExposureLatencySeconds;
         double AdditionalLatencySeconds;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • OVRCameraExtrinsics

        public OVRCameraExtrinsics​(java.nio.ByteBuffer container)
        Creates a OVRCameraExtrinsics instance at the current position of the specified ByteBuffer 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • LastChangedTimeSeconds

        public double LastChangedTimeSeconds()
        Returns the value of the LastChangedTimeSeconds field.
      • CameraStatusFlags

        public int CameraStatusFlags()
        Returns the value of the CameraStatusFlags field.
      • AttachedToDevice

        public int AttachedToDevice()
        Returns the value of the AttachedToDevice field.
      • RelativePose

        public OVRPosef RelativePose()
        Returns a OVRPosef view of the RelativePose field.
      • LastExposureTimeSeconds

        public double LastExposureTimeSeconds()
        Returns the value of the LastExposureTimeSeconds field.
      • ExposureLatencySeconds

        public double ExposureLatencySeconds()
        Returns the value of the ExposureLatencySeconds field.
      • AdditionalLatencySeconds

        public double AdditionalLatencySeconds()
        Returns the value of the AdditionalLatencySeconds field.
      • LastChangedTimeSeconds

        public OVRCameraExtrinsics LastChangedTimeSeconds​(double value)
        Sets the specified value to the LastChangedTimeSeconds field.
      • CameraStatusFlags

        public OVRCameraExtrinsics CameraStatusFlags​(int value)
        Sets the specified value to the CameraStatusFlags field.
      • AttachedToDevice

        public OVRCameraExtrinsics AttachedToDevice​(int value)
        Sets the specified value to the AttachedToDevice field.
      • RelativePose

        public OVRCameraExtrinsics RelativePose​(java.util.function.Consumer<OVRPosef> consumer)
        Passes the RelativePose field to the specified Consumer.
      • LastExposureTimeSeconds

        public OVRCameraExtrinsics LastExposureTimeSeconds​(double value)
        Sets the specified value to the LastExposureTimeSeconds field.
      • ExposureLatencySeconds

        public OVRCameraExtrinsics ExposureLatencySeconds​(double value)
        Sets the specified value to the ExposureLatencySeconds field.
      • AdditionalLatencySeconds

        public OVRCameraExtrinsics AdditionalLatencySeconds​(double value)
        Sets the specified value to the AdditionalLatencySeconds 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.
      • malloc

        public static OVRCameraExtrinsics malloc()
        Returns a new OVRCameraExtrinsics instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static OVRCameraExtrinsics calloc()
        Returns a new OVRCameraExtrinsics instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static OVRCameraExtrinsics create​(long address)
        Returns a new OVRCameraExtrinsics instance for the specified memory address.
      • createSafe

        public static OVRCameraExtrinsics createSafe​(long address)
        Like create, but returns null if address is NULL.
      • callocStack

        public static OVRCameraExtrinsics callocStack()
        Returns a new OVRCameraExtrinsics instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static OVRCameraExtrinsics mallocStack​(MemoryStack stack)
        Returns a new OVRCameraExtrinsics instance allocated on the specified MemoryStack.
        stack - the stack from which to allocate
      • callocStack

        public static OVRCameraExtrinsics callocStack​(MemoryStack stack)
        Returns a new OVRCameraExtrinsics instance allocated on the specified MemoryStack and initializes all its bits to zero.
        stack - the stack from which to allocate
      • nLastChangedTimeSeconds

        public static double nLastChangedTimeSeconds​(long struct)
        Unsafe version of LastChangedTimeSeconds().
      • nCameraStatusFlags

        public static int nCameraStatusFlags​(long struct)
        Unsafe version of CameraStatusFlags().
      • nAttachedToDevice

        public static int nAttachedToDevice​(long struct)
        Unsafe version of AttachedToDevice().
      • nLastExposureTimeSeconds

        public static double nLastExposureTimeSeconds​(long struct)
        Unsafe version of LastExposureTimeSeconds().
      • nExposureLatencySeconds

        public static double nExposureLatencySeconds​(long struct)
        Unsafe version of ExposureLatencySeconds().
      • nAdditionalLatencySeconds

        public static double nAdditionalLatencySeconds​(long struct)
        Unsafe version of AdditionalLatencySeconds().
      • nLastChangedTimeSeconds

        public static void nLastChangedTimeSeconds​(long struct,
                                                   double value)
        Unsafe version of LastChangedTimeSeconds.
      • nCameraStatusFlags

        public static void nCameraStatusFlags​(long struct,
                                              int value)
        Unsafe version of CameraStatusFlags.
      • nAttachedToDevice

        public static void nAttachedToDevice​(long struct,
                                             int value)
        Unsafe version of AttachedToDevice.
      • nRelativePose

        public static void nRelativePose​(long struct,
                                         OVRPosef value)
        Unsafe version of RelativePose.
      • nLastExposureTimeSeconds

        public static void nLastExposureTimeSeconds​(long struct,
                                                    double value)
        Unsafe version of LastExposureTimeSeconds.
      • nExposureLatencySeconds

        public static void nExposureLatencySeconds​(long struct,
                                                   double value)
        Unsafe version of ExposureLatencySeconds.
      • nAdditionalLatencySeconds

        public static void nAdditionalLatencySeconds​(long struct,
                                                     double value)
        Unsafe version of AdditionalLatencySeconds.