I'm trying to give a renderwindow a title.<br><br>I'm using the following code to create a window. So far so good.<br><br> // create a renderer<br> vtkSmartPointer<vtkRenderer> renderer =<br> vtkSmartPointer<vtkRenderer>::New();<br>
renderer->AddActor(actor);<br> <br> // create a render window<br> vtkSmartPointer<vtkRenderWindow> renwin =<br> vtkSmartPointer<vtkRenderWindow>::New();<br> renwin->AddRenderer(renderer);<br><br>
<br> // create an interactor<br> vtkSmartPointer<vtkRenderWindowInteractor> iren =<br> vtkSmartPointer<vtkRenderWindowInteractor>::New();<br> iren->SetRenderWindow(renwin);<br> renwin->SetSize(640, 480);<br>
<br> iren->Initialize();<br> iren->Start();<br><br><br>///////////end code////////<br><br>Before iren->initialize, I tried the following:<br><br> iren->SetWindowInfo( "window1" );<br> renwin->SetWindowInfo( "window1");<br>
<br>and also ->SetWindowId("window1");<br>and ->SetWindowName("window1");<br><br>but it keeps giving me error messages upon compiling:<br><br>‘class vtkRenderWindowInteractor’ has no member named ‘SetWindowInfo’<br>
or<br>error: ‘renWin’ was not declared in this scope<br><br><br>It's probably a simple mistake, but I'm still beginning to understand VTK.<br>Can anybody point me in the right direction?<br><br>Kind regards, Michael<br>
<br><br>