How to avoid that vtk's renderization window appears? What happens is that I use the widget from QVTKWidget and because it i don't need anymore the window created from vtk to rendering the image but I can't to cut some points where I think this window will disappear because it influences on the image that widget loads. I'm pasting here the code snippet since the criation of "vtkImageActor" until the transform of the image to widget. If you need anymore information to help me it's just to say.<br>
<br><br> vtkImageActor *viewer = vtkImageActor::New();<br><br> vtkImageCast *cast = vtkImageCast::New();<br> cast->SetInput(connector->GetOutput());//information about the image<br> cast->SetOutputScalarTypeToUnsignedChar();<br>
viewer->SetInput(cast->GetOutput());<br><br> vtkRenderer *ren1= vtkRenderer::New();<br> vtkRenderWindow *renWin = vtkRenderWindow::New();<br><br> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();<br>
iren->SetRenderWindow(renWin);<br><br> renWin->SetSize( 600, 600 );<br><br> ren1->AddActor(viewer);<br> ren1->SetBackground(0.4,0.6,0.8);<br><br> renWin->AddRenderer( ren1 );<br> ren1->ResetCamera();<br>
ren1->GetActiveCamera()->Zoom(1.5);<br><br> renWin->Render();<br><br> renWin->SetStereoTypeToDresden();<br> iren->GetRenderWindow()->Finalize();//doesn't help to close window<br> iren->TerminateApp();////doesn't help to close the window<br>
widget->SetRenderWindow(renWin);//end of transform of the image to widget<br><br><br>-- <br><div>Brenno Bernardes Ribeiro<br><br>Engenharia da Computação</div><div>
Universidade Federal do Pará</div><div style="padding:0px;overflow:hidden;margin-left:0px;margin-top:0px;color:black;font-size:10px;text-align:left;line-height:130%"></div><br>