ModelOptions

public class ModelOptions implements Parcelable


Model options class to represent the options for a 3D model object within a 3D map scene.

Summary

Constants

static final Parcelable.Creator<ModelOptions>

Public constructors

Default constructor for ModelOptions.

ModelOptions(
    String id,
    LatLngAltitude position,
    String url,
    @AltitudeMode int altitudeMode,
    Vector3D scale,
    Orientation orientation
)

Constructor for ModelOptions with parameters for required fields.

Public methods

int

The altitude mode of the model.

String

The unique identifier of the model.

Orientation

The orientation of the model.

LatLngAltitude

The position of the model.

Vector3D

The scale of the model.

String

The url of the 3D model asset to use.

void
setAltitudeMode(@AltitudeMode int altitudeMode)

Sets the altitude mode of the model.

void

Sets the unique identifier of the model.

void

Sets the orientation of the model.

void

Sets the position of the model.

void

Sets the scale of the model.

void

Sets the url of the 3D model asset to use.

void
writeToParcel(Parcel dest, int flags)

Extension functions

final void

Validates a specified ModelOptions object.

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<ModelOptionsCREATOR

Public fields

altitudeMode

public int altitudeMode

id

public String id

orientation

public Orientation orientation

position

public LatLngAltitude position

scale

public Vector3D scale

url

public String url

Public constructors

ModelOptions

public ModelOptions()

Default constructor for ModelOptions.

ModelOptions

public ModelOptions(
    String id,
    LatLngAltitude position,
    String url,
    @AltitudeMode int altitudeMode,
    Vector3D scale,
    Orientation orientation
)

Constructor for ModelOptions with parameters for required fields.

Parameters
String id

The unique identifier of the model.

LatLngAltitude position

The position of the model.

String url

The url of the 3D model asset to use.

@AltitudeMode int altitudeMode

The altitude mode of the model.

Vector3D scale

The scale of the model.

Orientation orientation

The orientation of the model.

Public methods

getAltitudeMode

@AltitudeMode
public int getAltitudeMode()

The altitude mode of the model.

getId

public String getId()

The unique identifier of the model.

getOrientation

public Orientation getOrientation()

The orientation of the model.

getPosition

public LatLngAltitude getPosition()

The position of the model.

getScale

public Vector3D getScale()

The scale of the model.

getUrl

public String getUrl()

The url of the 3D model asset to use.

setAltitudeMode

public void setAltitudeMode(@AltitudeMode int altitudeMode)

Sets the altitude mode of the model.

setId

public void setId(String id)

Sets the unique identifier of the model.

setOrientation

public void setOrientation(Orientation orientation)

Sets the orientation of the model.

setPosition

public void setPosition(LatLngAltitude position)

Sets the position of the model.

setScale

public void setScale(Vector3D scale)

Sets the scale of the model.

setUrl

public void setUrl(String url)

Sets the url of the 3D model asset to use.

writeToParcel

public void writeToParcel(Parcel dest, int flags)

Extension functions

ValidatorsKt.validate

public final void ValidatorsKt.validate(@NonNull ModelOptions receiver)

Validates a specified ModelOptions object.

Throws
java.lang.IllegalArgumentException

If the ModelOptions is not valid.