Interface: Image360Annotation
@cognite/reveal.Image360Annotation
An annotation associated with a 360 image revision
Properties
annotation
• Readonly
annotation: AnnotationModel
The underlying CDF annotation
Defined in
packages/360-images/src/annotation/Image360Annotation.ts:15
Methods
getCenter
▸ getCenter(out?
): Vector3
Get center of annotation, to e.g. point the camera toward it
Parameters
Name | Type |
---|---|
out? | Vector3 |
Returns
Vector3
Defined in
packages/360-images/src/annotation/Image360Annotation.ts:40
getColor
▸ getColor(): Color
Get the individual display color of this annotation.
Returns
Color
Defined in
packages/360-images/src/annotation/Image360Annotation.ts:20
getVisible
▸ getVisible(): boolean
Get whether this annotation is visible
Returns
boolean
Defined in
packages/360-images/src/annotation/Image360Annotation.ts:30
setColor
▸ setColor(color?
): void
Set the display color of this annotation. Default: Random, based on annotation label
Parameters
Name | Type |
---|---|
color? | Color |
Returns
void
Defined in
packages/360-images/src/annotation/Image360Annotation.ts:25
setVisible
▸ setVisible(visible?
): void
Set whether this annotation should be visible. Default: true
Parameters
Name | Type |
---|---|
visible? | boolean |
Returns
void