I’m looking at this link because my Python scripted module will have 2 or 3 vtkMRMLAnnotationROINode objects open at the same time and I would like them to be distinguishable from each other by line color and/or text label that is visible in the slicer window.
https://apidocs.slicer.org/master/classvtkMRMLAnnotationROINode.html#afaa9522ed4bc6fa5f3234f3787e1c517
What is the correct form of the input for SetLineColor? I tried
r=slicer.vtkMRMLAnnotationROINode()
r.SetLineColor([255,0,0]) and my module just crashed.
Which function of vtkMRMLAnnotationROINode object would allow me to add a label for the ROI that can be seen in the slicer window, and what should its input look like?
SetLabelText didn’t appear to do anything.
Thanks,
Rohan