# Can I select the modleNode with mouse?

**URL:** https://discourse.slicer.org/t/can-i-select-the-modlenode-with-mouse/10285
**Category:** Development
**Created:** [February 16, 2020, 12:22am UTC](https://discourse.slicer.org/t/can-i-select-the-modlenode-with-mouse/10285 "2020-02-16T00:22:02Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Davide\_Punzo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide_punzo/32/66104_2.png) [@Davide\_Punzo](https://discourse.slicer.org/u/Davide_Punzo)
#### Post date: [February 20, 2020, 8:02am UTC](https://discourse.slicer.org/t/can-i-select-the-modlenode-with-mouse/10285/2 "2020-02-20T08:02:31Z")

</div>

I think there is no “ready-to-use” infrastructure for this, but you can:

1. Use a callback to observe the mouse clicks in the 3d view (see [https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx#L2565](https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx#L2565));
2. when you process the events, you get the model display manager from the view ;
3. you get the mouse event position from the interactor;
4. you call the display manager Pick method (this will return the cellID, the modelNodeId and the RAS coordinates of the picking).

Another option, it would also to write a custom model display manager, or you can have a look at [Select cells of a 3D model](https://discourse.slicer.org/t/select-cells-of-a-3d-model/7753) (where you can use the crosshair or a markup point, which involves much less coding).

---

_[View the full topic](https://discourse.slicer.org/t/can-i-select-the-modlenode-with-mouse/10285)._
