MNE-CPP  0.1.9
A Framework for Electrophysiology
measurementtreeitem.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef DISP3DLIB_MEASUREMENTTREEITEM_H
38 #define DISP3DLIB_MEASUREMENTTREEITEM_H
39 
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "../../../../disp3D_global.h"
45 #include "../common/abstracttreeitem.h"
46 
49 
50 //=============================================================================================================
51 // QT INCLUDES
52 //=============================================================================================================
53 
54 #include <QPointer>
55 
56 //=============================================================================================================
57 // EIGEN INCLUDES
58 //=============================================================================================================
59 
60 //=============================================================================================================
61 // FORWARD DECLARATIONS
62 //=============================================================================================================
63 
64 namespace FSLIB {
65  class SurfaceSet;
66  class AnnotationSet;
67  class Surface;
68  class Annotation;
69 }
70 
71 namespace MNELIB {
72  class MNESourceSpace;
73  class MNESourceEstimate;
74  class MNEBemSurface;
75 }
76 
77 namespace FIFFLIB{
78  class FiffDigPointSet;
79 }
80 
81 namespace INVERSELIB{
82  class ECDSet;
83 }
84 
85 namespace Qt3DCore {
86  class QEntity;
87 }
88 
89 //=============================================================================================================
90 // DEFINE NAMESPACE DISP3DLIB
91 //=============================================================================================================
92 
93 namespace DISP3DLIB
94 {
95 
96 //=============================================================================================================
97 // DISP3DLIB FORWARD DECLARATIONS
98 //=============================================================================================================
99 
100 class MneDataTreeItem;
101 class SensorDataTreeItem;
102 class NetworkTreeItem;
103 class EcdDataTreeItem;
104 class FsSurfaceTreeItem;
105 class SourceSpaceTreeItem;
106 class DigitizerSetTreeItem;
107 
108 //=============================================================================================================
115 {
116  Q_OBJECT
117 
118 public:
119  typedef QSharedPointer<MeasurementTreeItem> SPtr;
120  typedef QSharedPointer<const MeasurementTreeItem> ConstSPtr;
122  //=========================================================================================================
129  explicit MeasurementTreeItem(int iType = Data3DTreeModelItemTypes::MeasurementItem,
130  const QString& text = "Unknown measurement");
131 
132  //=========================================================================================================
141  QList<SourceSpaceTreeItem*> addData(const MNELIB::MNESourceSpace& tSourceSpace,
142  Qt3DCore::QEntity* p3DEntityParent = 0);
143 
144  //=========================================================================================================
157  MneDataTreeItem* addData(const MNELIB::MNESourceEstimate& tSourceEstimate,
158  const MNELIB::MNEForwardSolution& tForwardSolution,
159  const FSLIB::SurfaceSet &tSurfSet,
160  const FSLIB::AnnotationSet &tAnnotSet,
161  Qt3DCore::QEntity *p3DEntityParent,
162  bool bUseGPU = false);
163 
164  //=========================================================================================================
177  SensorDataTreeItem *addData(const Eigen::MatrixXd& tSensorData,
178  const MNELIB::MNEBemSurface &bemSurface,
179  const FIFFLIB::FiffInfo &fiffInfo,
180  const QString &sSensorType,
181  Qt3DCore::QEntity *p3DEntityParent,
182  bool bUseGPU = false);
183 
184  //=========================================================================================================
193  EcdDataTreeItem* addData(const INVERSELIB::ECDSet& tECDSet,
194  Qt3DCore::QEntity* p3DEntityParent = 0);
195 
196  //=========================================================================================================
206  DigitizerSetTreeItem* addData(const FIFFLIB::FiffDigPointSet& tDigitizer,
207  Qt3DCore::QEntity* p3DEntityParent = 0);
208 
209  //=========================================================================================================
217  NetworkTreeItem* addData(const CONNECTIVITYLIB::Network& tNetworkData,
218  Qt3DCore::QEntity* p3DEntityParent = 0);
219 
220 protected:
221  //=========================================================================================================
225  void initItem();
226 
227  //=========================================================================================================
233  void onSourceColorChanged(const QVariant& vertColors);
234 
235  QPointer<MneDataTreeItem> m_pMneDataTreeItem;
237  QPointer<SensorDataTreeItem> m_pEEGSensorDataTreeItem;
238  QPointer<SensorDataTreeItem> m_pMEGSensorDataTreeItem;
240  QPointer<NetworkTreeItem> m_pNetworkTreeItem;
242  QPointer<EcdDataTreeItem> m_EcdDataTreeItem;
244 signals:
245 };
246 } //NAMESPACE DISP3DLIB
247 
248 #endif // DISP3DLIB_MEASUREMENTTREEITEM_H
Provides the basic tree item.
Holds a set of digitizer points.
Provides a generic brain tree item to hold real time data.
Source Space descritpion.
QPointer< SensorDataTreeItem > m_pMEGSensorDataTreeItem
Provides a generic brain tree item to hold real time data.
Annotation set.
Definition: annotationset.h:80
QPointer< SensorDataTreeItem > m_pEEGSensorDataTreeItem
QSharedPointer< const MeasurementTreeItem > ConstSPtr
FIFF measurement file information.
Definition: fiff_info.h:84
QPointer< EcdDataTreeItem > m_EcdDataTreeItem
Holds a set of Electric Current Dipoles.
Definition: ecd_set.h:80
MNEForwardSolution class declaration, which provides the forward solution including the source space ...
#define DISP3DSHARED_EXPORT
Definition: disp3D_global.h:55
BEM surface provides geometry information.
QSharedPointer< MeasurementTreeItem > SPtr
This class holds information about a network, can compute a distance table and provide network metric...
Definition: network.h:87
QPointer< NetworkTreeItem > m_pNetworkTreeItem
DigitizerSetTreeItem provides a tree item to hold the set of digitizer data.
Network class declaration.
This item integrates GeometryInfo and Interpolation into Disp3D structure.
Provides a generic MeasurementTreeItem.
Provides a generic brain tree item to hold real time data.
QPointer< MneDataTreeItem > m_pMneDataTreeItem
A hemisphere set of surfaces.
Definition: surfaceset.h:71