# Disable rotaion in vtkResliceImageViewer's cursorwidget.

**URL:** https://discourse.vtk.org/t/disable-rotaion-in-vtkresliceimageviewers-cursorwidget/16212
**Category:** vtk.wasm
**Tags:** code
**Created:** [January 6, 2026, 11:29am UTC](https://discourse.vtk.org/t/disable-rotaion-in-vtkresliceimageviewers-cursorwidget/16212 "2026-01-06T11:29:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![KSJ](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ksj/32/8659_2.png) [@KSJ](https://discourse.vtk.org/u/KSJ)
#### Post date: [January 6, 2026, 11:29am UTC](https://discourse.vtk.org/t/disable-rotaion-in-vtkresliceimageviewers-cursorwidget/16212/1 "2026-01-06T11:29:01Z")

</div>

I am using `vtkResliceImageViewer` to display DICOM images. It has a built-in 2D crosshair that intersects the image. By default, interacting with the crosshair allows both **translation and rotation** , and rotating the crosshair changes the reslice axes.

I only need the **translation (move) functionality** of the crosshair and want to **disable rotation completely**.

I need to able to interact with the image but for the cross hair, i only need translation

How can I restrict the crosshair interaction to translation only in `vtkResliceImageViewer`?
