MMKModelStyle

@interface MMKModelStyle : NSObject

The style of the model.

Summary

Class methods

+ (nonnull MMKModelStyle *)modelStyleWithScale:( float)scale
                                      unitType:( MMKModelStyleUnitType)unitType
                                    renderMode:( MMKModelStyleRenderMode)renderMode
                                   variantName:(nullable NSString *)variantName;

Instance methods

- (nonnull MMKModelStyle *)init;

Properties

@property (nonatomic, assign, unsafe_unretained, readwrite) float scale;
Scale the model by this value

@property (nonatomic, assign, unsafe_unretained, readwrite)
    MMKModelStyleUnitType unitType;

Unit type of the model

@property (nonatomic, assign, unsafe_unretained, readwrite)
    MMKModelStyleRenderMode renderMode;

Defines should it be rendered with buildings from ground layer

@property (nonatomic, copy, readwrite, nullable) NSString *variantName;
Name of variant to render model with

Class methods

modelStyleWithScale:unitType:renderMode:variantName:

+ (nonnull MMKModelStyle *)modelStyleWithScale:( float)scale
                                      unitType:( MMKModelStyleUnitType)unitType
                                    renderMode:( MMKModelStyleRenderMode)renderMode
                                   variantName:(nullable NSString *)variantName;


Instance methods

init

- (nonnull MMKModelStyle *)init;


Properties

scale

@property (nonatomic, assign, unsafe_unretained, readwrite) float scale;

Scale the model by this value.


unitType

@property (nonatomic, assign, unsafe_unretained, readwrite)
    MMKModelStyleUnitType unitType;

Unit type of the model.


renderMode

@property (nonatomic, assign, unsafe_unretained, readwrite)
    MMKModelStyleRenderMode renderMode;

Defines should it be rendered with buildings from ground layer.


variantName

@property (nonatomic, copy, readwrite, nullable) NSString *variantName;

Name of variant to render model with. See KHR_materials_variants gltf extension. This works only for glTF models.

Optional field, can be nil.