diff options
author | Thomas White <taw@physics.org> | 2020-07-06 16:27:32 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | 93fad2ee241592cdaf252fae5ad4e986feecc274 (patch) | |
tree | 8b7ab16e3289457c36d3b10c9f2b7a89eb829584 /src | |
parent | 25055d3547683604f507c5453781db2723be97c7 (diff) |
Show cell parameters in GUI
Diffstat (limited to 'src')
-rw-r--r-- | src/crystfel_gui.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index f60555f8..a177268d 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -41,6 +41,7 @@ #include <datatemplate.h> #include <peaks.h> +#include <cell-utils.h> #include "crystfelimageview.h" #include "crystfelimageview.h" @@ -109,6 +110,18 @@ static void add_ui_sig(GtkUIManager *ui, GtkWidget *widget, } +static void show_crystal_info(struct image *image) +{ + int i; + STATUS("Frame %s %s has %i crystals:\n", + image->filename, image->ev, image->n_crystals); + for ( i=0; i<image->n_crystals; i++ ) { + STATUS(" Crystal %2i: ", i); + cell_print_oneline(crystal_get_cell(image->crystals[i])); + } +} + + /* Bring the image view up to date after changing the selected image */ static void update_imageview(struct crystfelproject *proj) { @@ -175,6 +188,8 @@ static void update_imageview(struct crystfelproject *proj) gtk_label_set_text(GTK_LABEL(proj->image_info), tmp); crystfel_image_view_set_image(CRYSTFEL_IMAGE_VIEW(proj->imageview), proj->cur_image); + + show_crystal_info(proj->cur_image); } |