------------------------------------------------------------------------------
| 325 | |
| 326 | //------------------------------------------------------------------------------ |
| 327 | void 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 | //------------------------------------------------------------------------------ |
| 347 | int vtkTableToGraph::RequestData( |
no test coverage detected