Commit ea58ed7c4ac5d7e5c640a49ccce5368e82dea611

Authored by Thiago Franco de Moraes
1 parent b7ec9d2e
Exists in interactor_style

Renamed RightZoomInteractorStyle to DefaultInteractorStyle

Showing 1 changed file with 17 additions and 17 deletions   Show diff stats
invesalius/data/styles.py
... ... @@ -54,7 +54,7 @@ class BaseImageInteractorStyle(vtk.vtkInteractorStyleImage):
54 54 self.right_pressed = False
55 55  
56 56  
57   -class RightZoomInteractorStyle(BaseImageInteractorStyle):
  57 +class DefaultInteractorStyle(BaseImageInteractorStyle):
58 58 """
59 59 Interactor style responsible for zoom the camera.
60 60 """
... ... @@ -85,12 +85,12 @@ class RightZoomInteractorStyle(BaseImageInteractorStyle):
85 85 self.viewer.OnScrollBackward()
86 86  
87 87  
88   -class CrossInteractorStyle(RightZoomInteractorStyle):
  88 +class CrossInteractorStyle(DefaultInteractorStyle):
89 89 """
90 90 Interactor style responsible for the Cross.
91 91 """
92 92 def __init__(self, viewer):
93   - RightZoomInteractorStyle.__init__(self, viewer)
  93 + DefaultInteractorStyle.__init__(self, viewer)
94 94  
95 95 self.orientation = viewer.orientation
96 96 self.slice_actor = viewer.slice_data.actor
... ... @@ -191,12 +191,12 @@ class CrossInteractorStyle(RightZoomInteractorStyle):
191 191 coord[0])
192 192  
193 193  
194   -class WWWLInteractorStyle(RightZoomInteractorStyle):
  194 +class WWWLInteractorStyle(DefaultInteractorStyle):
195 195 """
196 196 Interactor style responsible for Window Level & Width functionality.
197 197 """
198 198 def __init__(self, viewer):
199   - RightZoomInteractorStyle.__init__(self, viewer)
  199 + DefaultInteractorStyle.__init__(self, viewer)
200 200  
201 201 self.viewer = viewer
202 202  
... ... @@ -240,12 +240,12 @@ class WWWLInteractorStyle(RightZoomInteractorStyle):
240 240 self.acum_achange_level = viewer.slice_.window_level
241 241  
242 242  
243   -class LinearMeasureInteractorStyle(RightZoomInteractorStyle):
  243 +class LinearMeasureInteractorStyle(DefaultInteractorStyle):
244 244 """
245 245 Interactor style responsible for insert linear measurements.
246 246 """
247 247 def __init__(self, viewer):
248   - RightZoomInteractorStyle.__init__(self, viewer)
  248 + DefaultInteractorStyle.__init__(self, viewer)
249 249  
250 250 self.viewer = viewer
251 251 self.orientation = viewer.orientation
... ... @@ -270,12 +270,12 @@ class LinearMeasureInteractorStyle(RightZoomInteractorStyle):
270 270 self.viewer.interactor.Render()
271 271  
272 272  
273   -class AngularMeasureInteractorStyle(RightZoomInteractorStyle):
  273 +class AngularMeasureInteractorStyle(DefaultInteractorStyle):
274 274 """
275 275 Interactor style responsible for insert angular measurements.
276 276 """
277 277 def __init__(self, viewer):
278   - RightZoomInteractorStyle.__init__(self, viewer)
  278 + DefaultInteractorStyle.__init__(self, viewer)
279 279  
280 280 self.viewer = viewer
281 281 self.orientation = viewer.orientation
... ... @@ -300,12 +300,12 @@ class AngularMeasureInteractorStyle(RightZoomInteractorStyle):
300 300 self.viewer.interactor.Render()
301 301  
302 302  
303   -class PanMoveInteractorStyle(RightZoomInteractorStyle):
  303 +class PanMoveInteractorStyle(DefaultInteractorStyle):
304 304 """
305 305 Interactor style responsible for translate the camera.
306 306 """
307 307 def __init__(self, viewer):
308   - RightZoomInteractorStyle.__init__(self, viewer)
  308 + DefaultInteractorStyle.__init__(self, viewer)
309 309  
310 310 self.viewer = viewer
311 311  
... ... @@ -325,12 +325,12 @@ class PanMoveInteractorStyle(RightZoomInteractorStyle):
325 325 iren.Render()
326 326  
327 327  
328   -class SpinInteractorStyle(RightZoomInteractorStyle):
  328 +class SpinInteractorStyle(DefaultInteractorStyle):
329 329 """
330 330 Interactor style responsible for spin the camera.
331 331 """
332 332 def __init__(self, viewer):
333   - RightZoomInteractorStyle.__init__(self, viewer)
  333 + DefaultInteractorStyle.__init__(self, viewer)
334 334  
335 335 self.viewer = viewer
336 336  
... ... @@ -359,13 +359,13 @@ class SpinInteractorStyle(RightZoomInteractorStyle):
359 359 iren.Render()
360 360  
361 361  
362   -class ZoomInteractorStyle(RightZoomInteractorStyle):
  362 +class ZoomInteractorStyle(DefaultInteractorStyle):
363 363 """
364 364 Interactor style responsible for zoom with movement of the mouse and the
365 365 left mouse button clicked.
366 366 """
367 367 def __init__(self, viewer):
368   - RightZoomInteractorStyle.__init__(self, viewer)
  368 + DefaultInteractorStyle.__init__(self, viewer)
369 369  
370 370 self.viewer = viewer
371 371  
... ... @@ -405,12 +405,12 @@ class ZoomSLInteractorStyle(vtk.vtkInteractorStyleRubberBandZoom):
405 405 self.viewer.interactor.Render()
406 406  
407 407  
408   -class ChangeSliceInteractorStyle(RightZoomInteractorStyle):
  408 +class ChangeSliceInteractorStyle(DefaultInteractorStyle):
409 409 """
410 410 Interactor style responsible for change slice moving the mouse.
411 411 """
412 412 def __init__(self, viewer):
413   - RightZoomInteractorStyle.__init__(self, viewer)
  413 + DefaultInteractorStyle.__init__(self, viewer)
414 414  
415 415 self.viewer = viewer
416 416  
... ...