Class TrackedDevicePose

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MDEVICETOABSOLUTETRACKING, VVELOCITY, VANGULARVELOCITY, ETRACKINGRESULT, BPOSEISVALID, BDEVICEISCONNECTED

        The struct member offsets.
    • Constructor Detail

      • TrackedDevicePose

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

        public HmdMatrix34 mDeviceToAbsoluteTracking()
        Returns a HmdMatrix34 view of the mDeviceToAbsoluteTracking field.
      • vAngularVelocity

        public HmdVector3 vAngularVelocity()
        Returns a HmdVector3 view of the vAngularVelocity field.
      • eTrackingResult

        public int eTrackingResult()
        Returns the value of the eTrackingResult field.
      • bPoseIsValid

        public boolean bPoseIsValid()
        Returns the value of the bPoseIsValid field.
      • bDeviceIsConnected

        public boolean bDeviceIsConnected()
        Returns the value of the bDeviceIsConnected field.
      • mDeviceToAbsoluteTracking

        public TrackedDevicePose mDeviceToAbsoluteTracking​(java.util.function.Consumer<HmdMatrix34> consumer)
        Passes the mDeviceToAbsoluteTracking field to the specified Consumer.
      • vVelocity

        public TrackedDevicePose vVelocity​(java.util.function.Consumer<HmdVector3> consumer)
        Passes the vVelocity field to the specified Consumer.
      • vAngularVelocity

        public TrackedDevicePose vAngularVelocity​(java.util.function.Consumer<HmdVector3> consumer)
        Passes the vAngularVelocity field to the specified Consumer.
      • eTrackingResult

        public TrackedDevicePose eTrackingResult​(int value)
        Sets the specified value to the eTrackingResult field.
      • bPoseIsValid

        public TrackedDevicePose bPoseIsValid​(boolean value)
        Sets the specified value to the bPoseIsValid field.
      • bDeviceIsConnected

        public TrackedDevicePose bDeviceIsConnected​(boolean value)
        Sets the specified value to the bDeviceIsConnected field.
      • set

        public TrackedDevicePose set​(HmdMatrix34 mDeviceToAbsoluteTracking,
                                     HmdVector3 vVelocity,
                                     HmdVector3 vAngularVelocity,
                                     int eTrackingResult,
                                     boolean bPoseIsValid,
                                     boolean bDeviceIsConnected)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

        @Nullable
        public static TrackedDevicePose.Buffer createSafe​(long address,
                                                          int capacity)
        Like create, but returns null if address is NULL.
      • mallocStack

        public static TrackedDevicePose mallocStack()
        Returns a new TrackedDevicePose instance allocated on the thread-local MemoryStack.
      • callocStack

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

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

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

        public static int neTrackingResult​(long struct)
        Unsafe version of eTrackingResult().
      • nbPoseIsValid

        public static boolean nbPoseIsValid​(long struct)
        Unsafe version of bPoseIsValid().
      • nbDeviceIsConnected

        public static boolean nbDeviceIsConnected​(long struct)
        Unsafe version of bDeviceIsConnected().
      • nvVelocity

        public static void nvVelocity​(long struct,
                                      HmdVector3 value)
        Unsafe version of vVelocity.
      • nvAngularVelocity

        public static void nvAngularVelocity​(long struct,
                                             HmdVector3 value)
        Unsafe version of vAngularVelocity.
      • neTrackingResult

        public static void neTrackingResult​(long struct,
                                            int value)
        Unsafe version of eTrackingResult.
      • nbPoseIsValid

        public static void nbPoseIsValid​(long struct,
                                         boolean value)
        Unsafe version of bPoseIsValid.
      • nbDeviceIsConnected

        public static void nbDeviceIsConnected​(long struct,
                                               boolean value)
        Unsafe version of bDeviceIsConnected.