42 #include <disp3D/brainview.h>
50 #include <QGuiApplication>
58 using namespace FSLIB;
76 int main(
int argc,
char *argv[])
78 QGuiApplication a(argc, argv);
80 QStringList args = QCoreApplication::arguments();
81 int w_pos = args.indexOf(
"-width");
82 int h_pos = args.indexOf(
"-height");
84 if (w_pos >= 0 && h_pos >= 0)
87 w = args.at(w_pos + 1).toInt(&ok);
90 qWarning() <<
"Could not parse width argument:" << args;
93 h = args.at(h_pos + 1).toInt(&ok);
96 qWarning() <<
"Could not parse height argument:" << args;
104 BrainView t_pialBrainView(
"sample", 2,
"pial",
"./MNE-sample-data/subjects");
106 if (t_pialBrainView.stereoType() != QGLView::RedCyanAnaglyph)
107 t_pialBrainView.camera()->setEyeSeparation(0.3f);
109 if (w_pos >= 0 && h_pos >= 0)
110 t_pialBrainView.resize(w, h);
112 t_pialBrainView.resize(800, 600);
114 t_pialBrainView.setTitle(QString(
"Pial surface"));
115 t_pialBrainView.show();
120 BrainView t_inflatedBrainView(
"sample", 2,
"inflated",
"./MNE-sample-data/subjects");
122 if (t_inflatedBrainView.stereoType() != QGLView::RedCyanAnaglyph)
123 t_inflatedBrainView.camera()->setEyeSeparation(0.3f);
124 if (w_pos >= 0 && h_pos >= 0)
125 t_inflatedBrainView.resize(w, h);
127 t_inflatedBrainView.resize(800, 600);
129 t_inflatedBrainView.setTitle(QString(
"Inflated surface"));
130 t_inflatedBrainView.show();
135 BrainView t_originBrainView(
"sample", 2,
"orig",
"./MNE-sample-data/subjects");
137 if (t_originBrainView.stereoType() != QGLView::RedCyanAnaglyph)
138 t_originBrainView.camera()->setEyeSeparation(0.3f);
139 if (w_pos >= 0 && h_pos >= 0)
140 t_originBrainView.resize(w, h);
142 t_originBrainView.resize(800, 600);
144 t_originBrainView.setTitle(QString(
"Orig surface"));
145 t_originBrainView.show();
150 BrainView t_whiteBrainView(
"sample", 2,
"white",
"./MNE-sample-data/subjects");
152 if (t_whiteBrainView.stereoType() != QGLView::RedCyanAnaglyph)
153 t_whiteBrainView.camera()->setEyeSeparation(0.3f);
154 if (w_pos >= 0 && h_pos >= 0)
155 t_whiteBrainView.resize(w, h);
157 t_whiteBrainView.resize(800, 600);
159 t_whiteBrainView.setTitle(QString(
"White surface"));
160 t_whiteBrainView.show();
FreeSurfer surface visualisation.