Class ModelStyle

Package world.mappable.mapkit.map

java.lang.Object
    ↳ world.mappable.mapkit.map.ModelStyle

final class ModelStyle implements Serializable

The style of the model.

Nested Class Summary

Modifier and Type

Interface

Description

static final

UnitType

static final

RenderMode

Summary

Constructors

Signature and Description

ModelStyle(float scale,
           @NonNull UnitType unitType,
           @NonNull RenderMode renderMode,
           @Nullable java.lang.String variantName)

ModelStyle()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

float

getScale()
Scale the model by this value.

ModelStyle

setScale(float scale)
See #getScale().

UnitType

getUnitType()
Unit type of the model.

ModelStyle

setUnitType(@NonNull UnitType unitType)
See #getUnitType().

RenderMode

getRenderMode()
Defines should it be rendered with buildings from ground layer.

ModelStyle

setRenderMode(@NonNull RenderMode renderMode)
See #getRenderMode().

java.lang.String

getVariantName()
Name of variant to render model with.

ModelStyle

setVariantName(@Nullable java.lang.String variantName)
See #getVariantName().

void

serialize(world.mappable.runtime.bindings.Archive archive)

Constuctors

ModelStyle

ModelStyle(float scale,
           @NonNull UnitType unitType,
           @NonNull RenderMode renderMode,
           @Nullable java.lang.String variantName)


ModelStyle

ModelStyle()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getScale

float getScale()

Scale the model by this value.


setScale

ModelStyle setScale(float scale)

See #getScale().


getUnitType

@NonNull
UnitType getUnitType()

Unit type of the model.


setUnitType

ModelStyle setUnitType(@NonNull UnitType unitType)

See #getUnitType().


getRenderMode

@NonNull
RenderMode getRenderMode()

Defines should it be rendered with buildings from ground layer.


setRenderMode

ModelStyle setRenderMode(@NonNull RenderMode renderMode)

See #getRenderMode().


getVariantName

@Nullable
java.lang.String getVariantName()

Name of variant to render model with.

See KHR_materials_variants gltf extension. This works only for glTF models.

Optional field, can be null.


setVariantName

ModelStyle setVariantName(@Nullable java.lang.String variantName)

See #getVariantName().


serialize

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)