Include functionality of control point status in custom scripted module

Hi, I really like the use of the control point status as it is implemented in the Markups module. I mainly use the functionality of the buttons in the column of the table to change the status of individual control points.

Currently, I am building a scripted module where I would like to implement the same functionality, because the constant switching between the custom scripted module and the Markups module would be annoying.

To my knowledge, qSlicerSimpleMarkupsWidget does not provide this functionality. Is there an easy way to get the same kind of table integrated in my module?

Thanks!

I found this issue in the attic that seems to be related: Add reusable widget for markups control point list · Issue #6452 · Slicer/Slicer · GitHub

@lassoan Do you think there will be progress on this feature anytime soon? Thanks!

It would be easy to add a “position status” column to the simple markups widget, which you could click to cycle through the position states (as in the main Markups GUI). Would that be sufficient for your use case?

Yes it would. As I mainly need to toggle control points between missing and defined as well as put them in place mode to define undefined points.

I’ve added this new feature, it is currently under review.

Thank you so much for quickly resolving this request. I guess it will be available in the new nightly release? Is there any way to get it working within a stable release, too?

It was merged two days ago, so it should be already available in the latest Slicer Preview Release.

We usually don’t backport new features into patch releases, so it will be available in the new Slicer Stable Release (5.12) in about 3 month.