<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello everybody,</p>
<p>I am trying to integrate a VTK rendering into a GTKmm based
window. The GTK widget contains a GLarea
(<a class="moz-txt-link-freetext" href="https://developer.gnome.org/gtkmm/stable/classGtk_1_1GLArea.html">https://developer.gnome.org/gtkmm/stable/classGtk_1_1GLArea.html</a>),
and I want to render into that context.</p>
<p>The problem is, that I end up with two windows. One by GTK and
one by VTK. I was inspired by this:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GLUT">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GLUT</a> but <br>
</p>
<pre class="de1">renWin<span class="sy2">-</span><span class="sy1">></span>InitializeFromCurrentContext<span class="br0">(</span><span class="br0">)</span><span class="sy4">;
</span></pre>
<span class="sy4">is maybe not the way to go?<br>
In the VTK blog I read about the ExternalVTKWidget and
vtkExternalOpenGLRenderWindow. But this still did not work
(<a class="moz-txt-link-freetext" href="https://gitlab.kitware.com/vtk/vtk/blob/0b7d6de3dddbcdb5dd9267a9586d59962464819e/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx">https://gitlab.kitware.com/vtk/vtk/blob/0b7d6de3dddbcdb5dd9267a9586d59962464819e/Rendering/External/Testing/Cxx/TestGLUTRenderWindow.cxx</a>)
for me.<br>
<br>
So my question: What is the proper way of rendering into a
GTK::GLArea (or in general using VTK with GTK), while still get
the proper event from VTK (pointing on a cone in the view and get
the event-position). Or do I need to use a separate event loop
instead of the one provided by vtkRenderWindowInteractor?<br>
<br>
Thanks a lot and every hint is welcome!<br>
<br>
Kind regards<br>
</span>
<p><br>
</p>
</body>
</html>