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

Method ProcessEvents

Interaction/Widgets/vtkSphereWidget.cxx:198–222  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

196
197//------------------------------------------------------------------------------
198void vtkSphereWidget::ProcessEvents(
199 vtkObject* vtkNotUsed(object), unsigned long event, void* clientdata, void* vtkNotUsed(calldata))
200{
201 vtkSphereWidget* self = reinterpret_cast<vtkSphereWidget*>(clientdata);
202
203 // okay, let's do the right thing
204 switch (event)
205 {
206 case vtkCommand::LeftButtonPressEvent:
207 self->OnLeftButtonDown();
208 break;
209 case vtkCommand::LeftButtonReleaseEvent:
210 self->OnLeftButtonUp();
211 break;
212 case vtkCommand::RightButtonPressEvent:
213 self->OnRightButtonDown();
214 break;
215 case vtkCommand::RightButtonReleaseEvent:
216 self->OnRightButtonUp();
217 break;
218 case vtkCommand::MouseMoveEvent:
219 self->OnMouseMove();
220 break;
221 }
222}
223
224//------------------------------------------------------------------------------
225void vtkSphereWidget::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 5

OnLeftButtonDownMethod · 0.95
OnLeftButtonUpMethod · 0.95
OnRightButtonDownMethod · 0.95
OnRightButtonUpMethod · 0.95
OnMouseMoveMethod · 0.95

Tested by

no test coverage detected