From 5543f048ba45e07238cf5b16bc778305a7db2be1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 20 Mar 2020 13:24:09 +0100 Subject: Add crystfel_image_view_get_datatemplate() --- src/crystfelimageview.c | 6 ++++++ src/crystfelimageview.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c index 25597dfe..27865b76 100644 --- a/src/crystfelimageview.c +++ b/src/crystfelimageview.c @@ -730,6 +730,12 @@ struct image *crystfel_image_view_get_image_struct(CrystFELImageView *iv) } +const DataTemplate *crystfel_image_view_get_datatemplate(CrystFELImageView *iv) +{ + return iv->dtempl; +} + + void crystfel_image_view_set_peaks(CrystFELImageView *iv, ImageFeatureList *peaks, int list_num) diff --git a/src/crystfelimageview.h b/src/crystfelimageview.h index 62faf044..5dc70f0f 100644 --- a/src/crystfelimageview.h +++ b/src/crystfelimageview.h @@ -105,6 +105,8 @@ extern GtkWidget *crystfel_image_view_new(void); extern int crystfel_image_view_set_datatemplate(CrystFELImageView *iv, DataTemplate *dtempl); +extern const DataTemplate *crystfel_image_view_get_datatemplate(CrystFELImageView *iv); + extern int crystfel_image_view_set_image(CrystFELImageView *iv, const char *filename, const char *event); -- cgit v1.2.3