Hi there,<br><br>I am trying to map certain specific scalars to colors using a vtkLookupTable. Let&#39;s say I want to map the scalar 5 to red, 10 to green, 100 to blue and the rest to black. So what I need to do is similar to a vtkColorTransferFunction, which I cannot use, because I want to use it for a vtkImagePlaneWidget, which only accepts vtkLookupTables.
<br><br>One option seemed to be to extend vtkLookupTable and reimplement GetIndex(float) -&gt; int, which I expected to map the scalar to an index in the table values. This didn&#39;t work, but I am not sure if it is supposed to work.
<br><br>What are my options?<br><br>Regards,<br>Peter<br><br>