49 #ifndef QVTKOpenGLWindow_h
50 #define QVTKOpenGLWindow_h
52 #include <QOpenGLWindow>
53 #include <QScopedPointer>
56 #include "vtkGUISupportQtModule.h"
68 typedef QOpenGLWindow Superclass;
72 QOpenGLWindow::UpdateBehavior updateBehavior = NoPartialUpdate, QWindow* parent =
nullptr);
74 QOpenGLWindow::UpdateBehavior updateBehavior = NoPartialUpdate, QWindow* parent =
nullptr);
76 QOpenGLWindow::UpdateBehavior updateBehavior = NoPartialUpdate, QWindow* parent =
nullptr);
78 QOpenGLWindow::UpdateBehavior updateBehavior = NoPartialUpdate, QWindow* parent =
nullptr);
105 static QSurfaceFormat defaultFormat(
bool stereo_capable =
false);
114 void setEnableHiDPI(
bool enable);
123 void setUnscaledDPI(
int);
131 void setDefaultCursor(
const QCursor& cursor);
163 VTK_LEGACY(
void setQVTKCursor(
const QCursor& cursor));
168 VTK_LEGACY(
void setDefaultQVTKCursor(
const QCursor& cursor));
175 void windowEvent(QEvent* e);
183 void cleanupContext();
195 bool event(QEvent* evt)
override;
196 void initializeGL()
override;
197 void paintGL()
override;
198 void resizeGL(
int w,
int h)
override;
208 QCursor DefaultCursor;