blob: 0482d26c1aa1937d422fe7f4117879e00c991b75 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/*
* dw-geomatic.h
*
* GUI geometry calibration
*
* (c) 2006-2011 Thomas White <taw@physics.org>
*
* Part of CrystFEL - crystallography with a FEL
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef DW_GEOMATIC_H
#define DW_GEOMATIC_H
#include <gtk/gtk.h>
#include "cell.h"
#include "reflist.h"
struct gmdialog {
GtkWidget *window;
GtkWidget *entry;
};
typedef struct {
GtkWidget *window;
GtkWidget *drawingarea;
GtkUIManager *ui;
GtkActionGroup *action_group;
GdkPixbuf *pixbuf;
gulong motion_callback;
struct hdfile *hdfile;
struct image *image;
int width;
int height;
double boostint;
/* Dialog boxes */
struct gmdialog *boostint_dialog;
int show_col_scale;
int scale;
GdkPixbuf *col_scale;
double motion_origx;
double motion_origy;
UnitCell *cell;
double pos_x;
double pos_y;
double pos_z;
} DWGeomatic;
/* Return an image display window showing the given filename, or NULL */
extern DWGeomatic *geomatic_open(const char *filename);
#endif /* DW_GEOMATICs_H */
|