[vtkusers] vtkImplicitPlaneWidget&vtkRenderer

Chunyan Jiang jiang at TI.FhG.DE
Wed Jan 15 05:56:56 EST 2003


Dear vtk-users,
I put three vtkRenderers in one vtkRenderWindow. And I also set one
vtkImplicitPlaneWidget. Now I want to put this vtkImplicitPlaneWidget in one
of the three vtkRenderer, for example ren2. How should I set it? My code is
following:

renWin=vtkRenderWindow::New();
ren1=vtkRenderer::New();
ren2=vtkRenderer::New();
ren3=vtkRenderer::New();

renWin->AddRenderer(ren1);
renWin->AddRenderer(ren2);
renWin->AddRenderer(ren3);

iren = vtkRenderWindowInteractor::New();
iren->SetRenderWindow(renWin);

planeWidget=vtkImplicitPlaneWidget::New();
planeWidget->SetInteractor( iren);

I have read the document of vtkImplicitPlaneWidget. I found that which
renderer will be set depends on
vtkRenderWindowInteractor::FindPokedRenderer(int,int). However, I don't know
how can I set these two parameters.
Could some one help me? Thank you very much!

Chunyan

***********************************************************************
Chunyan Jiang, Dipl.-Inform.,
Institut for Telematic
Bahnhofstrasse 30-32, D-54292 Trier, Germany
Phone: (+49) (0)651-97551-34
Fax: (+49) (0)651-97551-12
***********************************************************************




More information about the vtkusers mailing list