aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/crystal.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-02-06 18:59:40 +0100
committerThomas White <taw@bitwiz.org.uk>2013-02-06 18:59:40 +0100
commit761da16096472d157b2dd9c871e81ab17cdef12d (patch)
treeb3fc2859150d66fad5e1bcc3c6d3b2fcbc9a55bb /libcrystfel/src/crystal.c
parent004be7ba8d405c7d04ac6143c783bfec70d296bb (diff)
Stuff for partialator
Diffstat (limited to 'libcrystfel/src/crystal.c')
-rw-r--r--libcrystfel/src/crystal.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/libcrystfel/src/crystal.c b/libcrystfel/src/crystal.c
index 8ba955f6..6ff251e0 100644
--- a/libcrystfel/src/crystal.c
+++ b/libcrystfel/src/crystal.c
@@ -49,6 +49,9 @@
struct _crystal
{
+ /* The image containing the crystal */
+ struct image *image;
+
/* Information about the crystal */
UnitCell *cell;
double m; /* Mosaicity in radians */
@@ -60,6 +63,9 @@ struct _crystal
/* Integrated (or about-to-be-integrated) reflections */
RefList *reflections;
long long int n_saturated; /* Number of overloads */
+
+ /* User flag, e.g. for "this is a bad crystal". */
+ int user_flag;
};
@@ -139,6 +145,24 @@ long long int crystal_get_num_saturated_reflections(Crystal *cryst)
}
+struct image *crystal_get_image(Crystal *cryst)
+{
+ return cryst->image;
+}
+
+
+double crystal_get_osf(Crystal *cryst)
+{
+ return cryst->osf;
+}
+
+
+int crystal_get_user_flag(Crystal *cryst)
+{
+ return cryst->user_flag;
+}
+
+
/********************************** Setters ***********************************/
@@ -172,3 +196,21 @@ void crystal_set_num_saturated_reflections(Crystal *cryst, long long int n)
{
cryst->n_saturated = n;
}
+
+
+void crystal_set_image(Crystal *cryst, struct image *image)
+{
+ cryst->image = image;
+}
+
+
+void crystal_set_osf(Crystal *cryst, double osf)
+{
+ cryst->osf = osf;
+}
+
+
+void crystal_set_user_flag(Crystal *cryst, int user_flag)
+{
+ cryst->user_flag = user_flag;
+}