[vtkusers] vtkLookupTable 'backwards'
Randy Heiland
heiland at ncsa.uiuc.edu
Thu Jan 31 12:22:56 EST 2002
On Jan 31, 6:00pm, Christian Poecher wrote:
> Subject: [vtkusers] vtkLookupTable 'backwards'
> Hi there,
>
> I have some problems with a vktLookupTable. I need to visualize
> temperatures so it would be fine if small scalars are mapped to blue and
> large scalars are mapped to red (like in the weather forecast). The
> default behavior of a LookupTable is to color small scalars red and
> large scalars blue.
> How can I keep all parameters of my LookupTable and just change the
> colors from one end to the other?
>
lutBlueRed = vtkLookupTable()
lutBlueRed.SetHueRange(0.667,0.0)
lutBlueRed.Build()
--Randy
More information about the vtkusers
mailing list