3#ifndef QVTKOpenGLStereoWidget_h
4#define QVTKOpenGLStereoWidget_h
6#include "vtkGUISupportQtModule.h"
16VTK_ABI_NAMESPACE_BEGIN
56 typedef QWidget Superclass;
61 QOpenGLContext* shareContext, QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
63 Qt::WindowFlags f = Qt::WindowFlags());
65 QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
74 this->VTKOpenGLWindow->setRenderWindow(win);
102 this->VTKOpenGLWindow->setEnableTouchEventProcessing(enable);
106 return this->VTKOpenGLWindow->enableTouchEventProcessing();
112 void setEnableHiDPI(
bool enable) { this->VTKOpenGLWindow->setEnableHiDPI(enable); }
113 bool enableHiDPI()
const {
return this->VTKOpenGLWindow->enableHiDPI(); }
121 int unscaledDPI()
const {
return this->VTKOpenGLWindow->unscaledDPI(); }
140 this->VTKOpenGLWindow->setCustomDevicePixelRatio(cdpr);
145 return this->VTKOpenGLWindow->effectiveDevicePixelRatio();
153 void setDefaultCursor(
const QCursor& cursor) { this->VTKOpenGLWindow->setDefaultCursor(cursor); }
154 const QCursor&
defaultCursor()
const {
return this->VTKOpenGLWindow->defaultCursor(); }
162 void setCursorCustom(
const QCursor& cursor) { this->VTKOpenGLWindow->setCursor(cursor); };
163 QCursor
cursorCustom()
const {
return this->VTKOpenGLWindow->cursor(); }
170 bool isValid() {
return this->VTKOpenGLWindow->isValid(); }
192 void setFormat(
const QSurfaceFormat& fmt) { this->VTKOpenGLWindow->setFormat(fmt); }
197 QSurfaceFormat
format()
const {
return this->VTKOpenGLWindow->format(); }
204 QPointer<QVTKOpenGLWindow> VTKOpenGLWindow;
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