 |
VTK
9.1.0
|
Go to the documentation of this file.
15 #ifndef QVTKRenderWindowAdapter_h
16 #define QVTKRenderWindowAdapter_h
37 #include "vtkGUISupportQtModule.h"
41 #include <QScopedPointer>
53 using Superclass = QObject;
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);
183 void contextAboutToBeDestroyed();
191 QScopedPointer<QVTKInternals> Internals;
193 QCursor DefaultCursor;
bool blit(unsigned int targetId, int targetAttachement, const QRect &targetRect, bool left=true)
Convenience methods to blit the results rendered in the internal FBO to a target.
const QCursor & defaultCursor() const
Get/set the default cursor.
void setUnscaledDPI(int value)
Set the unscaled DPI to use when scaling DPI.
platform independent render window
abstract base class for most VTK objects
void setCustomDevicePixelRatio(double dpr)
Get/Set the custom device pixel ratio to use.
QVTKRenderWindowAdapter(QOpenGLContext *cntxt, vtkGenericOpenGLRenderWindow *window, QWidget *parent)
Constructor that makes vtkGenericOpenGLRenderWindow ready for subsequent render requests i....
void setEnableHiDPI(bool value)
Enable/disable DPI scaling.
Helper to manage Qt context and other OpenGL components.
bool blitRightEye(unsigned int targetId, int targetAttachement, const QRect &targetRect)
Convenience methods to blit the results rendered in the internal FBO to a target.
QVTKRenderWindowAdapter(QOpenGLContext *cntxt, vtkGenericOpenGLRenderWindow *window, QWindow *parent)
Constructor that makes vtkGenericOpenGLRenderWindow ready for subsequent render requests i....
QOpenGLContext * context() const
Get the context to use for rendering.
bool blitLeftEye(unsigned int targetId, int targetAttachement, const QRect &targetRect)
Convenience methods to blit the results rendered in the internal FBO to a target.
~QVTKRenderWindowAdapter() override
void resize(int width, int height)
Call this method to resize the render window.
void paint()
Call this method in paintGL to request a render.
bool handleEvent(QEvent *evt)
Process the event and return true if the event have been processed successfully.
static QSurfaceFormat defaultFormat(bool stereo_capable=false)
Returns a QSurfaceFormat suitable for surfaces that intend to be used for VTK rendering.
void setDefaultCursor(const QCursor &cursor)
Get/set the default cursor.