vtk.wx.wxVTKRenderWindow Problem

Hello everybody,

I work on MacOS High Sierra and I got a strange error using vtk.wx.wxVTKRenderWindow : two windows are created instead of one, one with the 3D image and another blank. The mouse interact with the blank window.

Moreover I found that the simple example below, consisting in two lines reproduce the problem :

pam$ python

Python 2.7.12 (default, Oct 11 2016, 05:20:59)

[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin

Type “help”, “copyright”, “credits” or “license” for more information.

from vtk.wx.wxVTKRenderWindow import wxVTKRenderWindowConeExample

wxVTKRenderWindowConeExample()

Moreover, there are two warnings

Warning: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Rendering/OpenGL2/vtkCocoaRenderWindow.h, line 139

vtkCocoaRenderWindow (0x7ffe00086600): SetNextWindowInfo not implemented (WindowRemap not implemented).

Warning: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Rendering/OpenGL2/vtkCocoaRenderWindow.mm, line 1293

vtkCocoaRenderWindow (0x7ffe00086600): Can’t remap the window.

Thanks in advance for any help or clue.

P.-A. Moret

Hi everybody,

I wrote directly to the author of the widget and received an answer that solved the problem. I post it here, in case it can help someone else.

Hello everybody,

I work on MacOS High Sierra and I got a strange error using vtk.wx.wxVTKRenderWindow : two windows are created instead of one, one with the 3D image and another blank. The mouse interact with the blank window.

Moreover I found that the simple example below, consisting in two lines reproduce the problem :

pam$ python

Python 2.7.12 (default, Oct 11 2016, 05:20:59)

[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin

Type “help”, “copyright”, “credits” or “license” for more information.

from vtk.wx.wxVTKRenderWindow import wxVTKRenderWindowConeExample

wxVTKRenderWindowConeExample()

Moreover, there are two warnings

Warning: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Rendering/OpenGL2/vtkCocoaRenderWindow.h, line 139

vtkCocoaRenderWindow (0x7ffe00086600): SetNextWindowInfo not implemented (WindowRemap not implemented).

Warning: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Rendering/OpenGL2/vtkCocoaRenderWindow.mm, line 1293

vtkCocoaRenderWindow (0x7ffe00086600): Can’t remap the window.

Thanks in advance for any help or clue.

P.-A. Moret

Hi,

Use from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor

I don’t think anyone is using the older wxVTKRenderWindow anymore. For example::

from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractorConeExample

wxVTKRenderWindowInteractorConeExample()

I just built and uploaded the wheels for VTK and did write these widgets a long time ago but am not good at responding fast. Instead post on the vtkusers list. HTH.

cheers,
Prabhu

···

Le dimanche 18 février 2018 22:47:27 UTC+1, Pierre-Alain Moret a écrit :