<div dir="ltr">I think you'll need to use vtkPiecewiseFunction and use vtkPiecewiseFunction::AddSegment() [1] to add segments between neighboring entries in your table.<div><div><br></div><div>HTH,</div><div>Cory</div><div><br></div><div>[1] <a href="http://www.vtk.org/doc/nightly/html/classvtkPiecewiseFunction.html#add92350b9d1803d1fecad7cd1220b068">http://www.vtk.org/doc/nightly/html/classvtkPiecewiseFunction.html#add92350b9d1803d1fecad7cd1220b068</a></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 6, 2015 at 2:47 AM, LaChen <span dir="ltr"><<a href="mailto:sam24666806@gmail.com" target="_blank">sam24666806@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I needs to use my lookup table for volume rendering.<br>
<br>
But we only can set transfer function by vtkPiecewiseFunction.<br>
<br>
If I needs to set look up table, how can I set it??<br>
<br>
Thanks.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-set-const-lookup-table-into-vtkPiecewiseFunction-tp5734831.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-set-const-lookup-table-into-vtkPiecewiseFunction-tp5734831.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>