HERE Android SDK Developer's Guide

MapModelObject

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

Class Summary

public class MapModelObject

extends com.here.android.mpa.mapping.MapObject, com.here.android.mpa.common.ViewObject, java.lang.Object

Base class for MapLocalModel and MapGeoModel.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in MapModelObject
Nested Classes

public static final class MapModelObject.DirectionalLight

This class specifies a directional light.

public static abstract interface MapModelObject.Light

Base Interface for all Lights supported by MapModel This class will be extended in the new future with more methods.

public static abstract interface MapModelObject.Material

Base Interface for all Materials supported by MapModel This class will be extended in future with more methods.

public static final class MapModelObject.PhongMaterial

PhongMaterial is used for shading a model.

Method Summary

Table 2. Methods in MapModelObject
Methods

public static int ARGBToRGBA (int color)

Simple color converter.

public static int RGBAToARGB (int color)

Simple color converter.

public boolean addLight (Light light)

Add a light to the object.

public Light getLight (int index)

Get an already added Light

public Material getMaterial ()

Get the Material

public int getNumLights ()

Get the number of lights.

public int getNumberLightsSupported ()

Get the maximum number of lights supported.

public boolean removeAllLights ()

Remove all lights from this model object.

public boolean setLight (int index, Light light)

Update the light for a particular light

public boolean setMaterial (Material material)

Set the Material

Class Details

Base class for MapLocalModel and MapGeoModel. This class provides additional functionalities to set lighting and material properties to a model object.

Method Details

public static int ARGBToRGBA (int color)

Simple color converter. Converts from ARGB to RGBA

Parameters:

  • color

public static int RGBAToARGB (int color)

Simple color converter. Converts from RRGB to ARGB

Parameters:

  • color

public boolean addLight (Light light)

Add a light to the object.

Parameters:

  • light

    New light to add.

Returns:

true if successful, false otherwise. Light#getNumberLightsSupported

public Light getLight (int index)

Get an already added Light

Parameters:

  • index

    Index of the light to get

Returns:

Light object if successful

public Material getMaterial ()

Get the Material

Returns:

public int getNumLights ()

Get the number of lights.

Returns:

int, number of lights.

public int getNumberLightsSupported ()

Get the maximum number of lights supported.

Returns:

int maximum light count.

public boolean removeAllLights ()

Remove all lights from this model object.

public boolean setLight (int index, Light light)

Update the light for a particular light

Parameters:

  • index

    Index of the light to update

  • light

    Light object to update

Returns:

true if successful, false otherwise.

public boolean setMaterial (Material material)

Set the Material

Parameters:

  • material

Returns:

boolean true if successful, false otherwise.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.