aboutsummaryrefslogtreecommitdiff
path: root/src/imagedisplay.h
blob: 9d75ded5fddee40199798f7d8fdc95154e0b6ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * 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 */