Commit 36b4b89ac716496a0b7857e8c709359176df56cb

Authored by Thiago Franco de Moraes
1 parent 57a39923
Exists in master

WW/WL text was not showing in the viewer_volume

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
invesalius/data/viewer_volume.py
... ... @@ -53,7 +53,7 @@ else:
53 53  
54 54 PROP_MEASURE = 0.8
55 55  
56   -from invesalius.gui.widgets.canvas_renderer import CanvasRendererCTX, Polygon
  56 +# from invesalius.gui.widgets.canvas_renderer import CanvasRendererCTX, Polygon
57 57  
58 58 class Viewer(wx.Panel):
59 59 def __init__(self, parent):
... ... @@ -110,7 +110,7 @@ class Viewer(wx.Panel):
110 110 self.text = vtku.TextZero()
111 111 self.text.SetValue("")
112 112 self.text.SetPosition(const.TEXT_POS_LEFT_UP)
113   - # self.ren.AddActor(self.text.actor)
  113 + self.ren.AddActor(self.text.actor)
114 114  
115 115 # self.polygon = Polygon(None, is_3d=False)
116 116  
... ... @@ -1511,7 +1511,7 @@ class Viewer(wx.Panel):
1511 1511 def OnSetWindowLevelText(self, ww, wl):
1512 1512 if self.raycasting_volume:
1513 1513 self.text.SetValue("WL: %d WW: %d"%(wl, ww))
1514   - self.canvas.modified = True
  1514 + # self.canvas.modified = True
1515 1515  
1516 1516 def OnShowRaycasting(self):
1517 1517 if not self.raycasting_volume:
... ...