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