Class TrackedDevicePose.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new TrackedDevicePose.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by TrackedDevicePose.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • 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.Buffer mDeviceToAbsoluteTracking​(java.util.function.Consumer<HmdMatrix34> consumer)
        Passes the mDeviceToAbsoluteTracking field to the specified Consumer.
      • vAngularVelocity

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

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

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

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