aboutsummaryrefslogtreecommitdiff
path: root/src/control.c
blob: 256a9797dc708c6776bdcc7e193b03d450afc5af (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
/*
 * control.c
 *
 * Common control structure
 *
 * (c) 2007-2008 Thomas White <taw27@cam.ac.uk>
 *
 *  dtr - Diffraction Tomography Reconstruction
 *
 */

#include <inttypes.h>
#include <stdlib.h>
#include <math.h>

#include "control.h"
#include "image.h"

ControlContext *control_ctx_new() {

	ControlContext *ctx;
	
	ctx = malloc(sizeof(ControlContext));

	ctx->x_centre = 0;
	ctx->y_centre = 0;
	ctx->have_centres = 0;
	ctx->cell = NULL;
	ctx->dirax = NULL;
	ctx->images = image_list_new();
	ctx->reflectionlist = NULL;
	ctx->refine_window = NULL;
	ctx->cell_lattice = NULL;
	ctx->integrated = NULL;
	ctx->cache_filename = NULL;
	
	return ctx;

}