View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003010 | Slicer4 | Core: GUI | public | 2013-03-14 07:35 | 2017-06-07 23:27 |
Reporter | lassoan | Assigned To | finetjul | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | |||||
Target Version | Slicer 4.3.0 | Fixed in Version | Slicer 4.3.0 | ||
Summary | 0003010: Volume module GUI permanently modifies the spacing of the selected volume | ||||
Description | If you have choose a volume in the Volumes GUI and have a look (no editing) and then save the volume, the spacing is modified. How to reproduce:
Maybe the spacing value is not computed with enough accuracy in the volumes module or it is incorrectly connected to the GUI. With latest Slicer nightly release on Windows 7, 64-bit. | ||||
Tags | No tags attached. | ||||
Most likely due to 0002869 |
|
Hi Kevin, could you have a look ? As reported in previous note, this is most likely due to 0002869 |
|
Hi All, I did a bit investigation and here is what I found. This issue is not due to 0002869. instead, it is something in here we have the code look like this:
so the decimal is set to be the minimum of significant decimals of spacing[0], spacing[1], spacing[2] and 8. in our case, the decimals for spacing[0] and spacing[1] is 1 so it is set to 1 which round 1.2999954223632813 to 1.3 I have changed the code to use maximum and now I can see the spacing to be 1.29999542 as shown in picture. I think we need to come up with a rule how to set the number of decimals and this might be something we can discuss in the slicer hangout. |
|
2013-03-20 12:14
|
|
Nice catch, Kevin. It's important to not change any data in the MRML nodes unless the user changes something in the GUI - this gives protection agains unwanted changes when someone would like to just view data. The minimum number of decimal digits for origin values should be at least 3, while for scaling and rotation should be about 8-10. |
|
Reminder sent to: finetjul @Julien: What do you think of this issue ? |
|
I created a test which illustrates a catastrophic image information failure when this issue is combined with the precision issues: https://github.com/blowekamp/Slicer/commit/25cf25f5cc4d7c490fab5c21eb871418c32ab9e6 Initial Origin: [547339, 218860, 20904.4] |
|
I find this whole double editing experience extremely frustrating. The behavior has changed a couple of times during the recent months, but it never worked correctly or intuitively. For example, in the latest version (4.2.0-2013-08-06): I think the main problem is that you try to change the data while the user editing it. Maybe it cause by a loop in the model/GUI update (GUI change->model change->GUI change), which could be fixed by making the direction of the automatic synching between the model and the GUI one-way only: if the user modifies anything in the editbox (viewing only or moving the cursor does not mean modification!) then the synchronization direction would be set to GUI->model; if something (not the editbox!) changes the value in the model then the synchronization direction would be set to model->GUI. |
|
Keeping precision (0003010) is fixed in r22281 |
|
Looks like a good fix for my issue. What about my patch which adds a test for the issue? I don't see any other tests added to check this issue. Is there something wrong with my style or approach there? |
|
you're patch a great, I'll integrate it asap |
|
Closing resolved issues that have not been updated in more than 3 months |
|
Slicer: 2145-support-for-installing-extension-from-file a60cec7a 2013-08-09 15:50:53 Details Diff |
BUG: Support volume origin and spacing larger than 100000 Issue 0003010 @0009428 git-svn-id: http://svn.slicer.org/Slicer4/trunk@22282 3bd1e089-480b-0410-8dfb-8563597acbee |
||
mod - Libs/MRML/Widgets/Resources/UI/qMRMLVolumeInfoWidget.ui | Diff File | ||
mod - SuperBuild/External_CTK.cmake | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-03-14 07:35 | lassoan | New Issue | |
2013-03-14 07:35 | lassoan | Status | new => assigned |
2013-03-14 07:35 | lassoan | Assigned To | => kikinis |
2013-03-14 07:46 | lassoan | Relationship added | related to 0003011 |
2013-03-14 09:37 | kikinis | Assigned To | kikinis => finetjul |
2013-03-19 12:41 | finetjul | Relationship added | related to 0002869 |
2013-03-19 12:41 | finetjul | Note Added: 0008170 | |
2013-03-19 12:42 | finetjul | Assigned To | finetjul => alexy |
2013-03-19 13:16 | jcfr | Assigned To | alexy => wangk |
2013-03-19 13:17 | jcfr | Note Added: 0008172 | |
2013-03-19 13:19 | jcfr | Note Edited: 0008172 | |
2013-03-20 12:13 | wangk | Note Added: 0008181 | |
2013-03-20 12:14 | wangk | File Added: incorrectspacing.png | |
2013-03-20 12:15 | wangk | Note Edited: 0008181 | |
2013-03-21 13:06 | lassoan | Note Added: 0008194 | |
2013-03-21 13:09 | jcfr | Note Added: 0008195 | |
2013-08-08 06:25 | blowekamp | Note Added: 0009428 | |
2013-08-08 15:03 | finetjul | Assigned To | wangk => finetjul |
2013-08-08 21:34 | lassoan | Note Added: 0009432 | |
2013-08-09 12:03 | finetjul | Target Version | => Slicer 4.3.0 |
2013-08-09 12:05 | finetjul | Note Added: 0009450 | |
2013-08-09 12:05 | finetjul | Status | assigned => resolved |
2013-08-09 12:05 | finetjul | Fixed in Version | => Slicer 4.3.0 |
2013-08-09 12:05 | finetjul | Resolution | open => fixed |
2013-08-10 04:00 | blowekamp | Note Added: 0009460 | |
2013-08-15 09:47 | finetjul | Note Added: 0009475 | |
2014-03-06 05:21 | jcfr | Note Added: 0011167 | |
2014-03-06 05:23 | jcfr | Status | resolved => closed |
2017-06-07 23:27 | finetjul | Changeset attached | => Slicer 2145-support-for-installing-extension-from-file a60cec7a |