HERE iOS SDK Developer's Guide

NMAPhongMaterial

Class Summary

class NMAPhongMaterial

Derived from: NMAMaterial

A simple colored material for 3D map objects that can be used in conjunction with a model texture to change the color of the texture.

Include: NMAKit.framework/headers/NMAPhongMaterial.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAPhongMaterial

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, writable, strong] UIColor *  ambientColor

[readable, writable, strong] UIColor *  diffuseColor

The diffuse color of the material

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nonnull instancetype) init

-(nonnull instancetype) initWithDiffuseColor:(nonnull UIColor *) diffuseColor ambientColor:(nonnull UIColor *) ambientColor

Class Method Summary

Table 3. Class Methods
Class Methods

+(nonnull instancetype) materialWithDiffuseColor:(nonnull UIColor *) diffuseColor ambientColor:(nonnull UIColor *) ambientColor

Creates an NMAPhongMaterial with the specified diffuse and ambient colors

+(nonnull instancetype) new

Class Details

A simple colored material for 3D map objects that can be used in conjunction with a model texture to change the color of the texture.

Public Property Details

[readable, writable, strong] UIColor * ambientColor

The ambient color of the material

Note:

The default value (in RGBA) is 0x000000FF.

[readable, writable, strong] UIColor * diffuseColor

The diffuse color of the material.

Note:

The default value (in RGBA) is 0xFFFFFFFF.

Instance Method Details

-(nonnull instancetype) init

Instances of this class should not be initialized directly

-(nonnull instancetype) initWithDiffuseColor:(nonnull UIColor *) diffuseColor ambientColor:(nonnull UIColor *) ambientColor

Class Method Details

+(nonnull instancetype) materialWithDiffuseColor:(nonnull UIColor *) diffuseColor ambientColor:(nonnull UIColor *) ambientColor

Creates an NMAPhongMaterial with the specified diffuse and ambient colors.

+(nonnull instancetype) new

Instances of this class should not be initialized directly