Package org.lwjgl.ovr

Class 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 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

    Layout

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

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • 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: org.lwjgl.system.Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class org.lwjgl.system.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.
      • 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.
      • mallocStack

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

        public static OVRCameraExtrinsics callocStack(org.lwjgl.system.MemoryStack stack)
        Returns a new OVRCameraExtrinsics instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • mallocStack

        public static OVRCameraExtrinsics.Buffer mallocStack(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new OVRCameraExtrinsics.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static OVRCameraExtrinsics.Buffer callocStack(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new OVRCameraExtrinsics.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity