| 331 | } |
| 332 | |
| 333 | void vtkGraphItem::UpdateLayout() |
| 334 | { |
| 335 | if (this->Graph) |
| 336 | { |
| 337 | this->Layout->SetGraph(this->Graph); |
| 338 | this->Layout->SetAlpha(this->Layout->GetAlpha() * this->Internal->LayoutAlphaCoolDown); |
| 339 | this->Layout->UpdatePositions(); |
| 340 | this->Graph->Modified(); |
| 341 | if (this->Internal->Animating && this->Layout->GetAlpha() < this->Internal->LayoutAlphaStop) |
| 342 | { |
| 343 | this->StopLayoutAnimation(); |
| 344 | } |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | vtkIdType vtkGraphItem::HitVertex(const vtkVector2f& pos) |
| 349 | { |
no test coverage detected