33 bool touchDown(qint32
id, const QPointF &pos, std::chrono::microseconds time) override;
34 bool touchMotion(qint32
id, const QPointF &pos, std::chrono::microseconds time) override;
35 bool touchUp(qint32
id, std::chrono::microseconds time) override;
56 inline void drawCircle(
const RenderViewport &viewport,
const QColor &color,
float cx,
float cy,
float r);
60 float computeAlpha(
int time,
int ring);
61 float computeRadius(
int time,
bool press,
int ring);
62 void drawCircleGl(
const RenderViewport &viewport,
const QColor &color,
float cx,
float cy,
float r);
63 void drawCircleQPainter(
const QColor &color,
float cx,
float cy,
float r);
64 void paintScreenSetupGl(
const RenderTarget &renderTarget,
const QMatrix4x4 &projectionMatrix);
65 void paintScreenFinishGl();
67 Qt::GlobalColor colorForId(quint32
id);
70 float m_lineWidth = 1.0;
72 float m_ringMaxSize = 20.0;
81 QList<TouchPoint> m_points;
82 QHash<quint32, QPointF> m_latestPositions;
83 QHash<quint32, Qt::GlobalColor> m_colors;
84 std::chrono::milliseconds m_lastPresentTime = std::chrono::milliseconds::zero();