Discussion:
[vtkusers] vtkExternalOpenGLRenderWindow not Python-wrapped?
Elvis Stansvik
2018-11-10 10:34:10 UTC
Permalink
Hi all,

I found the example at https://github.com/nicanor-romero/QtVtk quite
interesting (VTK inside Qt Quick as a FBO item), and for a fun weekend
project wanted to see if it would at all be possible to port it to
Python.

But hit a snag quite quickly as it seems vtkExternalOpenGLRenderWindow
is not Python-wrapped:

Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
from vtk import vtkExternalOpenGLRenderWindow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'vtkExternalOpenGLRenderWindow'
I couldn't find it tagged with WRAP_EXCLUDE_PYTHON though. Is this
class supposed to be wrapped? David?

Cheers,
Elvis
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Elvis Stansvik
2018-11-10 12:58:37 UTC
Permalink
My bad, I was using a different VTK than what I thought I was.

Elvis
Den lör 10 nov. 2018 kl 11:34 skrev Elvis Stansvik
Post by Elvis Stansvik
Hi all,
I found the example at https://github.com/nicanor-romero/QtVtk quite
interesting (VTK inside Qt Quick as a FBO item), and for a fun weekend
project wanted to see if it would at all be possible to port it to
Python.
But hit a snag quite quickly as it seems vtkExternalOpenGLRenderWindow
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
from vtk import vtkExternalOpenGLRenderWindow
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'vtkExternalOpenGLRenderWindow'
I couldn't find it tagged with WRAP_EXCLUDE_PYTHON though. Is this
class supposed to be wrapped? David?
Cheers,
Elvis
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/li

Loading...