# When use vtkResliceCursorWidget, How to use mouse touch more conveniently to the handle ？

**URL:** https://discourse.vtk.org/t/when-use-vtkreslicecursorwidget-how-to-use-mouse-touch-more-conveniently-to-the-handle/6916
**Category:** Web
**Created:** [October 19, 2021, 12:28pm UTC](https://discourse.vtk.org/t/when-use-vtkreslicecursorwidget-how-to-use-mouse-touch-more-conveniently-to-the-handle/6916 "2021-10-19T12:28:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lanranlaura](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lanranlaura/32/3748_2.png) [@lanranlaura](https://discourse.vtk.org/u/lanranlaura)
#### Post date: [October 19, 2021, 12:28pm UTC](https://discourse.vtk.org/t/when-use-vtkreslicecursorwidget-how-to-use-mouse-touch-more-conveniently-to-the-handle/6916/1 "2021-10-19T12:28:46Z")

</div>

I use vtkResliceCursorWidget to display MPR.When I rotate the handle(reslicecursor), I must accurately place the mouse on the handle to succeed. The effect I want to achieve is that when my mouse is near the handle, I can sense and control the rotation of the handle，What should I do?

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [October 20, 2021, 6:44pm UTC](https://discourse.vtk.org/t/when-use-vtkreslicecursorwidget-how-to-use-mouse-touch-more-conveniently-to-the-handle/6916/2 "2021-10-20T18:44:23Z")

</div>

@finetjul

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [October 21, 2021, 10:52am UTC](https://discourse.vtk.org/t/when-use-vtkreslicecursorwidget-how-to-use-mouse-touch-more-conveniently-to-the-handle/6916/3 "2021-10-21T10:52:07Z")

</div>

Have a look at ResliceCursorContextRepresentation.updateActorVisibility(), it temporarilly increase the size of the line and the handles for picking purpose.

---

<div class="post-metadata">

### Author: ![lanranlaura](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lanranlaura/32/3748_2.png) [@lanranlaura](https://discourse.vtk.org/u/lanranlaura)
#### Post date: [November 26, 2021, 7:21am UTC](https://discourse.vtk.org/t/when-use-vtkreslicecursorwidget-how-to-use-mouse-touch-more-conveniently-to-the-handle/6916/4 "2021-11-26T07:21:21Z")

</div>

Thanks for your reply and help! Later, I added mouse position judgment in the move mouse event. When it is close to the handle, I will enlarge the handle, and the effect is OK.
