------------------------------------------------------------------------------
| 79 | |
| 80 | //------------------------------------------------------------------------------ |
| 81 | int 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 | //------------------------------------------------------------------------------ |
| 100 | int vtkSimpleReader::ReadMetaData(vtkInformation* metadata) |
no test coverage detected