<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I was thinking of that, but it will cause gui integration problems. i.e. there is a pushbutton for the user to choose the visibility of the image actor and I feel that it would not be nice the application to force user demanded options to be touched by the backend. Of course one can add one more degree of indirection there (and hence non qui-api controlled flags) but I am trying to avoid it.<br><br>Thanks though!<br><br><br><hr id="stopSpelling">Date: Fri, 19 Jun 2009 09:05:00 -0500<br>Subject: Re: [vtkusers] Reseting vtk pipeline<br>From: gbivins@objectreservoir.com<br>To: nasos_i@hotmail.com; vtkusers@vtk.org<br><br>



<title>Re: [vtkusers] Reseting vtk pipeline</title>


<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Hi </span></font><font size="2"><font face="Verdana, Helvetica, Arial"><span style="font-size: 10pt;">Nasos,<br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Did you try setting the visibility of the image actor to “off” do when you want to reset? Then when you read a new file you can turn the visibility of the actor back to “on”.<br>
<br>
Gerrick<br>
<br>
<br>
On 6/18/09 8:20 AM, "Nasos Iliopoulos" &lt;<a href="http://hotmail.com">nasos_i@hotmail.com</a>&gt; wrote:<br>
<br>
</span></font><blockquote><font size="2"><font face="Verdana, Helvetica, Arial"><span style="font-size: 10pt;">Hello all,<br>
I am developing an application using QT and VTK. At some points (i.e. when the user wants to start a New Project), I need to reset the vtk pipeline to the original state. <br>
<br>
For example I have a vtkPNMImageReader that through some image algorithms is streamed to a vtkImageActor. Now, I need to reset the vtkPNMImageReader, so that it does not provide any image in the pipeline and hence vtkImageActor have no image to display. If I just set vtkPNMImageReader to a non-existent image, vtkImageActor won't update since vtkPNMImageReader is at an error state.<br>
<br>
For now I am deleting the old vtkObjects and just recreate them, but I am afraid I am getting a broken interface with the rest of my application.<br>
<br>
The most vtk-friendly way I find is by disconnecting each object, update it and then recreate the pipeline, without deleting any vtk item. Obviously this is a tedious process and I feel it is not the most elegant one. Is there any other way that will resolve my situation?<br>
<br>
Best<br>
Nasos<br>
<br>
<br>
<hr align="center" size="3" width="100%">Lauren found her dream laptop. Find the PC that’s right for you. &lt;<a href="http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290">http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290</a>&gt; <br>
<hr align="center" size="3" width="95%"></span></font><span style="font-size: 10pt;"><font face="Consolas, Courier New, Courier">_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">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">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</font></span></font></blockquote><br /><hr />Windows Live™ SkyDrive™: Get 25 GB of free online storage.   <a href='http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009' target='_new'>Get it on your BlackBerry or iPhone.</a></body>
</html>