StreetscapeGeometry

public class StreetscapeGeometry

Defines geometry such as terrain, buildings, or other structures obtained from the Streetscape Geometry API. See the Streetscape Geometry Developer Guide for additional information.

Obtained from a call to Session.getAllTrackables(Class) or Frame.getUpdatedTrackables(Class)} when Config.StreetscapeGeometryMode is set to Config.StreetscapeGeometryMode.ENABLED and Config.GeospatialMode is set to Config.GeospatialMode.ENABLED.

Nested Classes

enum StreetscapeGeometry.Quality Describes the quality of the mesh data. 
enum StreetscapeGeometry.Type Describes the type of a Streetscape Geometry. 

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
equals(Object obj)
Indicates whether some other object is a Trackable referencing the same logical trackable as this one.
Collection<Anchor>
getAnchors()
Gets the Anchors attached to this trackable.
Mesh
getMesh()
Obtain a polygon Mesh that corresponds to this geometry.
Pose
getMeshPose()
Returns the origin pose of the geometry.
StreetscapeGeometry.Quality
getQuality()
Obtain the StreetscapeGeometry.Quality corrosponding to this geometry.
TrackingState
getTrackingState()
Gets this trackable's TrackingState.
StreetscapeGeometry.Type
getType()
Obtain the StreetscapeGeometry.Type corrosponding to this geometry.
int
hashCode()
Returns a hash code value for the object.

Inherited Methods

Public Methods

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.

Details
Parameters
pose

equals

public boolean equals(
  Object obj
)

Indicates whether some other object is a Trackable referencing the same logical trackable as this one.

Details
Parameters
obj the reference object with which to compare.
Returns true if this object is the same as the obj argument; false otherwise.
See Also

getAnchors

public Collection<Anchor> getAnchors()

Gets the Anchors attached to this trackable.

getMesh

public Mesh getMesh()

Obtain a polygon Mesh that corresponds to this geometry. A Mesh describes the geometry as a collection of polygons, which should be transformed by getMeshPose().

getMeshPose

public Pose getMeshPose()

Returns the origin pose of the geometry. This pose should be applied to all the points in the geometry from getMesh().

getQuality

public StreetscapeGeometry.Quality getQuality()

Obtain the StreetscapeGeometry.Quality corrosponding to this geometry.

getTrackingState

public TrackingState getTrackingState()

Gets this trackable's TrackingState.

getType

public StreetscapeGeometry.Type getType()

Obtain the StreetscapeGeometry.Type corrosponding to this geometry.

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.

Details
Returns a hash code value for this object.
See Also