Commit 245c4e6581f6d560db0feba323bb3a7073782dab
1 parent
0ef22a3d
Exists in
master
and in
5 other branches
ENH: Added feature to reset imagem position from spin and pan actions
Showing
1 changed file
with
1 additions
and
5 deletions
Show diff stats
invesalius/data/viewer_slice.py
... | ... | @@ -400,10 +400,6 @@ class Viewer(wx.Panel): |
400 | 400 | if (self.left_pressed): |
401 | 401 | evt.Pan() |
402 | 402 | evt.OnRightButtonDown() |
403 | - print dir(cam) | |
404 | - print "CamPosition >>", cam.GetPosition() | |
405 | - print "CamViewUp>>", cam.GetViewUp() | |
406 | - print "CamOrientation", cam.GetOrientation() | |
407 | 403 | self.paned_image = True |
408 | 404 | |
409 | 405 | def OnPanClick(self, evt, obj): |
... | ... | @@ -432,12 +428,12 @@ class Viewer(wx.Panel): |
432 | 428 | orig_orien = 1 |
433 | 429 | mouse_x, mouse_y = self.interactor.GetLastEventPosition() |
434 | 430 | ren = self.interactor.FindPokedRenderer(mouse_x, mouse_y) |
431 | + | |
435 | 432 | if((self.state == const.STATE_SPIN) and (self.spined_image)): |
436 | 433 | self.cam.SetViewUp(const.SLICE_POSITION[orig_orien][0][self.orientation]) |
437 | 434 | self.interactor.Render() |
438 | 435 | self.spined_image = False |
439 | 436 | elif((self.state == const.STATE_PAN) and (self.paned_image)): |
440 | - #self.cam.SetPosition(const.SLICE_POSITION[orig_orien][1][self.orientation]) | |
441 | 437 | ren.ResetCamera() |
442 | 438 | self.interactor.Render() |
443 | 439 | self.paned_image = False | ... | ... |