15 #ifndef QVTKOpenGLStereoWidget_h
16 #define QVTKOpenGLStereoWidget_h
18 #include "vtkGUISupportQtModule.h"
67 typedef QWidget Superclass;
72 QOpenGLContext* shareContext, QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
74 Qt::WindowFlags f = Qt::WindowFlags());
76 QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
85 this->VTKOpenGLWindow->setRenderWindow(win);
111 void setEnableHiDPI(
bool enable) { this->VTKOpenGLWindow->setEnableHiDPI(enable); }
112 bool enableHiDPI()
const {
return this->VTKOpenGLWindow->enableHiDPI(); }
120 int unscaledDPI()
const {
return this->VTKOpenGLWindow->unscaledDPI(); }
139 this->VTKOpenGLWindow->setCustomDevicePixelRatio(cdpr);
144 return this->VTKOpenGLWindow->effectiveDevicePixelRatio();
152 void setDefaultCursor(
const QCursor& cursor) { this->VTKOpenGLWindow->setDefaultCursor(cursor); }
153 const QCursor&
defaultCursor()
const {
return this->VTKOpenGLWindow->defaultCursor(); }
160 bool isValid() {
return this->VTKOpenGLWindow->isValid(); }
166 QImage grabFramebuffer();
182 void setFormat(
const QSurfaceFormat& fmt) { this->VTKOpenGLWindow->setFormat(fmt); }
187 QSurfaceFormat
format()
const {
return this->VTKOpenGLWindow->format(); }
190 void resizeEvent(QResizeEvent* evt)
override;
191 void paintEvent(QPaintEvent* evt)
override;
194 QPointer<QVTKOpenGLWindow> VTKOpenGLWindow;
an interactor for QVTKOpenGLNativeWidget (and QVTKWiget).
platform-independent render window interaction including picking and frame rate control.
platform independent render window
display a vtkGenericOpenGLRenderWindow in a Qt QOpenGLWindow.
create a window for renderers to draw into
static QSurfaceFormat defaultFormat(bool stereo_capable=false)
Returns a QSurfaceFormat suitable for surfaces that intend to be used for VTK rendering.