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

Definition of the MNEMshDisplaySurface Class. More...

#include "mne_msh_display_surface.h"
#include "mne_surface.h"
#include "mne_morph_map.h"
#include "mne_msh_picked.h"
#include "mne_msh_color_scale_def.h"
#include <fiff/fiff_stream.h>
#include <fiff/fiff_coord_trans.h>
#include <fiff/fiff_digitizer_data.h>
#include <fiff/fiff_dig_point.h>
#include <utils/sphere.h>
#include <math.h>
Include dependency graph for mne_msh_display_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)
#define CROSS_PRODUCT_17(x, y, xy)
#define MALLOC_17(x, t)
#define ALLOC_CMATRIX_17(x, y)
#define FREE_17(x)
#define FREE_CMATRIX_17(m)

Variables

constexpr int SHOW_CURVATURE_NONE = 0
constexpr int SHOW_CURVATURE_OVERLAY = 1
constexpr int SHOW_OVERLAY_HEAT = 1
constexpr float POS_CURV_COLOR = 0.25f
constexpr float NEG_CURV_COLOR = 0.375f
constexpr float EVEN_CURV_COLOR = 0.375f

Detailed Description

Definition of the MNEMshDisplaySurface 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
Since
0.1.0
Date
April, 2017

LICENSE

Copyright (C) 2017, Lorenz Esch, Matti Hamalainen. 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_msh_display_surface.cpp.

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 53 of file mne_msh_display_surface.cpp.

◆ ALLOC_CMATRIX_17

#define ALLOC_CMATRIX_17 ( x,
y )
Value:
mne_cmatrix_ds_17((x),(y))

Definition at line 118 of file mne_msh_display_surface.cpp.

◆ CROSS_PRODUCT_17

#define CROSS_PRODUCT_17 ( x,
y,
xy )
Value:
{\
(xy)[X_17] = (x)[Y_17]*(y)[Z_17]-(y)[Y_17]*(x)[Z_17];\
(xy)[Y_17] = -((x)[X_17]*(y)[Z_17]-(y)[X_17]*(x)[Z_17]);\
(xy)[Z_17] = (x)[X_17]*(y)[Y_17]-(y)[X_17]*(x)[Y_17];\
}
#define Z_17
#define Y_17
#define X_17

Definition at line 110 of file mne_msh_display_surface.cpp.

◆ FAIL

#define FAIL   -1

Definition at line 75 of file mne_msh_display_surface.cpp.

◆ FALSE

#define FALSE   0

Definition at line 71 of file mne_msh_display_surface.cpp.

◆ FREE_17

#define FREE_17 ( x)
Value:
if ((char *)(x) != NULL) free((char *)(x))

Definition at line 153 of file mne_msh_display_surface.cpp.

◆ FREE_CMATRIX_17

#define FREE_CMATRIX_17 ( m)
Value:
mne_free_cmatrix_ds_17((m))

Definition at line 155 of file mne_msh_display_surface.cpp.

◆ MALLOC_17

#define MALLOC_17 ( x,
t )
Value:
(t *)malloc((x)*sizeof(t))

Definition at line 116 of file mne_msh_display_surface.cpp.

◆ OK

#define OK   0

Definition at line 79 of file mne_msh_display_surface.cpp.

◆ TRUE

#define TRUE   1

Definition at line 67 of file mne_msh_display_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];\
}

Definition at line 104 of file mne_msh_display_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 98 of file mne_msh_display_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 94 of file mne_msh_display_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 96 of file mne_msh_display_surface.cpp.

◆ X_17

#define X_17   0

Definition at line 90 of file mne_msh_display_surface.cpp.

◆ Y_17

#define Y_17   1

Definition at line 91 of file mne_msh_display_surface.cpp.

◆ Z_17

#define Z_17   2

Definition at line 92 of file mne_msh_display_surface.cpp.

Variable Documentation

◆ EVEN_CURV_COLOR

float EVEN_CURV_COLOR = 0.375f
constexpr

Definition at line 88 of file mne_msh_display_surface.cpp.

◆ NEG_CURV_COLOR

float NEG_CURV_COLOR = 0.375f
constexpr

Definition at line 87 of file mne_msh_display_surface.cpp.

◆ POS_CURV_COLOR

float POS_CURV_COLOR = 0.25f
constexpr

Definition at line 86 of file mne_msh_display_surface.cpp.

◆ SHOW_CURVATURE_NONE

int SHOW_CURVATURE_NONE = 0
constexpr

Definition at line 82 of file mne_msh_display_surface.cpp.

◆ SHOW_CURVATURE_OVERLAY

int SHOW_CURVATURE_OVERLAY = 1
constexpr

Definition at line 83 of file mne_msh_display_surface.cpp.

◆ SHOW_OVERLAY_HEAT

int SHOW_OVERLAY_HEAT = 1
constexpr

Definition at line 84 of file mne_msh_display_surface.cpp.