ModelSceneSymbol

Used to display point or multipoint geoelements in a scene using a 3D model. By default, the symbol will be positioned using the centroid of the model object. Note that this may not be the same as the center of its bounding extent. Model scene symbols cannot be used with a static graphics rendering mode (com.arcgismaps.mapping.view.GraphicsRenderingMode.Static).

The supported model file types are:

  • 3D Max (.3ds)

  • Collada (.dae)

  • Filmbox (.fbx)

  • GL Transmission Format (.gltf, .glb)

  • Wavefront (.obj)

Depending on the model's default orientation, you may have to change the heading, pitch, and roll of the symbol to display the model in the desired orientation.

Since

200.1.0

See also

Constructors

Link copied to clipboard
constructor(uri: String)

Creates a model scene symbol from a URI to a 3D model file.

constructor(uri: String, scale: Float)

Creates a model scene symbol from a URI to a 3D model file along with a scale.

Properties

Link copied to clipboard

The size unit of the model scene symbol. The default value is SymbolSizeUnits.Meters.

Link copied to clipboard
val uri: String

The URI of the model scene symbol.

Inherited properties

Link copied to clipboard

The anchor position of the simple marker scene symbol. The anchor position of the simple marker scene symbol SceneSymbolAnchorPosition.

Link copied to clipboard

The symbol color of the simple marker scene symbol.

Link copied to clipboard

The depth (in meters) of the simple marker scene symbol.

Link copied to clipboard

The heading (in degrees) of the scene marker symbol.

Link copied to clipboard

The height (in meters) of the simple marker scene symbol.

Link copied to clipboard
open override val loadStatus: StateFlow<LoadStatus>

The load status.

Link copied to clipboard

The pitch (in degrees) of the scene marker symbol.

Link copied to clipboard
var roll: Float

The roll (in degrees) of the scene marker symbol.

Link copied to clipboard

The width (in meters) of the simple marker scene symbol.

Functions

Link copied to clipboard
open override fun clone(): ModelSceneSymbol

Clones the ModelSceneSymbol.

Inherited functions

Link copied to clipboard
open override fun cancelLoad()

Cancels loading metadata for the Loadable object.

Link copied to clipboard
suspend fun createSwatch(screenScale: Float, width: Float? = null, height: Float? = null, backgroundColor: Color = Color.transparent): Result<BitmapDrawable>

Creates a swatch of the symbol. This method will scale the symbol up or down in order to fit it in to the desired width and height of the swatch.

suspend fun createSwatch(screenScale: Float, width: Float, height: Float, geometry: Geometry, backgroundColor: Color = Color.transparent): Result<BitmapDrawable>

Creates a swatch of the symbol.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open suspend override fun load(): Result<Unit>

Loads the metadata for the object.

Link copied to clipboard
open suspend override fun retryLoad(): Result<Unit>

Loads or retries loading metadata for the object.

Link copied to clipboard
open override fun toJson(): String

Convert an object to JSON string.