15#ifndef QVTKOpenGLStereoWidget_h
16#define QVTKOpenGLStereoWidget_h
18#include "vtkGUISupportQtModule.h"
69 typedef QWidget Superclass;
74 QOpenGLContext* shareContext, QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
76 Qt::WindowFlags f = Qt::WindowFlags());
78 QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
87 this->VTKOpenGLWindow->setRenderWindow(win);
113 void setEnableHiDPI(
bool enable) { this->VTKOpenGLWindow->setEnableHiDPI(enable); }
114 bool enableHiDPI()
const {
return this->VTKOpenGLWindow->enableHiDPI(); }
122 int unscaledDPI()
const {
return this->VTKOpenGLWindow->unscaledDPI(); }
141 this->VTKOpenGLWindow->setCustomDevicePixelRatio(cdpr);
146 return this->VTKOpenGLWindow->effectiveDevicePixelRatio();
154 void setDefaultCursor(
const QCursor& cursor) { this->VTKOpenGLWindow->setDefaultCursor(cursor); }
155 const QCursor&
defaultCursor()
const {
return this->VTKOpenGLWindow->defaultCursor(); }
162 bool isValid() {
return this->VTKOpenGLWindow->isValid(); }
184 void setFormat(
const QSurfaceFormat& fmt) { this->VTKOpenGLWindow->setFormat(fmt); }
189 QSurfaceFormat
format()
const {
return this->VTKOpenGLWindow->format(); }
225 void setQVTKCursor(const QCursor& cursor);
231 void setDefaultQVTKCursor(const QCursor& cursor);
234 void resizeEvent(QResizeEvent* evt) override;
235 void paintEvent(QPaintEvent* evt) override;
an interactor for QVTKOpenGLNativeWidget (and QVTKWiget).
display a vtkGenericOpenGLRenderWindow in a Qt QOpenGLWindow.
static QSurfaceFormat defaultFormat(bool stereo_capable=false)
Returns a QSurfaceFormat suitable for surfaces that intend to be used for VTK rendering.
platform independent render window
platform-independent render window interaction including picking and frame rate control.
create a window for renderers to draw into
#define VTK_DEPRECATED_IN_9_0_0(reason)