MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
mne_surface_patch.h
Go to the documentation of this file.
1//=============================================================================================================
36#ifndef MNESURFACEPATCH_H
37#define MNESURFACEPATCH_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../mne_global.h"
44
45typedef void (*mneUserFreeFunc)(void *); /* General purpose */
46
47//=============================================================================================================
48// EIGEN INCLUDES
49//=============================================================================================================
50
51//=============================================================================================================
52// QT INCLUDES
53//=============================================================================================================
54
55#include <QSharedPointer>
56
57//=============================================================================================================
58// FORWARD DECLARATIONS
59//=============================================================================================================
60
61//=============================================================================================================
62// DEFINE NAMESPACE MNELIB
63//=============================================================================================================
64
65namespace MNELIB
66{
67
68//=============================================================================================================
69// MNELIB FORWARD DECLARATIONS
70//=============================================================================================================
71
72class MneSourceSpaceOld;
73
74//=============================================================================================================
81{
82public:
83 typedef QSharedPointer<MneSurfacePatch> SPtr;
84 typedef QSharedPointer<const MneSurfacePatch> ConstSPtr;
86 //=========================================================================================================
90 MneSurfacePatch(int np);
91
92 //=========================================================================================================
97
98public:
99 MneSourceSpaceOld *s; /* Patch represented as a surface */
100 int *vert; /* Vertex numbers in the complete surface*/
101 int *surf_vert; /* Which vertex corresponds to each complete surface vertex here? */
102 int np_surf; /* How many points on the complete surface? */
103 int *tri; /* Which triangles in the complete surface correspond to our triangles? */
104 int *surf_tri; /* Which of our triangles corresponds to each triangle on the complete surface? */
105 int ntri_surf; /* How many triangles on the complete surface */
106 int *border; /* Is this vertex on the border? */
107 int flat; /* Is this a flat patch? */
108 void *user_data; /* Anything else we want */
109 mneUserFreeFunc user_data_free; /* Function to set the above free */
110
111// ### OLD STRUCT ###
112// typedef struct { /* FreeSurfer patches */
113// mneSurface s; /* Patch represented as a surface */
114// int *vert; /* Vertex numbers in the complete surface*/
115// int *surf_vert; /* Which vertex corresponds to each complete surface vertex here? */
116// int np_surf; /* How many points on the complete surface? */
117// int *tri; /* Which triangles in the complete surface correspond to our triangles? */
118// int *surf_tri; /* Which of our triangles corresponds to each triangle on the complete surface? */
119// int ntri_surf; /* How many triangles on the complete surface */
120// int *border; /* Is this vertex on the border? */
121// int flat; /* Is this a flat patch? */
122// void *user_data; /* Anything else we want */
123// mneUserFreeFunc user_data_free; /* Function to set the above free */
124// } *mneSurfacePatch,mneSurfacePatchRec;
125};
126
127//=============================================================================================================
128// INLINE DEFINITIONS
129//=============================================================================================================
130} // NAMESPACE MNELIB
131
132#endif // MNESURFACEPATCH_H
#define MNESHARED_EXPORT
Definition mne_global.h:56
This defines a source space.
The MneSurfacePatch class.
QSharedPointer< const MneSurfacePatch > ConstSPtr
QSharedPointer< MneSurfacePatch > SPtr