------------------------------------------------------------------------------
| 182 | |
| 183 | //------------------------------------------------------------------------------ |
| 184 | int vtkSimpleReader::ReadPoints(int piece, int, int, int timestep, vtkDataObject* output) |
| 185 | { |
| 186 | // Not a parallel reader. Cannot handle anything other than the first piece, |
| 187 | // which will have everything. |
| 188 | if (piece > 0) |
| 189 | { |
| 190 | return 1; |
| 191 | } |
| 192 | |
| 193 | int nTimes = static_cast<int>(this->Internal->FileNames.size()); |
| 194 | if (timestep >= nTimes) |
| 195 | { |
| 196 | vtkErrorMacro( |
| 197 | "Cannot read time step " << timestep << ". Only " << nTimes << " time steps are available."); |
| 198 | return 0; |
| 199 | } |
| 200 | |
| 201 | return this->ReadPointsSimple(this->Internal->FileNames[timestep], output); |
| 202 | } |
| 203 | |
| 204 | //------------------------------------------------------------------------------ |
| 205 | int vtkSimpleReader::ReadArrays(int piece, int, int, int timestep, vtkDataObject* output) |