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

Method AppendIterDataObject

IO/HDF/vtkHDFWriter.cxx:1576–1598  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1574
1575//------------------------------------------------------------------------------
1576void vtkHDFWriter::AppendIterDataObject(
1577 vtkDataObjectTreeIterator* treeIter, const int& leafIndex, const std::string& uniqueSubTreeName)
1578{
1579 this->PreviousStepMeshMTime = this->CompositeMeshMTime[leafIndex];
1580 this->DispatchDataObject(
1581 this->Impl->OpenExistingGroup(this->Impl->GetRoot(), uniqueSubTreeName.c_str()),
1582 treeIter->GetCurrentDataObject());
1583 auto ds = vtkDataSet::SafeDownCast(treeIter->GetCurrentDataObject());
1584 auto pds = vtkPartitionedDataSet::SafeDownCast(treeIter->GetCurrentDataObject());
1585 if (ds)
1586 {
1587 this->CompositeMeshMTime[leafIndex] = ds->GetMeshMTime();
1588 }
1589 else if (pds && pds->GetNumberOfPartitions() > 0)
1590 {
1591 this->CompositeMeshMTime[leafIndex] =
1592 vtkDataSet::SafeDownCast(pds->GetPartition(0))->GetMeshMTime();
1593 }
1594 else
1595 {
1596 this->CompositeMeshMTime[leafIndex] = this->CurrentTimeIndex + 1;
1597 }
1598}
1599
1600//------------------------------------------------------------------------------
1601void vtkHDFWriter::AppendCompositeSubfilesDataObject(const std::string& uniqueSubTreeName)

Callers 1

AppendMultiblockMethod · 0.95

Calls 8

DispatchDataObjectMethod · 0.95
OpenExistingGroupMethod · 0.80
GetRootMethod · 0.45
c_strMethod · 0.45
GetCurrentDataObjectMethod · 0.45
GetMeshMTimeMethod · 0.45
GetNumberOfPartitionsMethod · 0.45
GetPartitionMethod · 0.45

Tested by

no test coverage detected