21 #include <qgroupbox.h>
33 floatBox3D(
const float *data,
float lowbound,
float uppbound,
long int nx,
long int ny,
long int nz,
34 bool disable_scale,
int coarseFactor, QWidget *parent,
const char *name,
35 const float *overlay_map=0,
float lowbound_map=0.0,
float uppbound_map=0.0,
unsigned int nx_map=0,
unsigned int ny_map=0,
unsigned int nz_map=0,
bool map_firescale=
false,
float map_rectsize=0.8,
40 void write_pixmap(
const char* fname,
const char* format,
bool dump_all=
false)
const;
42 QLabel* get_map_legend(QWidget* parent)
const {
return label->get_map_legend(parent);}
43 void write_legend(
const char* fname,
const char* format)
const {label->write_legend(fname, format);}
44 void write_map_legend(
const char* fname,
const char* format)
const {label->write_map_legend(fname, format);}
46 int get_current_z()
const;
49 void refresh(
const float* data,
float lowbound,
float uppbound);
50 void refreshMap(
const float* map,
float lowbound_map,
float uppbound_map,
float rectsize) {map_cache=map; label->refreshMap(map_cache+onemapsize*get_current_z(),lowbound_map,uppbound_map,rectsize);}
53 void emitClicked(
int xposition,
int yposition) {emit clicked(xposition,yposition,get_current_z());}
54 void emitNewProfile(
const float *data,
int npts,
bool horizontal,
int position) {emit newProfile(data, npts, horizontal, position);}
55 void emitNewMask(
const float *data) {emit newMask(data,get_current_z());}
62 void clicked(
int x,
int y,
int z);
63 void newProfile(
const float *data,
int npts,
bool horizontal,
int position);
64 void newMask(
const float* data,
int slice);
72 virtual void repaint() {}
74 void repaint_slice(
int iz)
const;
83 const float* data_cache;
84 unsigned int oneimagesize;
85 unsigned int nz_cache;
89 const float* map_cache;
90 float lowbound_map_cache;
91 float uppbound_map_cache;
92 float rectsize_map_cache;
94 unsigned int onemapsize;