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

    Layout

    
     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.
      • LASTCHANGEDTIMESECONDS, CAMERASTATUSFLAGS, ATTACHEDTODEVICE, RELATIVEPOSE, LASTEXPOSURETIMESECONDS, EXPOSURELATENCYSECONDS, ADDITIONALLATENCYSECONDS

        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.
      • RelativePose

        public OVRCameraExtrinsics RelativePose​(java.util.function.Consumer<OVRPosef> consumer)
        Passes the RelativePose field to the specified Consumer.
      • 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.
      • createSafe

        @Nullable
        public static OVRCameraExtrinsics createSafe​(long address)
        Like create, but returns null if address is NULL.
      • 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.