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

Function vtkTableToGraphFindHiddenVertices

Infovis/Core/vtkTableToGraph.cxx:327–344  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

325
326//------------------------------------------------------------------------------
327void vtkTableToGraphFindHiddenVertices(vtkAbstractArray* arr, // The raw edge table column
328 vtkIdType size, // The size of the edge table column
329 std::map<std::pair<vtkStdString, vtkVariant>, vtkIdType, vtkTableToGraphCompare>& hiddenMap,
330 // A map of domain-value pairs to hidden vertex id
331 vtkIdType& curHiddenVertex, // The current hidden vertex id
332 vtkStdString domain) // The domain of the array
333{
334 for (vtkIdType i = 0; i < size; i++)
335 {
336 vtkVariant val = arr->GetVariantValue(i);
337 std::pair<vtkStdString, vtkVariant> value(domain, val);
338 if (hiddenMap.count(value) == 0)
339 {
340 hiddenMap[value] = curHiddenVertex;
341 ++curHiddenVertex;
342 }
343 }
344}
345
346//------------------------------------------------------------------------------
347int vtkTableToGraph::RequestData(

Callers 1

RequestDataMethod · 0.85

Calls 2

GetVariantValueMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected