Skip to main content
Version: Next

Interface: Image360Collection

@cognite/reveal.Image360Collection

A wrapper that represents a set of 360 images.

Properties

id

Readonly id: string

The id of the collection.

Defined in

packages/360-images/src/collection/Image360Collection.ts:69


image360Entities

Readonly image360Entities: Image360[]

A list containing all the 360 images in this set.

Defined in

packages/360-images/src/collection/Image360Collection.ts:80


label

Readonly label: undefined | string

The label of the collection.

Defined in

packages/360-images/src/collection/Image360Collection.ts:75


targetRevisionDate

targetRevisionDate: undefined | Date

If defined, any subsequently entered 360 images will load the revision that are closest to the target date. If undefined, the most recent revision will be loaded.

Defined in

packages/360-images/src/collection/Image360Collection.ts:86

Methods

findImageAnnotations

findImageAnnotations(filter): Promise<Image360AnnotationAssetQueryResult[]>

Find 360 images associated with an asset through CDF annotations

Parameters

NameType
filterImage360AnnotationAssetFilter

Returns

Promise<Image360AnnotationAssetQueryResult[]>

Defined in

packages/360-images/src/collection/Image360Collection.ts:149


getAnnotationsInfo

getAnnotationsInfo(source): Promise<AssetAnnotationImage360Info[]>

Get IDs of all CDF assets and related image/revision associated with this 360 image collection through CDF annotations

Parameters

NameType
source"assets"

Returns

Promise<AssetAnnotationImage360Info[]>

Defined in

packages/360-images/src/collection/Image360Collection.ts:164


getAssetIds

getAssetIds(): Promise<IdEither[]>

Get IDs of all CDF assets associated with this 360 image collection through CDF annotations

Returns

Promise<IdEither[]>

Deprecated

Use Image360Collection.getAnnotationsInfo

Defined in

packages/360-images/src/collection/Image360Collection.ts:156


getDefaultAnnotationStyle

getDefaultAnnotationStyle(): Image360AnnotationAppearance

Get the assigned default style affecting all annotations

Returns

Image360AnnotationAppearance

Defined in

packages/360-images/src/collection/Image360Collection.ts:139


getIconsVisibility

getIconsVisibility(): boolean

Gets visibility of all 360 image icons.

Returns

boolean

true if all icons are visible, false if all icons are invisible

Defined in

packages/360-images/src/collection/Image360Collection.ts:110


getModelTransformation

getModelTransformation(out?): Matrix4

Gets the transformation matrix of the collection

Parameters

NameType
out?Matrix4

Returns

Matrix4

Defined in

packages/360-images/src/collection/Image360Collection.ts:97


off

off(event, callback): void

Unsubscribes from 360 image dataset event.

Parameters

NameTypeDescription
event"image360Entered"The event type.
callbackImage360EnteredDelegateCallback function to be unsubscribed.

Returns

void

Defined in

packages/360-images/src/collection/Image360Collection.ts:133

off(event, callback): void

Parameters

NameType
event"image360Exited"
callbackImage360ExitedDelegate

Returns

void

Defined in

packages/360-images/src/collection/Image360Collection.ts:134


on

on(event, callback): void

Subscribes to events on 360 Image datasets. There are several event types: 'image360Entered' - Subscribes to a event for entering 360 image mode. 'image360Exited' - Subscribes to events indicating 360 image mode has exited.

Parameters

NameTypeDescription
event"image360Entered"The event type.
callbackImage360EnteredDelegateCallback to be called when the event is fired.

Returns

void

Defined in

packages/360-images/src/collection/Image360Collection.ts:125

on(event, callback): void

Parameters

NameType
event"image360Exited"
callbackImage360ExitedDelegate

Returns

void

Defined in

packages/360-images/src/collection/Image360Collection.ts:126


set360IconCullingRestrictions

set360IconCullingRestrictions(radius, pointLimit): void

Specify parameters used to determine the number of icons that are visible when entering 360 Images.

Parameters

NameTypeDescription
radiusnumberOnly icons within the given radius will be made visible.
pointLimitnumberLimit the number of points within the given radius. Points closer to the camera will be prioritized.

Returns

void

Defined in

packages/360-images/src/collection/Image360Collection.ts:104


setDefaultAnnotationStyle

setDefaultAnnotationStyle(appearance): void

Assign a default style which affects all annotations

Parameters

NameType
appearanceImage360AnnotationAppearance

Returns

void

Defined in

packages/360-images/src/collection/Image360Collection.ts:144


setIconsVisibility

setIconsVisibility(visible): void

Set visibility of all 360 image icons.

Parameters

NameTypeDescription
visiblebooleanIf true all icons are made visible according to the active culling scheme. If false all icons are hidden.

Returns

void

Defined in

packages/360-images/src/collection/Image360Collection.ts:116


setModelTransformation

setModelTransformation(matrix): void

Sets the transformation matrix to be applied to the collection.

Parameters

NameTypeDescription
matrixMatrix4The transformation matrix to be applied to the collection.

Returns

void

Defined in

packages/360-images/src/collection/Image360Collection.ts:92