I am trying to show a context menu when a vtkMRMLAnnotationRulerNode object is right-clicked in Slicer, similar to this example using fiducials from the Slicer Script Repository. Is this possible with ruler objects?
I don’t think there is an event that could be observed. We are working on improving the widgets and in a couple of months we might get to the ruler widget and add this feature. Till then you might use Markup fiducials and connect them using a line created by MarkupsToModel module.