# Setting a Scale/ruler while Zooming or moving the vtkresliceimageviewer data

**URL:** https://discourse.vtk.org/t/setting-a-scale-ruler-while-zooming-or-moving-the-vtkresliceimageviewer-data/14831
**Category:** Support
**Tags:** code
**Created:** [November 6, 2024, 12:55pm UTC](https://discourse.vtk.org/t/setting-a-scale-ruler-while-zooming-or-moving-the-vtkresliceimageviewer-data/14831 "2024-11-06T12:55:13Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![omdaniel](https://discourse.vtk.org/user_avatar/discourse.vtk.org/omdaniel/32/8538_2.png) [@omdaniel](https://discourse.vtk.org/u/omdaniel)
#### Post date: [March 17, 2025, 5:56pm UTC](https://discourse.vtk.org/t/setting-a-scale-ruler-while-zooming-or-moving-the-vtkresliceimageviewer-data/14831/6 "2025-03-17T17:56:28Z")

</div>

@lassoan The feature in the animation you previously uploaded is very different that what was in the original post from @christeen. What you presented was just a dynamic “scale bar” which gives the user a sense of “zoom” but not “position” which was identified as the objective. I also have a use case for a more versatile vtkLegendScaleActor [https://discourse.vtk.org/t/legend-grid-annotation-from-paraview-12-with-vtk-filters/13479/3](https://discourse.vtk.org/t/legend-grid-annotation-from-paraview-12-with-vtk-filters/13479/3) and as a formal proposal here [LegendScaleActor SetModeToFocalPlane](https://discourse.vtk.org/t/legendscaleactor-setmodetofocalplane/13622) . Additionally in the example animation from @christeen the way the ticks/numbers respond to zooming in/out is much prefered to the default behavior of vtkLegendScaleActor.

I believe that improvements here is not wasted effort in that the user experience as described and illustrated by @christeen is not readily achievable with existing implementations.

---

_[View the full topic](https://discourse.vtk.org/t/setting-a-scale-ruler-while-zooming-or-moving-the-vtkresliceimageviewer-data/14831)._
