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,13 +155,14 @@ WINDOW_LEVEL = {"Abdomen":(350,50), | ||
155 | "Lung - Soft":(1600,-600), | 155 | "Lung - Soft":(1600,-600), |
156 | "Lung - Hard":(1000,-600), | 156 | "Lung - Hard":(1000,-600), |
157 | "Mediastinum":(350,25), | 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 | "Pelvis": (450,50), | 159 | "Pelvis": (450,50), |
160 | "Sinus":(4000, 400), | 160 | "Sinus":(4000, 400), |
161 | "Vasculature - Hard":(240,80), | 161 | "Vasculature - Hard":(240,80), |
162 | "Vasculature - Soft":(650,160)} | 162 | "Vasculature - Soft":(650,160)} |
163 | 163 | ||
164 | -REDUCE_IMAGEDATA_QUALITY = 1 | 164 | +REDUCE_IMAGEDATA_QUALITY = 1 |
165 | + | ||
165 | 166 | ||
166 | # if 1, use vtkVolumeRaycastMapper, if 0, use vtkFixedPointVolumeRayCastMapper | 167 | # if 1, use vtkVolumeRaycastMapper, if 0, use vtkFixedPointVolumeRayCastMapper |
167 | TYPE_RAYCASTING_MAPPER = 0 | 168 | TYPE_RAYCASTING_MAPPER = 0 |
invesalius/control.py
@@ -100,7 +100,7 @@ class Controller(): | @@ -100,7 +100,7 @@ class Controller(): | ||
100 | threshold_range = proj.imagedata.GetScalarRange() | 100 | threshold_range = proj.imagedata.GetScalarRange() |
101 | 101 | ||
102 | const.WINDOW_LEVEL['Default'] = (window, level) | 102 | const.WINDOW_LEVEL['Default'] = (window, level) |
103 | - const.WINDOW_LEVEL['Other'] = (window, level) | 103 | + const.WINDOW_LEVEL['Manual'] = (window, level) |
104 | 104 | ||
105 | const.THRESHOLD_OUTVALUE = threshold_range[0] | 105 | const.THRESHOLD_OUTVALUE = threshold_range[0] |
106 | const.THRESHOLD_INVALUE = threshold_range[1] | 106 | const.THRESHOLD_INVALUE = threshold_range[1] |
invesalius/data/viewer_slice.py
@@ -251,7 +251,7 @@ class Viewer(wx.Panel): | @@ -251,7 +251,7 @@ class Viewer(wx.Panel): | ||
251 | "WL: %d WW: %d"%(self.acum_achange_level,\ | 251 | "WL: %d WW: %d"%(self.acum_achange_level,\ |
252 | self.acum_achange_window)) | 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 | self.acum_achange_level) | 255 | self.acum_achange_level) |
256 | ps.Publisher().sendMessage('Check window and level other') | 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,12 +43,12 @@ class SliceMenu(wx.Menu): | ||
43 | #Case the user change window and level | 43 | #Case the user change window and level |
44 | new_id = self.other_wl_id = wx.NewId() | 44 | new_id = self.other_wl_id = wx.NewId() |
45 | wl_item = wx.MenuItem(submenu_wl, new_id,\ | 45 | wl_item = wx.MenuItem(submenu_wl, new_id,\ |
46 | - 'Other', kind=wx.ITEM_RADIO) | 46 | + 'Manual', kind=wx.ITEM_RADIO) |
47 | submenu_wl.AppendItem(wl_item) | 47 | submenu_wl.AppendItem(wl_item) |
48 | self.ID_TO_TOOL_ITEM[new_id] = wl_item | 48 | self.ID_TO_TOOL_ITEM[new_id] = wl_item |
49 | 49 | ||
50 | for name in sorted(const.WINDOW_LEVEL): | 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 | new_id = wx.NewId() | 52 | new_id = wx.NewId() |
53 | wl_item = wx.MenuItem(submenu_wl, new_id,\ | 53 | wl_item = wx.MenuItem(submenu_wl, new_id,\ |
54 | name, kind=wx.ITEM_RADIO) | 54 | name, kind=wx.ITEM_RADIO) |