BaseActivityPose


public sealed class BaseActivityPose<RtActivityPoseType extends JxrPlatformAdapter.ActivityPose> implements ActivityPose

Known direct subclasses
BaseEntity

The BaseEntity is an implementation of Entity interface that wraps a platform entity.

CameraView

A ActivityPose which tracks a camera's position and view into physical space.

Head

Head is a ActivityPose used to track the position of the user's head.

PerceptionSpace

PerceptionSpace is ActivityPose used to track the origin of the space used by ARCore for XR APIs.

Known indirect subclasses
ActivityPanelEntity

ActivityPanelEntity creates a spatial panel for embedding an Activity in Android XR.

ActivitySpace

ActivitySpace is an Entity used to track the system-managed pose and boundary of the volume associated with this Spatialized Activity.

AnchorEntity

An AnchorEntity is created to track a Pose relative to some position or surface in the "Real World." Children of this Entity will remain positioned relative to that location in the real world, for the purposes of creating Augmented Reality experiences.

BasePanelEntity

Provides implementations for common Panel functionality.

ContentlessEntity

An Entity that itself has no content.

GltfModelEntity

GltfModelEntity is a concrete implementation of Entity that hosts a glTF model.

PanelEntity

PanelEntity creates a spatial panel in Android XR.

StereoSurfaceEntity

StereoSurfaceEntity is a concrete implementation of Entity that hosts a StereoSurface Panel.


The BaseActivityPose is an implementation of ActivityPose interface that wraps a platformAdapter ActivityPose.

Summary

Protected constructors

<RtActivityPoseType extends JxrPlatformAdapter.ActivityPose> BaseActivityPose(
    @NonNull RtActivityPoseType rtActivityPose
)

Public methods

@NonNull Pose

Returns the activity space pose for this ActivityPose.

@NonNull Pose

Returns a pose relative to this ActivityPose transformed into a pose relative to the destination.

Protected constructors

BaseActivityPose

protected <RtActivityPoseType extends JxrPlatformAdapter.ActivityPose> BaseActivityPose(
    @NonNull RtActivityPoseType rtActivityPose
)

Public methods

getActivitySpacePose

Added in 1.0.0-alpha01
public @NonNull Pose getActivitySpacePose()

Returns the activity space pose for this ActivityPose.

Returns
@NonNull Pose

Current Pose relative to the activity space root.

transformPoseTo

Added in 1.0.0-alpha01
public @NonNull Pose transformPoseTo(@NonNull Pose pose, @NonNull ActivityPose destination)

Returns a pose relative to this ActivityPose transformed into a pose relative to the destination.

Parameters
@NonNull Pose pose

A pose in this ActivityPose's local coordinate space.

@NonNull ActivityPose destination

The ActivityPose which the returned pose will be relative to.

Returns
@NonNull Pose

The pose relative to the destination ActivityPose.