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

Method ProcessEvents

Views/Infovis/vtkGraphItem.cxx:273–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void vtkGraphItem::ProcessEvents(
274 vtkObject* vtkNotUsed(caller), unsigned long event, void* clientData, void* callerData)
275{
276 vtkGraphItem* self = reinterpret_cast<vtkGraphItem*>(clientData);
277 switch (event)
278 {
279 case vtkCommand::TimerEvent:
280 {
281 // We must filter the events to ensure we actually get the timer event we
282 // created. I would love signals and slots...
283 int timerId = *static_cast<int*>(callerData); // Seems to work.
284 if (self->Internal->Animating && timerId == self->Internal->TimerId)
285 {
286 self->UpdateLayout();
287 vtkIdType v = self->HitVertex(self->Internal->LastMousePos);
288 self->PlaceTooltip(v);
289 self->GetScene()->SetDirty(true);
290 }
291 break;
292 }
293 default:
294 break;
295 }
296}
297
298void vtkGraphItem::StartLayoutAnimation(vtkRenderWindowInteractor* interactor)
299{

Callers

nothing calls this directly

Calls 5

UpdateLayoutMethod · 0.95
HitVertexMethod · 0.95
PlaceTooltipMethod · 0.95
SetDirtyMethod · 0.80
GetSceneMethod · 0.45

Tested by

no test coverage detected