Commit d279544a authored by Emmanuel Promayon's avatar Emmanuel Promayon

NEW RendererWidget using non-native OpenGL viewer

tested on buster + VTK 8.2 (there is still a bug: missing automatic refresh
of the 3D viewers, to be investigated)
parent c6719363
......@@ -78,6 +78,7 @@
#include <vtkExtractSelectedFrustum.h>
#include <vtkPointData.h>
namespace camitk {
// ---------------------- singleton ----------------------------
/// the register containing all the viewers (static instantiation, global variable, but global only for this file)
......
......@@ -35,6 +35,7 @@
// -- VTK stuff
#include <vtkVersion.h>
#include <QVTKInteractor.h>
#if VTK_MAJOR_VERSION == 6
#include <QVTKWidget2.h>
......@@ -46,7 +47,8 @@
#elif VTK_MAJOR_VERSION == 8
#include <QVTKOpenGLNativeWidget.h>
#include <QVTKOpenGLWidget.h>
#include <vtkSmartPointer.h>
#else
#error "Invalid VTK version: not (yet) supported."
......@@ -68,6 +70,8 @@ class vtkAxesActor;
class vtkAnnotatedCubeActor;
class vtkScalarBarWidget;
class vtkTextMapper;
class vtkAbstractPropPicker;
namespace camitk {
......@@ -98,7 +102,7 @@ class CAMITK_API RendererWidget : public QVTKWidget2 {
class CAMITK_API RendererWidget : public QVTKWidget {
#elif VTK_MAJOR_VERSION == 8
class CAMITK_API RendererWidget : public QVTKOpenGLNativeWidget {
class CAMITK_API RendererWidget : public QVTKOpenGLWidget {
#else
#error "Invalid VTK version: not (yet) supported."
......
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