19#ifndef OVERVIEWBARWIDGET_H
20#define OVERVIEWBARWIDGET_H
73 void setViewport(
float scrollSample,
float visibleSamples);
75 void setEvents(
const QVector<ChannelRhiView::EventMarker> &events);
76 void setAnnotations(
const QVector<ChannelRhiView::AnnotationSpan> &annotations);
91 float xToSample(
int x)
const;
92 void rebuildEnvelope();
94 QPointer<ChannelDataModel> m_model;
95 int m_firstFileSample = 0;
96 int m_lastFileSample = -1;
97 float m_sfreq = 1000.f;
99 float m_scrollSample = 0.f;
100 float m_visibleSamples = 0.f;
102 QVector<ChannelRhiView::EventMarker> m_events;
103 QVector<ChannelRhiView::AnnotationSpan> m_annotations;
105 QImage m_envelopeImage;
106 bool m_envelopeDirty =
true;
108 bool m_dragging =
false;
QRhi-based GPU-accelerated channel time-series renderer used by the modern raw browser.
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
2-D display widgets and visualisation helpers (charts, topography, colour maps).
Circular-buffer Qt model exposing a rolling window of the live FIFF stream as a table.
void setFirstFileSample(int first)
void setLastFileSample(int last)
void scrollRequested(float targetSample)
void paintEvent(QPaintEvent *event) override
QSize sizeHint() const override
QSize minimumSizeHint() const override
void setAnnotations(const QVector< ChannelRhiView::AnnotationSpan > &annotations)
void setModel(ChannelDataModel *model)
void setSfreq(float sfreq)
void mouseMoveEvent(QMouseEvent *event) override
void setEvents(const QVector< ChannelRhiView::EventMarker > &events)
void mousePressEvent(QMouseEvent *event) override
void mouseReleaseEvent(QMouseEvent *event) override
OverviewBarWidget(QWidget *parent=nullptr)
void setViewport(float scrollSample, float visibleSamples)
static constexpr int kBarHeight