[vtkusers] Colour map complex scalars

John Platt jcplatt at dsl.pipex.com
Thu Apr 7 15:54:48 EDT 2011


Hi,

I would like to colour map complex scalars. This could be the magnitude or the real part after multiplying the scalars by exp(i theta) for a specified angle theta. 

I have written a class vtkLookupTableComplex derived from vtkLookupTable. MapScalarsThroughTable2() does the conversion of the real and imaginary components to a single value which is then mapped through the table.

This appears to work except when InterpolateScalarsBeforeMapping is set on the mapper. In this case, the scalars are mapped by vtkScalarsToColorsPainter::MapScalarsToTexture().

I am beginning to think a vtkDataSetAlgorithm based solution would be easier but I need the performance for animating the scalars by varying the angle theta from 0 - 360.

Should I give up or is there another approach?

Thanks for your time.

John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110407/e6f29e4d/attachment.htm>


More information about the vtkusers mailing list