------------------------------------------------------------------------------
| 128 | |
| 129 | //------------------------------------------------------------------------------ |
| 130 | void vtkInteractorStyleUser::OnRightButtonDown() |
| 131 | { |
| 132 | this->Button = 3; |
| 133 | |
| 134 | if (this->HasObserver(vtkCommand::RightButtonPressEvent)) |
| 135 | { |
| 136 | int x = this->Interactor->GetEventPosition()[0]; |
| 137 | int y = this->Interactor->GetEventPosition()[1]; |
| 138 | this->CtrlKey = this->Interactor->GetControlKey(); |
| 139 | this->ShiftKey = this->Interactor->GetShiftKey(); |
| 140 | this->LastPos[0] = x; |
| 141 | this->LastPos[1] = y; |
| 142 | this->InvokeEvent(vtkCommand::RightButtonPressEvent, nullptr); |
| 143 | this->OldPos[0] = x; |
| 144 | this->OldPos[1] = y; |
| 145 | } |
| 146 | else |
| 147 | { |
| 148 | this->vtkInteractorStyle::OnRightButtonDown(); |
| 149 | } |
| 150 | } |
| 151 | //------------------------------------------------------------------------------ |
| 152 | void vtkInteractorStyleUser::OnRightButtonUp() |
| 153 | { |
nothing calls this directly
no test coverage detected