21 #include <odinqt/ldrwidget.h>
24 #include <odinpara/odinpara.h>
25 #include <odinpara/ldrnumbers.h>
26 #include <odinpara/ldrarrays.h>
27 #include <odinpara/ldrblock.h>
30 #include "miview_fmri.h"
31 #include "miview_rois.h"
43 static const char* get_compName();
72 class MiViewView :
public QWidget {
76 MiViewView(QWidget *parent);
80 static void set_defaults(
Protocol& prot);
83 bool is_image_display()
const {
return (get_nx()*get_ny())>1;}
84 bool has_timecourse()
const {
return get_nrep()>1;}
85 bool has_fmri()
const {
return fmri.is_valid();}
86 bool has_rois()
const {
return rois.is_valid();}
87 bool has_overlay()
const {
return has_olm;}
91 void setMessage(
const char* text);
99 void writeFmriClusters();
101 void writeTimecourse();
103 void writeMapLegend();
107 void showTimecourse();
115 void slotClicked(
int x,
int y,
int z);
116 void slotNewProfile(
const float *data,
int npts,
bool horizontal,
int position);
117 void slotNewMask(
const float *data,
int slice);
125 int get_nrep()
const;
127 void filedata2displaydata();
129 STD_string check_and_get_format(
const STD_string& fname,
const svector& possible_formats,
bool show_error_msg=
true);
131 void export_legend(
const STD_string& filename);
132 void export_map_legend(
const STD_string& filename);
134 void val2file(
int rep,
int z,
int y,
int x,
float val)
const;
155 SelectionData* selection;
164 STD_string data_fname_cache;
165 STD_string image_fname_cache;
166 STD_string rois_fname_cache;
167 STD_string clusters_fname_cache;
168 STD_string profile_fname_cache;
169 STD_string tcourse_fname_cache;
171 LDRint pos_cache[n_directions];