[vtkusers] Re: Best vtk / QT package?
stefan.bruckner at chello.at
Fri Sep 6 13:11:21 EDT 2002
Just tried that (StereoCapableWindowOn) with VTK_QT and it seems to work
... at least I don't get an error.
Am Fre, 2002-09-06 um 17.03 schrieb Steffen Oeltze:
> I do have trouble. I'm using the vtkqt-library by Matthias Koenig to
> create an
> application that supports stereo rendering. Unfortuately, executing the
> renWin->StereoCapableWindowOn() - method results in the following
> > vtkQtRenderWindow (0x05502E8C): Requesting a StereoCapableWindow must
> > be performed before the window is realized, i.e. before a render.
> I know that one has to execute this method before the window is rendered
> I didn't use render() in the source code before so I assume that the
> window is
> rendered by some internal vtkqt-method. Here is the critical part of my
> source code:
> > // create a Qt-application and a widget
> > QApplication a( argc, argv );
> > QWidget *qw = new QWidget;
> > qw->resize(350, 200);
> > qw->show();
> > // create a renderer and a render window
> > vtkRenderer *ren1 = vtkRenderer::New();
> > vtkQtRenderWindow *renWin = new vtkQtRenderWindow(qw);
> > renWin->StereoCapableWindowOn();
> > renWin->AddRenderer(ren1);
> > renWin->setGeometry(0, 0, 300, 200);
> > renWin->show();
> Could you test please if the StereoCapableWindowOn() - method works with
> the package you are using.
> By the way, why can't one set the window to stereo mode after it has
> been rendered ?
> Steffen Oeltze
More information about the vtkusers