v2.0.0
Loading...
Searching...
No Matches
mne_surface.cpp File Reference

Definition of the MNESurface Class. More...

#include "mne_surface.h"
#include "mne_source_space.h"
#include "mne_triangle.h"
#include "mne_proj_data.h"
#include <fiff/fiff_stream.h>
#include <fiff/fiff_coord_trans.h>
#include <QFile>
#include <math.h>
#include <Eigen/Dense>
Include dependency graph for mne_surface.cpp:

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES
#define TRUE   1
#define FALSE   0
#define FAIL   -1
#define OK   0
#define X_17   0
#define Y_17   1
#define Z_17   2
#define VEC_DOT_17(x, y)
#define VEC_LEN_17(x)
#define VEC_DIFF_17(from, to, diff)
#define VEC_COPY_17(to, from)

Detailed Description

Definition of the MNESurface Class.

Author
Lorenz Esch lesch.nosp@m.@mgh.nosp@m..harv.nosp@m.ard..nosp@m.edu; Matti Hamalainen msh@n.nosp@m.mr.m.nosp@m.gh.ha.nosp@m.rvar.nosp@m.d.edu; Christoph Dinh chdin.nosp@m.h@nm.nosp@m.r.mgh.nosp@m..har.nosp@m.vard..nosp@m.edu
Since
0.1.0
Date
January, 2017

LICENSE

Copyright (C) 2017, Lorenz Esch, Matti Hamalainen, Christoph Dinh. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of MNE-CPP authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file mne_surface.cpp.

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 51 of file mne_surface.cpp.

◆ FAIL

#define FAIL   -1

Definition at line 75 of file mne_surface.cpp.

◆ FALSE

#define FALSE   0

Definition at line 71 of file mne_surface.cpp.

◆ OK

#define OK   0

Definition at line 79 of file mne_surface.cpp.

◆ TRUE

#define TRUE   1

Definition at line 67 of file mne_surface.cpp.

◆ VEC_COPY_17

#define VEC_COPY_17 ( to,
from )
Value:
{\
(to)[X_17] = (from)[X_17];\
(to)[Y_17] = (from)[Y_17];\
(to)[Z_17] = (from)[Z_17];\
}
#define Z_17
#define Y_17
#define X_17

Definition at line 93 of file mne_surface.cpp.

◆ VEC_DIFF_17

#define VEC_DIFF_17 ( from,
to,
diff )
Value:
{\
(diff)[X_17] = (to)[X_17] - (from)[X_17];\
(diff)[Y_17] = (to)[Y_17] - (from)[Y_17];\
(diff)[Z_17] = (to)[Z_17] - (from)[Z_17];\
}

Definition at line 88 of file mne_surface.cpp.

◆ VEC_DOT_17

#define VEC_DOT_17 ( x,
y )
Value:
((x)[X_17]*(y)[X_17] + (x)[Y_17]*(y)[Y_17] + (x)[Z_17]*(y)[Z_17])

Definition at line 86 of file mne_surface.cpp.

◆ VEC_LEN_17

#define VEC_LEN_17 ( x)
Value:
sqrt(VEC_DOT_17(x,x))
#define VEC_DOT_17(x, y)

Definition at line 87 of file mne_surface.cpp.

◆ X_17

#define X_17   0

Definition at line 82 of file mne_surface.cpp.

◆ Y_17

#define Y_17   1

Definition at line 83 of file mne_surface.cpp.

◆ Z_17

#define Z_17   2

Definition at line 84 of file mne_surface.cpp.