[vtkusers] renderWindowInteractor in vtkWidget
cesarrmamlaver
cesarrmalaver at gmail.com
Thu Aug 14 17:04:21 EDT 2014
Hi all, I'm a new user in VTK, i need put a renderWindowInteractor in the
QVTKWidget of QTCreator. I have this:
vtkSmartPointer<vtkRenderer> renderer = vtkSmartPointer<vtkRenderer>::New();
vtkSmartPointer<vtkRenderWindow> renderWindow =
vtkSmartPointer<vtkRenderWindow>::New();
renderWindow->AddRenderer(renderer);
vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =
vtkSmartPointer<vtkRenderWindowInteractor>::New();
renderWindowInteractor->SetRenderWindow(renderWindow);
renderer->AddActor(actor);
renderWindow->Render();
renderWindowInteractor->Initialize();
but how I can put RenderWindowInteractor in QVTKWidget?? I tried this but
don't worked.
this->qvtkWidget->GetRenderWindow()->AddRenderer(renderer);
Sorry for my English, I from Colombia.
--
View this message in context: http://vtk.1045678.n5.nabble.com/renderWindowInteractor-in-vtkWidget-tp5728226.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list