From 2ae6b47162dc63a104edcbd6bb398702642c6d08 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 25 Mar 2013 16:32:13 -0300 Subject: [PATCH] Renamed ZoomInteractorStyle to RighZoomInteractorStyle --- invesalius/data/styles.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index 2facbf0..94af109 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -54,7 +54,7 @@ class BaseImageInteractorStyle(vtk.vtkInteractorStyleImage): self.right_pressed = False -class ZoomInteractorStyle(BaseImageInteractorStyle): +class RightZoomInteractorStyle(BaseImageInteractorStyle): """ Interactor style responsible for zoom the camera. """ @@ -73,12 +73,12 @@ class ZoomInteractorStyle(BaseImageInteractorStyle): evt.StartDolly() -class CrossInteractorStyle(ZoomInteractorStyle): +class CrossInteractorStyle(RightZoomInteractorStyle): """ Interactor style responsible for the Cross. """ def __init__(self, orientation, slice_data): - ZoomInteractorStyle.__init__(self) + RightZoomInteractorStyle.__init__(self) self.orientation = orientation self.slice_actor = slice_data.actor @@ -179,12 +179,12 @@ class CrossInteractorStyle(ZoomInteractorStyle): coord[0]) -class WWWLInteractorStyle(ZoomInteractorStyle): +class WWWLInteractorStyle(RightZoomInteractorStyle): """ Interactor style responsible for Window Level & Width functionality. """ def __init__(self, ww, wl): - ZoomInteractorStyle.__init__(self) + RightZoomInteractorStyle.__init__(self) self.last_x = 0 self.last_y = 0 @@ -223,12 +223,12 @@ class WWWLInteractorStyle(ZoomInteractorStyle): self.last_x, self.last_y = iren.GetLastEventPosition() -class LinearMeasureInteractorStyle(ZoomInteractorStyle): +class LinearMeasureInteractorStyle(RightZoomInteractorStyle): """ Interactor style responsible for insert linear measurements. """ def __init__(self, orientation, slice_data): - ZoomInteractorStyle.__init__(self) + RightZoomInteractorStyle.__init__(self) self.orientation = orientation self.slice_data = slice_data @@ -252,12 +252,12 @@ class LinearMeasureInteractorStyle(ZoomInteractorStyle): Publisher.sendMessage('Update slice viewer') -class AngularMeasureInteractorStyle(ZoomInteractorStyle): +class AngularMeasureInteractorStyle(RightZoomInteractorStyle): """ Interactor style responsible for insert angular measurements. """ def __init__(self, orientation, slice_data): - ZoomInteractorStyle.__init__(self) + RightZoomInteractorStyle.__init__(self) self.orientation = orientation self.slice_data = slice_data @@ -281,12 +281,12 @@ class AngularMeasureInteractorStyle(ZoomInteractorStyle): Publisher.sendMessage('Update slice viewer') -class PanMoveInteractorStyle(ZoomInteractorStyle): +class PanMoveInteractorStyle(RightZoomInteractorStyle): """ Interactor style responsible for translate the camera. """ def __init__(self, viewer): - ZoomInteractorStyle.__init__(self) + RightZoomInteractorStyle.__init__(self) self.viewer = viewer @@ -306,12 +306,12 @@ class PanMoveInteractorStyle(ZoomInteractorStyle): iren.Render() -class SpinInteractorStyle(ZoomInteractorStyle): +class SpinInteractorStyle(RightZoomInteractorStyle): """ Interactor style responsible for spin the camera. """ def __init__(self, viewer): - ZoomInteractorStyle.__init__(self) + RightZoomInteractorStyle.__init__(self) self.viewer = viewer @@ -340,6 +340,8 @@ class SpinInteractorStyle(ZoomInteractorStyle): iren.Render() + + class ViewerStyle: def __init__(self): self.interactor = None -- libgit2 0.21.2