MNE-CPP  beta 1.0
newbrainview.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef NEWBRAINVIEW_H
37 #define NEWBRAINVIEW_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "disp3D_global.h"
45 
46 #include <fs/surfaceset.h>
47 #include <fs/annotationset.h>
48 
49 
50 //*************************************************************************************************************
51 //=============================================================================================================
52 // QT INCLUDES
53 //=============================================================================================================
54 
55 #include <QWidget>
56 #include <QString>
57 #include <QTableView>
58 #include <QSharedPointer>
59 
60 
61 //*************************************************************************************************************
62 //=============================================================================================================
63 // Eigen INCLUDES
64 //=============================================================================================================
65 
66 #include <Eigen/Core>
67 
68 
69 //*************************************************************************************************************
70 //=============================================================================================================
71 // FORWARD DECLARATIONS
72 //=============================================================================================================
73 
74 namespace DISP3DLIB
75 {
76  class ClustStcModel;
77  class ClustStcTableDelegate;
78 }
79 
80 
81 //*************************************************************************************************************
82 //=============================================================================================================
83 // DEFINE NAMESPACE DISP3DLIB
84 //=============================================================================================================
85 
86 namespace DISP3DLIB
87 {
88 
89 //*************************************************************************************************************
90 //=============================================================================================================
91 // USED NAMESPACES
92 //=============================================================================================================
93 
94 using namespace FSLIB;
95 using namespace Eigen;
96 
97 
98 //*************************************************************************************************************
99 //=============================================================================================================
100 // FORWARD DECLARATIONS
101 //=============================================================================================================
102 
103 
104 //=============================================================================================================
111 class DISP3DSHARED_EXPORT NewBrainView : public QWidget
112 {
113  Q_OBJECT
114 public:
115  typedef QSharedPointer<NewBrainView> SPtr;
116  typedef QSharedPointer<const NewBrainView> ConstSPtr;
118  enum ViewOption {
119  ShowCurvature = 0x0
120  };
121  Q_DECLARE_FLAGS(ViewOptions, ViewOption)
122 
123  //=========================================================================================================
127  NewBrainView(QWidget * parent = 0, Qt::WindowFlags f = 0);
128 
129  //=========================================================================================================
138  explicit NewBrainView(const QString &subject_id, qint32 hemi, const QString &surf, const QString &subjects_dir, QWidget * parent = 0, Qt::WindowFlags f = 0);
139 
140  //=========================================================================================================
150  explicit NewBrainView(const QString &subject_id, qint32 hemi, const QString &surf, const QString &atlas, const QString &subjects_dir, QWidget * parent = 0, Qt::WindowFlags f = 0);
151 
152  //=========================================================================================================
158  explicit NewBrainView(const QString& p_sFile, QWidget * parent = 0, Qt::WindowFlags f = 0);
159 
160  //=========================================================================================================
164  ~NewBrainView();
165 
166  void init(const AnnotationSet &annotationSet, const SurfaceSet &surfSet);
167 
168  void showDebugTable();
169 
170 private:
171  ViewOptions m_viewOptionFlags;
172 
173  SurfaceSet m_SurfaceSet;
174  AnnotationSet m_AnnotationSet;
176  bool m_bShowClustModel;
177  QSharedPointer<ClustStcModel> m_pClustStcModel;
178 
179  QSharedPointer<QWidget> m_pWidgetTable;
180  QSharedPointer<ClustStcTableDelegate> m_pClustStcTableDelegate;
181 };
182 
183 Q_DECLARE_OPERATORS_FOR_FLAGS(NewBrainView::ViewOptions)
184 
185 } // NAMESPACE
186 
187 #endif // NEWBRAINVIEW_H
Table model which prepares source estimate information.
SurfaceSet class declaration.
QSharedPointer< const NewBrainView > ConstSPtr
Definition: newbrainview.h:116
disp3D library export/import macros.
Annotation set.
Definition: annotationset.h:96
QSharedPointer< NewBrainView > SPtr
Definition: newbrainview.h:115
FreeSurfer surface visualisation.
Definition: newbrainview.h:111
AnnotationSet class declaration.
#define DISP3DSHARED_EXPORT
Definition: disp3D_global.h:57
A hemisphere set of surfaces.
Definition: surfaceset.h:83