MNE-CPP  beta 1.0
butterflysceneitem.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef BUTTERFLYSCENEITEM_H
38 #define BUTTERFLYSCENEITEM_H
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include <iostream>
46 #include <Eigen/Core>
47 #include <fiff/fiff.h>
48 #include "types.h"
49 
50 
51 //*************************************************************************************************************
52 //=============================================================================================================
53 // QT INCLUDES
54 //=============================================================================================================
55 
56 #include <QGraphicsItem>
57 #include <QString>
58 #include <QColor>
59 #include <QPainter>
60 #include <QStaticText>
61 #include <QDebug>
62 
63 
64 //*************************************************************************************************************
65 //=============================================================================================================
66 // USED NAMESPACES
67 //=============================================================================================================
68 
69 using namespace Eigen;
70 using namespace FIFFLIB;
71 
72 
73 //*************************************************************************************************************
74 //=============================================================================================================
75 // DEFINE NAMESPACE MNEBrowseRawQt
76 //=============================================================================================================
77 
78 namespace MNEBrowseRawQt
79 {
80 
81 
82 //*************************************************************************************************************
83 //=============================================================================================================
84 // USED NAMESPACES
85 //=============================================================================================================
86 
87 
88 //=============================================================================================================
94 class ButterflySceneItem : public QGraphicsItem
95 {
96 
97 public:
98  //=========================================================================================================
102  ButterflySceneItem(QString setName, int setKind = FIFFV_MEG_CH, int setUnit = FIFF_UNIT_T_M, const QList<QColor> &defaultColors = QList<QColor>());
103 
104  //=========================================================================================================
108  QRectF boundingRect() const;
109 
110  //=========================================================================================================
114  virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
115 
116  QString m_sSetName;
117  fiff_int_t m_iSetKind;
118  fiff_int_t m_iSetUnit;
121  QList<QColor> m_cAverageColors;
122  RowVectorPair m_lAverageData;
123  QPair<int,int> m_firstLastSample;
124  QMap<QString,double> m_scaleMap;
126 protected:
127  //=========================================================================================================
133  void paintAveragePaths(QPainter *painter);
134 };
135 
136 } // NAMESPACE MNEBrowseRawQt
137 
138 #endif // BUTTERFLYSCENEITEM_H
Contains general application specific types.
FIFF measurement file information.
Definition: fiff_info.h:96
The ButterflySceneItem class provides a new data structure for visualizing averages in a 2D layout...
#define FIFF_UNIT_T_M
Definition: fiff.h:98
FIFF class declaration, which provides static wrapper functions to stay consistent with mne matlab to...