------------------------------------------------------------------------------
| 156 | |
| 157 | //------------------------------------------------------------------------------ |
| 158 | int vtkSimpleReader::ReadMesh(int piece, int, int, int timestep, vtkDataObject* output) |
| 159 | { |
| 160 | // Not a parallel reader. Cannot handle anything other than the first piece, |
| 161 | // which will have everything. |
| 162 | if (piece > 0) |
| 163 | { |
| 164 | return 1; |
| 165 | } |
| 166 | |
| 167 | int nTimes = static_cast<int>(this->Internal->FileNames.size()); |
| 168 | if (timestep >= nTimes) |
| 169 | { |
| 170 | vtkErrorMacro( |
| 171 | "Cannot read time step " << timestep << ". Only " << nTimes << " time steps are available."); |
| 172 | return 0; |
| 173 | } |
| 174 | |
| 175 | if (this->ReadMeshSimple(this->Internal->FileNames[timestep], output)) |
| 176 | { |
| 177 | this->CurrentFileIndex = timestep; |
| 178 | return 1; |
| 179 | } |
| 180 | return 0; |
| 181 | } |
| 182 | |
| 183 | //------------------------------------------------------------------------------ |
| 184 | int vtkSimpleReader::ReadPoints(int piece, int, int, int timestep, vtkDataObject* output) |
no test coverage detected