HERE Android SDK Developer's Guide

ARRadarItem

The class ARRadarItem is a member of com.here.android.mpa.ar .

Class Summary

public final class ARRadarItem

extends java.lang.Object

Represents a model class comprising the Uid, bearing, distance, spread distance, pan distance for an AR item that will be displayed on the radar.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in ARRadarItem
Methods

public boolean equals (Object obj)

For documentation, see java.lang.Object

public ARObject getARObject ()

Returns ARObject associated with the ARRadarItem

public float getBearing ()

Returns the bearing in degrees of the item relative to the current position.

public float getDistance ()

Returns the distance in meters to the item from the current position.

public float getPanDistance ()

Returns the pan distance in meters of the item.

public RectF getScreenRect ()

Returns the screen rectangle occupied by the ARObject associated with this item, when visible.

public float getSpreadDistance ()

Returns the spread distance in meters of the item.

public int getUid ()

Returns the unique identifier of the item associated with the ARObject.

public int hashCode ()

For documentation, see java.lang.Object

public boolean isOccluded ()

Checks if ARObject is occluded by buildings

public boolean isVisible ()

Checks if ARObject is visible in the UP view

Class Details

Represents a model class comprising the Uid, bearing, distance, spread distance, pan distance for an AR item that will be displayed on the radar. The list of ARRadarItems can be retrieved by calling getItems().

Method Details

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public ARObject getARObject ()

Returns ARObject associated with the ARRadarItem

public float getBearing ()

Returns the bearing in degrees of the item relative to the current position.

public float getDistance ()

Returns the distance in meters to the item from the current position.

public float getPanDistance ()

Returns the pan distance in meters of the item. If this is smaller than the dimming limit then items is not visible. Item should be grayed out or not displayed on the radar.

public RectF getScreenRect ()

Returns the screen rectangle occupied by the ARObject associated with this item, when visible. If any of the value is outside of the view, then the item is partially visible.

See also:

getARObject()

public float getSpreadDistance ()

Returns the spread distance in meters of the item.

public int getUid ()

Returns the unique identifier of the item associated with the ARObject.

public int hashCode ()

For documentation, see java.lang.Object

public boolean isOccluded ()

Checks if ARObject is occluded by buildings

Returns:

True, if object is occluded by buildings.

public boolean isVisible ()

Checks if ARObject is visible in the UP view

Returns:

True, if object is visible on the screen.