103 #ifndef QVTKOpenGLNativeWidget_h
104 #define QVTKOpenGLNativeWidget_h
106 #include <QOpenGLWidget>
107 #include <QScopedPointer>
110 #include "vtkGUISupportQtModule.h"
122 typedef QOpenGLWidget Superclass;
127 Qt::WindowFlags f = Qt::WindowFlags());
154 static QSurfaceFormat defaultFormat(
bool stereo_capable =
false);
163 void setEnableHiDPI(
bool enable);
172 void setUnscaledDPI(
int);
190 void setCustomDevicePixelRatio(
double cdpr);
192 double effectiveDevicePixelRatio()
const;
199 void setDefaultCursor(
const QCursor& cursor);
209 virtual void cleanupContext();
214 bool event(QEvent* evt)
override;
215 void initializeGL()
override;
216 void paintGL()
override;
227 double CustomDevicePixelRatio;
228 QCursor DefaultCursor;
an interactor for QVTKOpenGLNativeWidget (and QVTKWiget).
platform independent render window
create a window for renderers to draw into
Helper to manage Qt context and other OpenGL components.