From b561e71730126de7fc7aa065dd0ce8adc213bb81 Mon Sep 17 00:00:00 2001 From: System User Date: Thu, 14 Jan 2010 15:34:55 +0100 Subject: [PATCH] * implement the reflection protection. --- src/TangoHKLAdapter.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/TangoHKLAdapter.cpp b/src/TangoHKLAdapter.cpp index 8a71fc7..fc20f91 100644 --- a/src/TangoHKLAdapter.cpp +++ b/src/TangoHKLAdapter.cpp @@ -1165,6 +1165,20 @@ namespace Diffractometer_ns if (r) { hkl_sample_reflection_set_hkl(r, img.data[j+1], img.data[j+2], img.data[j+3]); hkl_sample_reflection_set_flag(r, (int)img.data[j+5]); + if(!_device->protectReflectionAxes){ + HklAxis *axes; + size_t len; + size_t k; + + len = HKL_LIST_LEN(r->geometry->axes); + axes = &r->geometry->axes[0]; + + for(k=6; k<6+len; ++k) + hkl_axis_set_value_unit(axes++, img.data[j+k]); + + hkl_geometry_update(r->geometry); + hkl_sample_reflection_set_geometry(r, r->geometry); + } } j += _reflections.xdim; } -- 2.11.4.GIT