#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 46 of file ctkVTKMagnifyView.h.
◆ Superclass
◆ ctkVTKMagnifyView()
ctkVTKMagnifyView::ctkVTKMagnifyView |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ ~ctkVTKMagnifyView()
virtual ctkVTKMagnifyView::~ctkVTKMagnifyView |
( |
| ) |
|
|
virtual |
◆ enteredObservedWidget
void ctkVTKMagnifyView::enteredObservedWidget |
( |
QVTKWidget * |
widget | ) |
|
|
signal |
◆ eventFilter()
virtual bool ctkVTKMagnifyView::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
protectedvirtual |
Handles mouse events on the observed QVTKWidgets (specifically, enterEvent, leaveEvent and mouseMoveEvent).
◆ hasCursorInObservedWidget()
bool ctkVTKMagnifyView::hasCursorInObservedWidget |
( |
| ) |
const |
Returns true if the mouse cursor is over an observed widget, false otherwise.
◆ isObserved()
bool ctkVTKMagnifyView::isObserved |
( |
QVTKWidget * |
widget | ) |
const |
Returns whether a QVTKWidget is observed.
◆ leftObservedWidget
void ctkVTKMagnifyView::leftObservedWidget |
( |
QVTKWidget * |
widget | ) |
|
|
signal |
◆ magnification()
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.
◆ numberObserved()
int ctkVTKMagnifyView::numberObserved |
( |
| ) |
const |
Returns the number of observed QVTKWidgets.
◆ observe() [1/2]
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
◆ observe() [2/2]
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
◆ observeRenderWindowEvents()
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.
◆ remove() [1/2]
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
◆ remove() [2/2]
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
◆ setMagnification()
void ctkVTKMagnifyView::setMagnification |
( |
double |
newMagnification | ) |
|
◆ setObserveRenderWindowEvents()
void ctkVTKMagnifyView::setObserveRenderWindowEvents |
( |
bool |
newObserve | ) |
|
◆ setUpdateInterval()
void ctkVTKMagnifyView::setUpdateInterval |
( |
int |
newInterval | ) |
|
◆ updateInterval()
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.
◆ d_ptr
QScopedPointer<ctkVTKMagnifyViewPrivate> ctkVTKMagnifyView::d_ptr |
|
protected |
◆ magnification
double ctkVTKMagnifyView::magnification |
|
readwrite |
◆ observeRenderWindowEvents
bool ctkVTKMagnifyView::observeRenderWindowEvents |
|
readwrite |
◆ updateInterval
int ctkVTKMagnifyView::updateInterval |
|
readwrite |
The documentation for this class was generated from the following file: