FakeXrExtensions.FakeReformEvent


public class FakeXrExtensions.FakeReformEvent


Fake ReformEvent.

Summary

Public constructors

Public methods

@NonNull Vec3

The current ray direction, in task space.

@NonNull Vec3

The current ray origin and direction, in task space.

int

An identifier for this reform action.

@NonNull Vec3

The initial ray direction, in task space.

@NonNull Vec3

The initial ray origin and direction, in task space.

@NonNull Quatf

For a move event, the proposed orientation of the node, in task space (or relative to the parent node, if FLAG_POSE_RELATIVE_TO_PARENT was specified in the ReformOptions).

@NonNull Vec3

For a move event, the proposed pose of the node, in task space (or relative to the parent node, if FLAG_POSE_RELATIVE_TO_PARENT was specified in the ReformOptions).

@NonNull Vec3

Scale will change with distance if ReformOptions.FLAG_SCALE_WITH_DISTANCE is set.

@NonNull Vec3

For a resize event, the proposed new size in meters.

int

Returns the state of the reform action.

int

Returns the type of reform action this event is referring to.

void
setProposedOrientation(@NonNull Quatf proposedOrientation)
void
setProposedPosition(@NonNull Vec3 proposedPosition)
void
setProposedScale(@NonNull Vec3 proposedScale)
void
setProposedSize(@NonNull Vec3 proposedSize)
void
setState(int state)
void
setType(int type)

Public constructors

FakeReformEvent

Added in 1.0.0-alpha02
public FakeReformEvent()

Public methods

getCurrentRayDirection

Added in 1.0.0-alpha02
public @NonNull Vec3 getCurrentRayDirection()

The current ray direction, in task space.

getCurrentRayOrigin

Added in 1.0.0-alpha02
public @NonNull Vec3 getCurrentRayOrigin()

The current ray origin and direction, in task space.

getId

Added in 1.0.0-alpha02
public int getId()

An identifier for this reform action.

getInitialRayDirection

Added in 1.0.0-alpha02
public @NonNull Vec3 getInitialRayDirection()

The initial ray direction, in task space.

getInitialRayOrigin

Added in 1.0.0-alpha02
public @NonNull Vec3 getInitialRayOrigin()

The initial ray origin and direction, in task space.

getProposedOrientation

Added in 1.0.0-alpha02
public @NonNull Quatf getProposedOrientation()

For a move event, the proposed orientation of the node, in task space (or relative to the parent node, if FLAG_POSE_RELATIVE_TO_PARENT was specified in the ReformOptions).

getProposedPosition

Added in 1.0.0-alpha02
public @NonNull Vec3 getProposedPosition()

For a move event, the proposed pose of the node, in task space (or relative to the parent node, if FLAG_POSE_RELATIVE_TO_PARENT was specified in the ReformOptions).

getProposedScale

Added in 1.0.0-alpha02
public @NonNull Vec3 getProposedScale()

Scale will change with distance if ReformOptions.FLAG_SCALE_WITH_DISTANCE is set.

getProposedSize

Added in 1.0.0-alpha02
public @NonNull Vec3 getProposedSize()

For a resize event, the proposed new size in meters. Note that in the initial implementation, the Z size may not be modified.

getState

Added in 1.0.0-alpha02
public int getState()

Returns the state of the reform action.

getType

Added in 1.0.0-alpha02
public int getType()

Returns the type of reform action this event is referring to.

setProposedOrientation

Added in 1.0.0-alpha02
public void setProposedOrientation(@NonNull Quatf proposedOrientation)

setProposedPosition

Added in 1.0.0-alpha02
public void setProposedPosition(@NonNull Vec3 proposedPosition)

setProposedScale

Added in 1.0.0-alpha02
public void setProposedScale(@NonNull Vec3 proposedScale)

setProposedSize

Added in 1.0.0-alpha02
public void setProposedSize(@NonNull Vec3 proposedSize)

setState

Added in 1.0.0-alpha02
public void setState(int state)

setType

Added in 1.0.0-alpha02
public void setType(int type)