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

Method ReadTimeDependentMetaData

Common/ExecutionModel/vtkSimpleReader.cxx:81–97  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

79
80//------------------------------------------------------------------------------
81int vtkSimpleReader::ReadTimeDependentMetaData(int timestep, vtkInformation* metadata)
82{
83 if (!this->HasTemporalMetaData)
84 {
85 return 1;
86 }
87
88 int nTimes = static_cast<int>(this->Internal->FileNames.size());
89 if (timestep >= nTimes)
90 {
91 vtkErrorMacro(
92 "Cannot read time step " << timestep << ". Only " << nTimes << " time steps are available.");
93 return 0;
94 }
95
96 return this->ReadMetaDataSimple(this->Internal->FileNames[timestep], metadata);
97}
98
99//------------------------------------------------------------------------------
100int vtkSimpleReader::ReadMetaData(vtkInformation* metadata)

Callers 1

ProcessRequestMethod · 0.45

Calls 2

sizeMethod · 0.45
ReadMetaDataSimpleMethod · 0.45

Tested by

no test coverage detected