Add "Center all cameras" to control point right-click menu?

Some of my scans have rather ungainly specimens with elongate structures and lots of intricate morphology (stick insects, mantises). The center of rotation for the entire scene is often not exactly where I would like it to be, and translating and rotating using left-middle-right mouse clicks and drags has become somewhat of an imperfect navigational art form. I’ve found the right-click “Center all cameras” option in the control point list to be very useful, however I often have well over 100 control points in a given control point list and it can be tedious to scroll through and find the one in question.

I was wondering if it would be generally useful to add a “Center all cameras” command in the right-click-on-a-control-point menu (the one with “rename control point”, etc). I’ve looked into this a little bit and it looks like it would just require changes to qSlicerSubjectHierarchyMarkupsPlugin. This does result in growing that menu a bit, however, and if it’s not generally useful, it would just add clutter.

Thoughts? Does anybody else re-center the camera on a given control point a lot?



I was unable to find this option. Do you mean “Refocus all cameras”?

It has been discussed in another thread about adding a filter option to this table similar to how Segment Editor can have a filter option shown (right-click “Show Filter Bar”) to quickly find a segment in a large list of segments. This may be beneficial to this effort in finding the control point you want quicker.

Providing continuity between right-click context options in the control points table as with the right-click context option of the control point in the slice view may make sense too as you suggest.

Yep, that’s the one - apologies for the mis-naming.

I can look into adding it to the control-point right-click, it does not look too intrusive but I may have a few questions on details. What do you think?


I have this working, if there’s general interest I can submit a pull request.


1 Like