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

Method UpdateLayout

Views/Infovis/vtkGraphItem.cxx:333–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333void 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
348vtkIdType vtkGraphItem::HitVertex(const vtkVector2f& pos)
349{

Callers 1

ProcessEventsMethod · 0.95

Calls 6

StopLayoutAnimationMethod · 0.95
GetAlphaMethod · 0.80
SetGraphMethod · 0.45
SetAlphaMethod · 0.45
UpdatePositionsMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected