52 #ifndef ACG_QTEXAMINERVIEWER_HH 53 #define ACG_QTEXAMINERVIEWER_HH 59 #include "QtBaseViewer.hh" 61 #include <QElapsedTimer> 63 #include <QMouseEvent> 64 #include <QWheelEvent> 79 class QtQGLWidget_Internal;
80 class QtSceneGraphWidget;
102 QStatusBar *_statusBar=0,
103 const QGLFormat* _format=0,
105 Options _options=DefaultOptions );
117 double wheelZoomFactor();
118 double wheelZoomFactorShift();
119 void setWheelZoomFactor(
double _factor);
120 void setWheelZoomFactorShift(
double _factor);
123 double wZoomFactorShift_;
128 void slotAnimation();
136 virtual void viewWheelEvent(QWheelEvent* _event)
override;
138 virtual void viewMouseEvent(QMouseEvent* _event)
override;
140 virtual void lightMouseEvent(QMouseEvent* _event)
override;
152 bool mapToSphere(
const QPoint& _p,
Vec3d& _result)
const;
157 bool lastPoint_hitSphere_;
162 Vec3d lastRotationAxis_;
163 double lastRotationAngle_;
164 QElapsedTimer lastMoveTime_;
173 #endif // ACG_QTEXAMINERWIDGET_HH defined
Inventor-like wheel widget.
Namespace providing different geometric functions concerning angles.