Commit 139f787a authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Qt5: Add QVTKOpenGLWidget

Adding QVTKOpenGLWidget which enables using a vtkRenderWindow (rather a
vtkGenericOpenGLRenderWindow) with a QOpenGLWidget (added in Qt 5.4).
parent a1e7fab2
Pipeline #41796 passed with stage
......@@ -2,17 +2,17 @@ include(vtkQt)
# set up sources to build
set(QVTKLibSrcs
vtkEventQtSlotConnect.cxx
vtkQtConnection.cxx
QFilterTreeProxyModel.cxx
QVTKApplication.cxx
QVTKInteractor.cxx
QVTKInteractorAdapter.cxx
QVTKWidget.cxx
QFilterTreeProxyModel.cxx
QVTKInteractor.cxx
QVTKPaintEngine.cxx
QVTKPaintEngine.h
QVTKWidget.cxx
vtkEventQtSlotConnect.cxx
vtkQtAbstractModelAdapter.cxx
vtkQtAnnotationLayersModelAdapter.cxx
vtkQtConnection.cxx
vtkQtDebugLeaksModel.cxx
vtkQtDebugLeaksView.cxx
vtkQtTableModelAdapter.cxx
......@@ -20,20 +20,26 @@ set(QVTKLibSrcs
)
set(QVTKMocHeaders
QFilterTreeProxyModel.h
QVTKApplication.h
QVTKInteractorAdapter.h
QVTKInteractorInternal.h
QVTKWidget.h
vtkQtConnection.h
QFilterTreeProxyModel.h
vtkQtAbstractModelAdapter.h
vtkQtAnnotationLayersModelAdapter.h
vtkQtConnection.h
vtkQtDebugLeaksModel.h
vtkQtDebugLeaksView.h
vtkQtTableModelAdapter.h
vtkQtTreeModelAdapter.h
)
if(VTK_QT_VERSION VERSION_GREATER "4" AND
VTK_RENDERING_BACKEND STREQUAL "OpenGL2")
list(APPEND QVTKLibSrcs QVTKOpenGLWidget.cxx)
list(APPEND QVTKMocHeaders QVTKOpenGLWidget.h)
endif()
if(VTK_USE_X AND VTK_USE_TDX)
set(QVTKMocHeaders ${QVTKMocHeaders}
vtkTDxQtUnixDevices.h
......
This diff is collapsed.
This diff is collapsed.
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