MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
mne_patch_info.h
Go to the documentation of this file.
1//=============================================================================================================
37#ifndef MNEPATCHINFO_H
38#define MNEPATCHINFO_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "../mne_global.h"
45
46//=============================================================================================================
47// EIGEN INCLUDES
48//=============================================================================================================
49
50#include <Eigen/Core>
51
52//=============================================================================================================
53// QT INCLUDES
54//=============================================================================================================
55
56#include <QSharedPointer>
57
58//=============================================================================================================
59// DEFINE NAMESPACE MNELIB
60//=============================================================================================================
61
62namespace MNELIB
63{
64
65//=============================================================================================================
66// FORWARD DECLARATIONS
67//=============================================================================================================
68
69class MneSourceSpaceOld;
70
71//=============================================================================================================
78{
79public:
80 typedef QSharedPointer<MnePatchInfo> SPtr;
81 typedef QSharedPointer<const MnePatchInfo> ConstSPtr;
83 //=========================================================================================================
89
90 //=========================================================================================================
96
97 //=========================================================================================================
101 static void calculate_patch_area(MneSourceSpaceOld* s, MnePatchInfo* p);
102
103 //=========================================================================================================
107 static void calculate_normal_stats(MneSourceSpaceOld* s, MnePatchInfo* p);
108
109public:
110 int vert; /* Which vertex does this apply to */
111 int *memb_vert; /* Which vertices constitute the patch? */
112 int nmemb; /* How many? */
113 float area; /* Area of the patch */
114 float ave_nn[3]; /* Average normal */
115 float dev_nn; /* Average deviation of the patch normals from the average normal */
116
117// ### OLD STRUCT ###
118//typedef struct {
119// int vert; /* Which vertex does this apply to */
120// int *memb_vert; /* Which vertices constitute the patch? */
121// int nmemb; /* How many? */
122// float area; /* Area of the patch */
123// float ave_nn[3]; /* Average normal */
124// float dev_nn; /* Average deviation of the patch normals from the average normal */
125//} *mnePatchInfo,mnePatchInfoRec;
126};
127
128//=============================================================================================================
129// INLINE DEFINITIONS
130//=============================================================================================================
131} // NAMESPACE MNELIB
132
133#endif // MNEPATCHINFO_H
#define MNESHARED_EXPORT
Definition mne_global.h:56
One item in a derivation data set.
QSharedPointer< MnePatchInfo > SPtr
QSharedPointer< const MnePatchInfo > ConstSPtr
This defines a source space.