Differentiating between 2 vtkMRMLAnnotationROINodes

Let’s say I’ve done the following:

a = slicer.vtkMRMLAnnotationROINode()

b = slicer.vtkMRMLAnnotationROINode()

And the user is looking at an image in the red and yellow slices with these 2 ROI’s in the scene. What is a good way to modify how each vtkMRMLAnnotationROINode looks in the scene so that it is obvious to the user which one is a and which one is b?

I thought that doing


would make the label ROI1 hover over the vtkMRMLAnnotationROINode a in the scene, but that doesn’t appear to be the case. I also tried


but I don’t see any change in what the vtkMRMLAnnotationROINode a looks like in the scene.

Rohan Nadkarni

vtkMRMLAnnotationROI does not have labels and cannot be recolored. It will not be improved any further but we will add markups ROI node instead (probably within a couple of months), which will have all these and many more features. You can track the status of this effort here.

1 Like