[vtkusers] Breaking the pipeline

Matthias Haack haack at rz.rwth-aachen.de
Thu Aug 28 14:53:56 EDT 2003


Hi Glen,

the clue is, the vtkImageData is the output of a vtkPNGReader and that's 
not changed, I just want to disable it to prevent the pipeline to access 
it when something is changed.

And I tried the imageData->Update() but this does not help:

The rendered image is not updated when I deep copy another image 
(flipped version of the original) to the original image and then do an 
update.

It seems that the copy is not recognized.


Matthias


Glen Lehmann wrote:
> Hi Mathias,
> 
> You likely need to call imageData->Update after you reset it's input.
> 
> Cheers,
> Glen
> 
> Mathias Haack wrote:
> 
>> Hi all,
>>
>> I have the following pipeline with VTK 4.0.2:
>> png image -> vtkPNGReader -> vtkImageData -> vtkImageActor -> ... -> 
>> display
>>
>> It works as it is supposed to be. Now I want to alter the vtkImageData 
>> using
>> an image filter like vtkImageFlip, first I deepcopy the vtkImageData,
>> using vtkImageFlip and deep copy it back to the vtkImageData.
>> The result is an unchanged image on my display. I suppose the pipeline 
>> will
>> read the image again (or use the cached image from the reader).
>>
>> I need to break the connection between the image reader and vtkImageData.
>>
>> How can I achieve this?
>>
>>
>> Matthias
>>
>>  
>>
> 
> 
> _______________________________________________
> This is the private VTK discussion list. Please keep messages on-topic. 
> Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 






More information about the vtkusers mailing list