Hi,<br><br>I&#39;m trying to build a pipeline with an ImageFlip. At the beginning the pipeline should flip the image about Axis 2, which is already working. By pressing a button the user should be able to &quot;undo&quot; (and also redo) this flip. Does anybody has an idea how I can prevent the vtkImageFlip from acting? Is there some function to turn off a vtkImageAlgorithm temporarily?
<br>This is the pipeline code snippet:<br>.<br>.<br>.<br>if (!this-&gt;ImageFlip)<br>&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp; this-&gt;ImageFlip = vtkImageFlip::New();<br>&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;this-&gt;ImageFlip-&gt;SetInput(this-&gt;ImgReslice-&gt;GetOutput());
<br>&nbsp;&nbsp; &nbsp;this-&gt;ImageFlip-&gt;PreserveImageExtentOn();<br>&nbsp;&nbsp;&nbsp; this-&gt;ImageFlip-&gt;SetFilteredAxis(2);<br>&nbsp;&nbsp; &nbsp;this-&gt;ImageFlip-&gt;Update();<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;this-&gt;pZImage = this-&gt;ImageFlip-&gt;GetOutput();<br>.<br>
.<br>.<br>and the function to turn it off should be like:<br><br>void ImageFlipOff()<br>{<br>&nbsp;&nbsp;&nbsp; &quot;this-&gt;ImageFlip-&gt;SetFilteredAxis(none)&quot;; // doesn&#39;t work of course<br>&nbsp;&nbsp;&nbsp; &quot;this-&gt;ImageFlip-&gt;TurnOff()&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // won&#39;t work either
<br>}<br><br>Thanks in advance!<br>Sebastian<br>