[vtkusers] vtkColorTransferFunction and vtkDataArray
Jean M. Favre
jfavre at cscs.ch
Thu May 22 05:59:53 EDT 2003
Matthieu.Chabanas at imag.fr wrote:
>
> Hello,
>
> I would like to map scalars to colors using a non-continuous linear function,
> let's say :
> yellow if x is in [min, a]
> orange if x is in [a,b]
> red if x is in [b,max]
>
> There is the SetLookupTable method, but it can only be used with a
> vtkLookupTable, not a vtkColorTransferFunction.
> Is it possible to build a vtkLookupTable that has the same behaviour as a
> vtkColorTransferFunction?
I tried it and it worked for me. Here is the Tcl script.
--
Dr. Jean M. Favre, email:favre at cscs.ch
http://www.cscs.ch/people/Favre.html
CSCS, Swiss Center for Scientific Computing | Tel: +41 (91) 610.82.40
Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rainbow.tcl
Type: application/x-tcl
Size: 3379 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030522/bfc5f0e1/attachment.tcl>
More information about the vtkusers
mailing list