36 #ifndef BUTTERFLYVIEW_H
37 #define BUTTERFLYVIEW_H
43 #include "../disp_global.h"
52 #if !defined(NO_QOPENGLWIDGET)
53 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
54 #include <QOpenGLWidget>
56 #include <QtOpenGLWidgets/QOpenGLWidget>
80 class ChannelInfoModel;
87 #if !defined(NO_QOPENGLWIDGET)
96 typedef QSharedPointer<ButterflyView>
SPtr;
97 typedef QSharedPointer<const ButterflyView>
ConstSPtr;
105 Qt::WindowFlags f = Qt::Widget);
118 void updateOpenGLViewport();
126 void setEvokedSetModel(QSharedPointer<EvokedSetModel> model);
134 QSharedPointer<EvokedSetModel> getEvokedSetModel();
148 QMap<QString, bool> getModalityMap();
156 void setModalityMap(
const QMap<QString, bool>& modalityMap);
164 void setScaleMap(
const QMap<qint32, float> &scaleMap);
172 void setSelectedChannels(
const QList<int> &selectedChannels);
186 void setBackgroundColor(
const QColor& backgroundColor);
194 const QColor& getBackgroundColor();
202 void takeScreenshot(
const QString& fileName);
210 QSharedPointer<QMap<QString, QColor> > getAverageColor()
const;
218 QSharedPointer<QMap<QString, bool> > getAverageActivation()
const;
226 void setAverageColor(
const QSharedPointer<QMap<QString, QColor> > qMapAverageColor);
234 void setSingleAverageColor(
const QColor& avgColor);
242 void setAverageActivation(
const QSharedPointer<QMap<QString, bool> > qMapAverageActivation);
250 void setChannelInfoModel(QSharedPointer<ChannelInfoModel> &pChannelInfoModel);
258 void showSelectedChannelsOnly(
const QStringList& selectedChannels);
266 void showSelectedChannels(
const QList<int> selectedChannelsIndexes);
272 void showAllChannels();
300 #if !defined(NO_QOPENGLWIDGET)
301 virtual void paintGL();
303 virtual void paintEvent(QPaintEvent *event);
312 void createPlotPath(qint32 row, QPainter& painter)
const;
342 #endif // BUTTERFLYVIEW_H