<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
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 />Lauren found her dream laptop. <a href='http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290' target='_new'>Find the PC that’s right for you.</a></body>
</html>