HERE Android SDK Developer's Guide

PhongMaterial

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

Class Summary

public static final class MapModelObject.PhongMaterial

   implements com.here.android.mpa.mapping.MapModelObject.Material

extends java.lang.Object

PhongMaterial is used for shading a model.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in PhongMaterial
Constructors

PhongMaterial ()

Default constructor

PhongMaterial (int diffuseColor, int ambiantColor)

Field Summary

Table 2. Fields in PhongMaterial
Fields

public static final int DEFAULT_AMBIANT_COLOR

public static final int DEFAULT_DIFFUSE_COLOR

Method Summary

Table 3. Methods in PhongMaterial
Methods

public int getAmbientColor ()

Get the Ambient Material color

public int getDiffuseColor ()

Get the Diffuse Material color

public PhongMaterial setAmbientColor (int color)

Set the Ambient Material color

public PhongMaterial setDiffuseColor (int color)

Set the Diffuse Material color

Class Details

PhongMaterial is used for shading a model. This class can be used to change the transparency or color of textured map models.

Constructor Details

PhongMaterial ()

Default constructor

PhongMaterial (int diffuseColor, int ambiantColor)

Parameters:

  • diffuseColor
  • ambiantColor

Field Details

public static final int DEFAULT_AMBIANT_COLOR

public static final int DEFAULT_DIFFUSE_COLOR

Method Details

public int getAmbientColor ()

Get the Ambient Material color

Returns:

color Color The color format is in ARGB

public int getDiffuseColor ()

Get the Diffuse Material color

Returns:

color Color

public PhongMaterial setAmbientColor (int color)

Set the Ambient Material color

Parameters:

  • color

    Color The color format is in ARGB

Returns:

PhongMatterial builder pattern.

public PhongMaterial setDiffuseColor (int color)

Set the Diffuse Material color

Parameters:

  • color

    Color

Returns:

PhongMatterial builder pattern.

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.