@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="XRFrame")
public class XRFrame
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
XRFrame() |
| Modifier and Type | Method and Description |
|---|---|
@JsNonNull Promise<XRAnchor> |
createAnchor(XRRigidTransform pose,
XRSpace space) |
boolean |
fillJointRadii(JsArray<XRJointSpace> jointSpaces,
Float32Array radii) |
boolean |
fillJointRadii(XRJointSpace[] jointSpaces,
Float32Array radii) |
boolean |
fillPoses(JsArray<XRSpace> spaces,
XRSpace baseSpace,
Float32Array transforms) |
boolean |
fillPoses(XRSpace[] spaces,
XRSpace baseSpace,
Float32Array transforms) |
@JsNullable XRCPUDepthInformation |
getDepthInformation(XRView view) |
@JsNonNull JsArray<XRHitTestResult> |
getHitTestResults(XRHitTestSource hitTestSource) |
@JsNonNull JsArray<XRTransientInputHitTestResult> |
getHitTestResultsForTransientInput(XRTransientInputHitTestSource hitTestSource) |
@JsNullable XRJointPose |
getJointPose(XRJointSpace joint,
XRSpace baseSpace) |
@JsNullable XRLightEstimate |
getLightEstimate(XRLightProbe lightProbe) |
@JsNullable XRPose |
getPose(XRSpace space,
XRSpace baseSpace)
The XRFrame method getPose() returns the relative position and orientation—the pose—of one XRSpace to that of another space.
|
@JsNullable XRViewerPose |
getViewerPose(XRReferenceSpace referenceSpace)
The getViewerPose() method, a member of the XRFrame interface, returns a XRViewerPose object which describes the viewer's pose (position and orientation) relative to the specified reference space.
|
boolean |
isCreateAnchorSupported() |
boolean |
isFillJointRadiiSupported() |
boolean |
isFillPosesSupported() |
boolean |
isGetDepthInformationSupported() |
boolean |
isGetHitTestResultsForTransientInputSupported() |
boolean |
isGetHitTestResultsSupported() |
boolean |
isGetJointPoseSupported() |
boolean |
isGetLightEstimateSupported() |
boolean |
isTrackedAnchorsSupported() |
double |
predictedDisplayTime() |
XRSession |
session()
An XRFrame object's read-only session property returns the XRSession object that generated the frame.
|
XRAnchorSet |
trackedAnchors() |
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@JsProperty(name="predictedDisplayTime") public double predictedDisplayTime()
@JsProperty(name="session") @Nonnull public XRSession session()
@JsOverlay public final boolean isTrackedAnchorsSupported()
@JsProperty(name="trackedAnchors") @Nonnull public XRAnchorSet trackedAnchors()
public @JsNullable XRPose getPose(@Nonnull XRSpace space, @Nonnull XRSpace baseSpace)
public @JsNullable XRViewerPose getViewerPose(@Nonnull XRReferenceSpace referenceSpace)
@JsOverlay public final boolean isCreateAnchorSupported()
public @JsNonNull Promise<XRAnchor> createAnchor(@Nonnull XRRigidTransform pose, @Nonnull XRSpace space)
@JsOverlay public final boolean isGetDepthInformationSupported()
public @JsNullable XRCPUDepthInformation getDepthInformation(@Nonnull XRView view)
@JsOverlay public final boolean isFillJointRadiiSupported()
public boolean fillJointRadii(@Nonnull
JsArray<XRJointSpace> jointSpaces,
@Nonnull
Float32Array radii)
public boolean fillJointRadii(@Nonnull
XRJointSpace[] jointSpaces,
@Nonnull
Float32Array radii)
@JsOverlay public final boolean isFillPosesSupported()
public boolean fillPoses(@Nonnull
JsArray<XRSpace> spaces,
@Nonnull
XRSpace baseSpace,
@Nonnull
Float32Array transforms)
public boolean fillPoses(@Nonnull
XRSpace[] spaces,
@Nonnull
XRSpace baseSpace,
@Nonnull
Float32Array transforms)
@JsOverlay public final boolean isGetJointPoseSupported()
public @JsNullable XRJointPose getJointPose(@Nonnull XRJointSpace joint, @Nonnull XRSpace baseSpace)
@JsOverlay public final boolean isGetHitTestResultsSupported()
public @JsNonNull JsArray<XRHitTestResult> getHitTestResults(@Nonnull XRHitTestSource hitTestSource)
@JsOverlay public final boolean isGetHitTestResultsForTransientInputSupported()
public @JsNonNull JsArray<XRTransientInputHitTestResult> getHitTestResultsForTransientInput(@Nonnull XRTransientInputHitTestSource hitTestSource)
@JsOverlay public final boolean isGetLightEstimateSupported()
public @JsNullable XRLightEstimate getLightEstimate(@Nonnull XRLightProbe lightProbe)