HERE Android SDK Developer's Guide

GeoMesh

The class GeoMesh is a member of com.here.android.mpa.mapping .

Class Summary

public final class GeoMesh

extends com.here.android.mpa.mapping.Mesh, java.lang.Object

Represents the mesh data for a MapGeoModel.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in GeoMesh
Constructors

GeoMesh ()

Creates a GeoMesh .

Method Summary

Table 2. Methods in GeoMesh
Methods

public GeoMesh setVertices (java.util.List <GeoCoordinate> vertices)

Sets a List of GeoCoordinate objects representing the vertices associated with the GeoMesh .

public GeoMesh setVertices (DoubleBuffer vertices)

Sets a DoubleBuffer representing a list of vertices associated with the GeoMesh .

Class Details

Represents the mesh data for a MapGeoModel.

The properties of a GeoMesh include vertices, specified as either GeoCoordinate objects or an array of double values representing the latitude, longitude and altitude of each vertex sequentially.

Constructor Details

GeoMesh ()

Creates a GeoMesh .

Method Details

public GeoMesh setVertices (java.util.List <GeoCoordinate> vertices)

Sets a List of GeoCoordinate objects representing the vertices associated with the GeoMesh .

Parameters:

  • vertices

    A List of GeoCoordinate representing the vertices used to form the GeoMesh.

Returns:

The updated GeoMesh.

Throws:

  • IllegalArgumentException

    if vertices is empty.

  • IllegalArgumentException

    if vertices contains more than 65536 GeoCoordinate.

public GeoMesh setVertices (DoubleBuffer vertices)

Sets a DoubleBuffer representing a list of vertices associated with the GeoMesh .

Each vertex is specified as triplets of latitude, longitude and altitude. All triplets are then placed into a DoubleBuffer sequentially to represent the list of vertices.

Parameters:

  • vertices

    Desired DoubleBuffer list of GeoCoordinate, i.e. vertex, in multiples of three.

Returns:

The updated GeoMesh.

Throws:

  • IllegalArgumentException

    if vertices is empty.

  • IllegalArgumentException

    if vertices does not contain triplets of double, representing the latitude, longitude and altitude values of a vertex.

  • IllegalArgumentException

    if vertices contains more than 65536 triplets, each representing a GeoCoordinate.

See also:

java.nio.DoubleBuffer