diff options
author | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-08-29 13:52:59 +0000 |
---|---|---|
committer | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-08-29 13:52:59 +0000 |
commit | 28fe29530075a28f6ac7a2f86628a00c7cb69af9 (patch) | |
tree | 3e3d79799930f1cd502a969a24c889ac8110262c /src/mapping.c | |
parent | 3bd37169d751c7b5f0b36847ea902735d9234e63 (diff) |
Revamp ImageDisplay
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@86 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/mapping.c')
-rw-r--r-- | src/mapping.c | 11 |
1 files changed, 8 insertions, 3 deletions
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); } |