Loading...
Searching...
No Matches
com.navigine.idl.java.MapObjectPickResult Class Referenceabstract

Class is used to handle information in PickListener. More...

+ Inheritance diagram for com.navigine.idl.java.MapObjectPickResult:

Public Member Functions

abstract GlobalPoint getPoint ()
 WGS84 location of the picked map object GlobalPoint.
 
abstract Integer getSublocationId ()
 Floor the picked object is attached to, or null for the outdoor map.
 
abstract MapObject getMapObject ()
 Picked map object MapObject.
 

Detailed Description

Class is used to handle information in PickListener.

Referenced from PickListener.

Definition at line 16 of file MapObjectPickResult.java.

Member Function Documentation

◆ getMapObject()

abstract MapObject com.navigine.idl.java.MapObjectPickResult.getMapObject ( )
abstract

Picked map object MapObject.

Returns

Java code snippet:

MapObject mapObject = mapObjectPickResult.getMapObject();
System.out.println(" Object type: " + mapObject.getClass().getSimpleName());

Kotlin code snippet:

val mapObject = mapObjectPickResult.mapObject
println(" Object type: ${mapObject::class.simpleName}")

Reimplemented in com.navigine.idl.java.internal.MapObjectPickResultBinding.

◆ getPoint()

abstract GlobalPoint com.navigine.idl.java.MapObjectPickResult.getPoint ( )
abstract

WGS84 location of the picked map object GlobalPoint.

Returns

Java code snippet:

LocationPoint point = mapObjectPickResult.getPoint();
System.out.println("Map object picked at screen position (" + screenPosition.x + ", " + screenPosition.y + ")");
System.out.println(" Object location: (" + point.getX() + ", " + point.getY() + ")");

Kotlin code snippet:

val point = mapObjectPickResult.point
println("Map object picked at screen position (${screenPosition.x}, ${screenPosition.y})")
println(" Object location: (${point.x}, ${point.y})")

Reimplemented in com.navigine.idl.java.internal.MapObjectPickResultBinding.

◆ getSublocationId()

abstract Integer com.navigine.idl.java.MapObjectPickResult.getSublocationId ( )
abstract

Floor the picked object is attached to, or null for the outdoor map.

Returns

Reimplemented in com.navigine.idl.java.internal.MapObjectPickResultBinding.


The documentation for this class was generated from the following file: