36 floatLabel2D(
const float *data,
float lowbound,
float uppbound,
unsigned int nx,
unsigned int ny,
bool disable_scale,
unsigned int coarseFactor,
37 QWidget *parent,
const char *name,
38 const float *overlay_map,
float lowbound_map,
float uppbound_map,
unsigned int nx_map,
unsigned int ny_map,
bool map_firescale,
float map_rectsize,
42 int xpos2labelxpos(
int pos);
43 int ypos2labelypos(
int pos);
44 int labelxpos2xpos(
int pos);
45 int labelypos2ypos(
int pos);
46 int xypos2index(
int xpos,
int ypos);
48 unsigned int get_nx()
const {
return nx_cache;}
49 unsigned int get_ny()
const {
return ny_cache;}
51 void init_pixmap(
bool clear=
true);
54 void write_pixmap(
const char* fname,
const char* format)
const;
56 void write_legend(
const char* fname,
const char* format)
const;
58 QLabel* get_map_legend(QWidget *parent)
const;
59 void write_map_legend(
const char* fname,
const char* format)
const;
65 void mousePressEvent (QMouseEvent *);
66 void mouseReleaseEvent (QMouseEvent *);
67 void mouseMoveEvent ( QMouseEvent * );
71 void refresh(
const float *data,
float lowbound,
float uppbound);
72 void refreshMap(
const float *map,
float map_lowbound,
float map_uppbound,
float rectsize);
75 void drawprofil(
int position,
int direction);
76 void drawcross(
int xposition,
int yposition);
80 void clicked(
int xposition,
int yposition);
81 void newProfile(
const float *data,
int npts,
bool horizontal,
int position);
82 void newMask(
const float *data);
86 static int scale_width(
float lowbound,
float uppbound);
88 void draw_text(
GuiPainter& gp,
int xpos,
int ypos,
const char* txt)
const;
89 void draw_scale_text(
GuiPainter& gp,
int xpos,
int ypos,
float val)
const;
91 static int check_range(
int val,
int min,
int max);
93 int get_map_hue(
float relval)
const;
94 int get_map_value(
float relval)
const;
95 int get_map_saturation(
float relval)
const;
97 int get_scale_size()
const;
99 bool disable_scale_cache;
102 mutable QPixmap* maplegend_pixmap;
104 unsigned char* imagebuff;
107 const float* data_cache;
108 unsigned int nx_cache;
109 unsigned int ny_cache;
111 mutable int scale_size_cache;
113 float lowbound_cache;
114 float uppbound_cache;
116 unsigned int nx_map_cache;
117 unsigned int ny_map_cache;
118 float lowbound_map_cache;
119 float uppbound_map_cache;
124 unsigned int coarseFactor_cache;
128 STD_list<QPoint> roi_polygon;