aboutsummaryrefslogtreecommitdiff
path: root/src/mapping.h
blob: 82d2f046bcf78732a2965637b91e7c7c52940093 (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
/*
 * mapping.h
 *
 * 3D Mapping
 *
 * (c) 2007-2008 Thomas White <taw27@cam.ac.uk>
 *
 *  dtr - Diffraction Tomography Reconstruction
 *
 */
 
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef MAPPING_H
#define MAPPING_H

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

extern void mapping_rotate(double x, double y, double z, double *ddx, double *ddy, double *ddz,
			   double omega, double tilt);
extern int mapping_map_to_space(ImageFeature *refl, double *ddx, double *ddy, double *ddz, double *twotheta);
extern int mapping_scale(ImageFeature *refl, double *ddx, double *ddy);
extern double mapping_scale_bar_length(ImageRecord *image);

extern void mapping_adjust_axis(ControlContext *ctx, double offset);
extern void mapping_map_features(ControlContext *ctx);

#endif	/* MAPPING_H */