From 28fe29530075a28f6ac7a2f86628a00c7cb69af9 Mon Sep 17 00:00:00 2001 From: taw27 Date: Wed, 29 Aug 2007 13:52:59 +0000 Subject: Revamp ImageDisplay git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@86 bf6ca9ba-c028-0410-8290-897cf20841d1 --- src/mapping.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/mapping.c') diff --git a/src/mapping.c b/src/mapping.c index 6d74ddd..86bf752 100644 --- a/src/mapping.c +++ b/src/mapping.c @@ -34,6 +34,7 @@ ReflectionContext *mapping_create(ControlContext *ctx) { int x, y; uint16_t *image_total; ImageDisplay *sum_id; + ImageRecord total_record; /* Find centre of image stack * Determine maximum size of image to accommodate, and allocate memory */ @@ -75,9 +76,13 @@ ReflectionContext *mapping_create(ControlContext *ctx) { } /* Display */ - sum_id = imagedisplay_open(image_total, twidth, theight, "Sum of All Images"); - imagedisplay_mark_point(sum_id, max_x, max_y); - imagedisplay_add_tilt_axis(sum_id, max_x, max_y, ctx->omega); + total_record.image = image_total; + total_record.width = twidth; + total_record.height = theight; + total_record.x_centre = max_x; + total_record.y_centre = max_y; + total_record.omega = ctx->omega; + sum_id = imagedisplay_open(total_record, "Sum of All Images", IMAGEDISPLAY_SHOW_CENTRE | IMAGEDISPLAY_SHOW_TILT_AXIS); } -- cgit v1.2.3