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
DISP3DLIB::MeasurementTreeItem::m_EcdDataTreeItem
QPointer< EcdDataTreeItem > m_EcdDataTreeItem
Definition: measurementtreeitem.h:242
CONNECTIVITYLIB::Network
This class holds information about a network, can compute a distance table and provide network metric...
Definition: network.h:88
DISP3DLIB::MeasurementTreeItem::m_pMneDataTreeItem
QPointer< MneDataTreeItem > m_pMneDataTreeItem
Definition: measurementtreeitem.h:235
network.h
Network class declaration.
DISP3DLIB::DigitizerSetTreeItem
DigitizerSetTreeItem provides a tree item to hold the set of digitizer data.
Definition: digitizersettreeitem.h:92
FIFFLIB::FiffInfo
FIFF measurement file information.
Definition: fiff_info.h:84
DISP3DLIB::MneDataTreeItem
Provides a generic brain tree item to hold real time data.
Definition: mnedatatreeitem.h:99
FSLIB::AnnotationSet
Annotation set.
Definition: annotationset.h:80
MNELIB::MNEForwardSolution
Forward operator.
Definition: mne_forwardsolution.h:170
MNELIB::MNESourceSpace
Source Space descritpion.
Definition: mne_sourcespace.h:92
DISP3DLIB::SensorDataTreeItem
This item integrates GeometryInfo and Interpolation into Disp3D structure.
Definition: sensordatatreeitem.h:92
DISP3DLIB::AbstractTreeItem
Provides the basic tree item.
Definition: abstracttreeitem.h:76
INVERSELIB::ECDSet
Holds a set of Electric Current Dipoles.
Definition: ecd_set.h:80
DISP3DLIB::MeasurementTreeItem::m_pEEGSensorDataTreeItem
QPointer< SensorDataTreeItem > m_pEEGSensorDataTreeItem
Definition: measurementtreeitem.h:237
MNELIB::MNESourceEstimate
Source estimation.
Definition: mne_sourceestimate.h:84
DISP3DLIB::MeasurementTreeItem::m_pMEGSensorDataTreeItem
QPointer< SensorDataTreeItem > m_pMEGSensorDataTreeItem
Definition: measurementtreeitem.h:238
FSLIB::SurfaceSet
A hemisphere set of surfaces.
Definition: surfaceset.h:71
DISP3DLIB::MeasurementTreeItem::m_pNetworkTreeItem
QPointer< NetworkTreeItem > m_pNetworkTreeItem
Definition: measurementtreeitem.h:240
DISP3DLIB::MeasurementTreeItem::SPtr
QSharedPointer< MeasurementTreeItem > SPtr
Definition: measurementtreeitem.h:119
mne_forwardsolution.h
MNEForwardSolution class declaration, which provides the forward solution including the source space ...
DISP3DLIB::MeasurementTreeItem
Provides a generic MeasurementTreeItem.
Definition: measurementtreeitem.h:114
DISP3DLIB::EcdDataTreeItem
Provides a generic brain tree item to hold real time data.
Definition: ecddatatreeitem.h:86
DISP3DLIB::MeasurementTreeItem::ConstSPtr
QSharedPointer< const MeasurementTreeItem > ConstSPtr
Definition: measurementtreeitem.h:120
MNELIB::MNEBemSurface
BEM surface provides geometry information.
Definition: mne_bem_surface.h:79
DISP3DSHARED_EXPORT
#define DISP3DSHARED_EXPORT
Definition: disp3D_global.h:55
DISP3DLIB::NetworkTreeItem
Provides a generic brain tree item to hold real time data.
Definition: networktreeitem.h:101
FIFFLIB::FiffDigPointSet
Holds a set of digitizer points.
Definition: fiff_dig_point_set.h:83