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

Method ClearLinkVertices

Infovis/Core/vtkTableToGraph.cxx:175–185  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

173
174//------------------------------------------------------------------------------
175void vtkTableToGraph::ClearLinkVertices()
176{
177 this->ValidateLinkGraph();
178 vtkIntArray* activeArr =
179 vtkArrayDownCast<vtkIntArray>(this->LinkGraph->GetVertexData()->GetAbstractArray("active"));
180 for (vtkIdType i = 0; i < this->LinkGraph->GetNumberOfVertices(); ++i)
181 {
182 activeArr->SetValue(i, 0);
183 }
184 this->Modified();
185}
186
187//------------------------------------------------------------------------------
188void vtkTableToGraph::AddLinkEdge(const char* column1, const char* column2)

Callers 1

TestTableToGraphFunction · 0.45

Calls 6

ValidateLinkGraphMethod · 0.95
GetAbstractArrayMethod · 0.80
GetVertexDataMethod · 0.80
GetNumberOfVerticesMethod · 0.80
SetValueMethod · 0.45
ModifiedMethod · 0.45

Tested by 1

TestTableToGraphFunction · 0.36