Package org.lwjgl.openvr
Class TrackedDevicePose.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<TrackedDevicePose,TrackedDevicePose.Buffer>
-
- org.lwjgl.openvr.TrackedDevicePose.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<TrackedDevicePose>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- TrackedDevicePose
public static class TrackedDevicePose.Buffer extends org.lwjgl.system.StructBuffer<TrackedDevicePose,TrackedDevicePose.Buffer> implements org.lwjgl.system.NativeResource
An array ofTrackedDevicePose
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bDeviceIsConnected()
Returns the value of thebDeviceIsConnected
field.TrackedDevicePose.Buffer
bDeviceIsConnected(boolean value)
Sets the specified value to thebDeviceIsConnected
field.boolean
bPoseIsValid()
Returns the value of thebPoseIsValid
field.TrackedDevicePose.Buffer
bPoseIsValid(boolean value)
Sets the specified value to thebPoseIsValid
field.int
eTrackingResult()
Returns the value of theeTrackingResult
field.TrackedDevicePose.Buffer
eTrackingResult(int value)
Sets the specified value to theeTrackingResult
field.HmdMatrix34
mDeviceToAbsoluteTracking()
Returns aHmdMatrix34
view of themDeviceToAbsoluteTracking
field.TrackedDevicePose.Buffer
mDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)
Passes themDeviceToAbsoluteTracking
field to the specifiedConsumer
.TrackedDevicePose.Buffer
mDeviceToAbsoluteTracking(HmdMatrix34 value)
Copies the specifiedHmdMatrix34
to themDeviceToAbsoluteTracking
field.HmdVector3
vAngularVelocity()
Returns aHmdVector3
view of thevAngularVelocity
field.TrackedDevicePose.Buffer
vAngularVelocity(java.util.function.Consumer<HmdVector3> consumer)
Passes thevAngularVelocity
field to the specifiedConsumer
.TrackedDevicePose.Buffer
vAngularVelocity(HmdVector3 value)
Copies the specifiedHmdVector3
to thevAngularVelocity
field.HmdVector3
vVelocity()
Returns aHmdVector3
view of thevVelocity
field.TrackedDevicePose.Buffer
vVelocity(java.util.function.Consumer<HmdVector3> consumer)
Passes thevVelocity
field to the specifiedConsumer
.TrackedDevicePose.Buffer
vVelocity(HmdVector3 value)
Copies the specifiedHmdVector3
to thevVelocity
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newTrackedDevicePose.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 byTrackedDevicePose.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 aHmdMatrix34
view of themDeviceToAbsoluteTracking
field.
-
vVelocity
public HmdVector3 vVelocity()
Returns aHmdVector3
view of thevVelocity
field.
-
vAngularVelocity
public HmdVector3 vAngularVelocity()
Returns aHmdVector3
view of thevAngularVelocity
field.
-
eTrackingResult
public int eTrackingResult()
Returns the value of theeTrackingResult
field.
-
bPoseIsValid
public boolean bPoseIsValid()
Returns the value of thebPoseIsValid
field.
-
bDeviceIsConnected
public boolean bDeviceIsConnected()
Returns the value of thebDeviceIsConnected
field.
-
mDeviceToAbsoluteTracking
public TrackedDevicePose.Buffer mDeviceToAbsoluteTracking(HmdMatrix34 value)
Copies the specifiedHmdMatrix34
to themDeviceToAbsoluteTracking
field.
-
mDeviceToAbsoluteTracking
public TrackedDevicePose.Buffer mDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)
Passes themDeviceToAbsoluteTracking
field to the specifiedConsumer
.
-
vVelocity
public TrackedDevicePose.Buffer vVelocity(HmdVector3 value)
Copies the specifiedHmdVector3
to thevVelocity
field.
-
vVelocity
public TrackedDevicePose.Buffer vVelocity(java.util.function.Consumer<HmdVector3> consumer)
Passes thevVelocity
field to the specifiedConsumer
.
-
vAngularVelocity
public TrackedDevicePose.Buffer vAngularVelocity(HmdVector3 value)
Copies the specifiedHmdVector3
to thevAngularVelocity
field.
-
vAngularVelocity
public TrackedDevicePose.Buffer vAngularVelocity(java.util.function.Consumer<HmdVector3> consumer)
Passes thevAngularVelocity
field to the specifiedConsumer
.
-
eTrackingResult
public TrackedDevicePose.Buffer eTrackingResult(int value)
Sets the specified value to theeTrackingResult
field.
-
bPoseIsValid
public TrackedDevicePose.Buffer bPoseIsValid(boolean value)
Sets the specified value to thebPoseIsValid
field.
-
bDeviceIsConnected
public TrackedDevicePose.Buffer bDeviceIsConnected(boolean value)
Sets the specified value to thebDeviceIsConnected
field.
-
-