# Need help on Slice Interaction

**URL:** <https://discourse.slicer.org/t/need-help-on-slice-interaction/40967>\
**Category:** Support\
**Created:** [January 6, 2025, 1:09pm UTC](https://discourse.slicer.org/t/need-help-on-slice-interaction/40967 "2025-01-06T13:09:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alientex](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@alientex](https://discourse.slicer.org/u/alientex)\
**Post date:** [January 6, 2025, 1:09pm UTC](https://discourse.slicer.org/t/need-help-on-slice-interaction/40967/1 "2025-01-06T13:09:16Z")

</div>

Hello everyone,

I was experimenting with different parameters in the Slice Display section, as shown below:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/f/9fb731d1d0664076f73f077c875caf35c5c2eb2a.png)

I’ve been trying to locate the code responsible for creating and displaying these lines (or should I say contour-like visuals) in the views. So far, I’ve traced it to the `vtkMRMLDisplayableNode`, which has the `SetDisplay2DVisibility()` function. Using this function, I can toggle the visibility of these lines.

Unfortunately, I’m stuck at this point and haven’t been able to figure out the part of the code where these lines are actually created. It feels like I’m going in circles within the codebase.

Could anyone please guide me or point me in the right direction?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 6, 2025, 2:06pm UTC](https://discourse.slicer.org/t/need-help-on-slice-interaction/40967/2 "2025-01-06T14:06:46Z")

</div>

The nodes in the scene contain the state, like the visibility on/off. The actual rendering takes place in the displayable managers, that respond to changes in the state by managing VTK pipelines. See, for example: Libs/MRML/DisplayableManager/vtkMRMLModelSliceDisplayableManager.cxx
