aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/geometry.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-05-02 16:43:22 +0200
committerThomas White <taw@physics.org>2013-05-02 16:43:22 +0200
commita4bdd1335ffc98e885126af5468b0696396479cf (patch)
tree43fe08d1ccb8f22acfd962f6302713e9ff2ddf6f /libcrystfel/src/geometry.h
parentc5bcfa0ae036145f23c344796f8b4efcee69429a (diff)
parent6b18fa18fbdc1f272e65f81d04b22d973acafa1e (diff)
Merge branch 'tom/partials'
Diffstat (limited to 'libcrystfel/src/geometry.h')
-rw-r--r--libcrystfel/src/geometry.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/libcrystfel/src/geometry.h b/libcrystfel/src/geometry.h
index aecdc28a..2ac5982b 100644
--- a/libcrystfel/src/geometry.h
+++ b/libcrystfel/src/geometry.h
@@ -43,10 +43,26 @@
extern "C" {
#endif
+/**
+ * PartialityModel:
+ * @PMODEL_SPHERE : Intersection of sphere with excited volume of reciprocal
+ * space.
+ * @PMODEL_UNITY : Set all all partialities and Lorentz factors to 1.
+ *
+ * A %PartialityModel describes a geometrical model which can be used to
+ * calculate spot partialities and Lorentz correction factors.
+ **/
+typedef enum {
+
+ PMODEL_SPHERE,
+ PMODEL_UNITY,
+
+} PartialityModel;
+
extern RefList *find_intersections(struct image *image, Crystal *cryst);
extern RefList *select_intersections(struct image *image, Crystal *cryst);
-extern void update_partialities(Crystal *cryst);
+extern void update_partialities(Crystal *cryst, PartialityModel pmodel);
#ifdef __cplusplus
}