Files
cgal/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewNavigation.tex
T

27 lines
616 B
TeX

\begin{ccRefClass}{GraphicsViewNavigation}
\ccDefinition
An object of type \ccRefName\ can be added as event filter to a \ccc{QGraphicsView} and its viewport.
Dragging the left mouse button while holding the 'Ctrl' key defines a zoom rectangle.
Dragginf the right mouse button while holding the 'Ctrl' key translates the scene.
\ccInclude{CGAL/IO/GraphicsViewNavigation.h}
\ccCreationVariable{nav}
\ccMethod{bool eventFilter(QObject *obj, QEvent *event);}{.}
\ccMethod{void mouseCoordinates(QPointF p);}{A signal that can be used by an application to
display the mouse coordinates.}
\end{ccRefClass}