Commit 3344ab38c411f78911ab130b463dd9cc2127dcce
1 parent
7438e3f3
Exists in
master
and in
68 other branches
ENH: Changed Window and Level pop-up menu, item name "Other" to "Manual"
Showing
4 changed files
with
7 additions
and
6 deletions
Show diff stats
invesalius/constants.py
... | ... | @@ -155,13 +155,14 @@ WINDOW_LEVEL = {"Abdomen":(350,50), |
155 | 155 | "Lung - Soft":(1600,-600), |
156 | 156 | "Lung - Hard":(1000,-600), |
157 | 157 | "Mediastinum":(350,25), |
158 | - "Other":(None, None), #Case the user change window and level | |
158 | + "Manual":(None, None), #Case the user change window and level | |
159 | 159 | "Pelvis": (450,50), |
160 | 160 | "Sinus":(4000, 400), |
161 | 161 | "Vasculature - Hard":(240,80), |
162 | 162 | "Vasculature - Soft":(650,160)} |
163 | 163 | |
164 | -REDUCE_IMAGEDATA_QUALITY = 1 | |
164 | +REDUCE_IMAGEDATA_QUALITY = 1 | |
165 | + | |
165 | 166 | |
166 | 167 | # if 1, use vtkVolumeRaycastMapper, if 0, use vtkFixedPointVolumeRayCastMapper |
167 | 168 | TYPE_RAYCASTING_MAPPER = 0 | ... | ... |
invesalius/control.py
... | ... | @@ -100,7 +100,7 @@ class Controller(): |
100 | 100 | threshold_range = proj.imagedata.GetScalarRange() |
101 | 101 | |
102 | 102 | const.WINDOW_LEVEL['Default'] = (window, level) |
103 | - const.WINDOW_LEVEL['Other'] = (window, level) | |
103 | + const.WINDOW_LEVEL['Manual'] = (window, level) | |
104 | 104 | |
105 | 105 | const.THRESHOLD_OUTVALUE = threshold_range[0] |
106 | 106 | const.THRESHOLD_INVALUE = threshold_range[1] | ... | ... |
invesalius/data/viewer_slice.py
... | ... | @@ -251,7 +251,7 @@ class Viewer(wx.Panel): |
251 | 251 | "WL: %d WW: %d"%(self.acum_achange_level,\ |
252 | 252 | self.acum_achange_window)) |
253 | 253 | |
254 | - const.WINDOW_LEVEL['Other'] = (self.acum_achange_window,\ | |
254 | + const.WINDOW_LEVEL['Manual'] = (self.acum_achange_window,\ | |
255 | 255 | self.acum_achange_level) |
256 | 256 | ps.Publisher().sendMessage('Check window and level other') |
257 | 257 | ... | ... |
invesalius/gui/widgets/slice_menu.py
... | ... | @@ -43,12 +43,12 @@ class SliceMenu(wx.Menu): |
43 | 43 | #Case the user change window and level |
44 | 44 | new_id = self.other_wl_id = wx.NewId() |
45 | 45 | wl_item = wx.MenuItem(submenu_wl, new_id,\ |
46 | - 'Other', kind=wx.ITEM_RADIO) | |
46 | + 'Manual', kind=wx.ITEM_RADIO) | |
47 | 47 | submenu_wl.AppendItem(wl_item) |
48 | 48 | self.ID_TO_TOOL_ITEM[new_id] = wl_item |
49 | 49 | |
50 | 50 | for name in sorted(const.WINDOW_LEVEL): |
51 | - if not(name == 'Default' or name == 'Other'): | |
51 | + if not(name == 'Default' or name == 'Manual'): | |
52 | 52 | new_id = wx.NewId() |
53 | 53 | wl_item = wx.MenuItem(submenu_wl, new_id,\ |
54 | 54 | name, kind=wx.ITEM_RADIO) | ... | ... |