[vtkusers] Breaking the pipeline

Amy Henderson amy.henderson at kitware.com
Thu Aug 28 15:15:05 EDT 2003


Why not change the input to the vtkImageActor?  The new pieline would look 
like:

vtkPNGReader -> vtkImageFlip -> vtkImageActor

Then there's no need for copying the data.

- Amy

At 08:53 PM 8/28/2003 +0200, Matthias Haack wrote:
>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
>
>
>
>_______________________________________________
>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