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

Function GetDatasetIndices

IO/IOSS/vtkIOSSModel.cxx:547–564  ·  view source on GitHub ↗

=============================================================================

Source from the content-addressed store, hash-verified

545
546//=============================================================================
547std::set<unsigned int> GetDatasetIndices(vtkDataAssembly* assembly, std::set<std::string> paths)
548{
549 if (assembly && assembly->GetRootNodeName())
550 {
551 std::vector<int> indices;
552 for (const auto& path : paths)
553 {
554 const auto idx = assembly->GetFirstNodeByPath(path.c_str());
555 if (idx != -1)
556 {
557 indices.push_back(idx);
558 }
559 }
560 const auto vector = assembly->GetDataSetIndices(indices);
561 return std::set<unsigned int>{ vector.begin(), vector.end() };
562 }
563 return {};
564}
565
566//=============================================================================
567std::map<unsigned char, int64_t> GetElementCounts(

Callers 1

vtkIOSSModelMethod · 0.85

Calls 6

GetFirstNodeByPathMethod · 0.80
GetDataSetIndicesMethod · 0.80
c_strMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected