YMKModel

@interface YMKModel : YMKPlacemarkPresentation

describes model presentation of PlacemarkMapObject

Summary

Instance methods

- (void)setDataWithGltfDataProvider:
    (nonnull id<YRTDataProviderWithId>)gltfDataProvider;

Sets glTF data provider

- (void)setDataWithGltfDataProvider:
            (nonnull id<YRTDataProviderWithId>)gltfDataProvider
                           callback:(nullable YMKCallback)callback;

Sets glTF data provider

Properties

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    YMKModelStyle *modelStyle;

The style properties (scale, unitType, etc

Instance methods

setDataWithGltfDataProvider:

- (void)setDataWithGltfDataProvider:
    (nonnull id<YRTDataProviderWithId>)gltfDataProvider;

Sets glTF data provider.

The class maintains a strong reference to the object in the 'gltfDataProvider' parameter until it (the class) is invalidated.

Parameters

onFinished

Called when the model is loaded.


setDataWithGltfDataProvider:callback:

- (void)setDataWithGltfDataProvider:
            (nonnull id<YRTDataProviderWithId>)gltfDataProvider
                           callback:(nullable YMKCallback)callback;

Sets glTF data provider.

The class maintains a strong reference to the object in the 'gltfDataProvider' parameter until it (the class) is invalidated.

Parameters

onFinished

Called when the model is loaded.


Properties

modelStyle

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    YMKModelStyle *modelStyle;

The style properties (scale, unitType, etc.) of the model placemark. Note: The current style cannot be modified directly - you must reset it to apply changes.


Предыдущая
Следующая