diff options
author | Thomas White <taw@physics.org> | 2020-07-03 14:14:32 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | 92a3939402ee030755440af5b525e7af8155d34f (patch) | |
tree | 11943a9d03d3311c6babcecf080f74d5980c149f /src/crystfelimageview.h | |
parent | fc448f0933671135b149f2d151f8addc0bd73300 (diff) |
Let caller (rather than CrystFELImageView) own the image structure
Diffstat (limited to 'src/crystfelimageview.h')
-rw-r--r-- | src/crystfelimageview.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/crystfelimageview.h b/src/crystfelimageview.h index eafb0c44..d17f394f 100644 --- a/src/crystfelimageview.h +++ b/src/crystfelimageview.h @@ -81,16 +81,12 @@ struct _crystfelimageview double offs_x; double offs_y; - DataTemplate *dtempl; - char *filename; - char *event; - struct image *image; - GdkPixbuf **pixbufs; + const struct image *image; - int num_peaklists; - ImageFeatureList **peaklists; + GdkPixbuf **pixbufs; double brightness; + int show_peaks; }; struct _crystfelimageviewclass @@ -104,20 +100,13 @@ typedef struct _crystfelimageviewclass CrystFELImageViewClass; extern GType crystfel_image_view_get_type(void); extern GtkWidget *crystfel_image_view_new(void); -extern int crystfel_image_view_set_datatemplate(CrystFELImageView *iv, - DataTemplate *dtempl); - extern int crystfel_image_view_set_image(CrystFELImageView *iv, - const char *filename, - const char *event); - -extern struct image *crystfel_image_view_get_image_struct(CrystFELImageView *iv); - -extern void crystfel_image_view_set_peaks(CrystFELImageView *iv, - ImageFeatureList *peaks, - int list_num); + const struct image *image); extern void crystfel_image_view_set_brightness(CrystFELImageView *iv, double brightness); +extern void crystfel_image_view_set_show_peaks(CrystFELImageView *iv, + int show_peaks); + #endif /* CRYSTFELIMAGEVIEW_H */ |