# Markups - highlight selected markup clicked in 3D view?

**URL:** https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670
**Category:** Support
**Created:** [May 22, 2020, 3:04pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670 "2020-05-22T15:04:28Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [May 22, 2020, 3:04pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/1 "2020-05-22T15:04:28Z")

</div>

Hi all,

I looked through the topics and docs and this seems like a pretty obvious thing, but I didn’t find it anywhere.

Is there a way to click on a markup in the 3D view and have it highlighted in the markups list in the markup module? I feel like this should work but I’m doing something wrong.

Thanks in advance!

-Hollister

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 22, 2020, 3:19pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/2 "2020-05-22T15:19:24Z")

</div>

Yes, you can right-click on the markup and choose “Edit properties”. It opens Markups module, with the clicked markup node selected.

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [May 22, 2020, 3:20pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/3 "2020-05-22T15:20:29Z")

</div>

That’s a useful feature to have, but I don’t think it is implemented. You can hover over the point, and then right click on it and say ‘toggle point’ and that sort of gives an indication of which one is in the list. But not really ideal for large number of points.

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [May 22, 2020, 3:21pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/4 "2020-05-22T15:21:38Z")

</div>

Sorry, that doesn’t work in my case (i.e., it doesn’t show the right fiducial selected in the control points). r29055 (windows)

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 22, 2020, 3:33pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/5 "2020-05-22T15:33:41Z")

</div>

We haven’t thought about highlighting the point, too, just the markup (and use “toggle select point” for cross-referencing points across views and modules), but it should be quite easy to implement. What is your use case (how would you use and for what applications)?

---

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [May 22, 2020, 3:41pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/6 "2020-05-22T15:41:04Z")

</div>

Regarding what Murat said, right-clicking in 2D or 3D does not bring up a menu - this appears not to be implemented.

I have a number of markups that label particular morphologies, and I need to edit the names and descriptions. It would be simplest to click in 3D and have it selected in the list in the markups module (or right click, or shift-click, or command-click, I’m flexible). Right now I basically select and de-select markups to see which one is which in the 3D view, or use jump slices to see where it is.

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [May 22, 2020, 3:42pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/7 "2020-05-22T15:42:51Z")

</div>

Right click is a fairly new feature. Perhaps you are running an older build?

Ditto on the use case. We have similar ones too…

---

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [May 22, 2020, 3:46pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/8 "2020-05-22T15:46:00Z")

</div>

I’m running May 5 nightly. I’ll grab a newer one.

Thanks! Hope you guys are well.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 22, 2020, 3:53pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/9 "2020-05-22T15:53:49Z")

</div>

Right-click should be available in May 5 version. Do you use a Mac? I’ve noticed that on some touchpad/mouse on Mac create many pointer events, even when the point is not or barely moved, which defeats the current click detection mechanism. Maybe we need to increase the click detection’s motion tolerance.

---

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [May 22, 2020, 3:56pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/10 "2020-05-22T15:56:50Z")

</div>

I am on a Mac, yes. I was looking through the commits since May 5 and didn’t see anything obvious, so I was wondering why it doesn’t work.

I am using an external mouse, not a touchpad, if that makes a difference.

---

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [May 22, 2020, 4:04pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/11 "2020-05-22T16:04:51Z")

</div>

In qSlicerMarkupsModuleWidget.cxx, I see a connection for right-click in the activeMarkupTableWidget. Is there a different place where the signal comes from the 3D view or a slice view (presumably to the same slot)?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 22, 2020, 4:07pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/12 "2020-05-22T16:07:46Z")

</div>

Markup node selection is initiated by the 2D/3D markups widget and it ends with calling `qSlicerMarkupsModuleWidget::setEditedNode`. Markups ID could be passed in the `context` argument.

---

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [May 22, 2020, 4:14pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/13 "2020-05-22T16:14:13Z")

</div>

OK. But this _is_ implemented already? I was mostly looking for where it might be not working. Sorry for my confusion!

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 22, 2020, 4:25pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/14 "2020-05-22T16:25:50Z")

</div>

Yes, context menu on right-click is implemented and it works already. If the context menu does not appear for you then it is a bug.

---

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [May 22, 2020, 4:35pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/15 "2020-05-22T16:35:56Z")

</div>

yeah, it does not appear to work. I’m right-clicking very carefully with an external mouse so it does not appear to be a trackpad/touchpad noisy-right-click-with-two-fingers issue.

---

<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: [May 22, 2020, 4:50pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/16 "2020-05-22T16:50:48Z")

</div>

Odd, it works fine for me on mac with either mouse or trackpad.

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [May 22, 2020, 4:55pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/17 "2020-05-22T16:55:02Z")

</div>

You are right clicking after the fiducial color changed from red to blue (meaning it is selected), right? Otherwise it doesn’t work? Any chance you might have interactions disabled?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 22, 2020, 7:19pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/18 "2020-05-22T19:19:36Z")

</div>

> [@hherhold](#):
>
> yeah, it does not appear to work.

Do you have a debug-mode build? It would be awesome if you could track this down. I would suspect that your mouse driver generates a mouse event between pressing and releasing the button, even if you don’t physically move the mouse (or maybe you move it by 0.00001mm) and that confuses the click detection logic here: [Slicer/Libs/MRML/DisplayableManager/vtkMRMLViewInteractorStyle.cxx at main · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/blob/master/Libs/MRML/DisplayableManager/vtkMRMLViewInteractorStyle.cxx#L89). If indeed this is the problem then it could be fixed by checking how much the mouse was moved instead of just detecting that a mouse move event was fired.

---

<div class="post-metadata">

### Author: ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)
#### Post date: [May 22, 2020, 8:06pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/19 "2020-05-22T20:06:00Z")

</div>

OK, this is odd. This is an older file I’m working with, maybe from January or so. When I just download sample data (CTACardio), place a fiducial, and right click in the 3D view, it works fine.

I took a look at the fcsv file and for my older file that does not work, I do not have entries for associatedNodeID for most of the entries, whereas the newer one I just made from the demo data has vtkMRMLScalarVolumeNode1 for all fiducials.

I also have CoordinateSystem=0 at the top, whereas the file I just created has LPS.

I did try hand-changing the coordinate system to LPS but this moves all my fiducials, and right click still doesn’t work.

I also added vtkMRMLScalarVolumeNode1 (which is a real, correct node) to all lines and right click still doesn’t work.

I really do think this is some kind of pilot error (me), or possibly an old file incompatibility (less likely).

Any ideas?

Thanks!

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 22, 2020, 8:12pm UTC](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670/20 "2020-05-22T20:12:15Z")

</div>

Can you upload the scene .mrb file that reproduces this somewhere and post the link here?

[Next page](https://discourse.slicer.org/t/markups-highlight-selected-markup-clicked-in-3d-view/11670.md?page=2)
