aboutsummaryrefslogtreecommitdiff
path: root/src/imagedisplay.h
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-02-05 21:12:57 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-02-05 21:12:57 +0000
commit05b5d261682b9136fb46476a64eab6980b0dba64 (patch)
treed7faa450b69cf2104ffff7fc89a95914284d23af /src/imagedisplay.h
Initial import
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@1 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/imagedisplay.h')
-rw-r--r--src/imagedisplay.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/imagedisplay.h b/src/imagedisplay.h
new file mode 100644
index 0000000..0aa140f
--- /dev/null
+++ b/src/imagedisplay.h
@@ -0,0 +1,44 @@
+/*
+ * imagedisplay.h
+ *
+ * Show raw and processed images
+ *
+ * (c) 2007 Thomas White <taw27@cam.ac.uk>
+ * dtr - Diffraction Tomography Reconstruction
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifndef IMAGEDISPLAY_H
+#define IMAGEDISPLAY_H
+
+#include <stdint.h>
+#include <gtk/gtk.h>
+
+typedef struct struct_imagedisplay {
+
+ unsigned int width;
+ unsigned int height; /* Of underlying image */
+ char *title;
+
+ guchar *data;
+
+ GtkWidget *window;
+ GdkPixbuf *pixbuf;
+ GdkPixbuf *pixbuf_scaled;
+ GtkWidget *image;
+
+ unsigned int view_width;
+ unsigned int view_height; /* Of window */
+
+} ImageDisplay;
+
+extern ImageDisplay *imagedisplay_open(int16_t *image, unsigned int width, unsigned int height, const char *title);
+extern void imagedisplay_mark_point(ImageDisplay *imagedisplay, unsigned int x, unsigned int y);
+#include "control.h"
+extern void imagedisplay_add_tilt_axis(ImageDisplay *imagedisplay, ControlContext *ctx, double omega);
+
+#endif /* IMAGEDISPLAY_H */