Commit a68ee3152d545ac2a37ca7cf5cc717b0d74fccf5

Authored by tatiana
1 parent 8796d5b8

ENH: Slice zoom

Showing 1 changed file with 8 additions and 1 deletions   Show diff stats
invesalius/data/viewer_slice.py
... ... @@ -487,7 +487,14 @@ class Viewer(wx.Panel):
487 487 ren = slice_data.renderer
488 488 size = ren.GetSize()
489 489  
490   - if (size[0] <= size[1] + 60):
  490 +
  491 + ren.ResetCamera()
  492 + ren.GetActiveCamera().Zoom(1.0)
  493 + self.interactor.GetRenderWindow().Render()
  494 +
  495 +
  496 + #if (size[0] <= size[1] + 60):
  497 + if 0:
491 498  
492 499 bound = slice_data.actor.GetBounds()
493 500  
... ...