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

Method OnMouseWheelForward

Interaction/Style/vtkInteractorStyleUser.cxx:178–196  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

176
177//------------------------------------------------------------------------------
178void 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//------------------------------------------------------------------------------
199void vtkInteractorStyleUser::OnMouseWheelBackward()

Callers 1

OnMouseWheelMethod · 0.45

Calls 2

HasObserverMethod · 0.80
InvokeEventMethod · 0.80

Tested by

no test coverage detected