public final class TestPlane extends TestTrackable


Represents a flat surface in the test environment, which can be described by a PlaneType.

Summary

Public constructors

TestPlane(@NonNull Plane.Type planeType, @NonNull Plane.Label planeLabel)

Public methods

final @NonNull Pose

the Pose at the center of the plane

final @NonNull FloatSize2d

a pair of extents describing the size of the plane

final @NonNull Plane.Label

the PlaneLabel that describes the surface

final TestPlane

a possible other plane that this plane has been merged into

final @NonNull Plane.Type

the PlaneType of the surface

final @NonNull List<@NonNull Vector2>

the Vector2 vertices of a convex polygon approximating the detected plane

boolean

indicates whether the trackable object is currently in view of the runtime

final void

the Pose at the center of the plane

final void

a pair of extents describing the size of the plane

final void

the PlaneLabel that describes the surface

final void

a possible other plane that this plane has been merged into

final void

the PlaneType of the surface

final void

the Vector2 vertices of a convex polygon approximating the detected plane

void
setVisible(boolean value)

indicates whether the trackable object is currently in view of the runtime

Public constructors

TestPlane

Added in 1.0.0-alpha14
public TestPlane(@NonNull Plane.Type planeType, @NonNull Plane.Label planeLabel)

Public methods

getCenterPose

Added in 1.0.0-alpha14
public final @NonNull Pose getCenterPose()

the Pose at the center of the plane

getExtents

Added in 1.0.0-alpha14
public final @NonNull FloatSize2d getExtents()

a pair of extents describing the size of the plane

getLabel

Added in 1.0.0-alpha14
public final @NonNull Plane.Label getLabel()

the PlaneLabel that describes the surface

getSubsumedBy

Added in 1.0.0-alpha14
public final TestPlane getSubsumedBy()

a possible other plane that this plane has been merged into

getType

Added in 1.0.0-alpha14
public final @NonNull Plane.Type getType()

the PlaneType of the surface

getVertices

Added in 1.0.0-alpha14
public final @NonNull List<@NonNull Vector2getVertices()

the Vector2 vertices of a convex polygon approximating the detected plane

isVisible

public boolean isVisible()

indicates whether the trackable object is currently in view of the runtime

setCenterPose

Added in 1.0.0-alpha14
public final void setCenterPose(@NonNull Pose value)

the Pose at the center of the plane

setExtents

Added in 1.0.0-alpha14
public final void setExtents(@NonNull FloatSize2d value)

a pair of extents describing the size of the plane

setLabel

Added in 1.0.0-alpha14
public final void setLabel(@NonNull Plane.Label value)

the PlaneLabel that describes the surface

setSubsumedBy

Added in 1.0.0-alpha14
public final void setSubsumedBy(TestPlane value)

a possible other plane that this plane has been merged into

setType

Added in 1.0.0-alpha14
public final void setType(@NonNull Plane.Type value)

the PlaneType of the surface

setVertices

Added in 1.0.0-alpha14
public final void setVertices(@NonNull List<@NonNull Vector2> value)

the Vector2 vertices of a convex polygon approximating the detected plane

setVisible

public void setVisible(boolean value)

indicates whether the trackable object is currently in view of the runtime