Commit 0be308c2 authored by Thomas White's avatar Thomas White
Browse files

hdfsee: Add --show-rings option

parent 4e31162c
......@@ -1396,7 +1396,8 @@ static gint displaywindow_press(GtkWidget *widget, GdkEventButton *event,
DisplayWindow *displaywindow_open(const char *filename, const char *peaks,
int boost, int binning, int cmfilter,
int noisefilter, int colscale,
const char *element, const char *geometry)
const char *element, const char *geometry,
int show_rings)
{
DisplayWindow *dw;
char *title;
......@@ -1415,7 +1416,7 @@ DisplayWindow *displaywindow_open(const char *filename, const char *peaks,
dw->numbers_window = NULL;
dw->image = NULL;
dw->use_geom = 0;
dw->show_rings = 0;
dw->show_rings = show_rings;
dw->scale = colscale;
dw->binning = binning;
dw->boostint = boost;
......
......@@ -90,7 +90,7 @@ extern DisplayWindow *displaywindow_open(const char *filename,
int binning, int cmfilter,
int noisefilter, int colscale,
const char *element,
const char *geometry);
const char *geometry, int show_rings);
#endif /* DISPLAYWINDOW_H */
......@@ -92,6 +92,7 @@ int main(int argc, char *argv[])
int binning = 2;
int config_cmfilter = 0;
int config_noisefilter = 0;
int config_showrings = 0;
int colscale = SCALE_COLOUR;
char *cscale = NULL;
char *element = NULL;
......@@ -108,6 +109,7 @@ int main(int argc, char *argv[])
{"colscale", 1, NULL, 'c'},
{"image", 1, NULL, 'e'},
{"geometry", 1, NULL, 'g'},
{"show-rings", 0, &config_showrings, 1},
{0, 0, NULL, 0}
};
......@@ -190,7 +192,8 @@ int main(int argc, char *argv[])
config_cmfilter,
config_noisefilter,
colscale, element,
geometry);
geometry,
config_showrings);
if ( main_window_list[i] == NULL ) {
ERROR("Couldn't open display window\n");
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment