MCPcopy Create free account
hub / github.com/Kitware/VTK / OnRightButtonUp

Method OnRightButtonUp

Interaction/Style/vtkInteractorStyleUser.cxx:152–175  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

150}
151//------------------------------------------------------------------------------
152void vtkInteractorStyleUser::OnRightButtonUp()
153{
154 if (this->HasObserver(vtkCommand::RightButtonReleaseEvent))
155 {
156 int x = this->Interactor->GetEventPosition()[0];
157 int y = this->Interactor->GetEventPosition()[1];
158 this->CtrlKey = this->Interactor->GetControlKey();
159 this->ShiftKey = this->Interactor->GetShiftKey();
160 this->LastPos[0] = x;
161 this->LastPos[1] = y;
162 this->InvokeEvent(vtkCommand::RightButtonReleaseEvent, nullptr);
163 this->OldPos[0] = x;
164 this->OldPos[1] = y;
165 }
166 else
167 {
168 this->vtkInteractorStyle::OnRightButtonUp();
169 }
170
171 if (this->Button == 3)
172 {
173 this->Button = 0;
174 }
175}
176
177//------------------------------------------------------------------------------
178void vtkInteractorStyleUser::OnMouseWheelForward()

Callers

nothing calls this directly

Calls 2

HasObserverMethod · 0.80
InvokeEventMethod · 0.80

Tested by

no test coverage detected