91 #ifndef QVTKOpenGLNativeWidget_h
92 #define QVTKOpenGLNativeWidget_h
94 #include <QOpenGLWidget>
95 #include <QScopedPointer>
98 #include "vtkGUISupportQtModule.h"
102 VTK_ABI_NAMESPACE_BEGIN
111 typedef QOpenGLWidget Superclass;
116 Qt::WindowFlags f = Qt::WindowFlags());
143 static QSurfaceFormat defaultFormat(
bool stereo_capable =
false);
152 void setEnableHiDPI(
bool enable);
161 void setUnscaledDPI(
int);
179 void setCustomDevicePixelRatio(
double cdpr);
181 double effectiveDevicePixelRatio()
const;
188 void setDefaultCursor(
const QCursor& cursor);
207 virtual void cleanupContext();
212 bool event(QEvent* evt)
override;
213 void initializeGL()
override;
214 void paintGL()
override;
224 double CustomDevicePixelRatio;
225 QCursor DefaultCursor;
228 VTK_ABI_NAMESPACE_END
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.