aboutsummaryrefslogtreecommitdiff
path: root/src/control.c
blob: b822457e404bbfd16d5f1759b3f7a01f745a0f80 (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
/*
 * control.c
 *
 * Common control structure
 *
 * (c) 2007 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;
	
	return ctx;

}