aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-20 13:24:09 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commit5543f048ba45e07238cf5b16bc778305a7db2be1 (patch)
treee1408760548d9c3d74769b00d52b6e3811ad5692 /src
parente9ca4627b95fc8b4d8e9e88e7e58ee9918747a7a (diff)
Add crystfel_image_view_get_datatemplate()
Diffstat (limited to 'src')
-rw-r--r--src/crystfelimageview.c6
-rw-r--r--src/crystfelimageview.h2
2 files changed, 8 insertions, 0 deletions
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);