HERE iOS SDK Developer's Guide

NMAMapModelObject

Class Summary

class NMAMapModelObject

Derived from: NMAMapObject

Base class for NMAMapLocalModel and NMAMapGeoModel.

Include: NMAKit.framework/headers/NMAMapModelObject.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAMapModelObject

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, assign] NSArray< NMALight * > *  lights

The lights currently attached to the model

[readable, writable, strong] NMAMaterial material

The material of the model

[readable, assign] NSUInteger  maximumNumberOfLights

The maximum number of supported light sources for a NMAMapModelObject

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(BOOL) addLight:(nullable NMALight *) light

Adds a light to the model object

-(void) removeAllLights

Removes all the lights attached to the model

-(void) setTexture:(nullable NMAImage *) texture

Sets the texture to use for rendering the mesh

Class Details

Base class for NMAMapLocalModel and NMAMapGeoModel. This class provides lighting and material properties for a custom 3D model.

Public Property Details

[readable, assign] NSArray< NMALight * > * lights

The lights currently attached to the model.

[readable, writable, strong] NMAMaterialmaterial

The material of the model.

Note:

nil values will be ignored.

[readable, assign] NSUInteger maximumNumberOfLights

The maximum number of supported light sources for a NMAMapModelObject.

Instance Method Details

-(BOOL) addLight:(nullable NMALight *) light

Adds a light to the model object.

Note:

This method will fail if the model already contains the maximum number of lights, given by maximumNumberOfLights.

Note:

nil values will be ignored.

Parameters:

  • light

    The NMALight object to add to the model.

Returns:

YES if the light was added successfully, NO otherwise.

-(void) removeAllLights

Removes all the lights attached to the model.

-(void) setTexture:(nullable NMAImage *) texture

Sets the texture to use for rendering the mesh.

Note:

nil values will be ignored.