[vtkusers] vtkRenderer

Massinissa Bandou Massinissa.Bandou at USherbrooke.ca
Tue Jul 16 14:26:01 EDT 2013


Hello all!

Can someone please tell me whats the difference between:

vtkSmartPointer<vtkRenderer> renderer = vtkSmartPointer<vtkRenderer>::New();
this->qvtkWidget->GetRenderWindow()->AddRenderer(renderer);


and 

vtkSmartPointer<vtkRenderWindow> renderWindow =
vtkSmartPointer<vtkRenderWindow>::New();
vtkSmartPointer<vtkRenderer> renderer = vtkSmartPointer<vtkRenderer>::New();
renderWindow->AddRenderer(renderer);
this->qvtkWidget->SetRenderWindow(renderWindow);


Because the following Qt code seems working for the first code above and not
the other.

vtkSmartPointer<vtkEventQtSlotConnect> Connections =
vtkSmartPointer<vtkEventQtSlotConnect>::New();
Connections->Connect(this->qvtkWidget->GetRenderWindow()->GetInteractor(),vtkCommand::KeyPressEvent,this,SLOT(slot_clicked(vtkObject*,unsigned
long,void*,void*)));





--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkRenderer-tp5722002.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list