| 271 | } |
| 272 | |
| 273 | void 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 | |
| 298 | void vtkGraphItem::StartLayoutAnimation(vtkRenderWindowInteractor* interactor) |
| 299 | { |
nothing calls this directly
no test coverage detected