I&#39;m trying to give a renderwindow a title.<br><br>I&#39;m using the following code to create a window. So far so good.<br><br>  // create a renderer<br>  vtkSmartPointer&lt;vtkRenderer&gt; renderer =<br>    vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>

  renderer-&gt;AddActor(actor);<br> <br>  // create a render window<br>  vtkSmartPointer&lt;vtkRenderWindow&gt; renwin =<br>    vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>  renwin-&gt;AddRenderer(renderer);<br><br>

<br>  // create an interactor<br>  vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; iren =<br>    vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>  iren-&gt;SetRenderWindow(renwin);<br>    renwin-&gt;SetSize(640, 480);<br>

<br>  iren-&gt;Initialize();<br>  iren-&gt;Start();<br><br><br>///////////end code////////<br><br>Before iren-&gt;initialize, I tried the following:<br><br>      iren-&gt;SetWindowInfo( &quot;window1&quot; );<br>     renwin-&gt;SetWindowInfo( &quot;window1&quot;);<br>

<br>and also -&gt;SetWindowId(&quot;window1&quot;);<br>and -&gt;SetWindowName(&quot;window1&quot;);<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&#39;s probably a simple mistake, but I&#39;m still beginning to understand VTK.<br>Can anybody point me in the right direction?<br><br>Kind regards, Michael<br>

<br><br>