radixwidgets: add support for VTK 9
Add support for building with VTK 9. QVTKOpenGLWidget
is deprecated since VTK 9
and is now only a wrapper for QVTKOpenGLStereoWidget
[1]. Thus, use the preferred
and versatile QVTKOpenGLNativeWidget
[2] instead for VTK_MAJOR_VERSION >= 8
.
-
radixwidgets/vtkchartwidget.hh
: include appropriateQVTKOpenGL{,Native}Widget.h
header and createtypedef
QVTKWidget_t
based on VTK version -
radixwidgets/examples/radixvtkchartwidget.cc
: likewise. -
radixwidgets/examples/radixvtkerrorbars.cc
: useQVTKWidget_t
-
radixwidgets/vtkchartwidget.cc
: likewise.
[1] https://vtk.org/doc/nightly/html/classQVTKOpenGLWidget.html
[2] https://vtk.org/doc/nightly/html/classQVTKOpenGLNativeWidget.html