[vtkusers] Render() breaks interactor??!!
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Jul 24 17:06:48 EDT 2006
Salut Joël,
Please submit a bug report at:
http://vtk.org/Bug
Include you small example
Thanks
Mathieu
Joël Schaerer wrote:
> Hi all,
>
> It seems that calling the Render() method on a vtkRenderWindow before
> starting an interactor on a the same window breaks the interactor. Here
> is a minimal example:
>
>
> ---- begin code -----
> #include <vtkRenderWindow.h>
> #include <vtkRenderWindowInteractor.h>
>
> int main()
> {
> vtkRenderWindow * renwin = vtkRenderWindow::New();
> //renwin->Render(); /*If line is not commented, interactor doesn't
> work!!! */
> vtkRenderWindowInteractor * i = vtkRenderWindowInteractor::New();
> i->SetRenderWindow(renwin);
> i->Start();
> }
> ---- end code -----
>
> without the call to Render(), the interactor works, ie. the 'q' key
> works, for example. If I uncomment the line, the interactor doesn't work
> at all.
> Would somebody mind explaining me the reason of this problem? I'm using
> vtk-4.5.0-0.cvs20040114.2 (creatis version), on a linux machine.
>
> Many thanks!
>
> joel
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list