# how to draw a a simple cross line in vtkresliceimageviewer

**URL:** https://discourse.vtk.org/t/how-to-draw-a-a-simple-cross-line-in-vtkresliceimageviewer/8668
**Category:** Support
**Created:** [June 5, 2022, 5:09pm UTC](https://discourse.vtk.org/t/how-to-draw-a-a-simple-cross-line-in-vtkresliceimageviewer/8668 "2022-06-05T17:09:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![liuyongsheng-joshua](https://discourse.vtk.org/user_avatar/discourse.vtk.org/liuyongsheng-joshua/32/5286_2.png) [@liuyongsheng-joshua](https://discourse.vtk.org/u/liuyongsheng-joshua)
#### Post date: [June 5, 2022, 5:09pm UTC](https://discourse.vtk.org/t/how-to-draw-a-a-simple-cross-line-in-vtkresliceimageviewer/8668/1 "2022-06-05T17:09:31Z")

</div>

hi, all  
i am a vtk beginner. i am trying to draw a simple crossline in the vtk example of fourpane view’s vtkresliceimageviwer pane to indicate the other two view’s slice index. but i don`t find a right way to solve the problem. anyone can give me sugessions or directions ? thanks very much.

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mau_igna_06/32/8064_2.png) [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)
#### Post date: [June 5, 2022, 5:56pm UTC](https://discourse.vtk.org/t/how-to-draw-a-a-simple-cross-line-in-vtkresliceimageviewer/8668/2 "2022-06-05T17:56:06Z")

</div>

You need to use a vtkLineSource to get the polydata and put it on a mapper, about the four planes I don’t know I guess they would be acotrs
