Commit 36379e6dc06c47752b1f71fcea43823c1d262f48
1 parent
8f2dbda6
Exists in
master
and in
6 other branches
ADD: added part of the code to change window and level image
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
invesalius/data/viewer_slice.py
@@ -217,8 +217,9 @@ class Viewer(wx.Panel): | @@ -217,8 +217,9 @@ class Viewer(wx.Panel): | ||
217 | 217 | ||
218 | ps.Publisher().sendMessage('Bright and contrast adjustment image', | 218 | ps.Publisher().sendMessage('Bright and contrast adjustment image', |
219 | (proj.window, proj.level)) | 219 | (proj.window, proj.level)) |
220 | - self.interactor.Render() | ||
221 | - #ps.Publisher().sendMessage('Update slice viewer') | 220 | + |
221 | + self.interactor.Render() | ||
222 | + | ||
222 | 223 | ||
223 | 224 | ||
224 | def OnWindowLevelClick(self, evt, obj): | 225 | def OnWindowLevelClick(self, evt, obj): |
@@ -288,6 +289,7 @@ class Viewer(wx.Panel): | @@ -288,6 +289,7 @@ class Viewer(wx.Panel): | ||
288 | 289 | ||
289 | def OnReleaseModes(self, evt, obj): | 290 | def OnReleaseModes(self, evt, obj): |
290 | self.mouse_pressed = 0 | 291 | self.mouse_pressed = 0 |
292 | + ps.Publisher().sendMessage('Update slice viewer') | ||
291 | 293 | ||
292 | def OnEnterInteractor(self, obj, evt): | 294 | def OnEnterInteractor(self, obj, evt): |
293 | self.interactor.SetCursor(wx.StockCursor(wx.CURSOR_BLANK)) | 295 | self.interactor.SetCursor(wx.StockCursor(wx.CURSOR_BLANK)) |