View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003115 | Slicer4 | Module Editor | public | 2013-05-13 12:18 | 2017-06-07 23:27 |
Reporter | lassoan | Assigned To | nicole | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | |||||
Target Version | Slicer 4.4.0 | Fixed in Version | Slicer 4.4.0 | ||
Summary | 0003115: Editor module does not draw with the selected color | ||||
Description | When a custom colormap is used (with a lookup range that is not exactly 0.00 - NumberOfColors-1) then the drawing tools don't draw on the image with the selected color. How to reproduce:
Workaround: set the lookup range in the colors module for the custom colormap to 0.00 - (NumberOfColors-1) | ||||
Tags | No tags attached. | ||||
I think the editor is doing the right thing, but there is an issue with the color nodes and/or label map display node. It seem to me that the label scalar range should probably be clamped to be 0 to numcolors-1 for a discrete color table. |
|
I'm not sure if there is any distinction between discrete and continuous color tables. For me, as a user, all colormaps seems to work the same way now. The problem is that the Editor assumes that the LUT function is identity (f(x)=x), which is not always the case. It's not even the case for many of the built-in colormaps. The Editor module should do one of the followings: I would probably prefer E. If that's not doable then maybe C. |
|
The Colors module only allows editing for discrete color tables, the number of colors entry box etc are disabled when continous ones are chosen. The colors in the table for continuous nodes are a sampling to try and show a bit of what the color node provides. I was able to update the color table range when the number of colors is modified in the Colors module, and the steps in the Description above work with that change (not checked in yet). It's still a problem that if the range on the vtkLookupTable doesn't match the number of colors in the table, the Editor module draws with a different color than comes up in the color chooser. This could be avoided for discrete color nodes by disabling the range slider in the Color module, at least until a more intuitive user experience can be crafted in the Editor module. From the lettered list: definitely don't do B. In the larger picture, the range setting on a look up table is mostly useful for continuous ones (I'm thinking of the heat or PET LUTs), can we come up with a use case where it would make sense on a discrete color table? For me, it's not easily intuitive how the mapping from integer to colour values change as I change the range. If we're going to support it, I'd like to see some changing icon hints like the ones that Julien puts in the drop down menu. Also: verifying that the scalar bar widget properly reflects the range and number of colors. |
|
svn 21993[1] updates the table range and also only updates the number of colors when finished editing on the spin box (press enter or it loses the mouse focus) [1] http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=21993 |
|
I tested the steps to reproduce it, seems like this was fixed as a side effect of my work on the color look up table ranges in bug 3586. |
|
Closing resolved issues that have not been updated in more than 3 months. |
|
Slicer: 2145-support-for-installing-extension-from-file 5427f71a 2013-05-14 17:36:03 naucoin Details Diff |
BUG: Set the color range when changing number of colors When copying a color table node and reducing the number of colors in it, the color table range wasn't updated. This led to problems in the Editor module when the selected drawing integer wasn't matched up to the expected color. Now when the number of colors is set on a user editable color node, the range is set on the color look up table and on the GUI slider at the same time. Also updated the number of colors spin box to only trigger a reset of the number of colors on the node on the editingFinished signal as othewise cutting down a table from 300 to 50 colors could empty out the table and refill it with black rather than creating a subset of the original table. Issue 0003115 git-svn-id: http://svn.slicer.org/Slicer4/trunk@21993 3bd1e089-480b-0410-8dfb-8563597acbee |
||
mod - Modules/Loadable/Colors/qSlicerColorsModuleWidget.cxx | Diff File | ||
mod - Modules/Loadable/Colors/qSlicerColorsModuleWidget.h | Diff File | ||
Slicer: 2145-support-for-installing-extension-from-file 6365c74f 2013-05-15 15:29:15 naucoin Details Diff |
BUG: set LUT range widget to trigger setting range on LUT Updating the GUI element will trigger a signal to update the look up table on the color node. Renamed a method from setNumberOfColors to updateNumberOfColors as it wasn't taking an argument. TODO: set up an observation on the look up table on the color node Issue 0003115 git-svn-id: http://svn.slicer.org/Slicer4/trunk@21999 3bd1e089-480b-0410-8dfb-8563597acbee |
||
mod - Modules/Loadable/Colors/qSlicerColorsModuleWidget.cxx | Diff File | ||
mod - Modules/Loadable/Colors/qSlicerColorsModuleWidget.h | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-05-13 12:18 | lassoan | New Issue | |
2013-05-13 12:18 | lassoan | Status | new => assigned |
2013-05-13 12:18 | lassoan | Assigned To | => pieper |
2013-05-13 12:32 | pieper | Assigned To | pieper => lassoan |
2013-05-13 12:32 | pieper | Assigned To | lassoan => nicole |
2013-05-13 12:33 | pieper | Note Added: 0008631 | |
2013-05-13 14:34 | lassoan | Note Added: 0008632 | |
2013-05-14 11:03 | nicole | Note Added: 0008638 | |
2013-05-14 13:37 | nicole | Note Added: 0008644 | |
2013-09-03 12:22 | nicole | Target Version | => Slicer 4.4.0 |
2014-03-06 04:59 | nicole | Relationship added | related to 0003586 |
2014-03-06 05:04 | nicole | Note Added: 0010896 | |
2014-03-06 05:04 | nicole | Status | assigned => resolved |
2014-03-06 05:04 | nicole | Fixed in Version | => Slicer 4.4.0 |
2014-03-06 05:04 | nicole | Resolution | open => fixed |
2014-03-06 05:23 | jcfr | Status | resolved => closed |
2014-03-06 05:32 | jcfr | Status | closed => resolved |
2014-09-17 22:59 | jcfr | Status | resolved => closed |
2014-09-17 23:01 | jcfr | Note Added: 0012574 | |
2017-06-07 23:27 | Changeset attached | => Slicer 2145-support-for-installing-extension-from-file 6365c74f | |
2017-06-07 23:27 | Changeset attached | => Slicer 2145-support-for-installing-extension-from-file 5427f71a |