Page Summary
-
The DepthPoint class represents a depth image based HitResult on supported devices.
-
DepthPoint is available when Config.setDepthMode has been set to Config.DepthMode.AUTOMATIC.
-
Public methods for DepthPoint include creating anchors, checking equality, getting attached anchors, getting the tracking state, and getting the hash code.
public class DepthPoint
On supported devices, represents a depth image based HitResult
returned by Frame.hitTest(float, float)
. Only available when Config.setDepthMode(Config.DepthMode)
has been set to Config.DepthMode.AUTOMATIC
.
Public Methods
Anchor
|
createAnchor
( Pose
pose)
Creates an anchor that is attached to this trackable, using the given initial pose in the world
coordinate space.
|
boolean
|
|
Collection
< Anchor
>
|
getAnchors
()
Gets the Anchors attached to this trackable.
|
TrackingState
|
|
int
|
hashCode
()
Returns a hash code value for the object.
|
Inherited Methods
Public Methods
public Anchor createAnchor ( Pose pose)
createAnchor
public Anchor createAnchor ( Pose pose )
Creates an anchor that is attached to this trackable, using the given initial pose in the world coordinate space. The type of trackable will determine the semantics of attachment and how the anchor's pose will be updated to maintain this relationship. Note that the relative offset between the pose of multiple anchors attached to a trackable may adjust slightly over time as ARCore updates its model of the world.
pose
public boolean equals ( Object obj)
equals
public boolean equals ( Object obj )
Indicates whether some other object is a Trackable
referencing the same logical
trackable as this one.
obj
true
if this object is the same as the obj argument; false
otherwise.public Collection < Anchor > getAnchors ()
getAnchors
public Collection < Anchor > getAnchors ()
Gets the Anchors attached to this trackable.
public TrackingState getTrackingState ()
getTrackingState
public TrackingState getTrackingState ()
Gets this trackable's TrackingState
.
public int hashCode ()
hashCode
public int hashCode ()
Returns a hash code value for the object. This method is supported for the benefit of hash
tables such as those provided by HashMap
.

