MNE-CPP  0.1.9
A Framework for Electrophysiology
mne_nearest.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef MNENEAREST_H
38 #define MNENEAREST_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 
62 namespace MNELIB
63 {
64 
65 //=============================================================================================================
66 // FORWARD DECLARATIONS
67 //=============================================================================================================
68 
69 class MnePatchInfo;
70 
71 //=============================================================================================================
78 {
79 public:
80  typedef QSharedPointer<MneNearest> SPtr;
81  typedef QSharedPointer<const MneNearest> ConstSPtr;
83  //=========================================================================================================
87  MneNearest();
88 
89  //=========================================================================================================
94  ~MneNearest();
95 
96 public:
97  int vert; /* Number of this vertex (to enable sorting) */
98  int nearest; /* Nearest 'inuse' vertex */
99  float dist; /* Distance to the nearest 'inuse' vertex */
100  MnePatchInfo* patch; /* The patch information record for the patch this vertex belongs to */
101 
102 // ### OLD STRUCT ###
103 //typedef struct { /* This is used in the patch definitions */
104 // int vert; /* Number of this vertex (to enable sorting) */
105 // int nearest; /* Nearest 'inuse' vertex */
106 // float dist; /* Distance to the nearest 'inuse' vertex */
107 // MnePatchInfo* patch; /* The patch information record for the patch this vertex belongs to */
108 //} *mneNearest,mneNearestRec;
109 };
110 
111 //=============================================================================================================
112 // INLINE DEFINITIONS
113 //=============================================================================================================
114 } // NAMESPACE MNELIB
115 
116 #endif // MNENEAREST_H
MNELIB::MneNearest
This is used in the patch definitions.
Definition: mne_nearest.h:77
MNELIB::MneNearest::SPtr
QSharedPointer< MneNearest > SPtr
Definition: mne_nearest.h:80
MNESHARED_EXPORT
#define MNESHARED_EXPORT
Definition: mne_global.h:56
MNELIB::MnePatchInfo
One item in a derivation data set.
Definition: mne_patch_info.h:77
MNELIB::MneNearest::ConstSPtr
QSharedPointer< const MneNearest > ConstSPtr
Definition: mne_nearest.h:81