------------------------------------------------------------------------------
| 218 | |
| 219 | //------------------------------------------------------------------------------ |
| 220 | void vtkInteractorStyleUser::OnMiddleButtonDown() |
| 221 | { |
| 222 | this->Button = 2; |
| 223 | |
| 224 | if (this->HasObserver(vtkCommand::MiddleButtonPressEvent)) |
| 225 | { |
| 226 | int x = this->Interactor->GetEventPosition()[0]; |
| 227 | int y = this->Interactor->GetEventPosition()[1]; |
| 228 | this->CtrlKey = this->Interactor->GetControlKey(); |
| 229 | this->ShiftKey = this->Interactor->GetShiftKey(); |
| 230 | this->LastPos[0] = x; |
| 231 | this->LastPos[1] = y; |
| 232 | this->InvokeEvent(vtkCommand::MiddleButtonPressEvent, nullptr); |
| 233 | this->OldPos[0] = x; |
| 234 | this->OldPos[1] = y; |
| 235 | } |
| 236 | else |
| 237 | { |
| 238 | this->vtkInteractorStyle::OnMiddleButtonDown(); |
| 239 | } |
| 240 | } |
| 241 | //------------------------------------------------------------------------------ |
| 242 | void vtkInteractorStyleUser::OnMiddleButtonUp() |
| 243 | { |
nothing calls this directly
no test coverage detected