# Data module: remember previous zoom & pan & slice selection when making a volume visible

**URL:** <https://discourse.slicer.org/t/data-module-remember-previous-zoom-pan-slice-selection-when-making-a-volume-visible/20234>\
**Category:** Support\
**Tags:** gui\
**Created:** [October 19, 2021, 11:49am UTC](https://discourse.slicer.org/t/data-module-remember-previous-zoom-pan-slice-selection-when-making-a-volume-visible/20234 "2021-10-19T11:49:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/div/32/12816_2.png) [@DIV](https://discourse.slicer.org/u/DIV)\
**Post date:** [October 19, 2021, 11:49am UTC](https://discourse.slicer.org/t/data-module-remember-previous-zoom-pan-slice-selection-when-making-a-volume-visible/20234/1 "2021-10-19T11:49:47Z")

</div>

In the Data module if a different Volume is made visible, the _full field of view_ of that Volume is displayed in each orthogonal slice, for the _middle slice_ in the respective series.

I would prefer either one of the following:

- remember any previously used display parameters (zoom, pan, slice selection) for _that Volume_, and re-apply them when displaying the Volume again; **or**
- remember the ‘incumbent’ display parameters (zoom, pan, slice selection) for _the Volume that had most recently been visible_, and apply them to the newly visible Volume.

—DIV

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [October 19, 2021, 12:49pm UTC](https://discourse.slicer.org/t/data-module-remember-previous-zoom-pan-slice-selection-when-making-a-volume-visible/20234/2 "2021-10-19T12:49:06Z")

</div>

> [@DIV](#):
>
> remember the ‘incumbent’ display parameters (zoom, pan, slice selection) for _the Volume that had most recently been visible_ , and apply them to the newly visible Volume.

This is currently possible when selecting the volume to view by using a slice view controller to set your background(or foreground) volume node.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 20, 2021, 4:48am UTC](https://discourse.slicer.org/t/data-module-remember-previous-zoom-pan-slice-selection-when-making-a-volume-visible/20234/3 "2021-10-20T04:48:32Z")

</div>

You can also right-click the eye icon to customize what it does. You can disable resetting of field of view and orientation by unchecking the corresponding two checkboxes:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/0/30be797e4fc8fe06278f62bbbbb9aec117b7ef51.png)

---

<div class="post-metadata">

**Author:** ![DIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/div/32/12816_2.png) [@DIV](https://discourse.slicer.org/u/DIV)\
**Post date:** [October 20, 2021, 7:57am UTC](https://discourse.slicer.org/t/data-module-remember-previous-zoom-pan-slice-selection-when-making-a-volume-visible/20234/4 "2021-10-20T07:57:26Z")

</div>

Thanks, James.  
I had seen the ‘preferred’ behaviour in the Slice Controllers of the **View Controllers** module before — although I’d temporarily forgotten about it, so it’s good to be reminded.  
However, it seems that in there the volume would have to be specified three separate times — once for each orthogonal slice.  
—DIV

---

<div class="post-metadata">

**Author:** ![DIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/div/32/12816_2.png) [@DIV](https://discourse.slicer.org/u/DIV)\
**Post date:** [October 20, 2021, 8:13am UTC](https://discourse.slicer.org/t/data-module-remember-previous-zoom-pan-slice-selection-when-making-a-volume-visible/20234/5 "2021-10-20T08:13:22Z")

</div>

Thanks, Andras.  
So it seems that the feature I was talking about is already present!

I notice that it is necessary to right-click on the eye for _one of the volumes_ in the hierarchy (it won’t work when clicking on the eye for a segmentation, for example), and thereafter the setting is automatically applied to all other volumes open in that instance of Slicer.  
It appears that the preference is also preserved for new instances of Slicer.

—DIV

P.S. It never occurred to me to right-click any of the eyes in the hierarchy.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [October 20, 2021, 12:53pm UTC](https://discourse.slicer.org/t/data-module-remember-previous-zoom-pan-slice-selection-when-making-a-volume-visible/20234/6 "2021-10-20T12:53:00Z")

</div>

> [@DIV](#):
>
> However, it seems that in there the volume would have to be specified three separate times — once for each orthogonal slice.

You only have to do it once if you have pressed the link button in the slice controller. This applies the same action to all linked slice views.
