aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/datatemplate.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-07 15:58:43 +0200
committerThomas White <taw@physics.org>2020-08-07 15:59:35 +0200
commitf4bc400661860fb7a70ad7638a3177017b88fd98 (patch)
tree78b8a0e47984cf2695d2e71aee19ce6b2da08587 /libcrystfel/src/datatemplate.h
parentd1c8ebaf76dfcba1f62e9245c5bd103bcf436aa2 (diff)
Expose rigid groups
Diffstat (limited to 'libcrystfel/src/datatemplate.h')
-rw-r--r--libcrystfel/src/datatemplate.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate.h b/libcrystfel/src/datatemplate.h
index 88a002f0..66545786 100644
--- a/libcrystfel/src/datatemplate.h
+++ b/libcrystfel/src/datatemplate.h
@@ -47,6 +47,22 @@ typedef struct _datatemplate DataTemplate;
extern "C" {
#endif
+struct rigid_group
+{
+ char *name;
+ int *panel_numbers;
+ int n_panels;
+};
+
+
+struct rg_collection
+{
+ char *name;
+ struct rigid_group **rigid_groups;
+ int n_rigid_groups;
+};
+
+
extern DataTemplate *data_template_new_from_file(const char *filename);
extern DataTemplate *data_template_new_from_string(const char *string_in);
extern void data_template_free(DataTemplate *dt);
@@ -74,6 +90,9 @@ extern int data_template_get_slab_extents(const DataTemplate *dt, int *pw, int *
extern int data_template_in_bad_region(const DataTemplate *dtempl,
int pn, double fs, double ss);
+extern struct rg_collection *data_template_get_rigid_groups(const DataTemplate *dtempl,
+ const char *collection_name);
+
#ifdef __cplusplus
}
#endif