From 93fad2ee241592cdaf252fae5ad4e986feecc274 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 6 Jul 2020 16:27:32 +0200 Subject: Show cell parameters in GUI --- src/crystfel_gui.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/crystfel_gui.c') 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 #include +#include #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; in_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); } -- cgit v1.2.3