Commit 2ae6b47162dc63a104edcbd6bb398702642c6d08
1 parent
96dd7511
Exists in
interactor_style
Renamed ZoomInteractorStyle to RighZoomInteractorStyle
Showing
1 changed file
with
15 additions
and
13 deletions
Show diff stats
invesalius/data/styles.py
| @@ -54,7 +54,7 @@ class BaseImageInteractorStyle(vtk.vtkInteractorStyleImage): | @@ -54,7 +54,7 @@ class BaseImageInteractorStyle(vtk.vtkInteractorStyleImage): | ||
| 54 | self.right_pressed = False | 54 | self.right_pressed = False |
| 55 | 55 | ||
| 56 | 56 | ||
| 57 | -class ZoomInteractorStyle(BaseImageInteractorStyle): | 57 | +class RightZoomInteractorStyle(BaseImageInteractorStyle): |
| 58 | """ | 58 | """ |
| 59 | Interactor style responsible for zoom the camera. | 59 | Interactor style responsible for zoom the camera. |
| 60 | """ | 60 | """ |
| @@ -73,12 +73,12 @@ class ZoomInteractorStyle(BaseImageInteractorStyle): | @@ -73,12 +73,12 @@ class ZoomInteractorStyle(BaseImageInteractorStyle): | ||
| 73 | evt.StartDolly() | 73 | evt.StartDolly() |
| 74 | 74 | ||
| 75 | 75 | ||
| 76 | -class CrossInteractorStyle(ZoomInteractorStyle): | 76 | +class CrossInteractorStyle(RightZoomInteractorStyle): |
| 77 | """ | 77 | """ |
| 78 | Interactor style responsible for the Cross. | 78 | Interactor style responsible for the Cross. |
| 79 | """ | 79 | """ |
| 80 | def __init__(self, orientation, slice_data): | 80 | def __init__(self, orientation, slice_data): |
| 81 | - ZoomInteractorStyle.__init__(self) | 81 | + RightZoomInteractorStyle.__init__(self) |
| 82 | 82 | ||
| 83 | self.orientation = orientation | 83 | self.orientation = orientation |
| 84 | self.slice_actor = slice_data.actor | 84 | self.slice_actor = slice_data.actor |
| @@ -179,12 +179,12 @@ class CrossInteractorStyle(ZoomInteractorStyle): | @@ -179,12 +179,12 @@ class CrossInteractorStyle(ZoomInteractorStyle): | ||
| 179 | coord[0]) | 179 | coord[0]) |
| 180 | 180 | ||
| 181 | 181 | ||
| 182 | -class WWWLInteractorStyle(ZoomInteractorStyle): | 182 | +class WWWLInteractorStyle(RightZoomInteractorStyle): |
| 183 | """ | 183 | """ |
| 184 | Interactor style responsible for Window Level & Width functionality. | 184 | Interactor style responsible for Window Level & Width functionality. |
| 185 | """ | 185 | """ |
| 186 | def __init__(self, ww, wl): | 186 | def __init__(self, ww, wl): |
| 187 | - ZoomInteractorStyle.__init__(self) | 187 | + RightZoomInteractorStyle.__init__(self) |
| 188 | 188 | ||
| 189 | self.last_x = 0 | 189 | self.last_x = 0 |
| 190 | self.last_y = 0 | 190 | self.last_y = 0 |
| @@ -223,12 +223,12 @@ class WWWLInteractorStyle(ZoomInteractorStyle): | @@ -223,12 +223,12 @@ class WWWLInteractorStyle(ZoomInteractorStyle): | ||
| 223 | self.last_x, self.last_y = iren.GetLastEventPosition() | 223 | self.last_x, self.last_y = iren.GetLastEventPosition() |
| 224 | 224 | ||
| 225 | 225 | ||
| 226 | -class LinearMeasureInteractorStyle(ZoomInteractorStyle): | 226 | +class LinearMeasureInteractorStyle(RightZoomInteractorStyle): |
| 227 | """ | 227 | """ |
| 228 | Interactor style responsible for insert linear measurements. | 228 | Interactor style responsible for insert linear measurements. |
| 229 | """ | 229 | """ |
| 230 | def __init__(self, orientation, slice_data): | 230 | def __init__(self, orientation, slice_data): |
| 231 | - ZoomInteractorStyle.__init__(self) | 231 | + RightZoomInteractorStyle.__init__(self) |
| 232 | 232 | ||
| 233 | self.orientation = orientation | 233 | self.orientation = orientation |
| 234 | self.slice_data = slice_data | 234 | self.slice_data = slice_data |
| @@ -252,12 +252,12 @@ class LinearMeasureInteractorStyle(ZoomInteractorStyle): | @@ -252,12 +252,12 @@ class LinearMeasureInteractorStyle(ZoomInteractorStyle): | ||
| 252 | Publisher.sendMessage('Update slice viewer') | 252 | Publisher.sendMessage('Update slice viewer') |
| 253 | 253 | ||
| 254 | 254 | ||
| 255 | -class AngularMeasureInteractorStyle(ZoomInteractorStyle): | 255 | +class AngularMeasureInteractorStyle(RightZoomInteractorStyle): |
| 256 | """ | 256 | """ |
| 257 | Interactor style responsible for insert angular measurements. | 257 | Interactor style responsible for insert angular measurements. |
| 258 | """ | 258 | """ |
| 259 | def __init__(self, orientation, slice_data): | 259 | def __init__(self, orientation, slice_data): |
| 260 | - ZoomInteractorStyle.__init__(self) | 260 | + RightZoomInteractorStyle.__init__(self) |
| 261 | 261 | ||
| 262 | self.orientation = orientation | 262 | self.orientation = orientation |
| 263 | self.slice_data = slice_data | 263 | self.slice_data = slice_data |
| @@ -281,12 +281,12 @@ class AngularMeasureInteractorStyle(ZoomInteractorStyle): | @@ -281,12 +281,12 @@ class AngularMeasureInteractorStyle(ZoomInteractorStyle): | ||
| 281 | Publisher.sendMessage('Update slice viewer') | 281 | Publisher.sendMessage('Update slice viewer') |
| 282 | 282 | ||
| 283 | 283 | ||
| 284 | -class PanMoveInteractorStyle(ZoomInteractorStyle): | 284 | +class PanMoveInteractorStyle(RightZoomInteractorStyle): |
| 285 | """ | 285 | """ |
| 286 | Interactor style responsible for translate the camera. | 286 | Interactor style responsible for translate the camera. |
| 287 | """ | 287 | """ |
| 288 | def __init__(self, viewer): | 288 | def __init__(self, viewer): |
| 289 | - ZoomInteractorStyle.__init__(self) | 289 | + RightZoomInteractorStyle.__init__(self) |
| 290 | 290 | ||
| 291 | self.viewer = viewer | 291 | self.viewer = viewer |
| 292 | 292 | ||
| @@ -306,12 +306,12 @@ class PanMoveInteractorStyle(ZoomInteractorStyle): | @@ -306,12 +306,12 @@ class PanMoveInteractorStyle(ZoomInteractorStyle): | ||
| 306 | iren.Render() | 306 | iren.Render() |
| 307 | 307 | ||
| 308 | 308 | ||
| 309 | -class SpinInteractorStyle(ZoomInteractorStyle): | 309 | +class SpinInteractorStyle(RightZoomInteractorStyle): |
| 310 | """ | 310 | """ |
| 311 | Interactor style responsible for spin the camera. | 311 | Interactor style responsible for spin the camera. |
| 312 | """ | 312 | """ |
| 313 | def __init__(self, viewer): | 313 | def __init__(self, viewer): |
| 314 | - ZoomInteractorStyle.__init__(self) | 314 | + RightZoomInteractorStyle.__init__(self) |
| 315 | 315 | ||
| 316 | self.viewer = viewer | 316 | self.viewer = viewer |
| 317 | 317 | ||
| @@ -340,6 +340,8 @@ class SpinInteractorStyle(ZoomInteractorStyle): | @@ -340,6 +340,8 @@ class SpinInteractorStyle(ZoomInteractorStyle): | ||
| 340 | iren.Render() | 340 | iren.Render() |
| 341 | 341 | ||
| 342 | 342 | ||
| 343 | + | ||
| 344 | + | ||
| 343 | class ViewerStyle: | 345 | class ViewerStyle: |
| 344 | def __init__(self): | 346 | def __init__(self): |
| 345 | self.interactor = None | 347 | self.interactor = None |