#include <Libs/Visualization/VTK/Widgets/ctkVTKMagnifyView.h>
|
QScopedPointer< ctkVTKMagnifyViewPrivate > | d_ptr |
|
QScopedPointer< ctkCrosshairLabelPrivate > | d_ptr |
|
Gives a magnified view of a QVTKWidget around the mouse position, with overlaid crosshair (ex. cross-hair). You must specify the QVTKWidget(s) to be observed.
- See also
- ctkCrosshairLabel
Definition at line 42 of file ctkVTKMagnifyView.h.
ctkVTKMagnifyView::ctkVTKMagnifyView |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
virtual ctkVTKMagnifyView::~ctkVTKMagnifyView |
( |
| ) |
|
|
virtual |
void ctkVTKMagnifyView::enteredObservedWidget |
( |
QVTKWidget * |
widget | ) |
|
|
signal |
virtual bool ctkVTKMagnifyView::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
protectedvirtual |
Handles mouse events on the observed QVTKWidgets (specifically, enterEvent, leaveEvent and mouseMoveEvent).
bool ctkVTKMagnifyView::hasCursorInObservedWidget |
( |
| ) |
const |
Returns true if the mouse cursor is over an observed widget, false otherwise.
bool ctkVTKMagnifyView::isObserved |
( |
QVTKWidget * |
widget | ) |
const |
Returns whether a QVTKWidget is observed.
void ctkVTKMagnifyView::leftObservedWidget |
( |
QVTKWidget * |
widget | ) |
|
|
signal |
double ctkVTKMagnifyView::magnification |
( |
| ) |
const |
Set/get the magnification (zoom). Looks best when the magnification and the widget size are both either even or odd. Default 1.0.
int ctkVTKMagnifyView::numberObserved |
( |
| ) |
const |
Returns the number of observed QVTKWidgets.
void ctkVTKMagnifyView::observe |
( |
QVTKWidget * |
widget | ) |
|
Add a QVTKWidget to observe mouse events on. You can call this function multiple times to observe multiple QVTKWidgets.
- See also
- observe
void ctkVTKMagnifyView::observe |
( |
QList< QVTKWidget * > |
widgets | ) |
|
Add multiple QVTKWidgets at once to observe mouse events on. You can call this function multiple times to observe multiple QVTKWidgets.
- See also
- observe
bool ctkVTKMagnifyView::observeRenderWindowEvents |
( |
| ) |
const |
Set/get whether or not to observe EndEvents emitted by the observed QVTKWidgets' vtkRenderWindows after they have rendered. This triggers updates to the magnify widget whenever the vtkRenderWindow does a render, even if the mouse position does not move. Default true.
void ctkVTKMagnifyView::remove |
( |
QVTKWidget * |
widget | ) |
|
Remove a QVTKWidget to observe mouse events on. You can call this function multiple times to remove multiple QVTKWidgets.
- See also
- remove
void ctkVTKMagnifyView::remove |
( |
QList< QVTKWidget * > |
widgets | ) |
|
Remove multiple QVTKWidgets at once to observe mouse events on. You can call this function multiple times to remove multiple QVTKWidgets.
- See also
- unobserve
void ctkVTKMagnifyView::setMagnification |
( |
double |
newMagnification | ) |
|
void ctkVTKMagnifyView::setObserveRenderWindowEvents |
( |
bool |
newObserve | ) |
|
void ctkVTKMagnifyView::setUpdateInterval |
( |
int |
newInterval | ) |
|
int ctkVTKMagnifyView::updateInterval |
( |
| ) |
const |
Set/get a fixed interval, in milliseconds, at which this widget will update itself. Default 20. Specify an update interval of 0 to handle all events as they occur.
QScopedPointer<ctkVTKMagnifyViewPrivate> ctkVTKMagnifyView::d_ptr |
|
protected |
double ctkVTKMagnifyView::magnification |
|
readwrite |
bool ctkVTKMagnifyView::observeRenderWindowEvents |
|
readwrite |
int ctkVTKMagnifyView::updateInterval |
|
readwrite |
The documentation for this class was generated from the following file: