MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
mne_msh_display_surface.cpp
Go to the documentation of this file.
1//=============================================================================================================
36//=============================================================================================================
37// INCLUDES
38//=============================================================================================================
39
41#include "mne_surface_old.h"
42#include "mne_morph_map.h"
44
45#define FREE_44(x) if ((char *)(x) != NULL) free((char *)(x))
46
47void mne_free_icmatrix_44 (int **m)
48{
49 if (m) {
50 FREE_44(*m);
51 FREE_44(m);
52 }
53}
54
55#define FREE_ICMATRIX_44(m) mne_free_icmatrix_44((m))
56
57#ifndef TRUE
58#define TRUE 1
59#endif
60
61#ifndef FALSE
62#define FALSE 0
63#endif
64
65//=============================================================================================================
66// USED NAMESPACES
67//=============================================================================================================
68
69using namespace MNELIB;
70
71//=============================================================================================================
72// DEFINE MEMBER METHODS
73//=============================================================================================================
74
76{
77 int c;
78
79 filename = Q_NULLPTR;
80 time_loaded = 0;
81 s = Q_NULLPTR;
82 sketch = FALSE;
83 color_scale = Q_NULLPTR;
84 vertex_colors = Q_NULLPTR;
85 nvertex_colors = 3;
86 marker_colors = Q_NULLPTR;
87 nmarker_colors = 3;
88 overlay_values = Q_NULLPTR;
89 alt_overlay_values = Q_NULLPTR;
90 marker_values = Q_NULLPTR;
91 marker_tri = Q_NULLPTR;
92 marker_tri_no = Q_NULLPTR;
93 nmarker_tri = 0;
94 subj = Q_NULLPTR;
95 surf_name = Q_NULLPTR;
96 rot[0] = 0.0;
97 rot[1] = 0.0;
98 rot[2] = 0.0;
99
100 move[0] = 0.0;
101 move[1] = 0.0;
102 move[2] = 0.0;
103
104 eye[0] = 1.0;
105 eye[0] = 0.0;
106 eye[0] = 0.0;
107
108 up[0] = 0.0;
109 up[1] = 0.0;
110 up[2] = 1.0;
111 fov = 2.0;
112 fov_scale = 1.0;
113 for (c = 0; c < 3; c++) {
114 minv[c] = -1.0;
115 maxv[c] = 1.0;
116 }
117 trans = Q_NULLPTR;
118 transparent = FALSE;
119 picked = Q_NULLPTR;
120 npicked = 0;
121 show_aux_data = FALSE;
122 user_data = Q_NULLPTR;
123 user_data_free = Q_NULLPTR;
124 maps = Q_NULLPTR;
125 nmap = 0;
126}
127
128//=============================================================================================================
129
131{
132 FREE_44(filename);
133 delete s;
134 FREE_44(marker_values);
135 FREE_44(overlay_values);
136 FREE_44(alt_overlay_values);
137 FREE_44(vertex_colors);
138 FREE_44(marker_colors);
139 FREE_44(color_scale);
140 FREE_ICMATRIX_44(marker_tri);
141 FREE_44(marker_tri_no);
142 FREE_44(subj);
143 FREE_44(surf_name);
144 FREE_44(picked);
145 if (user_data_free)
146 (*user_data_free)(user_data);
147
148 for (int k = 0; k < nmap; k++)
149 delete maps[k];
150 FREE_44(maps);
151 FREE_44(trans);
152}
153
int k
Definition fiff_tag.cpp:324
MneSourceSpaceOld class declaration.
MneMshDisplaySurface class declaration.
MneMorphMap class declaration.
MneSurfaceOld class declaration.