[vtkusers] vtkLookupTable question

Dave Semeraro semeraro at ncsa.uiuc.edu
Thu May 16 17:05:09 EDT 2002


I seem to recall setting the scalar range in the mapper. Something like,

mapper->SetScalarRange( low, high);

where mapper is some vtk mapper object.


At 03:40 PM 5/16/2002 -0500, navarro christopher michael wrote:

>Hi,
>
>I am trying to view a cutting plane (of an iso-surface) of some vorticity
>data that has been normalized on it's maximum value such that it goes from
>-1 to 0.17.  I built the table as follows:
>
>         wcLut = vtkLookupTable::New();
>         wcLut->SetHueRange(2.0/3.0, 0);  // blue to red and everything in
>between
>
>         wcLut->Build();
>
>
>This lookup table works just fine for data that ranges from 0 to 1 but for
>the vorticity, I need the colors to vary from -1 to 0.17 and thus I get no
>variation until it gets to positive vorticity....I tried to do:
>
>         wcLut->SetRange(-1.0, 0.17);
>
>after building the table but it doesn't work.  Does anyone know how I can
>set the table to vary over a specific range?  Thanks!
>
>-Chris
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers

Dave Semeraro Ph.D.
Visualization and Virtual Environments Group
NCSA University of Illinois
605 E. Springfield Ave.
Champaign, IL 61820
Semeraro at ncsa.uiuc.edu
(217) 244-1852




More information about the vtkusers mailing list