pqQVTKWidget has a QVTKOpenGL*Widget object to which it adds awareness for view proxies. More...
#include <pqQVTKWidget.h>
Inherits QWidget.
Public Slots | |
void | paintMousePointer (int x, int y) |
Public Member Functions | |
pqQVTKWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags{}) | |
pqQVTKWidget (QWidget *parentObject, Qt::WindowFlags f, bool isStereo) | |
~pqQVTKWidget () override | |
void | setViewProxy (vtkSMProxy *) |
Set the view proxy. More... | |
void | setSession (vtkSMSession *) |
Set the session. More... | |
vtkTypeUInt32 | getProxyId () |
Return the Proxy ID if any, otherwise return 0. More... | |
void | setSizePropertyName (const QString &pname) |
Set/Get the name of the property to use to update the size of the widget on the proxy. More... | |
const QString & | sizePropertyName () const |
void | notifyQApplication (QMouseEvent *) |
void | setRenderWindow (vtkRenderWindow *win) |
Methods that decorates QVTKOpenGL*Widget methods. More... | |
vtkRenderWindow * | renderWindow () const |
QVTKInteractor * | interactor () const |
bool | isValid () |
void | setEnableHiDPI (bool flag) |
void | setCustomDevicePixelRatio (double cdpr) |
double | effectiveDevicePixelRatio () const |
void | setViewSize (int width, int height) |
Protected Member Functions | |
bool | renderVTK () |
bool | canRender () |
void | resizeEvent (QResizeEvent *evt) override |
pqQVTKWidget has a QVTKOpenGL*Widget object to which it adds awareness for view proxies.
The advantage of doing that is that pqQVTKWidget can automatically update the "ViewSize" property on the view proxy whenever the widget's size/position changes.
This class also enables image-caching by default (image caching support is provided by its contained QVTKOpenGL*Widget class).
Definition at line 58 of file pqQVTKWidget.h.
pqQVTKWidget::pqQVTKWidget | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = Qt::WindowFlags{} |
||
) |
pqQVTKWidget::pqQVTKWidget | ( | QWidget * | parentObject, |
Qt::WindowFlags | f, | ||
bool | isStereo | ||
) |
|
override |
void pqQVTKWidget::setViewProxy | ( | vtkSMProxy * | ) |
Set the view proxy.
void pqQVTKWidget::setSession | ( | vtkSMSession * | ) |
Set the session.
This is only used when ViewProxy is not set.
vtkTypeUInt32 pqQVTKWidget::getProxyId | ( | ) |
Return the Proxy ID if any, otherwise return 0.
|
inline |
Set/Get the name of the property to use to update the size of the widget on the proxy.
By default "ViewSize" is used.
Definition at line 88 of file pqQVTKWidget.h.
|
inline |
Definition at line 89 of file pqQVTKWidget.h.
void pqQVTKWidget::notifyQApplication | ( | QMouseEvent * | ) |
void pqQVTKWidget::setRenderWindow | ( | vtkRenderWindow * | win | ) |
Methods that decorates QVTKOpenGL*Widget methods.
vtkRenderWindow* pqQVTKWidget::renderWindow | ( | ) | const |
QVTKInteractor* pqQVTKWidget::interactor | ( | ) | const |
bool pqQVTKWidget::isValid | ( | ) |
void pqQVTKWidget::setEnableHiDPI | ( | bool | flag | ) |
void pqQVTKWidget::setCustomDevicePixelRatio | ( | double | cdpr | ) |
double pqQVTKWidget::effectiveDevicePixelRatio | ( | ) | const |
|
protected |
|
protected |
|
overrideprotected |