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">&lt;<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt;</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&amp;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>
&lt;<a href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>&gt; wrote:<br>
&gt; Hello world.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Me again. Can I assign different scalar intervals to discrete lookup table<br>
&gt; entries?<br>
&gt;<br>
&gt; The example is rather simple:<br>
&gt;<br>
&gt; I want the lookup-table to display scalars ranging from 1 to 10 in white,<br>
&gt; from 11 to 15 in blue and from 16 to 22 in green.<br>
&gt;<br>
&gt; (Actual intervals and colors may vary!)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Any ideas?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Sebastian<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<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>