[vtkusers] Sneaky way of producing non-linear bands in vtk file?
Lisa S. Avila
lisa.avila at kitware.com
Tue Sep 24 21:49:45 EDT 2002
You might want to try using vtkColorTransferFunction instead of
vtkLookupTable. This allows you to add points of color (in RGB or HSV
space) and interpolate linearly between them (in RGB or HSV). The points do
not need to be evenly spaced.
At 11:56 PM 9/24/2002, julianholt wrote:
>I have a normalised vtk dataset (values from 0.0 to 1.0) containing up to
>500,000 scalar values that is written to a vtk file.
>I need to plot this, using different user definable colours (lookup table).
>Is there anyway within a vtk file to specify a non-linear lookup table?
> From my experiments, if you have say 10 colours in a lookup table each
> "band" is 0.1
>What I would like to say is, "set band 1 to plot between 1.0 to 0.5 and
>let the remaining 9 bands cover the 0.0 - 0.5 level".
>Doesn't look to me that you can do this in a vtk file without changing the
>data (ouch) OR adding many more than 10 colours to the lookup table.
>Many thanks for any pointers
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers