23 #ifndef QGLVIEWER_MOUSE_GRABBER_H 24 #define QGLVIEWER_MOUSE_GRABBER_H 133 friend class ::QGLViewer;
174 virtual void checkIfGrabsMouse(
int x,
int y,
const Camera*
const camera) = 0;
207 void addInMouseGrabberPool();
208 void removeFromMouseGrabberPool();
209 void clearMouseGrabberPool(
bool autoDelete=
false);
243 virtual void mouseMoveEvent(QMouseEvent*
const event,
Camera*
const camera) { Q_UNUSED(event); Q_UNUSED(camera); }
247 virtual void wheelEvent(QWheelEvent*
const event,
Camera*
const camera) { Q_UNUSED(event); Q_UNUSED(camera); }
264 #endif // QGLVIEWER_MOUSE_GRABBER_H
virtual void mouseMoveEvent(QMouseEvent *const event, Camera *const camera)
static QList< MouseGrabber * > MouseGrabberPool_
bool isInMouseGrabberPool() const
void setGrabsMouse(bool grabs)
virtual void mouseReleaseEvent(QMouseEvent *const event, Camera *const camera)
Abstract class for objects that grab mouse focus in a QGLViewer.
virtual void mouseDoubleClickEvent(QMouseEvent *const event, Camera *const camera)
A versatile 3D OpenGL viewer based on QGLWidget.
A perspective or orthographic camera.
virtual void wheelEvent(QWheelEvent *const event, Camera *const camera)
static const QList< MouseGrabber * > & MouseGrabberPool()
virtual void mousePressEvent(QMouseEvent *const event, Camera *const camera)