Vuo  2.0.2
VuoEditorGraphicsView.hh
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include "VuoHeap.h"
13 
18 class VuoEditorGraphicsView : public QGraphicsView
19 {
20  Q_OBJECT;
21 
22 public:
23  VuoEditorGraphicsView(QWidget *parent);
24 
25  bool pinchZoomInProgress();
26 
27 signals:
28  void viewResized();
29 
30 private slots:
31  void updateColor(bool isDark);
32 
33 private:
34  bool event(QEvent * event) VuoWarnUnusedResult;
35 
36  void paintEvent(QPaintEvent *event);
37  int framesRenderedSinceProfileLogged;
38  double renderDurationSinceProfileLogged;
39  double lastProfileLoggedTime;
40 
41  bool viewportEvent(QEvent *event) VuoWarnUnusedResult;
42  double ignorePinchesSmallerThanX;
43  double ignorePinchesStartedLessThanXSecondsAfterDrag;
44  double ignorePinchesStartedMoreThanXSecondsAfterTouch;
45 
46  qreal accumulatedScale;
47  bool gestureDetected;
48  qreal offset;
49 };