GUI sphere paint segmentation

It probably has been asked before, but in case I missed any latest development.
If I want to include in my module a GUI component for segmentation (e.g. via sphere paint) as easy as creating a fiducial markup like qSlicerSimpleMarkupsWidget, is it possible?
Thanks a lot in advance!

There are several very simple options.

  1. You can create a model node from markups as shown in this example and add it to a segmentation as shown in this other example.
  2. You can find many examples here that shows how to use Segment Editor without showing a widget.
  3. Segment Editor module is an example of how to embed a segment widget into any scripted module.