------------------------------------------------------------------------------
| 176 | |
| 177 | //------------------------------------------------------------------------------ |
| 178 | void vtkInteractorStyleUser::OnMouseWheelForward() |
| 179 | { |
| 180 | if (this->HasObserver(vtkCommand::MouseWheelForwardEvent)) |
| 181 | { |
| 182 | int x = this->Interactor->GetEventPosition()[0]; |
| 183 | int y = this->Interactor->GetEventPosition()[1]; |
| 184 | this->CtrlKey = this->Interactor->GetControlKey(); |
| 185 | this->ShiftKey = this->Interactor->GetShiftKey(); |
| 186 | this->LastPos[0] = x; |
| 187 | this->LastPos[1] = y; |
| 188 | this->InvokeEvent(vtkCommand::MouseWheelForwardEvent, nullptr); |
| 189 | this->OldPos[0] = x; |
| 190 | this->OldPos[1] = y; |
| 191 | } |
| 192 | else |
| 193 | { |
| 194 | this->vtkInteractorStyle::OnMouseWheelForward(); |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | //------------------------------------------------------------------------------ |
| 199 | void vtkInteractorStyleUser::OnMouseWheelBackward() |
no test coverage detected