------------------------------------------------------------------------------
| 308 | |
| 309 | //------------------------------------------------------------------------------ |
| 310 | void vtkInteractorStyleImage::OnRightButtonDown() |
| 311 | { |
| 312 | int x = this->Interactor->GetEventPosition()[0]; |
| 313 | int y = this->Interactor->GetEventPosition()[1]; |
| 314 | |
| 315 | this->FindPokedRenderer(x, y); |
| 316 | if (this->CurrentRenderer == nullptr) |
| 317 | { |
| 318 | return; |
| 319 | } |
| 320 | |
| 321 | // Redefine this button + shift to handle pick |
| 322 | this->GrabFocus(this->EventCallbackCommand); |
| 323 | if (this->Interactor->GetShiftKey()) |
| 324 | { |
| 325 | this->StartPick(); |
| 326 | } |
| 327 | |
| 328 | else if (this->InteractionMode == VTKIS_IMAGE3D && this->Interactor->GetControlKey()) |
| 329 | { |
| 330 | this->StartSlice(); |
| 331 | } |
| 332 | else if (this->InteractionMode == VTKIS_IMAGE_SLICING && this->Interactor->GetControlKey()) |
| 333 | { |
| 334 | this->StartSpin(); |
| 335 | } |
| 336 | |
| 337 | // The rest of the button + key combinations remain the same |
| 338 | |
| 339 | else |
| 340 | { |
| 341 | this->Superclass::OnRightButtonDown(); |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | //------------------------------------------------------------------------------ |
| 346 | void vtkInteractorStyleImage::OnRightButtonUp() |
nothing calls this directly
no test coverage detected