Differentiating between 2 vtkMRMLAnnotationROINodes

Hello,
Let’s say I’ve done the following:

a = slicer.vtkMRMLAnnotationROINode()
slicer.mrmlScene.AddNode(a)

b = slicer.vtkMRMLAnnotationROINode()
slicer.mrmlScene.AddNode(b)

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

a.SetLabelText(“ROI1”)

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

a.SetLineColor([255,0,0])

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

Thanks,
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