MNE-CPP  beta 1.0
filterplotscene.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef FILTERPLOTSCENE_H
38 #define FILTERPLOTSCENE_H
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // QT INCLUDES
43 //=============================================================================================================
44 
45 #include "../Utils/filterplotscene.h"
46 #include "../Utils/filteroperator.h"
47 
48 
49 //*************************************************************************************************************
50 //=============================================================================================================
51 // QT INCLUDES
52 //=============================================================================================================
53 
54 #include <QGraphicsScene>
55 #include <QPainterPath>
56 #include <QGraphicsPathItem>
57 
58 
59 //*************************************************************************************************************
60 //=============================================================================================================
61 // DEFINE NAMESPACE MNEBrowseRawQt
62 //=============================================================================================================
63 
64 namespace MNEBrowseRawQt
65 {
66 
72 class FilterPlotScene : public QGraphicsScene
73 {
74  Q_OBJECT
75 public:
76  //=========================================================================================================
82  FilterPlotScene(QObject *parent = 0);
83 
84  //=========================================================================================================
93  void updateFilter(QSharedPointer<MNEOperator> operatorFilter, int samplingFreq, int cutOffLow, int cutOffHigh);
94 
95 protected:
96  //=========================================================================================================
102  void plotMagnitudeDiagram(int samplingFreq);
103 
104  //=========================================================================================================
110 
111  QSharedPointer<FilterOperator> m_pCurrentFilter;
113  QGraphicsPathItem* m_pGraphicsItemPath;
126 };
127 
128 } // NAMESPACE MNEBrowseRawQt
129 
130 #endif // FILTERPLOTSCENE_H
QSharedPointer< FilterOperator > m_pCurrentFilter
void plotMagnitudeDiagram(int samplingFreq)
QGraphicsPathItem * m_pGraphicsItemPath
The FilterPlotScene class provides the scene where a filter respone can be plotted.
void updateFilter(QSharedPointer< MNEOperator > operatorFilter, int samplingFreq, int cutOffLow, int cutOffHigh)