MNE-CPP
0.1.9
A Framework for Electrophysiology
src
libraries
mne
c
mne_triangle.h
Go to the documentation of this file.
1
//=============================================================================================================
37
#ifndef MNETRIANGLE_H
38
#define MNETRIANGLE_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
//=============================================================================================================
75
class
MNESHARED_EXPORT
MneTriangle
76
{
77
public
:
78
typedef
QSharedPointer<MneTriangle>
SPtr
;
79
typedef
QSharedPointer<const MneTriangle>
ConstSPtr
;
81
//=========================================================================================================
85
MneTriangle
();
86
87
//=========================================================================================================
92
~
MneTriangle
();
93
94
//============================= mne_add_geometry_info.c =============================
95
96
static
void
add_triangle_data(
MneTriangle
* tri);
97
98
public
:
99
int
*vert;
/* Triangle vertices (pointers to the itris member of the associated mneSurface) */
100
float
*r1,*r2,*r3;
/* Triangle vertex locations (pointers to the rr member of the associated mneSurface) */
101
float
r12[3],r13[3];
/* Vectors along the sides */
102
float
nn[3];
/* Normal vector */
103
float
area;
/* Area */
104
float
cent[3];
/* Centroid */
105
float
ex[3],ey[3];
/* Other unit vectors (used by BEM calculations) */
106
107
// ### OLD STRUCT ###
108
//typedef struct {
109
// int *vert; /* Triangle vertices (pointers to the itris member of the associated mneSurface) */
110
// float *r1,*r2,*r3; /* Triangle vertex locations (pointers to the rr member of the associated mneSurface) */
111
// float r12[3],r13[3]; /* Vectors along the sides */
112
// float nn[3]; /* Normal vector */
113
// float area; /* Area */
114
// float cent[3]; /* Centroid */
115
// float ex[3],ey[3]; /* Other unit vectors (used by BEM calculations) */
116
//} *mneTriangle,mneTriangleRec; /* Triangle data */
117
};
118
119
//=============================================================================================================
120
// INLINE DEFINITIONS
121
//=============================================================================================================
122
}
// NAMESPACE MNELIB
123
124
#endif // MNETRIANGLE_H
MNELIB::MneTriangle::SPtr
QSharedPointer< MneTriangle > SPtr
Definition:
mne_triangle.h:78
MNESHARED_EXPORT
#define MNESHARED_EXPORT
Definition:
mne_global.h:56
MNELIB::MneTriangle::ConstSPtr
QSharedPointer< const MneTriangle > ConstSPtr
Definition:
mne_triangle.h:79
MNELIB::MneTriangle
Triangle data.
Definition:
mne_triangle.h:75
Generated on Wed Aug 9 2023 17:55:42 for MNE-CPP by
1.8.17