<html>
<head>
</head>
<body>
I have found a convenient way in the meanwhile. When the user changes the
rgb-values (the scalar value keeps the same) of a point I simply use the
function addRGBValue(...). VTK internally replaces the old point by the new
one. When the user changes the scalar value I use the getDataPointer()-function
which returns a pointer to the transfer function and then, I manipulate the
function directly by replacing the scalar value each time the user moves
a slider. This is actually what I'm planing to do. I haven't implemented
it yet. <br>
I expect to be at most 10 points in my functions.<br>
<br>
Have you tried to enable a vtkQtRenderWindow for stereo rendering yet ?<br>
<br>
Steffen<br>
<br>
<br>
<br>
<br>
Stefan Bruckner wrote:<br>
<blockquote type="cite" cite="mid:000901c255ae$6c569800$bc9fbad4@SID">
<title>Nachricht</title>
<meta content="MSHTML 6.00.2713.1100" name="GENERATOR">
<div>
<div><span class="229565113-06092002"><font face="Arial" size="2"><font face="Arial">
What I did in the Java-Program is to simple store the function currently
displayed in the edior in an array. When the vtk window has to be redrawn
and the transfer function has been modified, I just create a new vtkColorTransferFunction
from the array. Although this is of course not optimal, the overhead introduced
is negligible, if node counts don't get to high. How many nodes do you expect
to be in your functions?</font></font></span></div>
<div><font face="Arial" size="2"> </font></div>
<div><font face="Arial" size="2"> </font></div>
<div><font face="Arial" size="2"><font face="Tahoma"><font size="2"><span class="229565113-06092002">
</span>-----Ursprüngliche Nachricht-----<br>
<b>Von:</b> Steffen Oeltze [<a class="moz-txt-link-freetext" href="mailto:Steffen.Oeltze@Student.Uni-Magdeburg.DE">mailto:Steffen.Oeltze@Student.Uni-Magdeburg.DE</a>]
<br>
<b>Gesendet:</b> Freitag, 06. September 2002 09:45<br>
<b>An:</b> Stefan Bruckner; VTK users<br>
<b>Betreff:</b> Re: [vtkusers] Re: Best vtk / QT package?<br>
<br>
</font></font></font></div>
<blockquote style="margin-right: 0px; "><font face="Arial" size="2">I have
got a question concerning the package you have mentioned. I'm using vtkqt
by Matthias Koenig which works fine except for the fact that I'm not able
to render stereo in his vtkQtRenderWindow. Calling the method "StereoCapableOn()"
results in an error. Could you please test for me if this method works
with the package you are using ?<br>
<br>
A week ago I downloaded your java-program to graphically edit a transfer
function. I'm trying to<br>
implement something similar using Qt. Unfortunately, I encountered a problem
concerning the<br>
editing of a vtkColorTransferFunction. You can add a point to this function
and you can remove<br>
one but I couldn't find a method to modify an already existing point.
However, this is necessary<br>
for my application because I want to enable the user to change the transfer
function interactively.<br>
The problem is that I don't want a new point to be added each time the
user changes the color<br>
but I want to modify the recently added point. How did you manage this
?<br>
<br>
Regards,<br>
Steffen<br>
<br>
Stefan Bruckner wrote:<br>
</font>
<blockquote cite="mid:1031257530.14474.14.camel@NANCY" type="cite">
<pre wrap=""><font face="Arial" size="2">I've examined nearly all of the packages out there, most of them are<br>pretty outdated. The best and probably most current (VTK 4, QT 3) is<br>VTK_QT by Carsten Kuebler. <br><br>Source is provided in an MS Visual Studio project, but I've managed to<br>compile it under Linux within minutes without problems.<br><br>Download: <a class="moz-txt-link-freetext" href="http://wwwipr.ira.uka.de/%7Ekuebler/vtkqt/index.html">http://wwwipr.ira.uka.de/~kuebler/vtkqt/index.html</a><br><br>--<br>Stefan Bruckner<br><br><br></font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Arial" size="2">I am trying to get vtk and qt working properly.<br><br>Which is the best vtk/qt package available?<br>Which has the best chance of being supported in the future?<br>Which should I avoid altogether? (maybe too old to work with newer<br>versions?)<br><br>I appreciate all help and opinions!<br><br>Thanks,<br>Alex Lear<br><br>_______________________________________________<br>This is the private VTK discussion list. <br>Please keep messages on-topic. Check the FAQ at:<br></font></pre>
</blockquote>
<pre wrap=""><!----><font face="Arial" size="2"><a class="moz-txt-link-rfc2396E" href="http://public.kitware.com/cgi-bin/vtkfaq"><http://public.kitware.com/cgi-bin/vtkfaq></a><br></font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Arial" size="2">Follow this link to subscribe/unsubscribe:<br><a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br></font></pre>
</blockquote>
<pre wrap=""><!----><font face="Arial" size="2"><br><br><br><br>_______________________________________________<br>This is the private VTK discussion list. <br>Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-rfc2396E" href="http://public.kitware.com/cgi-bin/vtkfaq"><http://public.kitware.com/cgi-bin/vtkfaq></a><br>Follow this link to subscribe/unsubscribe:<br><a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br><br></font></pre>
</blockquote>
<font face="Arial" size="2"><br>
</font></blockquote>
</div>
</blockquote>
<br>
</body>
</html>