CGAL 5.1 - CGAL and the Qt Graphics View Framework
|
#include <CGAL/Qt/GraphicsViewNavigation.h>
An object of type GraphicsViewNavigation
can be added as event filter to a Qt::QGraphicsView
and its viewport.
Dragging the left mouse button while holding the 'Ctrl' key defines a zoom rectangle. Dragging the right mouse button while holding the 'Ctrl' key translates the scene. 'Ctrl-Shift' and a click of the right mouse button translates what is under the mouse to the center.
Operations | |
bool | eventFilter (QObject *obj, QEvent *event) |
The event filter. More... | |
Signals | |
void | mouseCoordinates (QPointF p) |
Emits the real world mouse coordinates. More... | |
bool CGAL::Qt::GraphicsViewNavigation::eventFilter | ( | QObject * | obj, |
QEvent * | event | ||
) |
The event filter.
void CGAL::Qt::GraphicsViewNavigation::mouseCoordinates | ( | QPointF | p | ) |
Emits the real world mouse coordinates.