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);
100 void setEnableHiDPI(
bool enable) { this->VTKOpenGLWindow->setEnableHiDPI(enable); }
101 bool enableHiDPI()
const {
return this->VTKOpenGLWindow->enableHiDPI(); }
109 int unscaledDPI()
const {
return this->VTKOpenGLWindow->unscaledDPI(); }
128 this->VTKOpenGLWindow->setCustomDevicePixelRatio(cdpr);
133 return this->VTKOpenGLWindow->effectiveDevicePixelRatio();
141 void setDefaultCursor(
const QCursor& cursor) { this->VTKOpenGLWindow->setDefaultCursor(cursor); }
142 const QCursor&
defaultCursor()
const {
return this->VTKOpenGLWindow->defaultCursor(); }
150 void setCursorCustom(
const QCursor& cursor) { this->VTKOpenGLWindow->setCursor(cursor); };
151 QCursor
cursorCustom()
const {
return this->VTKOpenGLWindow->cursor(); }
158 bool isValid() {
return this->VTKOpenGLWindow->isValid(); }
180 void setFormat(
const QSurfaceFormat& fmt) { this->VTKOpenGLWindow->setFormat(fmt); }
185 QSurfaceFormat
format()
const {
return this->VTKOpenGLWindow->format(); }
192 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