MNE-CPP  beta 1.0
mne_cluster_info.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef MNE_CLUSTER_INFO_H
37 #define MNE_CLUSTER_INFO_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "mne_global.h"
45 
46 
47 //*************************************************************************************************************
48 //=============================================================================================================
49 // Eigen INCLUDES
50 //=============================================================================================================
51 
52 #include <Eigen/Core>
53 
54 
55 //*************************************************************************************************************
56 //=============================================================================================================
57 // QT INCLUDES
58 //=============================================================================================================
59 
60 #include <QSharedPointer>
61 #include <QList>
62 
63 
64 //*************************************************************************************************************
65 //=============================================================================================================
66 // DEFINE NAMESPACE MNELIB
67 //=============================================================================================================
68 
69 namespace MNELIB
70 {
71 
72 //*************************************************************************************************************
73 //=============================================================================================================
74 // USED NAMESPACES
75 //=============================================================================================================
76 
77 using namespace Eigen;
78 
79 
80 //=============================================================================================================
86 class MNESHARED_EXPORT MNEClusterInfo
87 {
88 public:
89  typedef QSharedPointer<MNEClusterInfo> SPtr;
90  typedef QSharedPointer<const MNEClusterInfo> ConstSPtr;
92  //=========================================================================================================
97 
98  //=========================================================================================================
102  void clear();
103 
104  //=========================================================================================================
110  inline bool isEmpty() const;
111 
112  //=========================================================================================================
118  inline qint32 numClust() const;
119 
120  //=========================================================================================================
126  void write(QString p_sFileName) const;
127 
128 public:
129  QList<QString> clusterLabelNames;
130  QList<qint32> clusterLabelIds;
131  QList<qint32> centroidVertno;
132  QList<Vector3f> centroidSource_rr;
133  QList<VectorXi> clusterVertnos;
134  QList<MatrixX3f> clusterSource_rr;
135  QList<VectorXd> clusterDistances;
136 };
137 
138 //*************************************************************************************************************
139 //=============================================================================================================
140 // INLINE DEFINITIONS
141 //=============================================================================================================
142 
143 inline bool MNEClusterInfo::isEmpty() const
144 {
145  return !(this->clusterVertnos.size() > 0);
146 }
147 
148 
149 //*************************************************************************************************************
150 
151 inline qint32 MNEClusterInfo::numClust() const
152 {
153  return this->clusterVertnos.size();
154 }
155 
156 } // NAMESPACE
157 
158 #endif // MNE_CLUSTER_INFO_H
QSharedPointer< const MNEClusterInfo > ConstSPtr
QSharedPointer< MNEClusterInfo > SPtr
QList< qint32 > clusterLabelIds
QList< MatrixX3f > clusterSource_rr
cluster information
QList< Vector3f > centroidSource_rr
QList< qint32 > centroidVertno
qint32 numClust() const
QList< VectorXi > clusterVertnos
QList< QString > clusterLabelNames
QList< VectorXd > clusterDistances