ScenePose
public interface ScenePose
BaseScenePose |
The BaseScenePose implements the |
Entity |
Interface for a spatial Entity. |
ActivityPanelEntity |
ActivityPanelEntity creates a spatial panel for embedding an |
ActivitySpace |
ActivitySpace is an |
AnchorEntity |
An AnchorEntity tracks a |
BaseEntity |
The BaseEntity is an implementation of Entity interface that wraps a platform entity. |
CameraView |
An |
GltfModelEntity |
GltfModelEntity is a concrete implementation of Entity that hosts a glTF model. |
GroupEntity |
An |
Head |
Head is an |
MainPanelEntity |
Represents the main spatialized panel in a |
PanelEntity |
PanelEntity contains an arbitrary 2D Android |
PerceptionSpace |
PerceptionSpace is an |
SurfaceEntity |
SurfaceEntity is an |
A Pose in the Scene graph, which can be transformed into a Pose relative to another ScenePose.
Summary
Nested types |
|---|
public static class ScenePose.HitTestFilterA filter for which Scenes to hit test with |
Public methods |
|
|---|---|
abstract @NonNull Pose |
The current |
abstract HitTestResult |
Perform a hit test from the specified origin in the specified direction into the Scene. |
abstract HitTestResult |
Creates a hit test from the specified origin in the specified direction into the scene. |
abstract @NonNull Pose |
transformPoseTo(@NonNull Pose pose, @NonNull ScenePose destination)Returns a |
Extension functions |
|
|---|---|
default final @NonNull ListenableFuture<HitTestResult> |
GuavaScenePose.hitTestAsync(Creates a |
default final @NonNull ListenableFuture<HitTestResult> |
GuavaScenePose.hitTestAsync(Creates a |
Public methods
getActivitySpacePose
abstract @NonNull Pose getActivitySpacePose()
The current Pose relative to the activity space root.
hitTest
abstract HitTestResult hitTest(@NonNull Vector3 origin, @NonNull Vector3 direction)
Perform a hit test from the specified origin in the specified direction into the Scene.
| Parameters | |
|---|---|
@NonNull Vector3 origin |
The translation of the origin of the hit test relative to this ScenePose. |
@NonNull Vector3 direction |
The direction for the hit test ray from the origin. |
| Returns | |
|---|---|
HitTestResult |
The |
hitTest
abstract HitTestResult hitTest(
@NonNull Vector3 origin,
@NonNull Vector3 direction,
int hitTestFilter
)
Creates a hit test from the specified origin in the specified direction into the scene.
| Parameters | |
|---|---|
@NonNull Vector3 origin |
The translation of the origin of the hit test relative to this ScenePose. |
@NonNull Vector3 direction |
The direction for the hit test ray from the origin |
int hitTestFilter |
Filter for which scenes to hit test. Hitting other scenes is only allowed for apps with the |
| Returns | |
|---|---|
HitTestResult |
The |
transformPoseTo
abstract @NonNull Pose transformPoseTo(@NonNull Pose pose, @NonNull ScenePose destination)
Returns a Pose relative to this ScenePose, transformed into a Pose relative to the destination.
Extension functions
GuavaScenePose.hitTestAsync
default final @NonNull ListenableFuture<HitTestResult> GuavaScenePose.hitTestAsync(
@NonNull ScenePose receiver,
@NonNull Session session,
@NonNull Vector3 origin,
@NonNull Vector3 direction
)
Creates a HitTestResult from the specified origin in the specified direction into the scene.
| Parameters | |
|---|---|
@NonNull Session session |
The session the |
@NonNull Vector3 origin |
The translation of the origin of the hit test relative to this ScenePose. |
@NonNull Vector3 direction |
The direction for the hit test ray from the origin. |
| Returns | |
|---|---|
@NonNull ListenableFuture<HitTestResult> |
a Future containing the |
GuavaScenePose.hitTestAsync
default final @NonNull ListenableFuture<HitTestResult> GuavaScenePose.hitTestAsync(
@NonNull ScenePose receiver,
@NonNull Session session,
@NonNull Vector3 origin,
@NonNull Vector3 direction,
int hitTestFilter
)
Creates a HitTestResult from the specified origin in the specified direction into the scene.
| Parameters | |
|---|---|
@NonNull Session session |
The session the |
@NonNull Vector3 origin |
The translation of the origin of the hit test relative to this ScenePose. |
@NonNull Vector3 direction |
The direction for the hit test ray from the origin |
int hitTestFilter |
Filter for which scenes to hit test. Hitting other scenes is only allowed for apps with the |
| Returns | |
|---|---|
@NonNull ListenableFuture<HitTestResult> |
a Future containing the |