Hi,<br><br>I'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 "undo" (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->ImageFlip)<br> {<br> this->ImageFlip = vtkImageFlip::New();<br> }<br> this->ImageFlip->SetInput(this->ImgReslice->GetOutput());
<br> this->ImageFlip->PreserveImageExtentOn();<br> this->ImageFlip->SetFilteredAxis(2);<br> this->ImageFlip->Update();<br> <br> this->pZImage = this->ImageFlip->GetOutput();<br>.<br>
.<br>.<br>and the function to turn it off should be like:<br><br>void ImageFlipOff()<br>{<br> "this->ImageFlip->SetFilteredAxis(none)"; // doesn't work of course<br> "this->ImageFlip->TurnOff()" // won't work either
<br>}<br><br>Thanks in advance!<br>Sebastian<br>