PerceptionState
public final class PerceptionState
Represents the state of ARCore for Jetpack XR at an specific point in time.
Can be obtained from CoreState.perceptionState.
Summary
Public methods |
|
|---|---|
boolean |
|
final @NonNull ArDevice |
the currently tracked device. |
final DepthMap |
the left depth map, or null when not supported by the current platform. |
final Hand |
the left hand, or null when not supported by the current platform. |
final RenderViewpoint |
the left viewpoint used for rendering, or null when not supported by the current platform. |
final DepthMap |
the mono depth map, or null when not supported by the current platform. |
final RenderViewpoint |
the mono viewpoint used for rendering, or null when not supported by the current platform. |
final DepthMap |
the right depth map, or null when not supported by the current platform. |
final Hand |
the right hand, or null when not supported by the current platform. |
final RenderViewpoint |
the right viewpoint used for rendering, or null when not supported by the current platform. |
final @NonNull ComparableTimeMark |
the time at which the state was computed. |
final @NonNull Collection<@NonNull Trackable<@NonNull Trackable.State>> |
the trackables that are currently being tracked. |
final Face |
the user's face, or null when not supported by the current platform. |
int |
hashCode() |
Public methods
getArDevice
public final @NonNull ArDevice getArDevice()
the currently tracked device.
getLeftDepthMap
public final DepthMap getLeftDepthMap()
the left depth map, or null when not supported by the current platform.
getLeftHand
public final Hand getLeftHand()
the left hand, or null when not supported by the current platform.
getLeftRenderViewpoint
public final RenderViewpoint getLeftRenderViewpoint()
the left viewpoint used for rendering, or null when not supported by the current platform.
getMonoDepthMap
public final DepthMap getMonoDepthMap()
the mono depth map, or null when not supported by the current platform.
getMonoRenderViewpoint
public final RenderViewpoint getMonoRenderViewpoint()
the mono viewpoint used for rendering, or null when not supported by the current platform.
getRightDepthMap
public final DepthMap getRightDepthMap()
the right depth map, or null when not supported by the current platform.
getRightHand
public final Hand getRightHand()
the right hand, or null when not supported by the current platform.
getRightRenderViewpoint
public final RenderViewpoint getRightRenderViewpoint()
the right viewpoint used for rendering, or null when not supported by the current platform.
getTimeMark
public final @NonNull ComparableTimeMark getTimeMark()
the time at which the state was computed.
getTrackables
public final @NonNull Collection<@NonNull Trackable<@NonNull Trackable.State>> getTrackables()
the trackables that are currently being tracked.
getUserFace
public final Face getUserFace()
the user's face, or null when not supported by the current platform.