3 #ifndef QVTKRenderWindowAdapter_h
4 #define QVTKRenderWindowAdapter_h
25 #include "vtkGUISupportQtModule.h"
29 #include <QScopedPointer>
36 VTK_ABI_NAMESPACE_BEGIN
43 using Superclass = QObject;
84 static QSurfaceFormat defaultFormat(
bool stereo_capable =
false);
104 void resize(
int width,
int height);
112 unsigned int targetId,
int targetAttachement,
const QRect& targetRect,
bool left =
true);
113 bool blitLeftEye(
unsigned int targetId,
int targetAttachement,
const QRect& targetRect)
115 return this->blit(targetId, targetAttachement, targetRect,
true);
117 bool blitRightEye(
unsigned int targetId,
int targetAttachement,
const QRect& targetRect)
119 return this->blit(targetId, targetAttachement, targetRect,
false);
127 bool handleEvent(QEvent* evt);
148 void setEnableHiDPI(
bool value);
156 void setUnscaledDPI(
int value);
164 void setCustomDevicePixelRatio(
double dpr);
168 void contextAboutToBeDestroyed();
176 QScopedPointer<QVTKInternals> Internals;
178 QCursor DefaultCursor;
181 VTK_ABI_NAMESPACE_END
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.