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.

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.