58 #ifndef ACG_QTEXAMINERVIEWER_HH 59 #define ACG_QTEXAMINERVIEWER_HH 65 #include "QtBaseViewer.hh" 68 #include <QMouseEvent> 69 #include <QWheelEvent> 84 class QtQGLWidget_Internal;
85 class QtSceneGraphWidget;
107 QStatusBar *_statusBar=0,
108 const QGLFormat* _format=0,
110 Options _options=DefaultOptions );
122 double wheelZoomFactor();
123 double wheelZoomFactorShift();
124 void setWheelZoomFactor(
double _factor);
125 void setWheelZoomFactorShift(
double _factor);
128 double wZoomFactorShift_;
133 void slotAnimation();
141 virtual void viewWheelEvent(QWheelEvent* _event);
143 virtual void viewMouseEvent(QMouseEvent* _event);
145 virtual void lightMouseEvent(QMouseEvent* _event);
157 bool mapToSphere(
const QPoint& _p,
Vec3d& _result)
const;
162 bool lastPoint_hitSphere_;
167 Vec3d lastRotationAxis_;
168 double lastRotationAngle_;
178 #endif // ACG_QTEXAMINERWIDGET_HH defined
virtual bool viewKeyPressEvent(QKeyEvent *)
handle new key events
Namespace providing different geometric functions concerning angles.
void allowRotation(bool _mode)
Lock scene rotation.
Inventor-like wheel widget.