MNE-CPP  beta 1.0
averagesceneitem.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef AVERAGESCENEITEM_H
38 #define AVERAGESCENEITEM_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 // QT INCLUDES
53 //=============================================================================================================
54 
55 #include <QGraphicsItem>
56 #include <QString>
57 #include <QColor>
58 #include <QPainter>
59 #include <QStaticText>
60 #include <QDebug>
61 
62 
63 //*************************************************************************************************************
64 //=============================================================================================================
65 // USED NAMESPACES
66 //=============================================================================================================
67 
68 using namespace Eigen;
69 
70 
71 //*************************************************************************************************************
72 //=============================================================================================================
73 // DEFINE NAMESPACE MNEBrowseRawQt
74 //=============================================================================================================
75 
76 namespace MNEBrowseRawQt
77 {
78 
79 
80 //*************************************************************************************************************
81 //=============================================================================================================
82 // USED NAMESPACES
83 //=============================================================================================================
84 
85 
86 //=============================================================================================================
92 class AverageSceneItem : public QGraphicsItem
93 {
94 
95 public:
96  //=========================================================================================================
100  AverageSceneItem(QString channelName, int channelNumber, QPointF channelPosition, int channelKind, int channelUnit, QColor defaultColors = Qt::red);
101 
102  //=========================================================================================================
106  QRectF boundingRect() const;
107 
108  //=========================================================================================================
112  virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
113 
114  QString m_sChannelName;
120  QList<QColor> m_cAverageColors;
121  QList<RowVectorPair> m_lAverageData;
122  QPair<int,int> m_firstLastSample;
123  QMap<QString,double> m_scaleMap;
125 protected:
126  //=========================================================================================================
132  void paintAveragePath(QPainter *painter);
133 };
134 
135 } // NAMESPACE MNEBrowseRawQt
136 
137 #endif // AVERAGESCENEITEM_H
Contains general application specific types.
QList< RowVectorPair > m_lAverageData
QMap< QString, double > m_scaleMap
FIFF class declaration, which provides static wrapper functions to stay consistent with mne matlab to...
The AverageSceneItem class provides a new data structure for visualizing averages in a 2D layout...