------------------------------------------------------------------------------
| 33 | |
| 34 | //------------------------------------------------------------------------------ |
| 35 | void vtkInteractorStyleTrackballActor::OnMouseMove() |
| 36 | { |
| 37 | int x = this->Interactor->GetEventPosition()[0]; |
| 38 | int y = this->Interactor->GetEventPosition()[1]; |
| 39 | |
| 40 | switch (this->State) |
| 41 | { |
| 42 | case VTKIS_ROTATE: |
| 43 | this->FindPokedRenderer(x, y); |
| 44 | this->Rotate(); |
| 45 | this->InvokeEvent(vtkCommand::InteractionEvent, nullptr); |
| 46 | break; |
| 47 | |
| 48 | case VTKIS_PAN: |
| 49 | this->FindPokedRenderer(x, y); |
| 50 | this->Pan(); |
| 51 | this->InvokeEvent(vtkCommand::InteractionEvent, nullptr); |
| 52 | break; |
| 53 | |
| 54 | case VTKIS_DOLLY: |
| 55 | this->FindPokedRenderer(x, y); |
| 56 | this->Dolly(); |
| 57 | this->InvokeEvent(vtkCommand::InteractionEvent, nullptr); |
| 58 | break; |
| 59 | |
| 60 | case VTKIS_SPIN: |
| 61 | this->FindPokedRenderer(x, y); |
| 62 | this->Spin(); |
| 63 | this->InvokeEvent(vtkCommand::InteractionEvent, nullptr); |
| 64 | break; |
| 65 | |
| 66 | case VTKIS_USCALE: |
| 67 | this->FindPokedRenderer(x, y); |
| 68 | this->UniformScale(); |
| 69 | this->InvokeEvent(vtkCommand::InteractionEvent, nullptr); |
| 70 | break; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | //------------------------------------------------------------------------------ |
| 75 | void vtkInteractorStyleTrackballActor::OnLeftButtonDown() |
nothing calls this directly
no test coverage detected