Skip to content

CornerAnnotation ​

Introduction ​

vtkCornerAnnotation is a DOM overlay that displays text in the four corners and the four sides of a container. Each slot is filled by a template function evaluated against the annotation metadata.

Methods ​

extend ​

Method used to decorate a given object (publicAPI+model) with vtkCornerAnnotation characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesICornerAnnotationInitialValuesNo(default: {})

getAnnotationContainer ​

Root element holding the nine annotation slots.

newInstance ​

Method used to create a new instance of vtkCornerAnnotation.

ArgumentTypeRequiredDescription
initialValuesICornerAnnotationInitialValuesNofor pre-setting some of its content

resize ​

No-op kept for API symmetry with the other UI widgets.

setContainer ​

Attach the annotation container to the given DOM element, detaching it from any previously set one.

ArgumentTypeRequiredDescription
elYes

updateMetadata ​

Merge the given metadata into the current one and re-render.

ArgumentTypeRequiredDescription
metadataCornerAnnotationMetadataYes

updateTemplates ​

Merge the given templates into the current ones and re-render.

ArgumentTypeRequiredDescription
templatesICornerAnnotationTemplatesYes