Commit 5311ac7756e710c8ebf25d847aab47826e5e32dd

Authored by Thiago Franco de Moraes
1 parent 493b96d5
Exists in surface_area

Calculating area when selecting greatest surface, select surface or separate all surfaces

invesalius/data/surface.py
... ... @@ -316,9 +316,9 @@ class SurfaceManager():
316 316 Publisher.sendMessage('Load surface actor into viewer', actor)
317 317  
318 318 Publisher.sendMessage('Update surface info in GUI',
319   - (surface.index, surface.name,
320   - surface.colour, surface.volume,
321   - surface.transparency))
  319 + (surface.index, surface.name,
  320 + surface.colour, surface.volume,
  321 + surface.area, surface.transparency))
322 322 return surface.index
323 323  
324 324 def OnCloseProject(self, pubsub_evt):
... ... @@ -337,9 +337,9 @@ class SurfaceManager():
337 337 proj = prj.Project()
338 338 surface = proj.surface_dict[index]
339 339 Publisher.sendMessage('Update surface info in GUI',
340   - (index, surface.name,
341   - surface.colour, surface.volume,
342   - surface.transparency))
  340 + (index, surface.name,
  341 + surface.colour, surface.volume,
  342 + surface.area, surface.transparency))
343 343 self.last_surface_index = index
344 344 if surface.is_shown:
345 345 self.ShowActor(index, True)
... ...
invesalius/gui/data_notebook.py
... ... @@ -900,7 +900,7 @@ class SurfacesListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin):
900 900 index and value.
901 901 """
902 902 index, value = pubsub_evt.data
903   - self.SetStringItem(index, 3, "%d%%"%(int(value*100)))
  903 + self.SetStringItem(index, 4, "%d%%"%(int(value*100)))
904 904  
905 905 def EditSurfaceColour(self, pubsub_evt):
906 906 """
... ...