MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
glwidget_OnDisp.h
1 #ifndef GLWIDGETONDISP_H
2 #define GLWIDGETONDISP_H
3 
4 #include <QGLWidget>
5 
6 //*************************************************************************************************************
7 //=============================================================================================================
8 // Eigen INCLUDES
9 //=============================================================================================================
10 //#include "include/3rdParty/Eigen/Core"
11 #include <Eigen/Core>
12 
13 using namespace Eigen;
14 
15 
16 class GLWidget_OnDisp : public QGLWidget
17 {
18  Q_OBJECT
19 
20 public:
21  GLWidget_OnDisp( QWidget *parent = 0);
22  ~GLWidget_OnDisp();
23 
24  QSize minimumSizeHint() const;
25  QSize sizeHint() const;
26 
27 public slots:
28 
29 signals:
30 
31 protected:
32  void initializeGL();
33  void paintGL();
34  void resizeGL(int width, int height);
35  //void paintEvent(QPaintEvent *);
36 
37 private:
38  QColor qtGreen;
39  QColor qtPurple;
40 
41 public:
42  void SetGLView(float xleft, float xright, float ydown, float ytop);
43  void SetdrawLines(MatrixXf tmp,int wise_type, int chnind,
44  float x, float y, float w, float h);
45  void SetChnInd(int chnind);
46  void drawAx(float xleft, float xright, float ytop, float ydown);
47  void drawLines(float * samples, int row, int col, int wise_type,
48  float x, float y, float w, float h);
49  void drawOneLine(float * samples, int row, int col, int wise_type, int chanIndx, float x, float y, float w, float h);
50 public:
51  float xl,xr,yt,yd;
52  int NumLines;
53  float xCoordScale;
54  float yCoordScale;
55 
56  MatrixXf m_tmp;
57  float * m_samples;
58  int m_row;
59  int m_col;
60  int m_wise_type;
61  int m_chnind;
62  int m_x;
63  int m_y;
64  int m_w;
65  int m_h;
66  bool linePlot;
67  bool axPlot;
68 };
69 
70 
71 #endif // GLWIDGET_H