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

Function FillAssembly

IO/CatalystConduit/vtkDataObjectToConduit.cxx:1000–1026  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

998
999//----------------------------------------------------------------------------
1000void FillAssembly(std::map<unsigned int, std::string>& name_map, unsigned int currentIndex,
1001 vtkDataAssembly* assembly, conduit_cpp::Node& currentNode)
1002{
1003 auto datasets = assembly->GetDataSetIndices(currentIndex, false);
1004 auto children = assembly->GetChildNodes(currentIndex, false);
1005 if (!children.empty())
1006 {
1007 for (auto child : children)
1008 {
1009
1010 auto childNode = currentNode[assembly->GetNodeName(child)];
1011 ::FillAssembly(name_map, child, assembly, childNode);
1012 }
1013 }
1014 else if (datasets.size() == 1)
1015 {
1016 currentNode = name_map[datasets[0]];
1017 }
1018 else
1019 {
1020 for (auto datasetId : datasets)
1021 {
1022 auto entry = currentNode.append();
1023 entry.set(name_map[datasetId]);
1024 }
1025 }
1026}
1027
1028//----------------------------------------------------------------------------
1029bool FillConduitMultiMeshNode(vtkPartitionedDataSetCollection* pdc, conduit_cpp::Node& conduit_node)

Callers 1

FillConduitNodeAssemblyFunction · 0.85

Calls 7

GetDataSetIndicesMethod · 0.80
GetChildNodesMethod · 0.80
emptyMethod · 0.45
GetNodeNameMethod · 0.45
sizeMethod · 0.45
appendMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected