You can also use vtkColorTransferFunction and use AddRGBPoint function directly against the scalar value<br><br>Regards<br>Darshan<br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 5:21 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You have complete control over the lookup table.<br>
See:<br>
vtkLookupTable::SetNumberOfTableValues()<br>
and<br>
vtkLookupTable::SetTableValue (vtkIdType indx, double r, double g,<br>
double b, double a=1.0)<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-371-3971 x109<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Thu, Mar 4, 2010 at 4:56 PM, Sebastian Gatzka<br>
<<a href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>> wrote:<br>
> Hello world.<br>
><br>
><br>
><br>
> Me again. Can I assign different scalar intervals to discrete lookup table<br>
> entries?<br>
><br>
> The example is rather simple:<br>
><br>
> I want the lookup-table to display scalars ranging from 1 to 10 in white,<br>
> from 11 to 15 in blue and from 16 to 22 in green.<br>
><br>
> (Actual intervals and colors may vary!)<br>
><br>
><br>
><br>
> Any ideas?<br>
><br>
><br>
><br>
> Sebastian<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>