Package org.lwjgl.ovr

Class OVRCameraIntrinsics

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

    public class OVRCameraIntrinsics
    extends Struct
    implements NativeResource

    Member documentation

    • LastChangedTime – time in seconds from last change to the parameters
    • FOVPort – angles of all 4 sides of viewport
    • VirtualNearPlaneDistanceMeters – near plane of the virtual camera used to match the external camera
    • VirtualFarPlaneDistanceMeters – far plane of the virtual camera used to match the external camera
    • ImageSensorPixelResolution – height in pixels of image sensor
    • LensDistortionMatrix – the lens distortion matrix of camera
    • ExposurePeriodSeconds – how often, in seconds, the exposure is taken
    • ExposureDurationSeconds – length of the exposure time

    Layout

    
     struct ovrCameraIntrinsics {
         double LastChangedTime;
         ovrFovPort FOVPort;
         float VirtualNearPlaneDistanceMeters;
         float VirtualFarPlaneDistanceMeters;
         ovrSizei ImageSensorPixelResolution;
         ovrMatrix4f LensDistortionMatrix;
         double ExposurePeriodSeconds;
         double ExposureDurationSeconds;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • LASTCHANGEDTIME, FOVPORT, VIRTUALNEARPLANEDISTANCEMETERS, VIRTUALFARPLANEDISTANCEMETERS, IMAGESENSORPIXELRESOLUTION, LENSDISTORTIONMATRIX, EXPOSUREPERIODSECONDS, EXPOSUREDURATIONSECONDS

        The struct member offsets.
    • Constructor Detail

      • OVRCameraIntrinsics

        public OVRCameraIntrinsics​(java.nio.ByteBuffer container)
        Creates a OVRCameraIntrinsics 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
      • LastChangedTime

        public double LastChangedTime()
        Returns the value of the LastChangedTime field.
      • VirtualNearPlaneDistanceMeters

        public float VirtualNearPlaneDistanceMeters()
        Returns the value of the VirtualNearPlaneDistanceMeters field.
      • VirtualFarPlaneDistanceMeters

        public float VirtualFarPlaneDistanceMeters()
        Returns the value of the VirtualFarPlaneDistanceMeters field.
      • ImageSensorPixelResolution

        public OVRSizei ImageSensorPixelResolution()
        Returns a OVRSizei view of the ImageSensorPixelResolution field.
      • LensDistortionMatrix

        public OVRMatrix4f LensDistortionMatrix()
        Returns a OVRMatrix4f view of the LensDistortionMatrix field.
      • ExposurePeriodSeconds

        public double ExposurePeriodSeconds()
        Returns the value of the ExposurePeriodSeconds field.
      • ExposureDurationSeconds

        public double ExposureDurationSeconds()
        Returns the value of the ExposureDurationSeconds field.
      • LastChangedTime

        public OVRCameraIntrinsics LastChangedTime​(double value)
        Sets the specified value to the LastChangedTime field.
      • FOVPort

        public OVRCameraIntrinsics FOVPort​(java.util.function.Consumer<OVRFovPort> consumer)
        Passes the FOVPort field to the specified Consumer.
      • VirtualNearPlaneDistanceMeters

        public OVRCameraIntrinsics VirtualNearPlaneDistanceMeters​(float value)
        Sets the specified value to the VirtualNearPlaneDistanceMeters field.
      • VirtualFarPlaneDistanceMeters

        public OVRCameraIntrinsics VirtualFarPlaneDistanceMeters​(float value)
        Sets the specified value to the VirtualFarPlaneDistanceMeters field.
      • ImageSensorPixelResolution

        public OVRCameraIntrinsics ImageSensorPixelResolution​(OVRSizei value)
        Copies the specified OVRSizei to the ImageSensorPixelResolution field.
      • ImageSensorPixelResolution

        public OVRCameraIntrinsics ImageSensorPixelResolution​(java.util.function.Consumer<OVRSizei> consumer)
        Passes the ImageSensorPixelResolution field to the specified Consumer.
      • LensDistortionMatrix

        public OVRCameraIntrinsics LensDistortionMatrix​(java.util.function.Consumer<OVRMatrix4f> consumer)
        Passes the LensDistortionMatrix field to the specified Consumer.
      • ExposurePeriodSeconds

        public OVRCameraIntrinsics ExposurePeriodSeconds​(double value)
        Sets the specified value to the ExposurePeriodSeconds field.
      • ExposureDurationSeconds

        public OVRCameraIntrinsics ExposureDurationSeconds​(double value)
        Sets the specified value to the ExposureDurationSeconds field.
      • set

        public OVRCameraIntrinsics set​(double LastChangedTime,
                                       OVRFovPort FOVPort,
                                       float VirtualNearPlaneDistanceMeters,
                                       float VirtualFarPlaneDistanceMeters,
                                       OVRSizei ImageSensorPixelResolution,
                                       OVRMatrix4f LensDistortionMatrix,
                                       double ExposurePeriodSeconds,
                                       double ExposureDurationSeconds)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

        public static double nLastChangedTime​(long struct)
        Unsafe version of LastChangedTime().
      • nExposurePeriodSeconds

        public static double nExposurePeriodSeconds​(long struct)
        Unsafe version of ExposurePeriodSeconds().
      • nExposureDurationSeconds

        public static double nExposureDurationSeconds​(long struct)
        Unsafe version of ExposureDurationSeconds().
      • nLastChangedTime

        public static void nLastChangedTime​(long struct,
                                            double value)
        Unsafe version of LastChangedTime.
      • nFOVPort

        public static void nFOVPort​(long struct,
                                    OVRFovPort value)
        Unsafe version of FOVPort.
      • nVirtualNearPlaneDistanceMeters

        public static void nVirtualNearPlaneDistanceMeters​(long struct,
                                                           float value)
      • nVirtualFarPlaneDistanceMeters

        public static void nVirtualFarPlaneDistanceMeters​(long struct,
                                                          float value)
      • nExposurePeriodSeconds

        public static void nExposurePeriodSeconds​(long struct,
                                                  double value)
        Unsafe version of ExposurePeriodSeconds.
      • nExposureDurationSeconds

        public static void nExposureDurationSeconds​(long struct,
                                                    double value)
        Unsafe version of ExposureDurationSeconds.