# How to make the three cross sections show different colors like the flowing:

**URL:** https://discourse.vtk.org/t/how-to-make-the-three-cross-sections-show-different-colors-like-the-flowing/7654
**Category:** Support
**Tags:** proposal
**Created:** [January 17, 2022, 10:18am UTC](https://discourse.vtk.org/t/how-to-make-the-three-cross-sections-show-different-colors-like-the-flowing/7654 "2022-01-17T10:18:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wulicheng/32/1990_2.png) [@wulicheng](https://discourse.vtk.org/u/wulicheng)
#### Post date: [January 17, 2022, 10:18am UTC](https://discourse.vtk.org/t/how-to-make-the-three-cross-sections-show-different-colors-like-the-flowing/7654/1 "2022-01-17T10:18:42Z")

</div>

![image](https://discourse.vtk.org/uploads/default/original/2X/2/225c7dfa9b5109083d2adac95025dbcd96b8e07c.jpeg)  
this this the axiel.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [January 18, 2022, 5:24am UTC](https://discourse.vtk.org/t/how-to-make-the-three-cross-sections-show-different-colors-like-the-flowing/7654/2 "2022-01-18T05:24:55Z")

</div>

You can have a look at how this is implemented using in 3D Slicer using VTK classes:

 ![](https://discourse.vtk.org/uploads/default/original/2X/5/593802cbfdefec50805549461f93734bc259fb1d.png)

The full source code of slice display of segmentations is available here (all VTK-based): [https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/Segmentations/MRMLDM/vtkMRMLSegmentationsDisplayableManager2D.cxx](https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/Segmentations/MRMLDM/vtkMRMLSegmentationsDisplayableManager2D.cxx)

The implementation is not particularly complicated, yet I would still recommend to use 3D Slicer as a platform instead of moving over features one by one into an application that you build from scratch.
