HERE Android SDK Developer's Guide

StreetLevelSelectedObject

The class StreetLevelSelectedObject is a member of com.here.android.mpa.streetlevel .

Class Summary

public final class StreetLevelSelectedObject

extends java.lang.Object

Represents a base class for all objects that are selectable on a StreetLevelFragment.

[For complete information, see the section Class Details]

See also:

getSelectedObjects(PointF)

Method Summary

Table 1. Methods in StreetLevelSelectedObject
Methods

public Vector3f getNormal ()

Gets the Vector3f representing the normal vector of the selected object.

public ViewObject getObject ()

Gets the ViewObject representation of the StreetLevelSelectedObject.

public GeoCoordinate getPosition ()

Gets the GeoCoordinate representing the current position of the StreetLevelSelectedObject.

Class Details

Represents a base class for all objects that are selectable on a StreetLevelFragment.

See also:

getSelectedObjects(PointF)

Method Details

public Vector3f getNormal ()

Gets the Vector3f representing the normal vector of the selected object. This can be used with StreetLevelBillboardOrientation in setOrientation(StreetLevelBillboardOrientation.Orientation)

Returns:

The normal Vector3d

public ViewObject getObject ()

Gets the ViewObject representation of the StreetLevelSelectedObject.

Note: use instanceof to determine the exact type ( StreetLevelBuilding, StreetLevelLink, etc.).

Returns:

The ViewObject

public GeoCoordinate getPosition ()

Gets the GeoCoordinate representing the current position of the StreetLevelSelectedObject.

Returns:

The GeoCoordinate