mirror of https://github.com/CGAL/cgal
31 lines
687 B
TeX
31 lines
687 B
TeX
\ccDefGlobalScope{CGAL::}
|
|
\begin{ccRefClass}[Qt::]{GraphicsViewNavigation}
|
|
|
|
\ccDefinition
|
|
An object of type \ccRefName\ can be added as event filter to a \ccc{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.
|
|
|
|
\ccInclude{CGAL/Qt/GraphicsViewNavigation.h}
|
|
|
|
|
|
\ccCreationVariable{nav}
|
|
|
|
\ccOperations
|
|
|
|
\ccMethod{bool eventFilter(QObject *obj, QEvent *event);}{.}
|
|
|
|
\ccHeading{Signals}
|
|
|
|
\ccMethod{void mouseCoordinates(QPointF p);}{A signal that can be used by an application to
|
|
display the mouse coordinates.}
|
|
\end{ccRefClass}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|