15 #ifndef QVTKRenderWindowAdapter_h
16 #define QVTKRenderWindowAdapter_h
37 #include "vtkGUISupportQtModule.h"
41 #include <QScopedPointer>
53 using Superclass = QObject;
94 static QSurfaceFormat defaultFormat(
bool stereo_capable =
false);
99 QOpenGLContext* context()
const;
119 void resize(
int width,
int height);
127 unsigned int targetId,
int targetAttachement,
const QRect& targetRect,
bool left =
true);
128 bool blitLeftEye(
unsigned int targetId,
int targetAttachement,
const QRect& targetRect)
130 return this->blit(targetId, targetAttachement, targetRect,
true);
132 bool blitRightEye(
unsigned int targetId,
int targetAttachement,
const QRect& targetRect)
134 return this->blit(targetId, targetAttachement, targetRect,
false);
142 bool handleEvent(QEvent* evt);
163 void setEnableHiDPI(
bool value);
171 void setUnscaledDPI(
int value);
179 void setCustomDevicePixelRatio(
double dpr);
183 void contextAboutToBeDestroyed();
191 QScopedPointer<QVTKInternals> Internals;
193 QCursor DefaultCursor;
abstract base class for most VTK objects
const QCursor & defaultCursor() const
Get/set the default cursor.
platform independent render window
bool blitRightEye(unsigned int targetId, int targetAttachement, const QRect &targetRect)
Convenience methods to blit the results rendered in the internal FBO to a target. ...
bool blitLeftEye(unsigned int targetId, int targetAttachement, const QRect &targetRect)
Convenience methods to blit the results rendered in the internal FBO to a target. ...
Helper to manage Qt context and other OpenGL components.
void setDefaultCursor(const QCursor &cursor)
Get/set the default cursor.