As one can see below this manages to set the color in the display but the color in the data menu on the left is default green - So i o not know which label is related to which color while displaying - what am I doing wrong ?
SetSegmentOverrideColor method is provided for special cases: when you want to display a segment in a particular view with a different color than the segment’s color specified in
Set segment override color by segment ID Override color is used for specifying custom color for a segment in selected views. By default, segment color is invalid (-1,-1,-1), which means that the color stored in vtkSegment object will be used. If a valid override color is specified then in the views corresponding to this display node, segment will be colored using the override color.
You specified white color for the segment (all RGB values were set to values >= 1.0). RGB color in VTK are defined by numbers between 0.0 … 1.0 (not 0 … 255).
If you previously set SegmentOverrideColor, don’t forget to reset it by setting it to (-1,-1,-1).