aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.h
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-09-28 23:58:28 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-09-28 23:58:28 +0000
commit9e7d459d47907accbc496f2f1c4c74f131086873 (patch)
treec5a0a7a472929f7003bc3e5ebd8ec30581424648 /src/reflections.h
parent555bc4f60c845bf47aee94e4b7963382838c9f57 (diff)
s/reflectioncontext/reflectionlist/
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@137 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/reflections.h')
-rw-r--r--src/reflections.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/reflections.h b/src/reflections.h
index 9dd281a..9ac0cec 100644
--- a/src/reflections.h
+++ b/src/reflections.h
@@ -45,7 +45,7 @@ typedef struct reflection_struct {
} Reflection;
-typedef struct rctx_struct {
+typedef struct reflectionlist_struct {
Reflection *reflections;
Reflection *last_reflection;
@@ -53,24 +53,24 @@ typedef struct rctx_struct {
unsigned int n_reflections;
unsigned int list_capped;
-} ReflectionContext;
+} ReflectionList;
-extern ReflectionContext *reflection_init(void);
-extern void reflection_clear(ReflectionContext *reflectionctx);
-extern void reflection_clear_markers(ReflectionContext *reflectionctx);
-extern void reflection_free(ReflectionContext *reflectionctx);
+extern ReflectionList *reflection_init(void);
+extern void reflection_clear(ReflectionList *reflectionlist);
+extern void reflection_clear_markers(ReflectionList *reflectionlist);
+extern void reflection_free(ReflectionList *reflectionlist);
-extern Reflection *reflection_add(ReflectionContext *reflectionctx, double x, double y, double z, double intensity, ReflectionType type);
+extern Reflection *reflection_add(ReflectionList *reflectionlist, double x, double y, double z, double intensity, ReflectionType type);
#include "control.h"
extern void reflection_add_from_dp(ControlContext *ctx, double x, double y, ImageRecord *imagerecord, double intensity);
-extern void reflection_add_from_reflection(ReflectionContext *rctx, Reflection *r);
-extern double reflection_largest_g(ReflectionContext *reflectionctx);
+extern void reflection_add_from_reflection(ReflectionList *reflectionlist, Reflection *r);
+extern double reflection_largest_g(ReflectionList *reflectionlist);
extern int reflection_map_to_space(ImageReflection *refl, double *ddx, double *ddy, double *ddz, double *twotheta);
-extern Reflection *reflection_find_nearest(ReflectionContext *reflectionctx, double x, double y, double z);
-extern Reflection *reflection_find_nearest_longer(ReflectionContext *reflectionctx, double x, double y, double z, double min_distance);
-extern Reflection *reflection_find_nearest_type(ReflectionContext *reflectionctx, double x, double y, double z, ReflectionType type);
+extern Reflection *reflection_find_nearest(ReflectionList *reflectionlist, double x, double y, double z);
+extern Reflection *reflection_find_nearest_longer(ReflectionList *reflectionlist, double x, double y, double z, double min_distance);
+extern Reflection *reflection_find_nearest_type(ReflectionList *reflectionlist, double x, double y, double z, ReflectionType type);
#endif /* REFLECTION_H */