diff --git a/src/Rendering/VTKJS/Images/applyRenderedImage.js b/src/Rendering/VTKJS/Images/applyRenderedImage.js
index 3c149b92b..2075a44ec 100644
--- a/src/Rendering/VTKJS/Images/applyRenderedImage.js
+++ b/src/Rendering/VTKJS/Images/applyRenderedImage.js
@@ -398,12 +398,14 @@ function applyRenderedImage(context, { data: { name } }) {
const loadedImage = actorContext.image ?? actorContext.labelImage
const hasOneScale = loadedImage.scaleInfo.length === 1
- if (hasOneScale) {
- context.itkVtkView.setSeCornerAnnotation(ANNOTATION_DEFAULT)
- } else {
- context.itkVtkView.setSeCornerAnnotation(
- `${ANNOTATION_CUSTOM_PREFIX}
${actorContext.loadedScale} | ${ANNOTATION_CUSTOM_POSTFIX}`
- )
+ if (context.itkVtkView.setSeCornerAnnotation) {
+ if (hasOneScale) {
+ context.itkVtkView.setSeCornerAnnotation(ANNOTATION_DEFAULT)
+ } else {
+ context.itkVtkView.setSeCornerAnnotation(
+ `${ANNOTATION_CUSTOM_PREFIX}${actorContext.loadedScale} | ${ANNOTATION_CUSTOM_POSTFIX}`
+ )
+ }
}
}
diff --git a/src/Rendering/VTKJS/vtk/ItkVtkViewProxy.js b/src/Rendering/VTKJS/vtk/ItkVtkViewProxy.js
index e89384ba2..ebc2ee566 100644
--- a/src/Rendering/VTKJS/vtk/ItkVtkViewProxy.js
+++ b/src/Rendering/VTKJS/vtk/ItkVtkViewProxy.js
@@ -138,9 +138,9 @@ function ItkVtkViewProxy(publicAPI, model) {
model.camera.setParallelProjection(false)
if (model.volumeRepresentation) {
if (model.viewPlanes) {
- publicAPI.setCornerAnnotation('se', model.seCornerAnnotation)
+ publicAPI.setCornerAnnotation('ne', model.neCornerAnnotation)
} else {
- publicAPI.setCornerAnnotation('se', '')
+ publicAPI.setCornerAnnotation('ne', '')
}
if (model.imageVisibility) {
model.volumeRepresentation.setVolumeVisibility(true)
@@ -152,7 +152,7 @@ function ItkVtkViewProxy(publicAPI, model) {
} else {
// slice views
model.camera.setParallelProjection(true)
- publicAPI.setCornerAnnotation('se', model.seCornerAnnotation)
+ publicAPI.setCornerAnnotation('ne', model.neCornerAnnotation)
model.interactor.setInteractorStyle(model.interactorStyle2D)
if (model.rotate && !!model.rotateAnimationCallback) {
model.interactor.cancelAnimation('itk-vtk-view-rotate')
@@ -219,7 +219,7 @@ function ItkVtkViewProxy(publicAPI, model) {
)
const ijk = model.annotationPicker.getPointIJK()
if (model.volumeRepresentation) {
- publicAPI.setCornerAnnotation('se', model.seCornerAnnotation)
+ publicAPI.setCornerAnnotation('ne', model.neCornerAnnotation)
const imageData = model.volumeRepresentation.getInputDataSet()
const size = imageData.getDimensions()
const scalarData = imageData.getPointData().getScalars()
@@ -251,7 +251,7 @@ function ItkVtkViewProxy(publicAPI, model) {
}
publicAPI.updateCornerAnnotation(model.lastPickedValues)
} else {
- publicAPI.setCornerAnnotation('se', '')
+ publicAPI.setCornerAnnotation('ne', '')
model.dataProbeActor.setVisibility(false)
model.dataProbeFrameActor.setVisibility(false)
model.lastPickedValues = null
@@ -391,7 +391,7 @@ function ItkVtkViewProxy(publicAPI, model) {
// Setup --------------------------------------------------------------------
- publicAPI.setCornerAnnotation('se', '')
+ publicAPI.setCornerAnnotation('ne', '')
publicAPI.updateCornerAnnotation({
iIndex: ' N/A',
jIndex: ' N/A',
@@ -877,7 +877,7 @@ function ItkVtkViewProxy(publicAPI, model) {
model.viewPlanes = viewPlanes
if (model.viewMode === 'Volume' && model.volumeRepresentation) {
if (viewPlanes) {
- publicAPI.setCornerAnnotation('se', model.seCornerAnnotation)
+ publicAPI.setCornerAnnotation('ne', model.neCornerAnnotation)
}
}
}
@@ -1065,7 +1065,7 @@ const DEFAULT_VALUES = {
imageVisibility: true,
rotate: false,
units: '',
- seCornerAnnotation: CursorCornerAnnotation,
+ neCornerAnnotation: CursorCornerAnnotation,
labelIndex: null,
labelNames: null,
clickCallback: null,
@@ -1105,7 +1105,7 @@ export function extend(publicAPI, model, initialValues = {}) {
macro.setGet(publicAPI, model, [
'units',
- 'seCornerAnnotation',
+ 'neCornerAnnotation',
'labelNames',
'labelIndex',
'clickCallback',