<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
I tested a bit more. Here is an example, where I have 1 resulting
window, but the rendering is wrong. The environment is a Ubuntu
16.04. Any help is welcome.<br>
<br>
Kind regards<br>
<br>
<br>
Am 14.10.2016 um 11:53 schrieb Horst:<br>
</div>
<blockquote cite="mid:e5ee237b-b60f-ae43-f904-1ae7920aa35e@gmx.de"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<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
moz-do-not-send="true" 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 moz-do-not-send="true"
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 moz-do-not-send="true" 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>