Commit 7aaf1d8e authored by David Gobbi's avatar David Gobbi
Browse files

BUG: Fix the wrapping of QVTKInteractor.

In Python, the QVTKInteractor class wasn't inheriting any methods
from its superclass vtkRenderWindowInteractor and was useless as
a result.  The python wrappers were confused because the prefix
is "Q" instead of "vtk".  The main kits have a vtkKitHierarchy.txt
file that the wrappers can use to ascertain type and inheritance
without relying on prefixes, a simple solution here is to use the
hierarchy file that was generated for Rendering.

Change-Id: Idba365ea61d7153dfd63f678dd36318ba429dc93
parent 34298aed
......@@ -221,6 +221,12 @@ if(VTK_WRAP_PYTHON_SIP)
# GUISupport/Qt doesn't have a hierarchy file, use Rendering
VTK_WRAP_PYTHON3(vtkQtPython QVTK_PythonSrcs "${QVTK_PythonHeaders}")
VTK_ADD_LIBRARY(vtkQtPythonD ${QVTK_PythonSrcs})
TARGET_LINK_LIBRARIES(vtkQtPythonD QVTK vtkViewsPythonD vtkRenderingPythonD vtkPythonCore)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment