36#ifndef OVERVIEWBARWIDGET_H
37#define OVERVIEWBARWIDGET_H
96 void setViewport(
float scrollSample,
float visibleSamples);
98 void setEvents(
const QVector<ChannelRhiView::EventMarker> &events);
99 void setAnnotations(
const QVector<ChannelRhiView::AnnotationSpan> &annotations);
114 float xToSample(
int x)
const;
115 void rebuildEnvelope();
117 QPointer<ChannelDataModel> m_model;
118 int m_firstFileSample = 0;
119 int m_lastFileSample = -1;
120 float m_sfreq = 1000.f;
122 float m_scrollSample = 0.f;
123 float m_visibleSamples = 0.f;
125 QVector<ChannelRhiView::EventMarker> m_events;
126 QVector<ChannelRhiView::AnnotationSpan> m_annotations;
128 QImage m_envelopeImage;
129 bool m_envelopeDirty =
true;
131 bool m_dragging =
false;
disp library export/import macros.
#define DISPSHARED_EXPORT
Declaration of the ChannelRhiView class.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
ChannelDataModel – lightweight data container for ChannelDataView / ChannelRhiView.
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