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

Method FlushLabels

Common/DataModel/vtkReebGraph.cxx:1829–1848  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1827
1828//------------------------------------------------------------------------------
1829void vtkReebGraph::Implementation::FlushLabels()
1830{
1831 for (int A = 1; A < this->MainArcTable.Size; A++)
1832 {
1833 if (!(this->GetArc(A)->LabelId1 == -2))
1834 this->GetArc(A)->LabelId0 = this->GetArc(A)->LabelId1 = 0;
1835 }
1836
1837 if (this->MainLabelTable.Buffer)
1838 {
1839 free(this->MainLabelTable.Buffer);
1840 }
1841
1842 this->MainLabelTable.Buffer = (vtkReebLabel*)malloc(sizeof(vtkReebLabel) * 2);
1843 this->MainLabelTable.Size = 2;
1844 this->MainLabelTable.Number = 1;
1845 this->MainLabelTable.FreeZone = 1;
1846 this->GetLabel(1)->HNext = -2;
1847 this->GetLabel(1)->ArcId = 0;
1848}
1849
1850//------------------------------------------------------------------------------
1851void vtkReebGraph::DeepCopy(vtkDataObject* src)

Callers 1

CloseStreamMethod · 0.80

Calls 2

GetArcMethod · 0.95
GetLabelMethod · 0.95

Tested by

no test coverage detected