Hi everyone,<br><br>I have a very strange vtkImageViewer2 problem.<br><br>When I initialize vtkImageViewer2 as:<br><br>vtkImageViewer2 * view = vtkImageViewer2::New();<br>view-&gt;SetInput(reader-&gt;GetOutput());<br><br>// widget1 is my host window
<br>widget1.SetRenderWindow(view1-&gt;GetRenderWindow());<br>view1-&gt;Render();<br><br>Everything works fine...<br><br>Now, as soon as I add this line:<br>view1-&gt;SetupInteractor(widget1.GetRenderWindow()-&gt;GetInteractor());
<br><br>I notice 2 things: <br>- The size of the display image has become smaller <br>and<br>- The interaction (with the F key is different). The flyby function is not the same.<br><br>Now, I have been digging through the VTK code and I think that the InstallPipeline() method will not set up the interactor till I call:
<br>view1-&gt;SetupInteractor(widget1.GetRenderWindow()-&gt;GetInteractor());<br><br>However, there is clearly an interaction object working and I do not know where it comes from! Is it the vtkImageActor or is the InteractorStyle object is being initialized from somewhere else, I could not find out.
<br><br>If anyone has any clue as to what is happening, please help!<br><br>Thanks!<br>