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)
)
ENDIF(VTK_QT_USE_WEBKIT)
# GUISupport/Qt doesn't have a hierarchy file, use Rendering
IF(VTK_IGNORE_BTX)
SET(KIT_HIERARCHY_FILE
${VTK_BINARY_DIR}/Rendering/vtkRenderingHierarchy.txt)
ENDIF(VTK_IGNORE_BTX)
VTK_WRAP_PYTHON3(vtkQtPython QVTK_PythonSrcs "${QVTK_PythonHeaders}")
VTK_ADD_LIBRARY(vtkQtPythonD ${QVTK_PythonSrcs})
TARGET_LINK_LIBRARIES(vtkQtPythonD QVTK vtkViewsPythonD vtkRenderingPythonD vtkPythonCore)
......
Markdown is supported
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