23 #ifndef QGLVIEWER_MOUSE_GRABBER_H 24 #define QGLVIEWER_MOUSE_GRABBER_H 28 #if QT_VERSION >= 0x040000 137 friend class ::QGLViewer;
143 #if QT_VERSION >= 0x040000 182 virtual void checkIfGrabsMouse(
int x,
int y,
const Camera*
const camera) = 0;
207 #if QT_VERSION >= 0x040000 210 # if QT_VERSION >= 0x030000 222 #if QT_VERSION >= 0x040000 227 void addInMouseGrabberPool();
228 void removeFromMouseGrabberPool();
229 void clearMouseGrabberPool(
bool autoDelete=
false);
263 virtual void mouseMoveEvent(QMouseEvent*
const event,
Camera*
const camera) { Q_UNUSED(event) Q_UNUSED(camera) };
267 virtual void wheelEvent(QWheelEvent*
const event,
Camera*
const camera) { Q_UNUSED(event) Q_UNUSED(camera) };
279 #if QT_VERSION >= 0x040000 280 static QList<MouseGrabber*> MouseGrabberPool_;
288 #endif // QGLVIEWER_MOUSE_GRABBER_H
virtual void mouseMoveEvent(QMouseEvent *const event, Camera *const camera)
bool isInMouseGrabberPool() const
void setGrabsMouse(bool grabs)
static QPtrList< MouseGrabber > MouseGrabberPool_
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)
static const QList< MouseGrabber > & MouseGrabberPool()
A versatile 3D OpenGL viewer based on QGLWidget.
A perspective or orthographic camera.
virtual void wheelEvent(QWheelEvent *const event, Camera *const camera)
virtual void mousePressEvent(QMouseEvent *const event, Camera *const camera)