# Model

# Model


```
public class Model
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `int` | `@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#getAltitudeMode()()` The altitude mode of the 3d model. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#getId()()` A read-only unique identifier for this model. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Orientation` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#getOrientation()()` The orientation for the 3d model to be renderered in the 3d map scene. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#getPosition()()` The coordinates that determine the position of the model in the 3d map scene. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Vector3D` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#getScale()()` The scale as a 3d vector of the model to be renderered in the 3d map scene. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#getUrl()()` The source URL of the model object to be loaded into the 3d map scene. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#remove()()` Removes this model from the 3d map scene. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#setAltitudeMode(int)(@https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/AltitudeMode int value)` Sets the altitude mode of the 3d model. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#setClickListener(com.google.android.gms.maps3d.OnModelClickListener)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/OnModelClickListener listener)` Sets the listener for click events on the model. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#setOrientation(com.google.android.gms.maps3d.model.Orientation)(https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Orientation value)` Sets the orientation for the 3d model to be renderered in the 3d map scene. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#setPosition(com.google.android.gms.maps3d.model.LatLngAltitude)(https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude value)` Sets the coordinates that determine the position of the model in the 3d map scene. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#setScale(com.google.android.gms.maps3d.model.Vector3D)(https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Vector3D value)` Sets the scale as a 3d vector of the model to be renderered in the 3d map scene. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/Model#setUrl(java.lang.String)(https://developer.android.com/reference/java/lang/String.html value)` Sets the source URL of the model object to be loaded into the 3d map scene. |

## Public methods

### getAltitudeMode

```
@AltitudeMode
public int getAltitudeMode()
```

The altitude mode of the 3d model.

### getId

```
public String getId()
```

A read-only unique identifier for this model. This will assigned during creation and will be used to identify the model when updating or removing it.

### getOrientation

```
public Orientation getOrientation()
```

The orientation for the 3d model to be renderered in the 3d map scene.

### getPosition

```
public LatLngAltitude getPosition()
```

The coordinates that determine the position of the model in the 3d map scene.

### getScale

```
public Vector3D getScale()
```

The scale as a 3d vector of the model to be renderered in the 3d map scene.

### getUrl

```
public String getUrl()
```

The source URL of the model object to be loaded into the 3d map scene.

### remove

```
public void remove()
```

Removes this model from the 3d map scene.

### setAltitudeMode

```
public void setAltitudeMode(@AltitudeMode int value)
```

Sets the altitude mode of the 3d model.

### setClickListener

```
public void setClickListener(@Nullable OnModelClickListener listener)
```

Sets the listener for click events on the model.

### setOrientation

```
public void setOrientation(Orientation value)
```

Sets the orientation for the 3d model to be renderered in the 3d map scene.

### setPosition

```
public void setPosition(LatLngAltitude value)
```

Sets the coordinates that determine the position of the model in the 3d map scene.

### setScale

```
public void setScale(Vector3D value)
```

Sets the scale as a 3d vector of the model to be renderered in the 3d map scene.

### setUrl

```
public void setUrl(String value)
```

Sets the source URL of the model object to be loaded into the 3d map scene.