Interface: ModelMetadataProvider
@cognite/reveal/extensions/datasource.ModelMetadataProvider
Provides metadata for 3D models.
Methods
getModelCamera
▸ getModelCamera(identifier
): Promise
<{ position
: Vector3
; target
: Vector3
}>
Parameters
Name | Type |
---|---|
identifier | ModelIdentifier |
Returns
Promise
<{ position
: Vector3
; target
: Vector3
}>
Defined in
packages/modeldata-api/src/ModelMetadataProvider.ts:14
getModelMatrix
▸ getModelMatrix(identifier
, format
): Promise
<Matrix4
>
Parameters
Name | Type |
---|---|
identifier | ModelIdentifier |
format | string |
Returns
Promise
<Matrix4
>
Defined in
packages/modeldata-api/src/ModelMetadataProvider.ts:15
getModelOutputs
▸ getModelOutputs(modelIdentifier
): Promise
<BlobOutputMetadata
[]>
Parameters
Name | Type |
---|---|
modelIdentifier | ModelIdentifier |
Returns
Promise
<BlobOutputMetadata
[]>
Defined in
packages/modeldata-api/src/ModelMetadataProvider.ts:12
getModelUri
▸ getModelUri(identifier
, formatMetadata
): Promise
<string
>
Parameters
Name | Type |
---|---|
identifier | ModelIdentifier |
formatMetadata | BlobOutputMetadata |
Returns
Promise
<string
>